/* styles.css */
: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:disabled,
.pill.empty {
  cursor: default;
  opacity: 0.42;
}

.pill:disabled:hover {
  border-color: transparent;
  background: transparent;
  color: var(--muted-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-load-more {
  display: flex;
  justify-content: center;
  padding: 24px 0 4px;
}

.asset-load-more[hidden] {
  display: none;
}

.asset-load-more-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font: inherit;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.asset-load-more-button:hover,
.asset-load-more-button:focus-visible {
  border-color: var(--border-strong);
  background: var(--muted);
}

.asset-load-more-button small {
  color: var(--muted-foreground);
  font-size: 11px;
}

.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 58px auto 14px;
  z-index: 5;
  display: flex;
  align-items: start;
  justify-content: flex-start;
  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 {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 12;
  width: 34px;
  height: 34px;
  background: rgb(9 9 11 / 34%);
  opacity: 0.84;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  transition: opacity 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.favorite-btn.active {
  background: rgb(9 9 11 / 72%);
  color: #facc15;
  opacity: 1;
}

.favorite-btn:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.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;
}

.skill-detail-record {
  display: grid;
  background: #0d0d0f;
}

.skill-detail-sheet {
  align-content: start;
}

.skill-detail-sheet .sheet-hero-main {
  padding-right: 52px;
}

.sheet-close-button {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 13%);
  background: rgb(8 8 9 / 72%);
  color: #a1a1a8;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.sheet-close-button:hover,
.sheet-close-button:focus-visible {
  border-color: rgb(255 76 79 / 55%);
  background: rgb(255 76 79 / 9%);
  color: #fff;
  outline: 0;
}

.sheet-close-button .icon {
  width: 18px;
  height: 18px;
}

.skill-detail-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 92px;
  padding: 0 30px;
  border-bottom: 1px solid var(--border);
}

.skill-detail-label {
  background: rgb(255 255 255 / 0.8%);
  padding: 25px 22px 24px 0;
  color: #85858c;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.6;
}

.skill-detail-value {
  min-width: 0;
  padding: 22px 0 24px 24px;
  border-left: 1px solid rgb(255 255 255 / 6%);
  color: #d7d7da;
  font-size: 14px;
  line-height: 1.75;
}

.skill-detail-value > strong {
  display: block;
  padding: 11px 13px;
  border: 1px solid rgb(255 255 255 / 7%);
  background: rgb(255 255 255 / 3%);
  color: #f2f2f3;
  font-size: 15px;
  font-weight: 650;
}

.skill-detail-value p {
  margin: 0;
  white-space: pre-wrap;
}

.skill-detail-empty {
  color: #66666d;
}

.skill-detail-prose {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}

.skill-detail-resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.skill-detail-resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: #c9c9cd;
  font-size: 12px;
  text-decoration: none;
}

.skill-detail-resource:hover {
  border-color: rgb(255 76 79 / 45%);
  color: #fff;
}

.skill-detail-resource.is-image {
  display: grid;
  justify-content: stretch;
  padding: 0;
  overflow: hidden;
}

.skill-detail-resource.is-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #080808;
}

.skill-detail-resource.is-image span {
  padding: 9px 11px 11px;
}

.skill-detail-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.skill-detail-steps li::marker {
  color: var(--brand);
  font-family: var(--font-mono);
  font-weight: 750;
}

.skill-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: #ef6f72;
  text-decoration: none;
}

.skill-detail-link span {
  overflow-wrap: anywhere;
}

.skill-detail-link:hover {
  color: #fff;
}

.skill-detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-detail-pills span {
  padding: 5px 8px;
  border: 1px solid rgb(255 76 79 / 25%);
  background: rgb(255 76 79 / 7%);
  color: #d9b0b1;
  font-size: 11px;
  font-weight: 650;
}

.skill-detail-uploader {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-detail-uploader strong {
  color: #e7e7e9;
  font-size: 14px;
}

.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;
  pointer-events: none;
}

.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;
  }

  .skill-detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 0;
    padding: 18px 20px 20px;
  }

  .skill-detail-label,
  .skill-detail-value {
    padding: 0;
    border-left: 0;
  }

  .skill-detail-resources {
    grid-template-columns: 1fr;
  }

  .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);
  }
}

.status-dot.error {
  background: #f87171;
  box-shadow: 0 0 0 4px rgb(248 113 113 / 10%);
}

.empty-retry {
  margin-top: 16px;
}

.portal-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 48px));
  padding: 0;
  overflow: hidden;
  color: var(--foreground);
  background: color-mix(in srgb, var(--card) 94%, #000);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgb(0 0 0 / 48%);
}

.portal-dialog::backdrop {
  background: rgb(0 0 0 / 68%);
  backdrop-filter: blur(6px);
}

.portal-dialog-shell {
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
}

.portal-dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 24px 20px;
  background: color-mix(in srgb, var(--card) 96%, #000);
  border-bottom: 1px solid var(--border);
}

.portal-dialog-header h2 {
  margin: 5px 0 0;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: 0;
}

.portal-dialog-close {
  flex: 0 0 auto;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: #151515;
  color: var(--foreground);
  cursor: pointer;
  appearance: none;
}

.portal-dialog-close svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.8;
}

.portal-dialog-close:hover,
.portal-dialog-close:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  outline: 0;
}

.portal-dialog-body {
  padding: 24px;
}

.portal-dialog-intro {
  margin: 0 0 22px;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.75;
}

.portal-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.portal-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
}

.portal-steps li + li {
  border-top: 1px solid var(--border);
}

.portal-steps li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #c4b5fd;
  background: rgb(139 92 246 / 14%);
  border: 1px solid rgb(139 92 246 / 28%);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.portal-steps strong,
.portal-guide-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--foreground);
  font-size: 14px;
}

.portal-steps p,
.portal-guide-grid p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.7;
}

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

.portal-guide-grid section {
  min-width: 0;
  padding: 18px;
}

.portal-guide-grid section:nth-child(even) {
  border-left: 1px solid var(--border);
}

.portal-guide-grid section:nth-child(n + 3) {
  border-top: 1px solid var(--border);
}

.portal-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 640px) {
  .portal-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .portal-dialog-shell {
    max-height: calc(100vh - 20px);
  }

  .portal-dialog-header,
  .portal-dialog-body {
    padding: 18px;
  }

  .portal-guide-grid {
    grid-template-columns: 1fr;
  }

  .portal-guide-grid section:nth-child(even) {
    border-left: 0;
  }

  .portal-guide-grid section + section {
    border-top: 1px solid var(--border);
  }

  .portal-dialog-actions .button {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@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;
  }

  .skill-detail-label {
    font-size: 14px;
  }

  .skill-detail-value,
  .skill-detail-uploader strong {
    font-size: 16px;
  }

  .skill-detail-pills span,
  .skill-detail-resource {
    font-size: 13px;
  }
}

/* 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);
}

.view-count {
  display: inline-grid;
  min-width: 18px;
  min-height: 18px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  color: currentColor;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
}

.view-tab.active .view-count {
  background: rgb(9 9 11 / 10%);
}

.upload-button {
  grid-column: 3;
  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: 1;
  transform: translateY(6px);
  transition: transform 140ms 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-taxonomy {
  display: inline-flex;
  align-items: center;
}

.reader-back {
  justify-self: start;
  gap: 9px;
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d4d4d8;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

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

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

.reader-taxonomy {
  justify-self: center;
  gap: 6px;
  white-space: nowrap;
  pointer-events: none;
}

.reader-taxonomy span,
.reader-taxonomy strong {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #27272a;
  border-radius: 999px;
  background: #18181b;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.reader-taxonomy strong {
  border-color: #3f3f46;
  background: #27272a;
  color: #f4f4f5;
  font-weight: 650;
}

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

.reader-action {
  min-height: 38px;
  font-size: 13px;
  font-weight: 600;
}

.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) 236px;
  align-items: start;
  gap: 52px;
  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: 1px;
  max-height: calc(100vh - var(--nav-height, 0px) - 120px);
  padding: 1px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--border);
  scrollbar-color: var(--border-strong) #101010;
  scrollbar-width: thin;
}

.workflow-article-aside::before {
  position: absolute;
  z-index: 1;
  top: -1px;
  left: -1px;
  width: 64px;
  height: 2px;
  background: var(--brand);
  content: "";
}

.workflow-rail-panel {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: #101010;
}

.workflow-toc,
.workflow-source-note {
  display: grid;
  gap: 0;
  padding: 0;
  border: 0;
}

.workflow-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 43px;
  padding: 0 15px;
  border-bottom: 1px solid var(--border);
}

.workflow-rail-header .section-kicker {
  line-height: 1;
}

.workflow-rail-index {
  color: #66666d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.workflow-rail-title {
  display: grid;
  gap: 4px;
  padding: 15px;
  border-bottom: 1px solid var(--border);
}

.workflow-rail-title strong,
.workflow-source-content strong {
  color: #eeeeee;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.workflow-rail-title > span {
  color: #59595f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.workflow-toc nav {
  display: grid;
  gap: 0;
  padding: 5px 0;
}

.workflow-toc button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 35px;
  padding: 9px 15px;
  border: 0;
  background: transparent;
  color: #85858d;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  transition: background 140ms ease, color 140ms ease;
}

.workflow-toc button:hover,
.workflow-toc button:focus-visible {
  background: rgb(255 77 77 / 8%);
  color: #f2f2f2;
}

.workflow-toc-number {
  color: #55555b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.workflow-toc button:hover .workflow-toc-number,
.workflow-toc button:focus-visible .workflow-toc-number {
  color: var(--brand);
}

.workflow-rail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 39px;
  padding: 0 15px;
  border-top: 1px solid var(--border);
  color: #66666d;
  font-size: 9px;
  font-weight: 650;
}

.workflow-rail-footer span:last-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.workflow-source-content {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 15px;
}

.workflow-source-note {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.workflow-source-note p {
  margin: 0;
  color: #85858d;
  font-size: 11px;
  line-height: 1.7;
}

.workflow-source-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  padding: 0 15px;
  border-top: 1px solid var(--border);
  color: #d4d4d8;
  font-size: 11px;
  font-weight: 680;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.workflow-source-link:hover,
.workflow-source-link:focus-visible {
  background: rgb(255 77 77 / 8%);
  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) 250px;
  gap: 48px;
}

.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-taxonomy {
    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;
    order: -1;
    max-height: none;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    overflow: visible;
  }
}

@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: 1px;
  }

  .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;
  }
}

/* 2026-08 quality pass: stable wide layout, clear snapshot state, optimized media geometry. */
.status-dot.stale {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgb(245 158 11 / 12%);
}

.workspace-content {
  width: min(1340px, calc(100% - 64px));
}

.asset-cover-media img {
  aspect-ratio: 3 / 2;
}

.dashboard-source dl {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#dashboard-source-time {
  overflow: visible;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
}

@media (min-width: 1760px) {
  .asset-grid,
  .skeleton-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

@media (max-width: 1020px) {
  .workspace-content {
    width: min(900px, calc(100% - 32px));
  }
}

@media (max-width: 720px) {
  .workspace-content {
    width: min(100% - 20px, 560px);
  }

  .asset-grid,
  .skeleton-grid,
  .dashboard-source dl {
    grid-template-columns: 1fr;
  }
}

/* cloud-drafts.css */
.cloud-draft-fields { display: grid; gap: 20px; }
.cloud-draft-fields label { display: grid; gap: 8px; font-size: 14px; }
.cloud-draft-fields input, .cloud-draft-fields textarea {
  width: 100%; min-width: 0; box-sizing: border-box; padding: 12px;
  color: #ededed; background: #101011; border: 1px solid #333; font: inherit; line-height: 1.7;
}
.cloud-draft-fields textarea { resize: vertical; }
.cloud-draft-files p, .cloud-draft header p { color: #a5a5ab; font-size: 14px; line-height: 1.7; }
.cloud-draft-files ul { padding-left: 20px; line-height: 1.8; overflow-wrap: anywhere; }
.cloud-draft-files a { color: #eee; text-underline-offset: 4px; }
.cloud-file-picker {
  display: grid; gap: 7px; margin: 20px 0 0; padding: 22px;
  border: 1px dashed #49494d; background: #111112; font-size: 14px; cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.cloud-file-picker:hover, .cloud-file-picker:focus-within { border-color: #e74c50; background: #171112; }
.cloud-file-picker strong { color: #f3f3f4; font-size: 15px; }
.cloud-file-picker small { color: #8f8f95; line-height: 1.6; }
.cloud-file-picker input { max-width: 100%; margin-top: 8px; }
.cloud-file-picker input::file-selector-button { margin-right: 12px; padding: 10px 14px; border: 1px solid #444; background: #19191b; color: #eee; font: inherit; cursor: pointer; }
.cloud-draft-status { padding: 16px; margin: 0; min-height: 48px; background: #191314; border-left: 2px solid #e74c50; font-size: 14px; line-height: 1.7; }
.cloud-history-heading { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.cloud-history-heading h3 { margin: 0; }
.cloud-history-heading p, .cloud-history-preview p { color: #a5a5ab; font-size: 14px; line-height: 1.7; }
.cloud-history-list { display: grid; gap: 8px; margin-top: 18px; }
.cloud-history-item { padding: 11px 12px; border: 1px solid #333; background: #111; color: #ddd; font: inherit; text-align: left; cursor: pointer; }
.cloud-history-item:hover, .cloud-history-item.selected { border-color: #e74c50; background: #211617; }
.cloud-history-preview { display: grid; gap: 12px; margin-top: 14px; padding: 14px; border-left: 2px solid #e74c50; background: #171112; }
.cloud-draft .button:disabled { opacity: .5; cursor: not-allowed; }
.cloud-draft[aria-busy="true"] .button:disabled { cursor: progress; }
.cloud-draft :focus-visible { outline: 2px solid #e74c50; outline-offset: 3px; }
.cloud-save-option { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; line-height: 1.7; }
.intake-quick-files { padding: 18px; border: 1px dashed #3b3b3f; background: #111112; }
.intake-quick-files input { width: 100%; }
.intake-quick-files > small { color: #89898f; line-height: 1.55; overflow-wrap: anywhere; }
.cloud-draft-taxonomy {
  color: #ff6969 !important;
  font-family: var(--font-mono);
  font-size: 11px !important;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* hux-mg-theme.css */
/*
 * Hux Studio / MasterGo reference theme
 * Visual contract: flat ink, square geometry, thin rules, restrained red state.
 */

:root {
  color-scheme: dark;
  --background: #090909;
  --foreground: #f2f2f2;
  --card: #111111;
  --card-foreground: #f2f2f2;
  --popover: #111111;
  --popover-foreground: #f2f2f2;
  --primary: #f2f2f2;
  --primary-foreground: #090909;
  --secondary: #181818;
  --secondary-foreground: #dedede;
  --muted: #141414;
  --muted-foreground: #989898;
  --accent: #ff4d4d;
  --accent-foreground: #090909;
  --brand: #ff4d4d;
  --brand-strong: #ff6868;
  --brand-muted: rgb(255 77 77 / 10%);
  --success: #a9c5b5;
  --warning: #d6a34b;
  --border: #292929;
  --border-strong: #3b3b3b;
  --input: #343434;
  --ring: #ff4d4d;
  --radius: 0px;
  --sidebar-width: 0px;
  --content-max: 1540px;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --nav-height: 96px;
  --subnav-height: 74px;
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html {
  background: var(--background);
  scrollbar-color: #3a3a3a #0d0d0d;
}

body {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgb(255 255 255 / 2.2%) 25%, transparent calc(25% + 1px)),
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgb(255 255 255 / 2.2%) 50%, transparent calc(50% + 1px)),
    linear-gradient(90deg, transparent 0, transparent calc(75% - 1px), rgb(255 255 255 / 2.2%) 75%, transparent calc(75% + 1px)),
    var(--background);
  color: var(--foreground);
  font-feature-settings: "tnum" 1, "ss01" 1;
}

::selection {
  background: var(--brand);
  color: #090909;
}

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

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

/* Horizontal archive navigation */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 260px;
  grid-template-rows: var(--nav-height);
  width: 100%;
  height: var(--nav-height);
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: #111111;
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  height: var(--nav-height);
  padding: 0 30px;
  border: 0;
  border-right: 1px solid var(--border);
  color: var(--foreground);
}

.brand-mark,
.footer-mark {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  font-size: 0;
}

.brand-mark::before,
.brand-mark::after,
.footer-mark::before,
.footer-mark::after {
  position: absolute;
  inset: 6px auto 6px 3px;
  width: 25px;
  background: #050505;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: "";
}

.brand-mark::after,
.footer-mark::after {
  right: 2px;
  left: auto;
  background: linear-gradient(180deg, #777777, #1b1b1b);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.brand-copy {
  gap: 3px;
}

.brand-name {
  font-size: 20px;
  font-weight: 620;
  letter-spacing: 0.01em;
}

.product-name {
  color: #777777;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand .beta {
  display: none;
}

.sidebar-body {
  min-width: 0;
  height: var(--nav-height);
  padding: 0;
}

.main-nav {
  display: flex;
  height: 100%;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-label {
  display: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-width: 148px;
  min-height: var(--nav-height);
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 26px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: #9a9a9a;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 24px;
  bottom: -1px;
  left: 24px;
  height: 2px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.25);
  transform-origin: center;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link svg {
  display: none;
}

.nav-link:hover {
  background: #151515;
  color: #f2f2f2;
}

.nav-link.active {
  background: #151515;
  color: #f2f2f2;
  box-shadow: none;
}

.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-count {
  min-width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nav-count::before {
  content: "/";
  margin-right: 4px;
  color: #565656;
}

.sidebar-footer {
  display: flex;
  height: var(--nav-height);
  align-items: stretch;
  align-self: auto;
}

.source-status {
  display: none;
}

.user-menu {
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  gap: 10px;
  width: 100%;
  min-height: var(--nav-height);
  padding: 0 24px;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  color: #8e8e8e;
}

.user-menu:hover {
  border-color: var(--border);
  background: #151515;
}

.avatar,
.mini-avatar,
.detail-btn,
.favorite-btn,
.status-dot {
  border-radius: 0;
}

.avatar {
  width: 38px;
  height: 38px;
  border: 1px solid #3a3a3a;
  background: #191919;
  color: var(--brand);
}

.user-copy strong {
  font-size: 14px;
  font-weight: 650;
}

.user-copy small {
  color: #676767;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Page masthead */
.workspace {
  width: 100%;
  min-height: 100vh;
  margin: var(--nav-height) 0 0;
}

.workspace-header {
  position: sticky;
  top: var(--nav-height);
  z-index: 35;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  height: var(--subnav-height);
  padding: 0 clamp(24px, 4vw, 72px);
  border-bottom: 1px solid var(--border);
  background: rgb(9 9 9 / 96%);
  backdrop-filter: none;
}

.workspace-title h1 {
  color: #b7b7b7;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.view-switch {
  height: 100%;
  gap: 0;
}

.view-tab {
  position: relative;
  min-height: 100%;
  gap: 10px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #777777;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: 0.05em;
}

.view-tab::after {
  position: absolute;
  right: 22px;
  bottom: -1px;
  left: 22px;
  height: 2px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.view-tab:hover {
  color: #dedede;
}

.view-tab.active {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #f2f2f2;
}

.view-tab.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.view-tab svg {
  width: 19px;
  height: 19px;
  color: currentColor;
}

.view-count,
.view-tab.active .view-count {
  min-width: auto;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}

.button,
.upload-button,
.icon-button,
.reader-back,
.reader-action {
  border-radius: 0;
  box-shadow: none;
}

.badge,
.quickstart li::before {
  border-radius: 0;
}

.quickstart li::before {
  background: var(--brand-muted);
  color: var(--brand);
}

.button {
  min-height: 38px;
  border: 1px solid #3b3b3b;
  background: #101010;
  color: #d8d8d8;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.button:hover {
  border-color: var(--brand);
  background: #151515;
  color: #ffffff;
  transform: none;
}

.button.primary,
.upload-button {
  border-color: #f2f2f2;
  background: #f2f2f2;
  color: #090909;
}

.button.primary:hover,
.upload-button:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #090909;
}

.upload-button {
  grid-column: 3;
  justify-self: end;
  min-height: 42px;
  padding-inline: 20px;
  font-size: 13px;
}

.workspace-content {
  width: min(var(--content-max), calc(100% - clamp(48px, 9vw, 156px)));
  margin: 0 auto;
  padding: clamp(54px, 6vw, 92px) 0 84px;
}

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

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

.section-kicker {
  color: var(--brand);
  font-family: "Arial Narrow", Inter, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

/* Archive overview */
.dashboard-section {
  gap: 34px;
}

.dashboard-heading {
  position: relative;
  align-items: end;
  min-height: 150px;
  padding: 0 0 34px 26px;
  border-bottom: 1px solid var(--border);
}

.dashboard-heading::before {
  position: absolute;
  top: 3px;
  bottom: 34px;
  left: 0;
  width: 2px;
  background: var(--brand);
  content: "";
}

.dashboard-heading > div {
  gap: 12px;
}

.dashboard-heading h2 {
  max-width: 760px;
  color: #eeeeee;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 480;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.dashboard-heading p {
  max-width: 690px;
  color: #797979;
  font-size: 13px;
  line-height: 1.8;
}

.dashboard-asset-link {
  margin-bottom: 2px;
  border-color: #3d3d3d;
}

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

.dashboard-metrics article,
.dashboard-metrics article:first-child,
.dashboard-metrics article:last-child {
  gap: 7px;
  min-height: 154px;
  padding: 24px 24px 20px;
  border: 0;
  border-right: 1px solid var(--border);
  background: #101010;
}

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

.dashboard-metrics article::before {
  position: absolute;
  top: -1px;
  left: 24px;
  width: 26px;
  height: 2px;
  background: #4a4a4a;
  content: "";
  transition: width 220ms ease, background-color 180ms ease;
}

.dashboard-metrics article:hover::before {
  width: 64px;
  background: var(--brand);
}

.dashboard-metrics .metric-icon {
  top: 22px;
  right: 22px;
  width: 30px;
  height: 30px;
  border: 1px solid #303030;
  border-radius: 0;
  background: transparent;
  color: #686868;
}

.dashboard-metrics span {
  color: #858585;
  font-size: 11px;
  font-weight: 560;
}

.dashboard-metrics strong {
  margin-top: auto;
  color: #ededed;
  font-family: "Arial Narrow", Inter, sans-serif;
  font-size: 44px;
  font-weight: 430;
  letter-spacing: -0.04em;
}

.dashboard-metrics small {
  color: #5f5f5f;
  font-size: 10px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
  gap: 0;
  border: 1px solid var(--border);
  background: var(--border);
}

.dashboard-panel {
  border: 0;
  border-radius: 0;
  background: #101010;
}

.dashboard-panel + .dashboard-panel {
  border-left: 1px solid var(--border);
}

.panel-heading {
  min-height: 82px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  background: #121212;
}

.panel-heading h3 {
  font-size: 17px;
  font-weight: 560;
}

.panel-note {
  color: #5e5e5e;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.recent-item {
  position: relative;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background-color 160ms ease, color 160ms ease;
}

.recent-item::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleY(0.3);
  transition: opacity 160ms ease, transform 200ms ease;
}

.recent-item:hover {
  background: #151515;
}

.recent-item:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.recent-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #303030;
  border-radius: 0;
  background: #151515;
  color: #777777;
}

.recent-copy strong {
  font-size: 12px;
  font-weight: 590;
}

.recent-copy small,
.recent-item time {
  color: #616161;
  font-size: 9px;
}

.category-overview {
  padding: 8px 20px 12px;
}

.category-row {
  grid-template-columns: minmax(100px, auto) minmax(80px, 1fr) 26px;
  min-height: 56px;
  border-bottom: 1px solid var(--border);
}

.category-row-label strong {
  font-size: 11px;
  font-weight: 590;
}

.category-track {
  height: 2px;
  border-radius: 0;
  background: #252525;
}

.category-track i {
  border-radius: 0;
  background: var(--brand);
  opacity: 0.85;
  transform-origin: left;
  transition: filter 160ms ease, transform 200ms ease;
}

.category-row:hover .category-track i {
  filter: brightness(1.2);
  transform: scaleY(2);
}

.category-total {
  color: #747474;
  font-size: 10px;
}

.dashboard-source {
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 2fr);
  gap: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #0f0f0f;
}

.source-title {
  align-self: stretch;
  padding: 24px;
  border-right: 1px solid var(--border);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--brand);
  box-shadow: none;
}

.status-dot.stale {
  background: var(--warning);
  box-shadow: none;
}

.source-title strong {
  font-size: 11px;
  font-weight: 580;
}

.dashboard-source dl {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.dashboard-source dl div {
  justify-content: center;
  padding: 20px 22px;
  border-right: 1px solid var(--border);
}

.dashboard-source dl div:last-child {
  border-right: 0;
}

.dashboard-source dt {
  color: #595959;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-source dd {
  color: #a7a7a7;
  font-size: 10px;
}

/* Asset discovery controls */
.asset-toolbar {
  position: relative;
  top: auto;
  bottom: auto;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 68px;
  gap: 0;
  margin: 0;
  border: 1px solid var(--border);
  background: #101010;
}

.asset-toolbar .search-wrap {
  width: 100%;
  height: 68px;
  padding: 0 22px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: #101010;
  box-shadow: none;
}

.asset-toolbar .search-wrap:hover,
.asset-toolbar .search-wrap:focus-within {
  border-color: var(--border);
  background: #141414;
  box-shadow: inset 2px 0 0 var(--brand);
}

.search-wrap svg {
  width: 20px;
  height: 20px;
  color: #686868;
}

.asset-toolbar .search-wrap input {
  color: #eeeeee;
  font-size: 16px;
  font-weight: 560;
}

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

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

.category-pills {
  height: 100%;
  gap: 0;
  padding: 0;
}

.pill {
  position: relative;
  min-height: 66px;
  padding: 0 20px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: #777777;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: 0.02em;
  box-shadow: none;
}

.pill::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.25);
  transition: opacity 160ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pill:hover {
  border-color: var(--border);
  background: #141414;
  color: #e2e2e2;
}

.pill.active {
  border: 0;
  border-right: 1px solid var(--border);
  background: #141414;
  color: #ffffff;
  box-shadow: none;
}

.pill.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.pill .icon {
  width: 18px;
  height: 18px;
  color: #636363;
}

.pill.active .icon {
  color: var(--brand);
}

.pill-count,
.pill.active .pill-count {
  min-width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #5f5f5f;
  font-size: 12px;
  font-weight: 700;
}

.pill.active .pill-count {
  color: var(--brand);
}

.filter-secondary-group {
  width: 100%;
  margin: -1px 0 0;
  padding: 11px 0;
  border: 1px solid var(--border);
  background: #0e0e0e;
}

.secondary-pills {
  min-height: 44px;
  height: auto;
  padding: 0;
  border: 0;
}

.secondary-pill {
  min-height: 44px;
  padding-inline: 22px;
  font-size: 14px;
}

.results-meta {
  min-height: 60px;
  margin: 0;
  padding: 0 18px 0 22px;
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: #0d0d0d;
}

.results-meta p {
  color: #666666;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.results-meta .button {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
  color: #737373;
  font-size: 13px;
}

.results-meta .button svg {
  width: 16px;
  height: 16px;
  color: currentColor;
}

/* Editorial asset grid */
.asset-grid,
.skeleton-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.asset-grid {
  padding: 0;
  border: 0;
  background: transparent;
}

.asset-card,
.skeleton-grid span {
  aspect-ratio: 3 / 2;
  border: 1px solid #2b2b2b;
  border-radius: 0;
  background: #101010;
  box-shadow: none;
}

.asset-card {
  animation: hux-card-in 520ms calc(min(var(--card-index, 0), 9) * 45ms) cubic-bezier(0.22, 1, 0.36, 1) backwards;
  transition: border-color 180ms ease, box-shadow 220ms ease;
}

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

.asset-card::after {
  position: absolute;
  z-index: 14;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left;
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.asset-card:hover,
.asset-card:focus-visible {
  border-color: rgb(255 255 255 / 58%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%);
  transform: none;
  z-index: 3;
}

.asset-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.asset-card:hover::after,
.asset-card:focus-visible::after {
  opacity: 0;
  transform: scaleX(0.2);
}

.skill-card-visual {
  background:
    linear-gradient(135deg, #171717 0%, #0c0c0c 100%);
}

.skill-card-noise {
  z-index: 4;
  background-image: linear-gradient(90deg, transparent 49.8%, rgb(255 255 255 / 5%) 50%, transparent 50.2%);
  background-size: 64px 100%;
  mask-image: linear-gradient(180deg, black, transparent 90%);
  opacity: 0.1;
  transition: opacity 240ms ease;
}

.asset-card:hover .skill-card-noise {
  opacity: 0;
}

.cover-purple,
.cover-blue,
.cover-cyan,
.cover-green,
.cover-pink,
.cover-orange,
.cover-neutral {
  --skill-a: #242424;
  --skill-b: #101010;
  --skill-glow: transparent;
  --skill-ring: var(--border);
  --skill-ring-hover: var(--brand);
}

.asset-cover-media {
  inset: -1px;
  background: #111111;
}

.asset-cover-media::before {
  display: none;
}

.asset-cover-media::after {
  z-index: 2;
  background: none;
}

.asset-cover-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 1;
  filter: saturate(0.94) contrast(1.02) brightness(0.94);
  transform: scale(1.005);
  transition: filter 320ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.asset-cover-media.top img {
  object-position: 50% 12%;
}

.asset-card:hover .asset-cover-media img {
  opacity: 1;
  filter: saturate(1) contrast(1) brightness(1);
  transform: scale(1.012);
}

.visual {
  filter: grayscale(0.38);
  opacity: 0.8;
}

.visual-chart .chart-panel,
.visual-doc .doc-card,
.visual-prompt .bubble,
.wire-cube,
.terminal,
.wand {
  border-radius: 0;
  box-shadow: none;
}

.card-reading-veil {
  position: absolute;
  inset: -1px auto -1px -1px;
  z-index: 5;
  width: 70%;
  background: linear-gradient(
    90deg,
    rgb(5 5 5 / 98%) 0%,
    rgb(5 5 5 / 96%) 34%,
    rgb(5 5 5 / 86%) 53%,
    rgb(5 5 5 / 54%) 70%,
    rgb(5 5 5 / 16%) 87%,
    transparent 100%
  );
  content: "";
  pointer-events: none;
  -webkit-backdrop-filter: blur(18px) saturate(0.78);
  backdrop-filter: blur(18px) saturate(0.78);
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 58%, rgb(0 0 0 / 78%) 74%, transparent 100%);
  mask-image: linear-gradient(90deg, black 0%, black 58%, rgb(0 0 0 / 78%) 74%, transparent 100%);
  opacity: 1;
  transform: translateX(0) scaleX(1);
  transform-origin: left center;
  transition:
    opacity 220ms ease-out,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.asset-card:hover .card-reading-veil {
  opacity: 0;
  transform: translateX(-22%) scaleX(0.78);
  transition-duration: 190ms, 280ms;
  transition-timing-function: ease-in, cubic-bezier(0.32, 0, 0.67, 0);
}

.skill-info-group {
  position: absolute;
  top: 22px;
  right: 30%;
  left: 22px;
  z-index: 8;
  display: grid;
  gap: 11px;
  min-width: 0;
  pointer-events: none;
}

.skill-topline {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  opacity: 1;
  pointer-events: none;
  transform: none;
  transition: opacity 190ms ease-out, transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-owner {
  min-width: 0;
  transition: opacity 200ms ease-out 24ms, transform 260ms cubic-bezier(0.22, 1, 0.36, 1) 24ms;
}

.asset-card:hover .skill-owner {
  opacity: 0;
  transform: translateX(-16px);
  transition-delay: 22ms;
  transition-duration: 170ms, 220ms;
  transition-timing-function: ease-in, cubic-bezier(0.32, 0, 0.67, 0);
}

.asset-card:hover .skill-topline {
  opacity: 0;
  transform: translateX(-12px);
  transition-delay: 0ms;
  transition-duration: 160ms, 210ms;
  transition-timing-function: ease-in, cubic-bezier(0.32, 0, 0.67, 0);
}

.skill-card .badge {
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b9b9b9;
  font-size: 11.5px;
  font-weight: 760;
  letter-spacing: 0.06em;
  opacity: 1;
  backdrop-filter: none;
}

.level-l1,
.level-l2,
.level-l3 {
  color: #f0f0f0 !important;
}

.skill-card .badge.type {
  padding-left: 10px;
  border-left: 2px solid var(--brand);
  background: transparent;
  color: var(--brand);
}

.favorite-btn {
  position: static;
  inset: auto;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-left: 1px solid rgb(255 255 255 / 18%);
  border-radius: 0;
  background: transparent;
  color: #c6c6c6;
  opacity: 1;
  backdrop-filter: none;
}

.favorite-btn:hover,
.favorite-btn:focus-visible {
  border-color: rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
  transform: none;
}

.favorite-btn.active {
  border-color: rgb(255 255 255 / 18%);
  background: var(--brand);
  color: #090909;
}

.favorite-btn:focus-visible,
.detail-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -3px;
}

.skill-footer {
  position: absolute;
  inset: auto auto 20px 22px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 0;
  width: auto;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 22%);
  background: rgb(8 8 8 / 80%);
  opacity: 1;
  transform: translateX(0);
  -webkit-backdrop-filter: blur(14px) saturate(0.8);
  backdrop-filter: blur(14px) saturate(0.8);
  transition: opacity 190ms ease-out 36ms, transform 250ms cubic-bezier(0.22, 1, 0.36, 1) 36ms;
}

.asset-card:hover .skill-footer {
  min-height: 38px;
  padding: 0;
  opacity: 0;
  transform: translateX(-14px);
  transition-delay: 38ms;
  transition-duration: 170ms, 220ms;
  transition-timing-function: ease-in, cubic-bezier(0.32, 0, 0.67, 0);
}

.skill-footer:hover,
.skill-footer:focus-within,
.asset-card:hover .skill-footer:hover,
.asset-card:hover .skill-footer:focus-within {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0ms;
}

.skill-owner-copy strong {
  color: #f0f0f0;
  font-size: 22px;
  font-weight: 730;
  letter-spacing: -0.022em;
  line-height: 1.2;
  text-shadow: 0 1px 5px rgb(0 0 0 / 58%);
}

.skill-owner-copy small,
.asset-card:hover .skill-owner-copy small,
.asset-card:focus-within .skill-owner-copy small {
  max-height: 18px;
  margin-top: 6px;
  color: #b0b0b0;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.4;
  opacity: 1;
  text-shadow: 0 1px 3px rgb(0 0 0 / 92%);
  transform: none;
}

.detail-btn {
  position: static;
  inset: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  max-width: 176px;
  height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c4c4c4;
  backdrop-filter: none;
}

.detail-owner-name {
  overflow: hidden;
  color: #e9e9e9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-arrow {
  flex: 0 0 auto;
  color: #8d8d8d;
  font-size: 14px;
  transition: transform 180ms ease, color 180ms ease;
}

.detail-btn:hover,
.detail-btn:focus-visible {
  border-color: transparent;
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
  transform: none;
}

.detail-btn:hover .detail-owner-name,
.detail-btn:focus-visible .detail-owner-name,
.detail-btn:hover .detail-arrow,
.detail-btn:focus-visible .detail-arrow {
  color: #ffffff;
}

.detail-btn:hover .detail-arrow,
.detail-btn:focus-visible .detail-arrow {
  transform: translate(2px, -2px);
}

/* Keyboard focus keeps the card readable and exposes both actions. */
.asset-card:focus-within:not(:hover) .skill-card-noise {
  opacity: 0.1;
}

.asset-card:focus-within:not(:hover) .asset-cover-media img {
  opacity: 1;
  filter: saturate(0.94) contrast(1.02) brightness(0.94);
  transform: scale(1.005);
}

.asset-card:focus-within:not(:hover) .card-reading-veil {
  opacity: 1;
  transform: translateX(0) scaleX(1);
}

.asset-card:focus-within:not(:hover) .skill-owner,
.asset-card:focus-within:not(:hover) .skill-topline {
  opacity: 1;
  pointer-events: none;
  transform: none;
}

.asset-card:focus-within:not(:hover) .skill-footer {
  min-height: 38px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 22%);
  background: rgb(8 8 8 / 80%);
  opacity: 1;
  transform: none;
}

.asset-card:focus-within:not(:hover) .favorite-btn,
.asset-card:focus-within:not(:hover) .detail-btn {
  background: transparent;
  color: #c4c4c4;
  opacity: 1;
  transform: none;
}

.asset-card:focus-within:not(:hover) .favorite-btn:focus-visible,
.asset-card:focus-within:not(:hover) .detail-btn:focus-visible {
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
}

.skeleton-grid span {
  background: linear-gradient(90deg, #111111 20%, #1c1c1c 48%, #111111 76%);
  background-size: 240% 100%;
}

.empty-state {
  border: 1px solid var(--border);
  border-radius: 0;
  background: #101010;
}

.empty-state .empty-retry {
  min-width: 128px;
  margin-top: 24px;
  border-color: var(--brand);
  color: #f4f4f4;
}

.empty-state .empty-retry:hover,
.empty-state .empty-retry:focus-visible {
  background: var(--brand);
  color: #090909;
}

/* Drawers, dialogs and longform reader */
.sheet-backdrop {
  background: rgb(0 0 0 / 72%);
  backdrop-filter: none;
}

.asset-sheet {
  width: min(720px, 100vw);
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: #0d0d0d;
  box-shadow: none;
}

.sheet-content,
.sheet-stack,
.sheet-hero,
.sheet-block,
.sheet-grid .sheet-block,
.quickstart-block pre,
.tag-list span,
.portal-dialog,
.portal-dialog-shell,
.portal-steps li,
.portal-guide-grid section,
.workflow-article-hero,
.workflow-step-flow,
.workflow-step-flow li,
.workflow-platform-grid article,
.workflow-toc,
.workflow-source-note,
.workflow-callout,
.workflow-resource,
.markdown-media img,
.markdown-video-figure img,
.markdown-video-figure a,
.markdown-video-play,
.reader-taxonomy span,
.reader-taxonomy strong,
.workflow-article-meta .badge,
.workflow-step-number,
.workflow-article pre,
.workflow-article code {
  border-radius: 0;
  box-shadow: none;
}

.sheet-hero {
  border: 1px solid var(--border);
  background: #111111;
}

.sheet-hero::after,
.workflow-article-hero::after {
  background: linear-gradient(180deg, transparent 0%, rgb(9 9 9 / 84%) 100%);
}

.sheet-taxonomy,
.workflow-article-type {
  color: var(--brand);
}

.sheet-block,
.sheet-grid .sheet-block {
  border-color: var(--border);
  background: #101010;
}

.sheet-actions {
  border-color: var(--border);
  background: #0d0d0d;
  backdrop-filter: none;
}

.meta-path-link {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  color: #d8d8d8;
  text-decoration: none;
}

.meta-path-link code {
  overflow-wrap: anywhere;
}

.meta-path-link svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.meta-path-link:hover,
.meta-path-link:focus-visible {
  color: #ffffff;
  outline: 1px solid var(--brand);
  outline-offset: 4px;
}

.portal-dialog {
  border: 1px solid var(--border-strong);
  background: #0d0d0d;
}

.portal-dialog::backdrop {
  background: rgb(0 0 0 / 78%);
  backdrop-filter: none;
}

.portal-dialog-header {
  border-color: var(--border);
  background: #111111;
}

.portal-steps li,
.portal-guide-grid section {
  border-color: var(--border);
  background: #111111;
}

.portal-section-label {
  margin: 18px 0 10px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portal-platform-map strong {
  color: #f2f2f2;
}

.workflow-reader {
  inset: var(--nav-height) 0 0;
  padding-left: 0;
  background: #090909;
}

.workflow-reader-bar {
  border-color: var(--border);
  background: #0d0d0d;
  backdrop-filter: none;
}

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

.workflow-article-hero,
.workflow-step-flow,
.workflow-platform-grid article,
.workflow-toc,
.workflow-source-note,
.workflow-callout,
.workflow-resource {
  border-color: var(--border);
  background: #101010;
}

.workflow-step-number,
.workflow-source-link:hover,
.workflow-resource a:hover {
  color: var(--brand);
}

.toast {
  border: 1px solid var(--brand);
  border-radius: 0;
  background: #101010;
  box-shadow: none;
  color: #eeeeee;
}

/* Footer follows the reference document's wide, quiet ending panel. */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(200px, 0.55fr) minmax(200px, 0.55fr);
  gap: 0;
  min-height: 280px;
  margin-top: 80px;
  border: 1px solid var(--border);
  background: #0d0d0d;
}

.footer-brand,
.footer-column {
  padding: 42px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-right: 1px solid var(--border);
}

.footer-mark {
  flex: 0 0 auto;
}

.footer-brand > div {
  display: grid;
  gap: 20px;
}

.footer-brand strong {
  color: #dcdcdc;
  font-size: 25px;
  font-weight: 450;
}

.footer-brand p {
  max-width: 430px;
  margin: 0;
  color: #666666;
  font-size: 12px;
  line-height: 1.8;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--border);
}

.footer-column:last-child {
  border-right: 0;
}

.footer-column > span {
  margin-bottom: 12px;
  color: #555555;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.footer-column a {
  width: fit-content;
  color: #adadad;
  font-size: 11px;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-column a:hover {
  color: var(--brand);
}

.footer-column small {
  color: #575757;
  font-size: 9px;
}

/* Small functional copy stays understated while meeting readable contrast. */
.product-name,
.dashboard-heading p,
.dashboard-metrics small,
.panel-note,
.recent-copy small,
.recent-item time,
.dashboard-source dt,
.search-wrap input::placeholder,
.pill,
.results-meta p,
.footer-brand p,
.footer-column > span,
.footer-column small {
  color: #858585;
}

.view-entering {
  animation: hux-panel-reveal 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dashboard-heading,
.dashboard-metrics,
.dashboard-grid,
.dashboard-source {
  animation: none;
}

.dashboard-metrics,
.dashboard-grid,
.dashboard-source { animation-delay: 0ms; }

@keyframes hux-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hux-card-in {
  from {
    opacity: 0;
    clip-path: inset(0 0 18% 0);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

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

@media (min-width: 1760px) {
  .asset-grid,
  .skeleton-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1240px) {
  :root {
    --nav-height: 78px;
  }

  .topbar {
    grid-template-columns: 236px minmax(0, 1fr) 190px;
  }

  .brand {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 0 20px;
  }

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

  .nav-link {
    min-width: 104px;
    padding: 0 14px;
    font-size: 10px;
  }

  .user-menu {
    padding: 0 18px;
  }

  .workspace-content {
    width: min(1080px, calc(100% - 48px));
  }

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

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

  .dashboard-source dl div:nth-child(2) {
    border-right: 0;
  }

  .dashboard-source dl div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 980px) {
  :root {
    --nav-height: 70px;
    --subnav-height: 60px;
  }

  .topbar {
    position: fixed;
    inset: 0 0 auto;
    grid-template-columns: 210px minmax(0, 1fr) 76px;
    grid-template-rows: var(--nav-height);
    width: 100%;
    height: var(--nav-height);
    padding: 0;
  }

  .brand {
    display: grid;
    height: var(--nav-height);
  }

  .brand-copy {
    display: grid;
  }

  .sidebar-body {
    height: var(--nav-height);
    padding: 0;
  }

  .main-nav {
    justify-content: flex-start;
  }

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

  .nav-link {
    min-height: var(--nav-height);
  }

  .sidebar-footer {
    display: flex;
    height: var(--nav-height);
  }

  .user-menu {
    grid-template-columns: 1fr;
    min-height: var(--nav-height);
    padding: 0;
    place-items: center;
  }

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

  .workspace {
    margin-top: var(--nav-height);
    margin-left: 0;
  }

  .workspace-header {
    top: var(--nav-height);
    height: var(--subnav-height);
    padding-inline: 24px;
  }

  .workspace-content {
    width: min(900px, calc(100% - 40px));
    padding-top: 54px;
  }

  .dashboard-heading h2 {
    font-size: clamp(42px, 7vw, 62px);
  }

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

  .dashboard-panel + .dashboard-panel {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

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

  .source-title {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

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

  .pill {
    padding: 0 12px;
  }

  .workflow-reader {
    inset: var(--nav-height) 0 0;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  :root {
    --nav-height: 64px;
    --subnav-height: 56px;
  }

  body {
    background: var(--background);
  }

  .topbar {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr) 46px;
  }

  .brand {
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 8px;
    padding: 0 12px;
  }

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

  .brand-mark::before,
  .brand-mark::after {
    inset-block: 4px;
    width: 17px;
  }

  .brand-mark::after {
    right: 0;
    left: auto;
  }

  .brand-name {
    font-size: 12px;
  }

  .product-name {
    display: none;
  }

  .sidebar-body {
    min-width: 0;
  }

  .main-nav {
    justify-content: stretch;
  }

  .nav-link {
    min-width: 50%;
    min-height: var(--nav-height);
    padding: 0 8px;
    font-size: 9px;
  }

  .nav-count {
    display: inline;
  }

  .sidebar-footer {
    display: flex;
    width: 46px;
  }

  .user-menu {
    width: 46px;
    min-height: var(--nav-height);
    padding: 0;
  }

  .user-menu .avatar {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

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

  .workspace-header {
    top: var(--nav-height);
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 12px;
  }

  .workspace-title {
    display: flex;
  }

  .workspace-title h1 {
    max-width: 150px;
    font-size: 8px;
  }

  .view-switch {
    position: static;
  }

  .workspace.page-assets .workspace-title,
  .workspace.page-home .view-switch {
    display: none;
  }

  .workspace.page-assets .view-switch {
    grid-column: 1;
    justify-self: start;
  }

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

  .view-tab svg {
    display: none;
  }

  .upload-button {
    grid-column: 2;
    width: auto;
    min-height: 32px;
    padding: 0 10px;
    color: #090909;
    font-size: 9px;
  }

  .upload-button svg {
    width: 13px;
    height: 13px;
    color: currentColor;
  }

  .workspace-content {
    width: calc(100% - 24px);
    padding: 34px 0 52px;
  }

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

  .dashboard-heading {
    min-height: 132px;
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    padding: 0 0 26px 18px;
  }

  .dashboard-heading::before {
    bottom: 26px;
  }

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

  .dashboard-heading p {
    font-size: 11px;
  }

  .dashboard-asset-link {
    margin: 0;
  }

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

  .dashboard-metrics article,
  .dashboard-metrics article:first-child,
  .dashboard-metrics article:last-child {
    min-height: 132px;
    padding: 18px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

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

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

  .dashboard-metrics .metric-icon {
    top: 16px;
    right: 16px;
    width: 26px;
    height: 26px;
  }

  .dashboard-metrics strong {
    font-size: 35px;
  }

  .dashboard-metrics small {
    white-space: normal;
  }

  .recent-item {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 12px 14px;
  }

  .recent-icon {
    width: 30px;
    height: 30px;
  }

  .recent-item time {
    display: none;
  }

  .category-row {
    grid-template-columns: minmax(86px, auto) minmax(54px, 1fr) 20px;
    gap: 8px;
  }

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

  .dashboard-source dl div,
  .dashboard-source dl div:nth-child(2),
  .dashboard-source dl div:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .dashboard-source dl div:last-child {
    border-bottom: 0;
  }

  .asset-toolbar {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .asset-toolbar .search-wrap {
    height: 52px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .category-pills {
    min-height: 52px;
  }

  .pill {
    min-height: 52px;
  }

  .results-meta {
    min-height: 42px;
  }

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

  .results-meta .button svg {
    color: #777777;
  }

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

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

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

  .asset-sheet {
    width: 100vw;
  }

  .workflow-reader {
    inset: var(--nav-height) 0 0;
  }

  .workflow-article {
    width: calc(100% - 24px);
  }

  .site-footer {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-top: 50px;
  }

  .footer-brand,
  .footer-column {
    padding: 28px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .footer-column:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 420px) {
  .topbar {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .brand {
    grid-template-columns: 26px minmax(0, 1fr);
  }

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

  .brand-name {
    font-size: 11px;
  }

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

  .nav-count {
    display: none;
  }

  .workspace-title h1 {
    max-width: 112px;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .asset-cover-media img,
  .asset-card:hover .asset-cover-media img,
  .asset-card:focus-within .asset-cover-media img {
    transform: none;
  }

  .asset-card:hover .skill-owner,
  .asset-card:hover .skill-topline,
  .asset-card:hover .skill-footer {
    opacity: 0;
    transition-delay: 0ms !important;
  }

  .skill-footer:hover,
  .skill-footer:focus-within,
  .asset-card:hover .skill-footer:hover,
  .asset-card:hover .skill-footer:focus-within {
    opacity: 1;
  }
}

/*
 * Asset card system v6
 * Image-first browsing with a localized Hux glass dock.
 */
.asset-grid,
.skeleton-grid {
  gap: 16px;
}

.asset-card,
.skeleton-grid span {
  aspect-ratio: auto;
  min-height: 400px;
}

.asset-card {
  --asset-focus-duration: 240ms;
  --asset-focus-ease: cubic-bezier(0.33, 1, 0.68, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 56.25%;
  overflow: hidden;
  border-color: #303030;
  background: #111111;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.asset-card::after {
  z-index: 20;
  height: 2px;
  background: var(--brand);
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--asset-focus-duration) var(--asset-focus-ease);
}

.asset-card:hover,
.asset-card:focus-visible,
.asset-card:focus-within {
  border-color: #626262;
  background: #141414;
  box-shadow: none;
  transform: none;
}

.asset-card:hover::after,
.asset-card:focus-visible::after,
.asset-card:focus-within::after {
  opacity: 1;
  transform: scaleX(1);
}

.skill-card-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  border: 0;
  background: linear-gradient(135deg, #1b1b1b 0%, #0d0d0d 100%);
}

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

.skill-card-noise {
  z-index: 4;
  background-image:
    linear-gradient(90deg, transparent 49.8%, rgb(255 255 255 / 5%) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgb(255 255 255 / 3%) 50%, transparent 50.2%);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, black, transparent 92%);
  opacity: 0.09;
  transition: opacity 220ms ease;
}

.asset-card:hover .skill-card-noise,
.asset-card:focus-within .skill-card-noise {
  opacity: 0.04;
}

.asset-cover-media {
  inset: 0;
}

.asset-cover-media::after {
  display: block;
  z-index: 2;
  background: linear-gradient(180deg, rgb(7 7 7 / 34%) 0%, rgb(7 7 7 / 56%) 100%);
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.asset-cover-media img {
  z-index: 1;
  object-fit: contain;
  object-position: center top;
  filter: saturate(0.9) contrast(1.02) brightness(0.9);
  transform: scale(1.002);
  transition: opacity 220ms ease-out, transform 260ms var(--asset-focus-ease);
}

.asset-cover-media .asset-cover-preview {
  opacity: 1;
}

.asset-cover-media .asset-cover-full {
  inset: 10px auto auto 10px;
  z-index: 3;
  width: calc(100% - 20px);
  height: calc(100% - 122px);
  opacity: 0;
  object-fit: contain;
  object-position: center center;
  filter: saturate(0.98) contrast(1.01) brightness(0.96);
  transform: translateY(7px) scale(0.985);
}

.asset-card:hover .asset-cover-media::after,
.asset-card:focus-visible .asset-cover-media::after,
.asset-card:focus-within .asset-cover-media::after {
  opacity: 1;
}

.asset-card:hover .asset-cover-media .asset-cover-preview,
.asset-card:focus-visible .asset-cover-media .asset-cover-preview,
.asset-card:focus-within .asset-cover-media .asset-cover-preview {
  opacity: 0.2;
  transform: scale(1.018);
}

.asset-card:hover .asset-cover-media .asset-cover-full,
.asset-card:focus-visible .asset-cover-media .asset-cover-full,
.asset-card:focus-within .asset-cover-media .asset-cover-full {
  opacity: 1;
  filter: saturate(0.98) contrast(1.01) brightness(0.96);
  transform: translateY(0) scale(1);
}

.asset-card:focus-within:not(:hover) .asset-cover-media .asset-cover-preview {
  opacity: 0.2;
  filter: saturate(0.9) contrast(1.02) brightness(0.9);
  transform: scale(1.018);
}

.asset-card:focus-within:not(:hover) .asset-cover-media .asset-cover-full {
  opacity: 1;
  filter: saturate(0.98) contrast(1.01) brightness(0.96);
  transform: translateY(0) scale(1);
}

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

.skill-media-scrim {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgb(5 5 5 / 22%) 0%, transparent 32%, transparent 66%, rgb(5 5 5 / 22%) 100%);
  opacity: 1;
  pointer-events: none;
  transition: opacity 220ms ease-out;
}

.asset-card:hover .skill-media-scrim,
.asset-card:focus-visible .skill-media-scrim,
.asset-card:focus-within .skill-media-scrim {
  opacity: 0.18;
}

.visual {
  inset: 34px 30px;
  filter: grayscale(0.25);
  opacity: 0.72;
  transform: none;
  transition: opacity 220ms ease, transform var(--asset-focus-duration) var(--asset-focus-ease);
}

.asset-card:hover .visual,
.asset-card:focus-within .visual {
  opacity: 0.9;
  transform: translateY(-2px);
}

.skill-card > .favorite-btn,
.asset-card:hover > .favorite-btn,
.asset-card:focus-within > .favorite-btn,
.asset-card:focus-within:not(:hover) > .favorite-btn {
  position: absolute;
  inset: auto 12px 12px auto;
  z-index: 14;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 0;
  background: rgb(9 9 9 / 78%);
  color: #d0d0d0;
  opacity: 1;
  -webkit-backdrop-filter: blur(16px) saturate(0.75);
  backdrop-filter: blur(16px) saturate(0.75);
  transform: none;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform var(--asset-focus-duration) var(--asset-focus-ease);
}

.skill-card > .favorite-btn:hover,
.skill-card > .favorite-btn:focus-visible,
.asset-card:focus-within:not(:hover) > .favorite-btn:focus-visible {
  border-color: #f2f2f2;
  background: #f2f2f2;
  color: #090909;
  transform: translateY(-2px);
}

.skill-card > .favorite-btn.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #090909;
}

.skill-card > .favorite-btn .icon {
  width: 15px;
  height: 15px;
}

.skill-card-body {
  position: relative;
  z-index: 8;
  flex: 0 0 auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  min-width: 0;
  min-height: 180px;
  padding: 18px 18px 16px;
  border-top: 1px solid #2b2b2b;
  background: #111111;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease-out, transform 220ms var(--asset-focus-ease), background-color 180ms ease-out;
  will-change: opacity, transform;
}

.asset-card:hover .skill-card-body,
.asset-card:focus-visible .skill-card-body,
.asset-card:focus-within .skill-card-body {
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

.skill-info-group {
  position: static;
  inset: auto;
  z-index: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  pointer-events: none;
}

.skill-topline,
.asset-card:hover .skill-topline,
.asset-card:focus-within:not(:hover) .skill-topline {
  position: static;
  inset: auto;
  display: block;
  opacity: 1;
  transform: none;
}

.skill-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-card .badge {
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid #393939;
  background: #171717;
  color: #bcbcbc;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.05em;
  line-height: 20px;
}

.skill-card .badge.level {
  color: #e7e7e7 !important;
}

.skill-owner,
.asset-card:hover .skill-owner,
.asset-card:focus-within:not(:hover) .skill-owner {
  min-width: 0;
  opacity: 1;
  transform: none;
}

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

.skill-owner-copy strong {
  display: -webkit-box;
  min-height: 28px;
  overflow: hidden;
  color: #f2f2f2;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1.32;
  text-shadow: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.skill-owner-copy .skill-card-summary,
.asset-card:hover .skill-owner-copy .skill-card-summary,
.asset-card:focus-within .skill-owner-copy .skill-card-summary {
  display: -webkit-box;
  max-height: none;
  margin: 0;
  overflow: hidden;
  color: #969696;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.58;
  opacity: 1;
  text-overflow: clip;
  text-shadow: none;
  transform: none;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.skill-footer,
.asset-card:hover .skill-footer,
.asset-card:focus-within .skill-footer,
.asset-card:focus-within:not(:hover) .skill-footer {
  position: static;
  inset: auto;
  z-index: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid #292929;
  background: transparent;
  opacity: 1;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}

.card-category-tag {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgb(255 77 77 / 58%);
  background: rgb(255 77 77 / 7%);
  color: var(--brand);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.025em;
  line-height: 1;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.asset-card:hover .card-category-tag,
.asset-card:focus-visible .card-category-tag,
.asset-card:focus-within .card-category-tag {
  border-color: var(--brand);
  background: var(--brand);
  color: #090909;
}

.skill-hover-overlay {
  position: absolute;
  inset: auto 60px 12px 12px;
  z-index: 10;
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 88px;
  padding: 12px 14px 11px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-left: 2px solid var(--brand);
  background: linear-gradient(132deg, rgb(8 8 8 / 88%) 0%, rgb(12 12 12 / 76%) 70%, rgb(14 14 14 / 68%) 100%);
  box-shadow: 0 16px 34px rgb(0 0 0 / 30%);
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(18px) saturate(0.74);
  backdrop-filter: blur(18px) saturate(0.74);
  transform: translateY(8px) scale(0.985);
  transform-origin: left bottom;
  transition: opacity 220ms ease-out, transform var(--asset-focus-duration) var(--asset-focus-ease);
  will-change: opacity, transform;
}

.asset-card:hover .skill-hover-overlay,
.asset-card:focus-visible .skill-hover-overlay,
.asset-card:focus-within .skill-hover-overlay {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.skill-hover-title {
  display: -webkit-box;
  overflow: hidden;
  padding-right: 2px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-shadow: 0 2px 14px rgb(0 0 0 / 68%);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 200ms ease-out, transform var(--asset-focus-duration) var(--asset-focus-ease);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.asset-card:hover .skill-hover-title,
.asset-card:focus-visible .skill-hover-title,
.asset-card:focus-within .skill-hover-title {
  opacity: 1;
  transform: translateY(0);
}

.skill-hover-tags {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-right: 0;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 210ms ease-out, transform 250ms var(--asset-focus-ease);
}

.asset-card:hover .skill-hover-tags,
.asset-card:focus-visible .skill-hover-tags,
.asset-card:focus-within .skill-hover-tags {
  opacity: 1;
  transform: translateY(0);
}

.skill-hover-tags .badge {
  min-height: 28px;
  border-color: rgb(255 255 255 / 26%);
  background: rgb(6 6 6 / 58%);
  color: #f0f0f0 !important;
  line-height: 26px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hover-category-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #090909;
  font-size: 11px;
  font-weight: 740;
  letter-spacing: 0.025em;
  line-height: 1;
}

@media (min-width: 1760px) {
  .asset-card,
  .skeleton-grid span {
    min-height: 382px;
  }

  .skill-card-body {
    min-height: 176px;
  }
}

@media (max-width: 720px) {
  .asset-grid,
  .skeleton-grid {
    gap: 12px;
  }

  .asset-card,
  .skeleton-grid span {
    aspect-ratio: auto;
    min-height: 380px;
  }

  .skill-card-body {
    min-height: 180px;
    padding: 16px 16px 14px;
  }

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

  .skill-owner-copy .skill-card-summary {
    font-size: 12px;
  }

  .skill-card > .favorite-btn,
  .asset-card:hover > .favorite-btn,
  .asset-card:focus-within > .favorite-btn,
  .asset-card:focus-within:not(:hover) > .favorite-btn {
    inset: auto 12px 12px auto;
    width: 36px;
    height: 36px;
  }

  .skill-hover-overlay {
    inset: auto 60px 12px 12px;
    min-height: 86px;
    padding: 11px 12px 10px;
  }

  .skill-hover-title {
    font-size: 18px;
  }

  .asset-cover-media .asset-cover-full {
    inset: 10px auto auto 10px;
    width: calc(100% - 20px);
    height: calc(100% - 118px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .asset-card::after {
    transition: none;
  }

  .skill-card-body,
  .skill-hover-overlay,
  .skill-hover-title,
  .skill-hover-tags,
  .asset-cover-media::after,
  .skill-media-scrim,
  .skill-card > .favorite-btn {
    transition: none;
  }

  .asset-card:hover .skill-owner,
  .asset-card:hover .skill-topline,
  .asset-card:hover .skill-footer {
    opacity: 1;
    transform: none;
  }

  .asset-cover-media img,
  .asset-card:hover .asset-cover-media img,
  .asset-card:focus-within .asset-cover-media img,
  .asset-card:hover .visual,
  .asset-card:focus-within .visual {
    transform: none;
  }
}

/*
 * Asset card system v7
 * Stable card composition; the summary is the only hover disclosure.
 */
.asset-card,
.asset-card:hover,
.asset-card:focus-visible,
.asset-card:focus-within {
  border-color: #303030;
  background: #111111;
  box-shadow: none;
  transform: none;
  transition: none;
}

.asset-card:hover,
.asset-card:focus-visible,
.asset-card:focus-within {
  border-color: #525252;
}

.asset-card::after,
.asset-card:hover::after,
.asset-card:focus-visible::after,
.asset-card:focus-within::after {
  display: none;
}

.skill-card-noise,
.asset-card:hover .skill-card-noise,
.asset-card:focus-within .skill-card-noise {
  opacity: 0.09;
  transition: none;
}

.asset-cover-media::after {
  display: none;
}

.asset-cover-media .asset-cover-preview,
.asset-card:hover .asset-cover-media .asset-cover-preview,
.asset-card:focus-visible .asset-cover-media .asset-cover-preview,
.asset-card:focus-within .asset-cover-media .asset-cover-preview,
.asset-card:focus-within:not(:hover) .asset-cover-media .asset-cover-preview {
  opacity: 1;
  object-fit: contain;
  object-position: center top;
  filter: saturate(0.9) contrast(1.02) brightness(0.9);
  transform: none;
  transition: none;
}

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

.skill-media-scrim,
.asset-card:hover .skill-media-scrim,
.asset-card:focus-visible .skill-media-scrim,
.asset-card:focus-within .skill-media-scrim {
  opacity: 1;
  transition: none;
}

.visual,
.asset-card:hover .visual,
.asset-card:focus-visible .visual,
.asset-card:focus-within .visual {
  opacity: 0.72;
  transform: none;
  transition: none;
}

.skill-card-body,
.asset-card:hover .skill-card-body,
.asset-card:focus-visible .skill-card-body,
.asset-card:focus-within .skill-card-body {
  background: #111111;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: none;
  will-change: auto;
}

.skill-info-group,
.skill-owner,
.skill-topline,
.skill-footer,
.asset-card:hover .skill-owner,
.asset-card:hover .skill-topline,
.asset-card:hover .skill-footer,
.asset-card:focus-visible .skill-owner,
.asset-card:focus-visible .skill-topline,
.asset-card:focus-visible .skill-footer,
.asset-card:focus-within .skill-owner,
.asset-card:focus-within .skill-topline,
.asset-card:focus-within .skill-footer,
.asset-card:focus-within:not(:hover) .skill-owner,
.asset-card:focus-within:not(:hover) .skill-topline,
.asset-card:focus-within:not(:hover) .skill-footer {
  opacity: 1;
  transform: none;
}

.skill-owner-copy .skill-card-summary,
.asset-card .skill-owner-copy .skill-card-summary {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.asset-card:hover .skill-owner-copy .skill-card-summary,
.asset-card:focus-visible .skill-owner-copy .skill-card-summary,
.asset-card:focus-within .skill-owner-copy .skill-card-summary {
  visibility: visible;
  opacity: 1;
}

.asset-card:hover .card-category-tag,
.asset-card:focus-visible .card-category-tag,
.asset-card:focus-within .card-category-tag {
  border-color: rgb(255 77 77 / 58%);
  background: rgb(255 77 77 / 7%);
  color: var(--brand);
}

.skill-card > .favorite-btn,
.asset-card:hover > .favorite-btn,
.asset-card:focus-within > .favorite-btn,
.asset-card:focus-within:not(:hover) > .favorite-btn {
  transform: none;
  transition: none;
}

.skill-card > .favorite-btn:hover,
.skill-card > .favorite-btn:focus-visible,
.asset-card:focus-within:not(:hover) > .favorite-btn:focus-visible {
  transform: none;
}

@media (max-width: 720px) {
  .skill-owner-copy .skill-card-summary,
  .asset-card:hover .skill-owner-copy .skill-card-summary,
  .asset-card:focus-visible .skill-owner-copy .skill-card-summary,
  .asset-card:focus-within .skill-owner-copy .skill-card-summary {
    font-size: 12px;
  }
}

/*
 * Asset card system v8
 * Adaptive summary disclosure with stable card and media geometry.
 */
.asset-card,
.skeleton-grid span {
  height: auto;
  min-height: 400px;
  aspect-ratio: 1 / 1.05;
}

.asset-card {
  justify-content: flex-end;
  padding-top: 0;
}

.skill-card-body,
.asset-card:hover .skill-card-body,
.asset-card:focus-visible .skill-card-body,
.asset-card:focus-within .skill-card-body {
  flex: 0 0 auto;
  min-height: 0;
  transition: none;
}

.skill-owner-copy {
  display: grid;
  grid-template-rows: auto 0fr;
  gap: 0;
  transition:
    grid-template-rows 240ms cubic-bezier(0.33, 1, 0.68, 1),
    gap 240ms cubic-bezier(0.33, 1, 0.68, 1);
}

.skill-owner-copy .skill-card-summary,
.asset-card .skill-owner-copy .skill-card-summary {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 120ms ease-out,
    visibility 0s linear 240ms;
}

.asset-card:hover .skill-owner-copy,
.asset-card:focus-visible .skill-owner-copy,
.asset-card:focus-within .skill-owner-copy {
  grid-template-rows: auto 1fr;
  gap: 8px;
}

.asset-card:hover .skill-owner-copy .skill-card-summary,
.asset-card:focus-visible .skill-owner-copy .skill-card-summary,
.asset-card:focus-within .skill-owner-copy .skill-card-summary {
  visibility: visible;
  opacity: 1;
  transition:
    opacity 150ms ease-out 55ms,
    visibility 0s linear;
}

@media (max-width: 720px) {
  .asset-card,
  .skeleton-grid span {
    height: 380px;
    min-height: 380px;
    aspect-ratio: auto;
  }
}

/*
 * Access menu v15
 * Keep identity scope and switching inside the top-right account entry.
 */
.identity-dialog {
  position: fixed;
  top: calc(var(--nav-height) + 8px);
  right: 12px;
  bottom: auto;
  left: auto;
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - var(--nav-height) - 20px);
  margin: 0;
  border-color: #454545;
  background: #111111;
  box-shadow: 0 22px 70px rgb(0 0 0 / 62%);
}

.identity-dialog::backdrop {
  background: rgb(0 0 0 / 34%);
  backdrop-filter: none;
}

.identity-dialog[open] {
  animation: access-menu-enter 170ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes access-menu-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.identity-dialog-header {
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid #323232;
  background: #151515;
}

.identity-current {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.identity-current-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #4a4a4a;
  background: #1e1e1e;
  color: var(--brand);
  font-size: 13px;
  font-weight: 760;
}

.identity-current-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.identity-current-copy > small {
  color: #6f6f6f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.identity-current-copy > strong {
  overflow: hidden;
  color: #f1f1f1;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-current-copy > span {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  color: #999999;
  font-size: 11px;
}

.identity-current-copy b,
.identity-current-copy em,
.identity-current-copy i {
  overflow: hidden;
  font-style: normal;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-current-copy i {
  color: #4f4f4f;
}

.identity-dialog-close {
  width: 36px;
  height: 36px;
}

.identity-dialog-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
}

.identity-dialog-label h2 {
  margin: 0;
  color: #cfcfcf;
  font-size: 12px;
  font-weight: 700;
}

.identity-dialog-label small {
  color: #5f5f5f;
  font-size: 9px;
}

.identity-options {
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 0 12px 12px;
}

.identity-option {
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  gap: 11px;
  min-height: 68px;
  padding: 12px;
  border-color: transparent;
  background: #151515;
  box-shadow: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.identity-option:hover,
.identity-option:focus-visible {
  border-color: #494949;
  background: #1b1b1b;
  transform: none;
}

.identity-option.active {
  border-color: #583030;
  background: #1c1717;
  box-shadow: inset 2px 0 0 var(--brand);
}

.identity-option-avatar {
  width: 36px;
  height: 36px;
  font-size: 11px;
}

.identity-option-copy {
  gap: 4px;
  align-self: center;
}

.identity-option-topline {
  justify-content: flex-start;
  gap: 8px;
}

.identity-option-topline strong {
  color: #e9e9e9;
  font-size: 13px;
  letter-spacing: 0;
}

.identity-option-topline small {
  color: #777777;
  font-size: 10px;
}

.identity-option-copy p {
  overflow: hidden;
  color: #777777;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-option-state {
  position: static;
  display: grid;
  width: 24px;
  height: 24px;
  align-self: center;
  place-items: center;
  color: #555555;
}

.identity-option-state svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.identity-option.active .identity-option-state {
  color: var(--brand);
}

.identity-dialog-note {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px 18px 14px;
  border-top-color: #2c2c2c;
}

.identity-dialog-note span,
.identity-dialog-note p {
  font-size: 9px;
  line-height: 1.4;
}

.identity-dialog-note span {
  color: #8c8c8c;
}

@media (max-width: 720px) {
  .identity-dialog {
    top: calc(var(--nav-height) + 6px);
    right: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - var(--nav-height) - 14px);
  }

  .identity-dialog-header {
    padding: 14px;
  }

  .identity-dialog-label {
    padding: 14px 14px 9px;
  }

  .identity-options {
    padding: 0 8px 8px;
  }

  .identity-option {
    min-height: 64px;
    padding: 10px;
  }

  .identity-dialog-note {
    padding: 10px 14px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity-dialog[open],
  .identity-option {
    animation: none;
    transition: none;
  }
}

/*
 * Access experience v14
 * Front-end identity preview for admin, member, leader and external guest roles.
 */
.view-tab[hidden],
.upload-button[hidden] {
  display: none !important;
}

.access-preview-bar {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid #363636;
  background:
    linear-gradient(90deg, rgb(255 77 77 / 8%), transparent 32%),
    #151515;
  box-shadow: inset 3px 0 0 var(--brand);
}

.access-preview-bar::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(135deg, transparent 50%, rgb(255 255 255 / 2%) 50%);
  content: "";
  pointer-events: none;
}

.access-preview-marker {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #494949;
  background: #202020;
  color: var(--brand);
  font-size: 15px;
  font-weight: 750;
}

.access-preview-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.access-preview-kicker {
  color: var(--brand);
  font-family: "Arial Narrow", Inter, sans-serif;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.17em;
}

.access-preview-copy strong {
  color: #f0f0f0;
  font-size: 15px;
  line-height: 1.35;
}

.access-preview-copy p {
  margin: 0;
  color: #929292;
  font-size: 12px;
  line-height: 1.55;
}

.access-preview-meta {
  display: grid;
  min-width: 146px;
  gap: 4px;
  padding-left: 18px;
  border-left: 1px solid #343434;
}

.access-preview-meta span {
  color: #d8d8d8;
  font-size: 12px;
  font-weight: 650;
}

.access-preview-meta small {
  color: #6f6f6f;
  font-size: 10px;
}

.access-switch-button {
  position: relative;
  z-index: 1;
  min-height: 38px;
  border-color: #484848;
  background: #1b1b1b;
  color: #e4e4e4;
  font-size: 12px;
}

.access-switch-button:hover {
  border-color: var(--brand);
  background: #242020;
  color: #fff;
}

.identity-dialog {
  width: min(860px, calc(100vw - 36px));
  max-height: min(760px, calc(100vh - 36px));
  padding: 0;
  overflow: auto;
  border: 1px solid #4b4b4b;
  border-radius: 0;
  background: #101010;
  color: #e9e9e9;
  box-shadow: 0 28px 100px rgb(0 0 0 / 72%);
}

.identity-dialog::backdrop {
  background: rgb(0 0 0 / 76%);
  backdrop-filter: blur(8px);
}

.identity-dialog[open] {
  animation: identity-dialog-enter 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes identity-dialog-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.identity-dialog-shell {
  display: grid;
}

.identity-dialog-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 24px;
  padding: 30px 32px 26px;
  border-bottom: 1px solid #343434;
  background:
    linear-gradient(115deg, rgb(255 77 77 / 8%), transparent 48%),
    #131313;
}

.identity-dialog-header h2 {
  margin: 8px 0 10px;
  color: #f3f3f3;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.identity-dialog-header p {
  max-width: 620px;
  margin: 0;
  color: #929292;
  font-size: 13px;
  line-height: 1.65;
}

.identity-dialog-close {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border-color: #3b3b3b;
  background: #181818;
  color: #dadada;
  cursor: pointer;
}

.identity-dialog-close svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.8;
}

.identity-dialog-close:hover,
.identity-dialog-close:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  outline: 0;
}

.identity-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 24px 32px;
}

.identity-option {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  min-height: 156px;
  padding: 20px;
  border: 1px solid #353535;
  border-radius: 0;
  background: #171717;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.identity-option:hover,
.identity-option:focus-visible {
  border-color: #686868;
  background: #1c1c1c;
  outline: none;
  transform: translateY(-2px);
}

.identity-option.active {
  border-color: var(--brand);
  background:
    linear-gradient(120deg, rgb(255 77 77 / 10%), transparent 52%),
    #191717;
  box-shadow: inset 0 -2px 0 var(--brand);
}

.identity-option-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #4b4b4b;
  background: #202020;
  color: var(--brand);
  font-size: 14px;
  font-weight: 750;
}

.identity-option-copy {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.identity-option-topline {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.identity-option-topline strong {
  color: var(--brand);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.identity-option-topline small {
  color: #696969;
  font-size: 10px;
}

.identity-option-copy b {
  color: #f0f0f0;
  font-size: 17px;
}

.identity-option-copy p {
  margin: 0;
  color: #929292;
  font-size: 12px;
  line-height: 1.55;
}

.identity-option-state {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: #676767;
  font-size: 10px;
}

.identity-option.active .identity-option-state {
  color: var(--brand);
}

.identity-dialog-note {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 32px 22px;
  border-top: 1px solid #303030;
  background: #0d0d0d;
}

.identity-dialog-note span {
  color: #b7b7b7;
  font-size: 11px;
  font-weight: 700;
}

.identity-dialog-note p {
  margin: 0;
  color: #727272;
  font-size: 11px;
  line-height: 1.6;
}

body[data-access-profile="guest"] .access-preview-bar {
  background:
    linear-gradient(90deg, rgb(255 77 77 / 5%), transparent 32%),
    #121212;
}

@media (max-width: 980px) {
  .access-preview-bar {
    grid-template-columns: 46px minmax(0, 1fr) auto;
  }

  .access-preview-meta {
    display: none;
  }
}

@media (max-width: 720px) {
  .access-preview-bar {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 9px;
    margin-bottom: 10px;
    padding: 6px 10px;
  }

  .access-preview-marker {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .access-preview-kicker,
  .access-preview-copy p {
    display: none;
  }

  .access-preview-copy strong {
    font-size: 11px;
  }

  .access-switch-button {
    min-height: 32px;
    padding-inline: 9px;
    font-size: 10px;
  }

  .identity-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .identity-dialog-header {
    gap: 14px;
    padding: 22px 20px 20px;
  }

  .identity-dialog-header p {
    font-size: 12px;
  }

  .identity-options {
    grid-template-columns: 1fr;
    padding: 16px 20px;
  }

  .identity-option {
    min-height: 138px;
    padding: 17px;
  }

  .identity-dialog-note {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 20px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity-dialog[open],
  .identity-option {
    animation: none;
    transition: none;
  }
}

/*
 * Unified operating guide v12
 * One entry explains discovery, use, contribution and the Registry refresh loop.
 */
.main-nav .nav-link-guide {
  min-width: 296px;
}

.portal-dialog {
  width: min(1040px, calc(100vw - 48px));
  max-height: min(880px, calc(100vh - 40px));
}

.portal-dialog-shell {
  max-height: min(880px, calc(100vh - 40px));
}

.portal-dialog-header {
  padding: 26px 32px 22px;
}

.portal-dialog-header h2 {
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.portal-dialog-body {
  padding: 0 32px 32px;
}

.portal-guide-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.65fr);
  border: 1px solid var(--border-strong);
  border-top: 0;
  background:
    linear-gradient(110deg, rgb(255 77 77 / 11%), transparent 46%),
    #101010;
}

.portal-guide-overview-copy {
  padding: 32px;
}

.portal-guide-overview-copy > span,
.portal-guide-key span,
.portal-use-check > span,
.portal-responsibility-grid section > span {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portal-guide-overview h3 {
  margin: 9px 0 14px;
  color: #f4f4f4;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 540;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.portal-guide-overview p,
.portal-guide-heading p,
.portal-system-flow p,
.portal-contribute-flow p,
.portal-responsibility-grid p {
  margin: 0;
  color: #939393;
  font-size: 12px;
  line-height: 1.7;
}

.portal-guide-overview-copy p {
  max-width: 660px;
  font-size: 14px;
}

.portal-guide-key {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-content: center;
  gap: 18px 12px;
  padding: 28px;
  border-left: 1px solid var(--border);
  background: rgb(0 0 0 / 14%);
}

.portal-guide-key strong {
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 620;
}

.portal-guide-section {
  padding-top: 42px;
  scroll-margin-top: 96px;
}

.portal-guide-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 18px;
}

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

.portal-guide-heading .portal-section-label {
  margin: 0;
}

.portal-guide-heading h3 {
  margin: 0;
  color: #eeeeee;
  font-size: 23px;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.portal-guide-heading > p {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.portal-system-flow,
.portal-contribute-flow {
  display: grid;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  list-style: none;
}

.portal-system-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.portal-system-flow li,
.portal-contribute-flow li {
  position: relative;
  min-width: 0;
  background: #111111;
}

.portal-system-flow li {
  min-height: 188px;
  padding: 20px 18px;
}

.portal-system-flow li + li,
.portal-contribute-flow li + li {
  border-left: 1px solid var(--border);
}

.portal-system-flow li::before,
.portal-contribute-flow li::before {
  position: absolute;
  top: -1px;
  right: 100%;
  left: 0;
  height: 2px;
  background: var(--brand);
  content: "";
  transition: right 180ms ease;
}

.portal-system-flow li:hover::before,
.portal-contribute-flow li:hover::before {
  right: 0;
}

.portal-system-flow li > span,
.portal-contribute-flow li > span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.portal-system-flow strong,
.portal-contribute-flow strong,
.portal-responsibility-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #e7e7e7;
  font-size: 14px;
  font-weight: 650;
}

.portal-use-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr);
  border: 1px solid var(--border);
}

.portal-use-steps {
  border: 0;
}

.portal-use-steps li {
  min-height: 104px;
  padding: 18px 20px;
  background: #111111;
}

.portal-use-steps li > span {
  border-color: rgb(255 77 77 / 32%);
  border-radius: 0;
  background: rgb(255 77 77 / 10%);
  color: var(--brand);
}

.portal-use-check {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-left: 1px solid var(--border);
  background: #0d0d0d;
}

.portal-use-check h4 {
  margin: 8px 0 18px;
  color: #eeeeee;
  font-size: 18px;
  font-weight: 620;
}

.portal-use-check ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-use-check li {
  position: relative;
  padding-left: 17px;
  color: #b4b4b4;
  font-size: 12px;
  line-height: 1.55;
}

.portal-use-check li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--brand);
  content: "";
}

.portal-use-check small {
  margin-top: auto;
  padding-top: 24px;
  color: #666666;
  font-size: 10px;
  line-height: 1.6;
}

.portal-contribute-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-contribute-flow li {
  min-height: 148px;
  padding: 20px;
}

.portal-contribute-flow li > span {
  margin-bottom: 18px;
}

.portal-responsibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  border: 1px solid var(--border);
}

.portal-responsibility-grid section {
  min-width: 0;
  padding: 18px 20px;
  background: #0e0e0e;
}

.portal-responsibility-grid section + section {
  border-left: 1px solid var(--border);
}

.portal-responsibility-grid section > span {
  display: block;
  margin-bottom: 14px;
}

.portal-unified-actions {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

@media (max-width: 1240px) {
  .main-nav .nav-link-guide {
    min-width: 208px;
  }
}

@media (max-width: 860px) {
  .portal-guide-overview {
    grid-template-columns: 1fr;
  }

  .portal-guide-key {
    grid-template-columns: 58px minmax(0, 1fr);
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .portal-system-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-system-flow li:nth-child(odd) {
    border-left: 0;
  }

  .portal-system-flow li:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .portal-system-flow li:last-child {
    grid-column: 1 / -1;
    min-height: 140px;
  }

  .portal-use-layout {
    grid-template-columns: 1fr;
  }

  .portal-use-check {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .portal-use-check small {
    margin-top: 18px;
  }

  .portal-contribute-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-contribute-flow li:nth-child(odd) {
    border-left: 0;
  }

  .portal-contribute-flow li:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .portal-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .portal-dialog-shell {
    max-height: calc(100vh - 20px);
  }

  .portal-dialog-header {
    padding: 19px 18px 17px;
  }

  .portal-dialog-header h2 {
    font-size: 21px;
  }

  .portal-dialog-body {
    padding: 0 18px 20px;
  }

  .portal-guide-overview-copy {
    padding: 24px 20px;
  }

  .portal-guide-overview h3 {
    font-size: 27px;
  }

  .portal-guide-overview-copy p {
    font-size: 12px;
  }

  .portal-guide-key {
    gap: 12px 8px;
    padding: 20px;
  }

  .portal-guide-section {
    padding-top: 34px;
  }

  .portal-guide-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .portal-guide-heading > p {
    padding-left: 0;
    border-left: 0;
  }

  .portal-system-flow,
  .portal-contribute-flow,
  .portal-responsibility-grid {
    grid-template-columns: 1fr;
  }

  .portal-system-flow li,
  .portal-system-flow li:last-child,
  .portal-contribute-flow li {
    grid-column: auto;
    min-height: 0;
    padding: 18px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .portal-system-flow li:first-child,
  .portal-contribute-flow li:first-child {
    border-top: 0;
  }

  .portal-system-flow li > span,
  .portal-contribute-flow li > span {
    margin-bottom: 12px;
  }

  .portal-use-steps li {
    padding: 16px;
  }

  .portal-use-check {
    padding: 20px;
  }

  .portal-responsibility-grid section + section {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .portal-unified-actions {
    margin-top: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-system-flow li::before,
  .portal-contribute-flow li::before {
    transition: none;
  }
}

/*
 * Detail system v11
 * Reusable vertical process for primary action guidance.
 */
.quickstart-block.process-section {
  position: relative;
  padding: 30px;
  border-bottom-color: #3a3030;
  border-left: 3px solid var(--brand);
  background: linear-gradient(180deg, #181313 0%, #121010 100%);
}

.quickstart-block.process-section .sheet-block-heading {
  margin-bottom: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid #3a3030;
}

.quickstart-block.process-section h3 {
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -0.02em;
}

.quickstart-block .vertical-process-intro {
  color: #a9a3a3;
  font-size: 12px;
  line-height: 1.6;
}

.vertical-process {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.vertical-process .vertical-process-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-height: 0;
  padding: 0;
  border: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  counter-increment: none;
}

.vertical-process .vertical-process-step::before {
  display: none;
}

.vertical-process .vertical-process-step:not(:last-child)::after {
  position: absolute;
  top: 40px;
  bottom: -18px;
  left: 19px;
  width: 1px;
  background: linear-gradient(180deg, var(--brand) 0%, rgb(255 77 77 / 24%) 100%);
  content: "";
}

.vertical-process-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(255 77 77 / 68%);
  background: #2a1212;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.vertical-process-content {
  min-width: 0;
  min-height: 72px;
  padding: 14px 16px 15px;
  border: 1px solid #403636;
  border-left: 2px solid rgb(255 77 77 / 72%);
  background: #181616;
}

.vertical-process-label {
  display: block;
  margin-bottom: 7px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.quickstart-block .vertical-process-content p {
  margin: 0;
  color: #f0eeee;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .quickstart-block.process-section {
    padding: 24px 20px 26px;
  }

  .quickstart-block.process-section h3 {
    font-size: 18px;
  }

  .vertical-process {
    gap: 14px;
    margin-top: 18px;
  }

  .vertical-process .vertical-process-step {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .vertical-process .vertical-process-step:not(:last-child)::after {
    top: 34px;
    bottom: -14px;
    left: 16px;
  }

  .vertical-process-marker {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }

  .vertical-process-content {
    min-height: 64px;
    padding: 12px 13px 13px;
  }

  .quickstart-block .vertical-process-content p {
    font-size: 13px;
  }
}

/* Asset card system v10: responsive red hover rail. */
.asset-card::after,
.asset-card:hover::after,
.asset-card:focus-visible::after,
.asset-card:focus-within::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: block;
  height: 2px;
  background: var(--brand);
  content: "";
  opacity: 1;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms cubic-bezier(0.33, 1, 0.68, 1);
}

.asset-card:hover::after,
.asset-card:focus-visible::after,
.asset-card:focus-within::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .asset-card::after,
  .asset-card:hover::after,
  .asset-card:focus-visible::after,
  .asset-card:focus-within::after {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-owner-copy,
  .skill-owner-copy .skill-card-summary,
  .asset-card .skill-owner-copy .skill-card-summary {
    transition: none;
  }
}

/*
 * Asset card system v9
 * One gutter rhythm across viewports and a clearer canvas/surface hierarchy.
 */
:root {
  --asset-page-canvas: #080808;
  --asset-card-surface: #151515;
  --asset-grid-gap: 16px;
  --background: var(--asset-page-canvas);
  --card: var(--asset-card-surface);
}

html,
body {
  background-color: var(--asset-page-canvas);
}

.asset-grid,
.skeleton-grid {
  gap: var(--asset-grid-gap);
  row-gap: var(--asset-grid-gap);
  column-gap: var(--asset-grid-gap);
  align-items: stretch;
}

.asset-card,
.asset-card:hover,
.asset-card:focus-visible,
.asset-card:focus-within,
.skeleton-grid span {
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1.05;
  border-color: #343434;
  background: var(--asset-card-surface);
}

.asset-card:hover,
.asset-card:focus-visible,
.asset-card:focus-within {
  border-color: #565656;
}

.skill-card-body,
.asset-card:hover .skill-card-body,
.asset-card:focus-visible .skill-card-body,
.asset-card:focus-within .skill-card-body {
  background: var(--asset-card-surface);
}

@media (max-width: 720px) {
  .asset-card,
  .skeleton-grid span {
    height: 380px;
    min-height: 380px;
    aspect-ratio: auto;
  }
}

/* typography-v17.css */
/*
 * Hux typography system v17
 * Reference rhythm: 18px reading size, 1.9 leading, 2em flow, 90ch measure.
 */

:root {
  --font-body: "Montserrat", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-heading: "Instrument Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --font-din-numerals: var(--font-body);
  --type-caption: 11px;
  --type-small: 12px;
  --type-ui: 14px;
  --type-content: 15px;
  --type-reading: 18px;
  --leading-tight: 1.2;
  --leading-ui: 1.5;
  --leading-content: 1.75;
  --leading-reading: 1.9;
  --flow-reading: 2em;
  --measure-reading: 90ch;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--type-ui);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums lining-nums;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

:where(h1, h2, h3, h4, h5, h6),
.brand-name,
.skill-owner-copy strong,
.skill-hover-title,
.portal-guide-key strong,
.workflow-step-flow strong {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
}

:where(h1, h2, h3, h4),
.dashboard-heading h2,
.portal-guide-overview h3,
.skill-owner-copy strong {
  text-wrap: balance;
}

:where(p, li, dd),
.skill-card-summary {
  text-wrap: pretty;
}

code,
pre,
.section-kicker,
.portal-section-label,
.workflow-article-type {
  font-family: var(--font-mono);
}

/* Global navigation and controls */
.brand-name {
  font-size: 20px;
  line-height: 1.2;
}

.product-name {
  font-size: var(--type-small);
  line-height: 1.45;
}

.nav-link,
.view-tab,
.pill {
  font-size: var(--type-ui);
  line-height: 1.4;
}

.nav-count,
.view-count,
.pill-count {
  font-size: var(--type-small);
  line-height: 1.25;
}

.user-copy strong {
  font-family: var(--font-heading);
  font-size: var(--type-ui);
  line-height: 1.35;
}

.user-copy small {
  font-size: var(--type-caption);
  line-height: 1.45;
}

.workspace-title h1,
.section-kicker,
.portal-section-label {
  font-size: var(--type-caption);
  line-height: 1.45;
}

.button {
  font-size: var(--type-small);
  line-height: 1.35;
}

.upload-button,
.results-meta .button {
  font-size: 13px;
}

.asset-toolbar .search-wrap input {
  font-size: 16px;
  line-height: 1.5;
}

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

/* Home and dashboard */
.dashboard-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 520;
  line-height: 1.02;
}

.dashboard-heading p {
  max-width: 46em;
  font-size: 16px;
  line-height: var(--leading-content);
}

.dashboard-metrics span,
.dashboard-source dt {
  font-size: var(--type-small);
  line-height: var(--leading-ui);
}

.dashboard-metrics small,
.footer-column > span,
.footer-column small {
  font-size: var(--type-caption);
  line-height: var(--leading-ui);
}

.panel-heading h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.35;
}

.panel-note,
.recent-copy small,
.recent-item time,
.category-total {
  font-size: var(--type-caption);
  line-height: var(--leading-ui);
}

.recent-copy strong {
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 1.45;
}

.category-row-label strong {
  font-size: var(--type-small);
  line-height: var(--leading-ui);
}

.dashboard-panel p,
.dashboard-panel li,
.dashboard-source dd,
.footer-brand p,
.footer-column a {
  font-size: 13px;
  line-height: 1.7;
}

.footer-brand strong {
  font-family: var(--font-heading);
}

/* Asset cards */
.skill-card .badge {
  font-size: var(--type-caption);
  line-height: 20px;
}

.skill-owner-copy strong,
.skill-hover-title {
  font-size: 20px;
  line-height: 1.32;
}

.skill-owner-copy .skill-card-summary,
.asset-card .skill-owner-copy .skill-card-summary,
.asset-card:hover .skill-owner-copy .skill-card-summary,
.asset-card:focus-visible .skill-owner-copy .skill-card-summary,
.asset-card:focus-within .skill-owner-copy .skill-card-summary {
  font-size: 13px;
  line-height: 1.68;
}

.card-category-tag,
.hover-category-tag,
.skill-hover-tags .badge {
  font-size: var(--type-caption);
  line-height: 1.25;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.35;
}

.empty-state p {
  font-size: var(--type-ui);
  line-height: 1.7;
}

/* Asset detail sheet */
.sheet-hero h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.25;
}

.sheet-hero p {
  max-width: 42em;
  font-size: var(--type-content);
  line-height: var(--leading-content);
}

.sheet-taxonomy,
.sheet-block-heading .section-kicker,
.compact-meta > div > span {
  font-size: var(--type-caption);
  line-height: var(--leading-ui);
}

.sheet-block h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.35;
}

.sheet-block p,
.quickstart li {
  font-size: var(--type-content);
  line-height: var(--leading-content);
}

.tag-label,
.meta-list dt,
.meta-list dd,
.compact-meta strong,
.tag-list span {
  font-size: var(--type-small);
  line-height: 1.6;
}

.meta-list code {
  font-size: var(--type-caption);
  line-height: 1.65;
}

.sheet-block-heading {
  margin-bottom: 18px;
}

.sheet-block {
  padding-block: 28px;
}

/* Unified operating guide */
.portal-dialog-header h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.2;
}

.portal-guide-overview h3 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.12;
}

.portal-guide-overview p,
.portal-guide-overview-copy p {
  font-size: var(--type-content);
  line-height: var(--leading-content);
}

.portal-guide-heading h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.3;
}

.portal-guide-heading p,
.portal-system-flow p,
.portal-contribute-flow p,
.portal-responsibility-grid p {
  font-size: 13px;
  line-height: 1.72;
}

.portal-guide-key span,
.portal-guide-overview-copy > span,
.portal-use-check > span,
.portal-responsibility-grid section > span,
.portal-system-flow li > span,
.portal-contribute-flow li > span {
  font-size: var(--type-caption);
  line-height: var(--leading-ui);
}

.portal-guide-key strong,
.portal-system-flow strong,
.portal-contribute-flow strong,
.portal-responsibility-grid strong {
  font-size: var(--type-content);
  line-height: 1.4;
}

.portal-use-check h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.35;
}

.portal-use-check li {
  font-size: 13px;
  line-height: 1.7;
}

.portal-use-check small {
  font-size: var(--type-caption);
  line-height: 1.65;
}

.portal-guide-section {
  padding-top: 48px;
}

.portal-guide-heading {
  margin-bottom: 22px;
}

/* Article and rendered Markdown */
.workflow-article {
  width: min(1180px, calc(100% - 64px));
  padding-block: 60px 96px;
}

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

.workflow-article-hero {
  padding: 52px 56px;
}

.workflow-article-hero-main {
  max-width: 900px;
  gap: 18px;
}

.workflow-article-hero h1 {
  max-width: 20em;
  font-family: var(--font-heading);
  font-size: clamp(38px, 3.2vw, 46px);
  line-height: 1.14;
}

.workflow-article-hero p {
  max-width: 46em;
  font-size: var(--type-reading);
  line-height: 1.8;
}

.workflow-article-meta,
.workflow-article-facts dt {
  font-size: var(--type-caption);
  line-height: var(--leading-ui);
}

.workflow-article-facts dd {
  font-size: var(--type-small);
  line-height: var(--leading-ui);
}

.workflow-quick-flow {
  padding-block: 42px 48px;
}

.workflow-section-heading h2,
.workflow-block h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.3;
}

.workflow-section-heading p {
  font-size: 13px;
  line-height: 1.7;
}

.workflow-step-flow strong {
  font-size: var(--type-content);
  line-height: 1.4;
}

.workflow-step-flow small {
  font-size: var(--type-small);
  line-height: 1.65;
}

.workflow-step-number,
.workflow-rail-index,
.workflow-toc-number,
.workflow-rail-title > span,
.workflow-rail-footer span,
.workflow-article-footer span,
.vertical-process-label,
.workflow-article-footer code {
  font-size: var(--type-caption);
  line-height: var(--leading-ui);
}

.workflow-article-body {
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 56px;
  padding-top: 52px;
}

.markdown-article-body {
  grid-template-columns: minmax(0, var(--measure-reading)) 250px;
  justify-content: space-between;
}

.workflow-article-main,
.markdown-article {
  min-width: 0;
  max-width: var(--measure-reading);
  color: #c8c8c8;
  font-family: var(--font-body);
  font-size: var(--type-reading);
  line-height: var(--leading-reading);
}

.workflow-article-main {
  gap: var(--flow-reading);
}

.workflow-text p,
.workflow-instructions li p,
.workflow-checklist li,
.workflow-callout p,
.markdown-article p,
.markdown-article li {
  font-size: 1em;
  line-height: inherit;
}

.workflow-text p {
  margin-bottom: var(--flow-reading);
}

.markdown-article > * + * {
  margin-block-start: var(--flow-reading);
}

.markdown-article .markdown-section + .markdown-section {
  margin-block-start: 3em;
}

.markdown-article h2,
.markdown-article h3 {
  font-family: var(--font-heading);
  line-height: 1.3;
}

.markdown-article h2 {
  margin-block-start: 0;
  font-size: 30px;
}

.markdown-article h3 {
  margin-block-start: 2em;
  font-size: 22px;
}

.markdown-article p,
.markdown-article ul,
.markdown-article ol {
  max-width: var(--measure-reading);
}

.markdown-article ul,
.markdown-article ol {
  gap: 0.65em;
  margin-block: var(--flow-reading) 0;
  padding-left: 1.4em;
}

.markdown-article pre {
  margin-block: var(--flow-reading);
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.75;
}

.markdown-media,
.markdown-video-figure {
  margin-block: var(--flow-reading);
}

.workflow-media figcaption,
.markdown-media figcaption,
.markdown-video-figure figcaption {
  font-size: var(--type-small);
  line-height: 1.65;
}

.workflow-platform-grid p,
.workflow-callout p {
  font-size: 14px;
  line-height: var(--leading-content);
}

.workflow-platform-grid h3,
.workflow-callout > span {
  font-family: var(--font-heading);
  font-size: var(--type-content);
  line-height: 1.4;
}

.workflow-toc button,
.workflow-source-content,
.workflow-source-link,
.workflow-rail-footer {
  font-size: var(--type-small);
  line-height: 1.6;
}

/* The identity selector keeps its compact component-local typography. */

@media (max-width: 860px) {
  .dashboard-heading p {
    font-size: var(--type-content);
  }

  .portal-guide-overview-copy p,
  .portal-guide-heading p {
    font-size: var(--type-ui);
  }

  .workflow-article,
  .workflow-article-markdown {
    width: min(100% - 28px, 760px);
    padding-block: 32px 64px;
  }

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

  .workflow-article-hero h1 {
    font-size: clamp(32px, 8vw, 40px);
  }

  .workflow-article-hero p,
  .workflow-article-main,
  .markdown-article {
    font-size: 18px;
    line-height: 1.85;
  }

  .workflow-article-body,
  .markdown-article-body {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 38px;
  }

  .workflow-article-main,
  .markdown-article {
    max-width: none;
  }

  .markdown-article > * + * {
    margin-block-start: 1.75em;
  }

  .markdown-article .markdown-section + .markdown-section {
    margin-block-start: 2.5em;
  }

  .portal-guide-section {
    padding-top: 40px;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 15px;
  }

  .product-name {
    font-size: 10px;
  }

  .view-tab,
  .pill {
    font-size: 13px;
  }

  .reader-action {
    overflow: hidden;
    color: transparent;
    font-size: 0;
    line-height: 0;
  }

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

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

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

  .sheet-hero p,
  .sheet-block p,
  .quickstart li {
    font-size: var(--type-ui);
  }

  .portal-dialog-header h2 {
    font-size: 26px;
  }

  .portal-guide-overview h3 {
    font-size: 30px;
  }

  .portal-guide-heading h3 {
    font-size: 22px;
  }

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

  .workflow-article-hero h1 {
    font-size: 30px;
    line-height: 1.18;
  }

  .workflow-article-hero p,
  .workflow-article-main,
  .markdown-article {
    font-size: 17px;
    line-height: 1.85;
  }

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

  .markdown-article h3 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* identity-panel-v19.css */
/* Identity selector v20: a measured flat-ink utility panel with static hover feedback. */

.user-menu .user-copy strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.user-menu .user-copy small {
  color: #7f7f7f;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.identity-dialog {
  position: fixed;
  top: calc(var(--nav-height) + 8px);
  right: 12px;
  bottom: auto;
  left: auto;
  width: min(420px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - var(--nav-height) - 20px);
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #393939;
  border-radius: 0;
  background: #0f0f0f;
  color: #eeeeee;
  box-shadow: 0 24px 72px rgb(0 0 0 / 68%);
  color-scheme: dark;
}

.identity-dialog::backdrop {
  background: rgb(0 0 0 / 48%);
  backdrop-filter: none;
}

.identity-dialog[open] {
  animation: identity-panel-enter 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes identity-panel-enter {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.identity-dialog-shell {
  display: grid;
  min-width: 0;
}

.identity-dialog-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 20px;
  align-items: center;
  min-height: 82px;
  padding: 16px 16px 16px 20px;
  border-bottom: 1px solid #2d2d2d;
  background: #131313;
}

.identity-dialog-heading {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.identity-dialog-heading h2,
.identity-dialog-heading p {
  margin: 0;
}

.identity-dialog-heading h2 {
  color: #f0f0f0;
  font-family: var(--font-heading, "Instrument Sans", "PingFang SC", system-ui, sans-serif);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
}

.identity-dialog-heading p {
  overflow: hidden;
  color: #858585;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-dialog-close {
  display: grid;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid #3a3a3a;
  border-radius: 0;
  background: #171717;
  color: #a5a5a5;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.identity-dialog-close svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.8;
}

.identity-dialog-close:hover {
  border-color: #5a5a5a;
  background: #1b1b1b;
  color: #eeeeee;
}

.identity-dialog-close:focus-visible {
  border-color: #767676;
  color: #ffffff;
  outline: 1px solid #767676;
  outline-offset: -4px;
}

.identity-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}

.identity-option {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 12px 18px 12px 20px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #272727;
  border-radius: 0;
  background: #101010;
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transform: none;
  transition: none;
}

.identity-option:last-child {
  border-bottom-color: transparent;
}

.identity-option::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: none;
  transition: none;
}

.identity-option:hover {
  border-bottom-color: #2d2d2d;
  background: #161616;
  outline: 0;
  transform: none;
  transition: none;
}

.identity-option:focus-visible {
  z-index: 1;
  background: #171717;
  outline: 1px solid #666666;
  outline-offset: -4px;
  transform: none;
  transition: none;
}

.identity-option.active {
  border-bottom-color: #2d2929;
  background: linear-gradient(90deg, rgb(255 77 77 / 9%), transparent 78%), #151313;
  box-shadow: none;
}

.identity-option.active::before {
  opacity: 1;
  transform: none;
}

.identity-option-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #3d3d3d;
  border-radius: 0;
  background: #181818;
  color: var(--brand);
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
}

.identity-option.active .identity-option-avatar {
  border-color: #683838;
  background: #211818;
}

.identity-option-copy {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.identity-option-topline {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: flex-start;
  min-width: 0;
}

.identity-option-topline strong {
  overflow: hidden;
  color: #ededed;
  font-family: var(--font-heading, "Instrument Sans", "PingFang SC", system-ui, sans-serif);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-option-topline small {
  flex: 0 0 auto;
  color: #929292;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.identity-option-copy p {
  overflow: hidden;
  margin: 0;
  color: #858585;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-option-state {
  position: static;
  display: grid;
  width: 24px;
  height: 24px;
  align-self: center;
  place-items: center;
  color: #555555;
}

.identity-option-state svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.identity-option:hover .identity-option-state,
.identity-option:focus-visible .identity-option-state {
  color: #929292;
}

.identity-option.active .identity-option-state {
  color: var(--brand);
}

.identity-option-session {
  cursor: default;
}

.identity-option-session:hover {
  border-bottom-color: #272727;
  background: linear-gradient(90deg, rgb(255 77 77 / 9%), transparent 78%), #151313;
}

.identity-session-actions {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px 14px;
  border-top: 1px solid #242424;
  background: #0f0f0f;
}

.identity-session-logout {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 124px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #3a3a3a;
  background: #161616;
  color: #d4d4d4;
  font-family: var(--font-body, Montserrat, "PingFang SC", system-ui, sans-serif);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.identity-logout-icon {
  width: 15px;
  height: 15px;
  color: #8f8f8f;
  opacity: 1;
}

.identity-session-logout:hover,
.identity-session-logout:focus-visible {
  border-color: #7b3d3d;
  background: #241616;
  color: #ff6a6a;
  outline: none;
  box-shadow: 0 0 0 1px rgb(255 77 77 / 10%);
}

.identity-session-logout:hover .identity-logout-icon,
.identity-session-logout:focus-visible .identity-logout-icon {
  color: var(--brand);
}

@media (max-width: 720px) {
  .identity-dialog {
    top: calc(var(--nav-height) + 6px);
    right: 8px;
    width: calc(100% - 16px);
    max-width: none;
    max-height: calc(100vh - var(--nav-height) - 14px);
  }

  .identity-dialog-header {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 14px;
    min-height: 78px;
    padding: 14px 14px 14px 16px;
  }

  .identity-dialog-heading h2 {
    font-size: 17px;
  }

  .identity-option {
    grid-template-columns: 38px minmax(0, 1fr) 22px;
    gap: 12px;
    min-height: 74px;
    padding: 11px 14px 11px 16px;
  }

  .identity-option-avatar {
    width: 38px;
    height: 38px;
  }

  .identity-option-topline strong {
    font-size: 14px;
  }

  .identity-session-actions {
    padding: 12px 14px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity-dialog[open],
  .identity-dialog-close,
  .identity-option,
  .identity-option::before,
  .identity-session-logout {
    animation: none;
    transition: none;
  }
}

/* identity-auth-v65.css */
/* GitHub App identity entry: one clear action, stable hierarchy, no simulated production roles. */

.identity-login-panel {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
  border-top: 1px solid #2d2d2d;
  background:
    linear-gradient(135deg, rgb(255 77 77 / 7%), transparent 54%),
    #111111;
}

.identity-login-copy {
  display: grid;
  gap: 5px;
}

.identity-login-copy strong,
.identity-login-copy p {
  margin: 0;
}

.identity-login-copy strong {
  color: #eeeeee;
  font-family: var(--font-heading, "Instrument Sans", "PingFang SC", system-ui, sans-serif);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.identity-login-copy p {
  color: #8b8b8b;
  font-size: 12px;
  line-height: 1.65;
}

.identity-github-login {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background: #eeeeee;
  color: #111111;
  font: 650 13px/1.4 var(--font-body, Montserrat, "PingFang SC", system-ui, sans-serif);
  text-align: left;
  cursor: pointer;
}

.identity-github-login:hover,
.identity-github-login:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  outline: 0;
}

.identity-github-login:focus-visible {
  box-shadow: inset 0 0 0 2px #111111, 0 0 0 1px #ffffff;
}

.identity-github-login:disabled {
  border-color: #303030;
  background: #171717;
  color: #676767;
  cursor: not-allowed;
}

.identity-github-login .ui-icon {
  width: 18px;
  height: 18px;
}

.identity-github-login .identity-login-arrow {
  width: 15px;
  height: 15px;
  justify-self: end;
}

.identity-profile-card {
  display: grid;
  gap: 12px;
  padding: 16px 20px 14px;
  border: 0;
  border-bottom: 1px solid #2b2b2b;
  background: #111111;
}

.identity-profile-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.identity-profile-heading-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.identity-profile-heading strong,
.identity-profile-heading small,
.identity-profile-summary strong,
.identity-profile-summary span {
  margin: 0;
}

.identity-profile-heading strong {
  color: #ededed;
  font-family: var(--font-heading, "Instrument Sans", "PingFang SC", system-ui, sans-serif);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.identity-profile-heading small {
  overflow: hidden;
  color: #777777;
  font-size: 10px;
  font-weight: 450;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-profile-edit {
  display: inline-grid;
  grid-template-columns: 14px auto;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #343434;
  border-radius: 0;
  background: #151515;
  color: #d6d6d6;
  font-family: var(--font-body, Montserrat, "PingFang SC", system-ui, sans-serif);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.identity-profile-edit .ui-icon {
  width: 14px;
  height: 14px;
}

.identity-profile-edit:hover {
  border-color: #525252;
  background: #1a1a1a;
  color: #ffffff;
}

.identity-profile-edit:focus-visible {
  border-color: #6b6b6b;
  outline: 1px solid #9b9b9b;
  outline-offset: 2px;
}

.identity-profile-summary {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.identity-profile-summary strong {
  overflow: hidden;
  color: #f2f2f2;
  font-family: var(--font-heading, "Instrument Sans", "PingFang SC", system-ui, sans-serif);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-profile-summary span {
  overflow: hidden;
  color: #858585;
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-profile-id {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid #262626;
  color: #707070;
  font-size: 10px;
  line-height: 1.4;
}

.identity-profile-id code {
  overflow: hidden;
  color: #9b9b9b;
  font: 500 10px/1.4 var(--font-mono, "SFMono-Regular", Consolas, monospace);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-profile-id small {
  color: #626262;
  font-size: 10px;
  white-space: nowrap;
}

.identity-profile-form {
  display: grid;
  gap: 10px;
  min-width: 0;
  animation: identity-profile-editor-enter 160ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.identity-profile-form[hidden],
.identity-profile-summary[hidden],
.identity-profile-edit[hidden] {
  display: none;
}

.identity-profile-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.identity-profile-field > span {
  color: #8a8a8a;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.4;
}

.identity-profile-input,
.identity-profile-cancel,
.identity-profile-save {
  min-height: 42px;
  border-radius: 0;
  font-family: var(--font-body, Montserrat, "PingFang SC", system-ui, sans-serif);
  font-size: 12px;
  line-height: 1.4;
}

.identity-profile-input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #393939;
  background: #0d0d0d;
  color: #ededed;
  outline: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.identity-profile-input:hover {
  border-color: #4b4b4b;
}

.identity-profile-input:focus {
  border-color: #8a4444;
  background: #101010;
  box-shadow: inset 3px 0 0 var(--brand);
}

.identity-profile-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.identity-profile-cancel,
.identity-profile-save {
  min-width: 76px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.identity-profile-cancel {
  border: 1px solid #353535;
  background: #151515;
  color: #bcbcbc;
  font-weight: 550;
}

.identity-profile-cancel:hover,
.identity-profile-cancel:focus-visible {
  border-color: #555555;
  background: #1b1b1b;
  color: #ffffff;
  outline: none;
}

.identity-profile-save {
  border: 1px solid #d9d9d9;
  background: #ededed;
  color: #111111;
  font-weight: 650;
}

.identity-profile-save:hover,
.identity-profile-save:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  outline: none;
}

.identity-profile-save:focus-visible {
  box-shadow: inset 0 0 0 2px #111111, 0 0 0 1px #ffffff;
}

.identity-profile-save:disabled {
  border-color: #333333;
  background: #1b1b1b;
  color: #777777;
  cursor: wait;
}

.identity-profile-status {
  color: #9b9b9b;
  font-size: 11px;
  line-height: 1.45;
}

.identity-profile-status:empty {
  display: none;
}

@keyframes identity-profile-editor-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.identity-owner-linker {
  border-bottom: 1px solid #2b2b2b;
  background: #101010;
}

.identity-owner-linker summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 20px;
  color: #d7d7d7;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.identity-owner-linker summary::-webkit-details-marker {
  display: none;
}

.identity-owner-linker summary::after {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: currentColor;
  color: #777777;
  content: "";
  -webkit-mask: url("./assets/icons/untitledui/chevron-down.svg") center / contain no-repeat;
  mask: url("./assets/icons/untitledui/chevron-down.svg") center / contain no-repeat;
  transition: color 160ms ease, transform 160ms cubic-bezier(0.33, 1, 0.68, 1);
}

.identity-owner-linker[open] summary::after {
  transform: rotate(180deg);
}

.identity-owner-linker summary small {
  margin-left: auto;
  color: #787878;
  font-size: 10px;
  font-weight: 500;
}

.identity-owner-linker-body {
  display: grid;
  max-height: 270px;
  overflow: auto;
  border-top: 1px solid #262626;
}

.identity-owner-linker-body > p {
  margin: 0;
  padding: 14px 20px 16px;
  color: #7f7f7f;
  font-size: 11px;
  line-height: 1.55;
}

.identity-owner-link-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.8fr) minmax(0, 1.2fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid #242424;
}

.identity-owner-link-row:last-child {
  border-bottom: 0;
}

.identity-owner-link-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

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

.identity-owner-link-copy strong {
  color: #d6d6d6;
  font-size: 11px;
  font-weight: 600;
}

.identity-owner-link-copy small {
  color: #707070;
  font-size: 10px;
}

.identity-owner-link-row select,
.identity-owner-link-row button {
  min-height: 34px;
  border-radius: 0;
  font: 550 10px/1.3 var(--font-body, Montserrat, "PingFang SC", system-ui, sans-serif);
}

.identity-owner-link-row select {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #333333;
  background: #0d0d0d;
  color: #bdbdbd;
}

.identity-owner-link-row button {
  padding: 7px 10px;
  border: 1px solid #4d3434;
  background: #1b1212;
  color: #e66b6b;
  cursor: pointer;
}

.identity-owner-link-row button:disabled {
  color: #777777;
  cursor: wait;
}

@media (max-width: 720px) {
  .identity-login-panel {
    padding: 16px;
  }

  .identity-profile-card {
    padding: 15px 16px 13px;
  }

  .identity-profile-id {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .identity-profile-id small {
    display: none;
  }

  .identity-owner-link-row {
    grid-template-columns: minmax(80px, 0.9fr) minmax(0, 1.1fr) auto;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity-profile-input,
  .identity-profile-cancel,
  .identity-profile-save {
    transition: none;
  }

  .identity-profile-form {
    animation: none;
  }
}

/* auth-gate-v66.css */
/* Dedicated unauthenticated entry for Hux Studio. */

.auth-gate {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 30%, rgb(255 77 77 / 11%), transparent 34%),
    #090909;
  color: #f4f4f4;
}

.auth-gate-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / 62%) 72%, transparent 100%);
}

.auth-gate-pending {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 100dvh;
  color: #8f8f94;
  font: 500 15px/1.5 var(--font-body, Montserrat, "PingFang SC", system-ui, sans-serif);
}

html.auth-pending .auth-gate-pending {
  display: flex;
}

.auth-gate-content {
  display: none;
  width: min(calc(100% - 64px), 1440px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 34px 0 30px;
}

html.auth-login .auth-gate-content {
  display: flex;
  flex-direction: column;
}

.auth-gate-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
}

.auth-gate-brand-copy {
  display: grid;
  gap: 2px;
}

.auth-gate-brand strong {
  font: 650 18px/1.2 var(--font-heading, "Instrument Sans", "PingFang SC", system-ui, sans-serif);
  letter-spacing: -0.02em;
}

.auth-gate-brand small {
  color: #737378;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.auth-gate-monogram {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #3a3a3d;
  background: #121214;
  color: #ff4d4d;
  font: 700 17px/1 var(--font-heading, "Instrument Sans", system-ui, sans-serif);
}

.auth-gate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, 0.75fr);
  align-items: stretch;
  width: 100%;
  margin: auto 0;
  border: 1px solid #2c2c30;
  background: rgb(13 13 15 / 88%);
  box-shadow: 0 32px 100px rgb(0 0 0 / 38%);
  backdrop-filter: blur(20px);
}

.auth-gate-intro {
  display: flex;
  flex-direction: column;
  min-height: 570px;
  padding: clamp(48px, 5.8vw, 86px);
  border-right: 1px solid #2c2c30;
  background:
    linear-gradient(125deg, rgb(255 77 77 / 12%), transparent 46%),
    linear-gradient(180deg, rgb(255 255 255 / 1.8%), transparent 38%);
}

.auth-gate-intro .section-kicker {
  color: #ff5757;
  font-size: 12px;
  letter-spacing: 0.2em;
}

.auth-gate-intro h1 {
  max-width: 760px;
  margin: 28px 0 24px;
  font: 650 clamp(46px, 5vw, 76px)/1.04 var(--font-heading, "Instrument Sans", "PingFang SC", system-ui, sans-serif);
  letter-spacing: -0.055em;
}

.auth-gate-intro > p {
  max-width: 660px;
  margin: 0;
  color: #a1a1a7;
  font-size: 17px;
  line-height: 1.8;
}

.auth-gate-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: auto 0 0;
  padding: 0;
  border-top: 1px solid #303034;
  list-style: none;
}

.auth-gate-flow li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  min-width: 0;
  padding: 24px 22px 0 0;
}

.auth-gate-flow li + li {
  padding-left: 22px;
  border-left: 1px solid #303034;
}

.auth-gate-flow span {
  grid-row: 1 / 3;
  color: #ff4d4d;
  font: 650 12px/1.4 var(--font-mono, ui-monospace, monospace);
}

.auth-gate-flow strong {
  color: #e9e9eb;
  font-size: 15px;
  line-height: 1.35;
}

.auth-gate-flow small {
  color: #737378;
  font-size: 12px;
  line-height: 1.65;
}

.auth-gate-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 570px;
  padding: clamp(42px, 4.5vw, 68px);
  background: #111113;
}

.auth-gate-card-index {
  margin-bottom: 54px;
  color: #ff4d4d;
  font: 650 12px/1.4 var(--font-mono, ui-monospace, monospace);
  letter-spacing: 0.18em;
}

.auth-gate-card-copy h2,
.auth-gate-card-copy p {
  margin: 0;
}

.auth-gate-card-copy h2 {
  font: 650 30px/1.2 var(--font-heading, "Instrument Sans", "PingFang SC", system-ui, sans-serif);
  letter-spacing: -0.035em;
}

.auth-gate-card-copy p {
  margin-top: 13px;
  color: #8e8e94;
  font-size: 14px;
  line-height: 1.75;
}

.auth-gate-primary,
.auth-gate-secondary {
  width: 100%;
  min-height: 56px;
  border-radius: 0;
  font: 650 15px/1.4 var(--font-body, Montserrat, "PingFang SC", system-ui, sans-serif);
}

.auth-gate-primary {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 15px 18px;
  border: 1px solid #eeeeef;
  background: #eeeeef;
  color: #101012;
  text-align: left;
  overflow: hidden;
}

.auth-gate-primary:hover,
.auth-gate-primary:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
}

.auth-gate-primary:disabled {
  border-color: #303035;
  background: #18181b;
  color: #68686d;
  cursor: wait;
}

.auth-gate-primary .ui-icon {
  width: 20px;
  height: 20px;
}

.auth-gate-arrow {
  justify-self: end;
}

.github-login-indicator {
  position: relative;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  justify-self: end;
}

.github-login-arrow,
.github-login-loader {
  position: absolute;
  inset: 0;
  transition: opacity 140ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.github-login-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  opacity: 0;
  transform: translateY(3px);
}

.github-login-loader > span {
  width: 2px;
  height: 7px;
  background: #ff555b;
  transform-origin: center;
}

.auth-gate-primary.is-connecting:disabled {
  border-color: #7d3236;
  background: linear-gradient(90deg, #201719 0%, #17171a 48%, #211719 100%);
  color: #ffffff;
  cursor: progress;
}

.auth-gate-primary.is-connecting::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ff4d52 42%, #ff7579 54%, transparent 100%);
  content: "";
  transform: translateX(-68%);
  animation: auth-github-progress 900ms cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.auth-gate-primary.is-connecting .ui-icon:first-child {
  background-color: #ff5b60;
}

.is-connecting .github-login-arrow {
  opacity: 0;
  transform: translate(3px, -3px);
}

.is-connecting .github-login-loader {
  opacity: 1;
  transform: translateY(0);
}

.is-connecting .github-login-loader > span {
  animation: auth-github-signal 720ms ease-in-out infinite;
}

.is-connecting .github-login-loader > span:nth-child(2) {
  animation-delay: 90ms;
}

.is-connecting .github-login-loader > span:nth-child(3) {
  animation-delay: 180ms;
}

.identity-github-login.is-connecting {
  cursor: progress;
}

@keyframes auth-github-progress {
  0% { transform: translateX(-68%); }
  100% { transform: translateX(68%); }
}

@keyframes auth-github-signal {
  0%, 100% { opacity: 0.35; transform: scaleY(0.55); }
  50% { opacity: 1; transform: scaleY(1); }
}

.auth-gate-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: #66666c;
  font-size: 12px;
}

.auth-gate-divider::before,
.auth-gate-divider::after {
  height: 1px;
  background: #2d2d31;
  content: "";
}

.auth-gate-secondary {
  border: 1px solid #38383d;
  background: transparent;
  color: #d5d5d8;
}

.auth-gate-secondary:hover,
.auth-gate-secondary:focus-visible {
  border-color: #68686f;
  background: #17171a;
  color: #ffffff;
}

.auth-gate-card-note,
.auth-gate-status {
  margin: 14px 0 0;
  color: #707076;
  font-size: 12px;
  line-height: 1.65;
}

.auth-gate-status:not(:empty) {
  padding: 12px 14px;
  border-left: 2px solid #ff4d4d;
  background: rgb(255 77 77 / 7%);
  color: #c7c7cb;
}

.auth-gate-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  padding-top: 24px;
  color: #66666c;
  font-size: 12px;
}

.auth-gate-footer span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.auth-gate-footer span::before {
  width: 5px;
  height: 5px;
  background: #ff4d4d;
  content: "";
}

@media (max-width: 980px) {
  .auth-gate-content {
    width: min(calc(100% - 32px), 760px);
    padding: 22px 0;
  }

  .auth-gate-layout {
    grid-template-columns: 1fr;
    margin: 30px 0;
  }

  .auth-gate-intro,
  .auth-gate-card {
    min-height: auto;
  }

  .auth-gate-intro {
    padding: 52px 40px 42px;
    border-right: 0;
    border-bottom: 1px solid #2c2c30;
  }

  .auth-gate-flow {
    margin-top: 48px;
  }

  .auth-gate-card {
    padding: 42px 40px 48px;
  }

  .auth-gate-card-index {
    margin-bottom: 28px;
  }
}

@media (max-width: 620px) {
  .auth-gate-content {
    width: min(calc(100% - 20px), 520px);
    padding: 16px 0 22px;
  }

  .auth-gate-layout {
    margin: 22px 0;
  }

  .auth-gate-intro,
  .auth-gate-card {
    padding: 34px 24px;
  }

  .auth-gate-intro h1 {
    margin-top: 22px;
    font-size: clamp(38px, 12vw, 54px);
  }

  .auth-gate-intro > p {
    font-size: 15px;
  }

  .auth-gate-flow {
    grid-template-columns: 1fr;
  }

  .auth-gate-flow li {
    padding: 18px 0;
  }

  .auth-gate-flow li + li {
    padding-left: 0;
    border-top: 1px solid #28282c;
    border-left: 0;
  }

  .auth-gate-footer {
    display: grid;
    gap: 10px;
    padding: 0 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-gate *,
  .auth-gate *::before,
  .auth-gate *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .auth-gate-primary.is-connecting::after {
    right: 18px;
    left: 18px;
    transform: none;
  }

  .is-connecting .github-login-loader > span {
    opacity: 0.85;
    transform: none;
  }
}

/* auth-signal-field-v68.css */
/* Hux login signal field: atmosphere stays inside the welcome region. */

.auth-gate-layout {
  position: relative;
  grid-template-columns: minmax(0, 1.42fr) minmax(400px, 0.72fr);
  background: #0d0d0f;
}

.auth-gate-intro {
  position: relative;
  isolation: isolate;
  min-height: 600px;
  overflow: hidden;
  background: #0b0b0d;
}

.auth-gate-intro::before,
.auth-gate-intro::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.auth-gate-intro::before {
  background:
    radial-gradient(ellipse at 24% 43%, transparent 0%, rgb(8 8 10 / 6%) 48%, rgb(8 8 10 / 24%) 88%),
    linear-gradient(90deg, rgb(8 8 10 / 10%) 0%, rgb(8 8 10 / 16%) 58%, rgb(8 8 10 / 34%) 100%),
    linear-gradient(180deg, rgb(8 8 10 / 6%) 0%, transparent 54%, rgb(8 8 10 / 42%) 100%);
}

.auth-gate-intro::after {
  opacity: 0.08;
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(115deg, #000 0%, rgb(0 0 0 / 78%) 46%, transparent 88%);
}

.auth-gate-signal-field,
.auth-gate-signal-fallback,
.auth-gate-signal-field canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-gate-signal-field {
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-gate-signal-fallback {
  background:
    linear-gradient(124deg, #050506 0 31%, #27070c 40%, #ff343d 52%, #4e0a12 64%, #08080a 76% 100%);
  background-size: 140% 140%;
  animation: auth-gradient-fallback 28s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.auth-gate-signal-field canvas {
  display: block;
  opacity: 1;
  filter: saturate(1.02) contrast(1.01);
}

.auth-gate-signal-field.is-fallback canvas {
  display: none;
}

.auth-gate-intro > :not(.auth-gate-signal-field) {
  position: relative;
  z-index: 2;
}

.auth-gate-intro .section-kicker {
  text-shadow: 0 0 24px rgb(255 77 77 / 24%);
}

.auth-gate-intro h1 {
  max-width: 680px;
  margin-top: 26px;
  text-wrap: balance;
  text-shadow: 0 4px 32px rgb(0 0 0 / 82%), 0 0 80px rgb(0 0 0 / 42%);
}

.auth-gate-intro > p {
  color: #c1c1c6;
  text-shadow: 0 2px 16px rgb(0 0 0 / 88%);
}

.auth-gate-flow {
  border: 1px solid rgb(255 255 255 / 11%);
  background: rgb(8 8 10 / 74%);
  box-shadow: 0 18px 48px rgb(0 0 0 / 18%);
  backdrop-filter: blur(14px);
}

@keyframes auth-gradient-fallback {
  0% { background-position: 2% 8%; }
  100% { background-position: 15% 18%; }
}

.auth-gate-flow li {
  align-content: center;
  min-height: 104px;
  padding: 22px 20px;
}

.auth-gate-flow li + li {
  padding-left: 20px;
  border-left-color: rgb(255 255 255 / 11%);
}

.auth-gate-card {
  min-height: 600px;
  border-left: 0;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 1.6%), transparent 34%),
    #111113;
}

@media (max-width: 980px) {
  .auth-gate-layout {
    grid-template-columns: 1fr;
  }

  .auth-gate-intro {
    min-height: 540px;
  }

  .auth-gate-card {
    min-height: auto;
  }

  .auth-gate-intro::before {
    background:
      linear-gradient(90deg, rgb(8 8 10 / 8%), rgb(8 8 10 / 46%) 100%),
      linear-gradient(180deg, rgb(8 8 10 / 8%) 0%, rgb(8 8 10 / 10%) 58%, rgb(8 8 10 / 76%) 100%);
  }
}

@media (max-width: 620px) {
  .auth-gate-intro {
    min-height: 500px;
  }

  .auth-gate-intro::after {
    background-size: 40px 40px;
  }

  .auth-gate-flow {
    margin-top: 42px;
  }

  .auth-gate-flow li {
    min-height: 0;
    padding: 17px 18px;
  }

  .auth-gate-flow li + li {
    padding-left: 18px;
    border-top-color: rgb(255 255 255 / 11%);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-gate-signal-fallback {
    animation: none;
  }

  .auth-gate-signal-field canvas {
    opacity: 0.88;
  }
}

/* asset-card-uploader-v21.css */
/* Asset card uploader v21: compact identity disclosure inside the existing hover state. */

.skill-uploader {
  display: flex;
  max-height: 0;
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height 220ms cubic-bezier(0.33, 1, 0.68, 1),
    margin-top 220ms cubic-bezier(0.33, 1, 0.68, 1),
    opacity 130ms ease-out,
    visibility 0s linear 220ms;
}

.asset-card:hover .skill-uploader,
.asset-card:focus-visible .skill-uploader,
.asset-card:focus-within .skill-uploader {
  max-height: 28px;
  margin-top: 10px;
  opacity: 1;
  visibility: visible;
  transition:
    max-height 220ms cubic-bezier(0.33, 1, 0.68, 1),
    margin-top 220ms cubic-bezier(0.33, 1, 0.68, 1),
    opacity 150ms ease-out 45ms,
    visibility 0s linear;
}

.skill-uploader-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid #4a3a3a;
  border-radius: 0;
  background: #1b1717;
  color: var(--brand);
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
}

.skill-uploader-copy {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.skill-uploader-copy small,
.skill-uploader-copy strong {
  overflow: hidden;
  margin: 0;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-uploader-copy small {
  flex: 0 0 auto;
  color: #7f7f7f;
  font-size: 10px;
  font-weight: 550;
}

.skill-uploader-copy strong {
  color: #cfcfcf;
  font-size: 12px;
  font-weight: 620;
}

@media (max-width: 720px) {
  .asset-card:hover .skill-uploader,
  .asset-card:focus-visible .skill-uploader,
  .asset-card:focus-within .skill-uploader {
    max-height: 26px;
    margin-top: 8px;
  }

  .skill-uploader-avatar {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-uploader,
  .asset-card:hover .skill-uploader,
  .asset-card:focus-visible .skill-uploader,
  .asset-card:focus-within .skill-uploader {
    transition: none;
  }
}

/* asset-intake-v22.css */
/* Asset intake v22: type-first workflow drafting for manual and MCP-assisted input. */

.portal-dialog[data-mode="intake"] {
  width: min(1160px, calc(100vw - 48px));
  max-height: min(900px, calc(100vh - 32px));
  border-color: #393939;
  border-radius: 0;
  background: #0d0d0d;
  color-scheme: dark;
}

.portal-dialog[data-mode="intake"] .portal-dialog-shell {
  max-height: min(900px, calc(100vh - 32px));
}

.portal-dialog[data-mode="intake"] .portal-dialog-header {
  padding: 20px 28px 18px;
  border-bottom-color: #333333;
  background: rgb(13 13 13 / 96%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.portal-dialog[data-mode="intake"] .portal-dialog-header h2 {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.portal-dialog[data-mode="intake"] .portal-dialog-body {
  padding: 0 28px 28px;
}

.asset-intake {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.intake-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  min-width: 0;
  border: 1px solid #333333;
  border-top: 0;
  background:
    linear-gradient(112deg, rgb(255 77 77 / 11%), transparent 48%),
    #111111;
}

.intake-overview > div {
  padding: 28px;
}

.intake-eyebrow,
.intake-section-heading > div > span,
.intake-main-heading > div > span,
.intake-file-summary > span,
.intake-mcp-imports > span {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.intake-overview h3 {
  max-width: 670px;
  margin: 9px 0 12px;
  color: #f2f2f2;
  font-family: var(--font-heading);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.intake-overview p,
.intake-section-heading p,
.intake-requirement-rail > p,
.intake-main-heading p,
.intake-form-section header p,
.intake-mcp-intro p,
.intake-mcp-flow p,
.intake-coming-soon p,
.intake-review p {
  margin: 0;
  color: #8d8d8d;
  font-size: 12px;
  line-height: 1.7;
}

.intake-overview > div > p {
  max-width: 700px;
  font-size: 13px;
}

.intake-stage-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-left: 1px solid #2f2f2f;
  list-style: none;
}

.intake-stage-line li {
  position: relative;
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding: 22px 18px;
  border-right: 1px solid #292929;
  background: rgb(0 0 0 / 12%);
}

.intake-stage-line li:last-child {
  border-right: 0;
}

.intake-stage-line li::before {
  position: absolute;
  top: -1px;
  right: 100%;
  left: 0;
  height: 2px;
  background: var(--brand);
  content: "";
}

.intake-stage-line li.active::before {
  right: 0;
}

.intake-stage-line span {
  color: #666666;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 750;
}

.intake-stage-line strong {
  color: #979797;
  font-size: 12px;
  font-weight: 600;
}

.intake-stage-line li.active span {
  color: var(--brand);
}

.intake-stage-line li.active strong {
  color: #e8e8e8;
}

.intake-type-section {
  display: grid;
  gap: 16px;
}

.intake-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

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

.intake-section-heading h3,
.intake-requirement-rail h3,
.intake-main-heading h3,
.intake-coming-soon h3 {
  margin: 0;
  color: #eeeeee;
  font-family: var(--font-heading);
  font-weight: 620;
  letter-spacing: -0.018em;
}

.intake-section-heading h3 {
  font-size: 20px;
}

.intake-section-heading > p {
  max-width: 390px;
  padding-left: 18px;
  border-left: 1px solid #333333;
}

.intake-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #333333;
}

.intake-type-option {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 12px;
  min-width: 0;
  min-height: 130px;
  padding: 18px;
  border: 0;
  border-right: 1px solid #2d2d2d;
  border-radius: 0;
  background: #111111;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.intake-type-option:last-child {
  border-right: 0;
}

.intake-type-option::before {
  position: absolute;
  top: -1px;
  right: 100%;
  left: 0;
  height: 2px;
  background: var(--brand);
  content: "";
  transition: right 180ms ease;
}

.intake-type-option:hover,
.intake-type-option:focus-visible {
  background: #161616;
}

.intake-type-option:focus-visible {
  z-index: 1;
  outline: 1px solid #6b6b6b;
  outline-offset: -4px;
}

.intake-type-option.active {
  background:
    linear-gradient(130deg, rgb(255 77 77 / 9%), transparent 62%),
    #151313;
}

.intake-type-option.active::before {
  right: 0;
}

.intake-type-code {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #3d3d3d;
  background: #181818;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.intake-type-option.active .intake-type-code {
  border-color: #673737;
  background: #211717;
}

.intake-type-copy {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.intake-type-copy strong {
  color: #ededed;
  font-size: 14px;
  font-weight: 650;
}

.intake-type-copy small {
  color: #777777;
  font-size: 11px;
  line-height: 1.5;
}

.intake-type-state {
  grid-column: 1 / -1;
  justify-self: start;
  color: #666666;
  font-size: 10px;
  font-weight: 650;
}

.intake-type-state.ready {
  color: var(--brand);
}

.intake-workspace {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-width: 0;
  border: 1px solid #363636;
  background: #101010;
}

.intake-requirement-rail {
  min-width: 0;
  padding: 24px 20px;
  border-right: 1px solid #303030;
  background: #0c0c0c;
}

.intake-requirement-rail h3 {
  margin-top: 8px;
  font-size: 19px;
}

.intake-requirement-rail > p {
  margin-top: 9px;
}

.intake-requirement-rail ul {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid #2c2c2c;
  list-style: none;
}

.intake-requirement-rail li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid #272727;
}

.intake-requirement-rail li span {
  color: var(--brand);
  font-size: 9px;
  font-weight: 750;
}

.intake-requirement-rail li.recommended span {
  color: #7f7f7f;
}

.intake-requirement-rail li strong {
  color: #b8b8b8;
  font-size: 11px;
  font-weight: 590;
  line-height: 1.45;
}

.intake-prototype-note {
  margin-top: 20px;
  padding: 14px;
  border-left: 2px solid #555555;
  background: #141414;
}

.intake-prototype-note strong {
  color: #bdbdbd;
  font-size: 11px;
  font-weight: 650;
}

.intake-prototype-note p {
  margin: 5px 0 0;
  color: #707070;
  font-size: 10px;
  line-height: 1.6;
}

.intake-main {
  min-width: 0;
}

.intake-main-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 18px 22px;
  border-bottom: 1px solid #303030;
}

.intake-main-heading > div:first-child {
  display: grid;
  gap: 5px;
}

.intake-main-heading h3 {
  font-size: 19px;
}

.intake-method-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(360px, 100%);
  border: 1px solid #3a3a3a;
}

.intake-method-switch button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid #333333;
  border-radius: 0;
  background: #121212;
  color: #777777;
  font-size: 11px;
  font-weight: 620;
  cursor: pointer;
}

.intake-method-switch button:last-child {
  border-right: 0;
}

.intake-method-switch button:hover,
.intake-method-switch button:focus-visible {
  color: #d7d7d7;
}

.intake-method-switch button:focus-visible {
  outline: 1px solid #666666;
  outline-offset: -3px;
}

.intake-method-switch button.active {
  background: #eeeeee;
  color: #101010;
}

.intake-method-panel {
  min-width: 0;
}

.intake-form-section {
  padding: 24px 22px 26px;
  border-bottom: 1px solid #303030;
}

.intake-form-section > header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.intake-form-section > header > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #483333;
  background: #1b1414;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
}

.intake-form-section h4,
.intake-mcp-intro h4 {
  margin: 0 0 4px;
  color: #e7e7e7;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 620;
}

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

.intake-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.intake-field-wide {
  grid-column: 1 / -1;
}

.intake-field > span,
.intake-materials > span,
.intake-visibility legend {
  color: #a8a8a8;
  font-size: 11px;
  font-weight: 620;
}

.intake-field > span b {
  margin-left: 5px;
  color: var(--brand);
  font-size: 9px;
  font-weight: 700;
}

.intake-field input,
.intake-field select,
.intake-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #353535;
  border-radius: 0;
  background: #0c0c0c;
  color: #dedede;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  outline: 0;
}

.intake-field input,
.intake-field select {
  min-height: 42px;
  padding: 0 12px;
}

.intake-field textarea {
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
}

.intake-field textarea.intake-textarea-tall {
  min-height: 128px;
}

.intake-field input::placeholder,
.intake-field textarea::placeholder {
  color: #555555;
}

.intake-field input:focus,
.intake-field select:focus,
.intake-field textarea:focus {
  border-color: #707070;
  box-shadow: 0 0 0 1px #707070;
}

.intake-field.is-invalid input,
.intake-field.is-invalid textarea {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgb(255 77 77 / 35%);
}

.intake-materials {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.intake-material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #313131;
}

.intake-material-grid label {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border-right: 1px solid #292929;
  border-bottom: 1px solid #292929;
  background: #0e0e0e;
  color: #8e8e8e;
  font-size: 10px;
  cursor: pointer;
}

.intake-material-grid label:nth-child(3n) {
  border-right: 0;
}

.intake-material-grid label:nth-child(n + 4) {
  border-bottom: 0;
}

.intake-material-grid input,
.intake-visibility input {
  accent-color: var(--brand);
}

.intake-upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  border: 1px solid #343434;
}

.intake-dropzone {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 3px 12px;
  min-height: 126px;
  align-content: center;
  padding: 20px;
  border-right: 1px dashed #3b3b3b;
  background: #0d0d0d;
  cursor: pointer;
}

.intake-dropzone:hover,
.intake-dropzone:focus-within {
  background: #131313;
}

.intake-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.intake-dropzone-mark {
  display: grid;
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #4b3737;
  background: #1c1515;
  color: var(--brand);
  font-size: 19px;
  font-weight: 400;
}

.intake-dropzone strong {
  color: #d7d7d7;
  font-size: 12px;
  font-weight: 650;
}

.intake-dropzone small {
  color: #737373;
  font-size: 10px;
  line-height: 1.55;
}

.intake-file-summary {
  min-width: 0;
  padding: 18px;
  background: #101010;
}

.intake-file-summary ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.intake-file-summary li {
  overflow: hidden;
  color: #888888;
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intake-visibility {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 1px solid #343434;
}

.intake-visibility legend {
  margin-left: 12px;
  padding: 0 6px;
}

.intake-visibility label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  min-height: 74px;
  align-items: center;
  padding: 12px;
  border-right: 1px solid #292929;
  cursor: pointer;
}

.intake-visibility label:last-child {
  border-right: 0;
}

.intake-visibility label > span {
  display: grid;
  gap: 3px;
}

.intake-visibility strong {
  color: #bfbfbf;
  font-size: 11px;
  font-weight: 620;
}

.intake-visibility small {
  color: #686868;
  font-size: 9px;
  line-height: 1.45;
}

.intake-mcp-panel {
  padding: 28px 22px;
}

.intake-mcp-intro {
  max-width: 720px;
}

.intake-mcp-intro h4 {
  margin-top: 8px;
  font-size: 23px;
}

.intake-mcp-intro p {
  font-size: 13px;
}

.intake-mcp-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 0;
  padding: 0;
  border: 1px solid #343434;
  list-style: none;
}

.intake-mcp-flow li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  min-height: 126px;
  align-content: start;
  padding: 18px;
  border-right: 1px solid #2d2d2d;
  background: #111111;
}

.intake-mcp-flow li:last-child {
  border-right: 0;
}

.intake-mcp-flow li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #483333;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
}

.intake-mcp-flow strong,
.intake-mcp-imports strong {
  display: block;
  margin-bottom: 5px;
  color: #cfcfcf;
  font-size: 11px;
  font-weight: 620;
}

.intake-mcp-imports {
  display: grid;
  grid-template-columns: 126px repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid #343434;
}

.intake-mcp-imports > span,
.intake-mcp-imports > div {
  display: grid;
  align-content: center;
  min-height: 88px;
  padding: 14px;
  border-right: 1px solid #2b2b2b;
}

.intake-mcp-imports > div:last-child {
  border-right: 0;
}

.intake-mcp-imports small {
  color: #707070;
  font-size: 9px;
  line-height: 1.5;
}

.intake-mcp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.intake-coming-soon {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 170px;
  padding: 26px;
  border: 1px solid #343434;
  background:
    linear-gradient(110deg, rgb(255 77 77 / 7%), transparent 50%),
    #111111;
}

.intake-coming-soon > .intake-type-code {
  width: 48px;
  height: 48px;
}

.intake-coming-soon h3 {
  margin: 6px 0 6px;
  font-size: 20px;
}

.intake-review {
  padding: 16px 18px;
  border: 1px solid #4a4a4a;
  background: #141414;
}

.intake-review.has-errors {
  border-color: #713c3c;
  background: #1a1212;
}

.intake-review.ready {
  border-color: #3f5b49;
  background: #101813;
}

.intake-review strong {
  display: block;
  margin-bottom: 4px;
  color: #dedede;
  font-size: 12px;
  font-weight: 650;
}

.intake-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 -28px -28px;
  padding: 16px 28px;
  border-top: 1px solid #383838;
  background: rgb(13 13 13 / 96%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.intake-actions > p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.intake-actions > p strong {
  color: #bdbdbd;
  font-size: 10px;
  font-weight: 650;
}

.intake-actions > p span {
  color: #666666;
  font-size: 9px;
}

.intake-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.intake-actions .button,
.intake-mcp-actions .button,
.intake-coming-soon .button {
  min-height: 40px;
  padding-inline: 15px;
  font-size: 11px;
}

.asset-intake [hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .portal-dialog[data-mode="intake"] {
    width: calc(100vw - 28px);
  }

  .intake-overview {
    grid-template-columns: 1fr;
  }

  .intake-stage-line {
    border-top: 1px solid #2f2f2f;
    border-left: 0;
  }

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

  .intake-type-option:nth-child(2) {
    border-right: 0;
  }

  .intake-type-option:nth-child(-n + 2) {
    border-bottom: 1px solid #2d2d2d;
  }

  .intake-workspace {
    grid-template-columns: 1fr;
  }

  .intake-requirement-rail {
    border-right: 0;
    border-bottom: 1px solid #303030;
  }

  .intake-requirement-rail ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intake-requirement-rail li:nth-child(odd) {
    padding-right: 12px;
    border-right: 1px solid #272727;
  }

  .intake-prototype-note {
    max-width: 560px;
  }

  .intake-mcp-imports {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intake-mcp-imports > span {
    grid-column: 1 / -1;
  }

  .intake-mcp-imports > span,
  .intake-mcp-imports > div {
    border-right: 1px solid #2b2b2b;
    border-bottom: 1px solid #2b2b2b;
  }
}

@media (max-width: 720px) {
  .portal-dialog[data-mode="intake"] {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
  }

  .portal-dialog[data-mode="intake"] .portal-dialog-shell {
    max-height: calc(100vh - 16px);
  }

  .portal-dialog[data-mode="intake"] .portal-dialog-header {
    padding: 15px 14px;
  }

  .portal-dialog[data-mode="intake"] .portal-dialog-header h2 {
    font-size: 20px;
  }

  .portal-dialog[data-mode="intake"] .portal-dialog-body {
    padding: 0 14px 18px;
  }

  .asset-intake {
    gap: 22px;
  }

  .intake-overview > div {
    padding: 22px 18px;
  }

  .intake-overview h3 {
    font-size: 25px;
  }

  .intake-stage-line li {
    min-height: 76px;
    padding: 14px 10px;
  }

  .intake-stage-line strong {
    font-size: 10px;
  }

  .intake-section-heading {
    display: grid;
    gap: 10px;
  }

  .intake-section-heading > p {
    padding-left: 0;
    border-left: 0;
  }

  .intake-type-option {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 136px;
    padding: 14px;
  }

  .intake-type-code {
    width: 34px;
    height: 34px;
  }

  .intake-type-copy strong {
    font-size: 13px;
  }

  .intake-requirement-rail {
    padding: 20px 16px;
  }

  .intake-requirement-rail ul {
    grid-template-columns: 1fr;
  }

  .intake-requirement-rail li:nth-child(odd) {
    padding-right: 0;
    border-right: 0;
  }

  .intake-main-heading {
    display: grid;
    min-height: 0;
    padding: 18px 16px;
  }

  .intake-method-switch {
    width: 100%;
  }

  .intake-form-section {
    padding: 22px 16px;
  }

  .intake-field-grid {
    grid-template-columns: 1fr;
  }

  .intake-field-wide {
    grid-column: auto;
  }

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

  .intake-material-grid label:nth-child(3n) {
    border-right: 1px solid #292929;
  }

  .intake-material-grid label:nth-child(even) {
    border-right: 0;
  }

  .intake-material-grid label:nth-child(n + 4) {
    border-bottom: 1px solid #292929;
  }

  .intake-material-grid label:nth-child(n + 5) {
    border-bottom: 0;
  }

  .intake-upload-layout {
    grid-template-columns: 1fr;
  }

  .intake-dropzone {
    border-right: 0;
    border-bottom: 1px dashed #3b3b3b;
  }

  .intake-visibility {
    grid-template-columns: 1fr;
  }

  .intake-visibility label {
    min-height: 62px;
    border-right: 0;
    border-bottom: 1px solid #292929;
  }

  .intake-visibility label:last-child {
    border-bottom: 0;
  }

  .intake-mcp-panel {
    padding: 22px 16px;
  }

  .intake-mcp-flow {
    grid-template-columns: 1fr;
  }

  .intake-mcp-flow li {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #2d2d2d;
  }

  .intake-mcp-flow li:last-child {
    border-bottom: 0;
  }

  .intake-mcp-imports {
    grid-template-columns: 1fr;
  }

  .intake-mcp-imports > span {
    grid-column: auto;
  }

  .intake-coming-soon {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 20px 16px;
  }

  .intake-coming-soon > .button {
    grid-column: 1 / -1;
  }

  .intake-actions {
    bottom: 0;
    display: grid;
    margin: 0 -14px -18px;
    padding: 14px;
  }

  .intake-actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .intake-actions [data-review-intake] {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intake-type-option,
  .intake-type-option::before {
    transition: none;
  }
}

/* asset-intake-typography-v23.css */
/* Asset intake typography v23: enforce the global Hux type scale inside the workflow form. */

.portal-dialog[data-mode="intake"] {
  font-size: var(--type-content);
  line-height: var(--leading-content);
}

.portal-dialog[data-mode="intake"] .portal-dialog-header h2 {
  font-size: 28px;
  line-height: 1.2;
}

.intake-eyebrow,
.intake-section-heading > div > span,
.intake-main-heading > div > span,
.intake-file-summary > span,
.intake-mcp-imports > span {
  font-size: var(--type-small);
  line-height: 1.4;
}

.intake-overview h3 {
  font-size: clamp(34px, 3.2vw, 46px);
  line-height: 1.12;
}

.intake-overview p,
.intake-section-heading p,
.intake-requirement-rail > p,
.intake-form-section header p,
.intake-mcp-flow p,
.intake-coming-soon p,
.intake-review p {
  font-size: var(--type-ui);
  line-height: var(--leading-content);
}

.intake-overview > div > p,
.intake-mcp-intro p {
  font-size: var(--type-content);
  line-height: var(--leading-content);
}

.intake-stage-line span {
  font-size: var(--type-caption);
}

.intake-stage-line strong {
  font-size: var(--type-small);
  line-height: 1.45;
}

.intake-section-heading h3 {
  font-size: 24px;
  line-height: 1.3;
}

.intake-type-code {
  font-size: var(--type-caption);
}

.intake-type-copy strong {
  font-size: 16px;
  line-height: 1.35;
}

.intake-type-copy small {
  font-size: 13px;
  line-height: 1.6;
}

.intake-type-state {
  font-size: var(--type-small);
  line-height: 1.4;
}

.intake-requirement-rail h3,
.intake-main-heading h3,
.intake-coming-soon h3 {
  font-size: 22px;
  line-height: 1.3;
}

.intake-requirement-rail li span {
  font-size: var(--type-caption);
}

.intake-requirement-rail li strong {
  font-size: 13px;
  line-height: 1.55;
}

.intake-prototype-note strong {
  font-size: var(--type-small);
}

.intake-prototype-note p {
  font-size: var(--type-small);
  line-height: 1.65;
}

.intake-method-switch button {
  font-size: var(--type-ui);
  line-height: 1.4;
}

.intake-form-section h4 {
  font-size: var(--type-reading);
  line-height: 1.35;
}

.intake-form-section > header > span,
.intake-mcp-flow li > span {
  font-size: var(--type-caption);
}

.intake-field > span,
.intake-materials > span,
.intake-visibility legend {
  font-size: var(--type-ui);
  line-height: 1.45;
}

.intake-field > span b {
  font-size: var(--type-caption);
}

.intake-field input,
.intake-field select,
.intake-field textarea {
  font-size: var(--type-content);
  line-height: 1.65;
}

.intake-material-grid label {
  font-size: 13px;
  line-height: 1.45;
}

.intake-dropzone strong {
  font-size: var(--type-ui);
  line-height: 1.45;
}

.intake-dropzone small,
.intake-file-summary li {
  font-size: var(--type-small);
  line-height: 1.6;
}

.intake-visibility strong {
  font-size: var(--type-ui);
  line-height: 1.4;
}

.intake-visibility small {
  font-size: var(--type-small);
  line-height: 1.55;
}

.intake-mcp-intro h4 {
  font-size: 28px;
  line-height: 1.22;
}

.intake-mcp-flow strong,
.intake-mcp-imports strong {
  font-size: var(--type-ui);
  line-height: 1.45;
}

.intake-mcp-imports small {
  font-size: var(--type-small);
  line-height: 1.6;
}

.intake-review strong {
  font-size: var(--type-ui);
  line-height: 1.4;
}

.intake-actions > p strong {
  font-size: var(--type-small);
  line-height: 1.4;
}

.intake-actions > p span {
  font-size: var(--type-caption);
  line-height: 1.45;
}

.intake-actions .button,
.intake-mcp-actions .button,
.intake-coming-soon .button {
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .portal-dialog[data-mode="intake"] .portal-dialog-header h2 {
    font-size: 24px;
  }

  .intake-overview h3 {
    font-size: 32px;
  }

  .intake-stage-line strong {
    font-size: var(--type-caption);
  }

  .intake-section-heading h3 {
    font-size: 22px;
  }

  .intake-type-copy strong {
    font-size: var(--type-content);
  }

  .intake-type-copy small {
    font-size: var(--type-small);
  }

  .intake-form-section h4 {
    font-size: 17px;
  }

  .intake-field > span,
  .intake-materials > span,
  .intake-visibility legend,
  .intake-method-switch button {
    font-size: 13px;
  }
}

/* asset-creation-flow-v24.css */
/* Asset creation flow v24: MCP-first intake and document-style local workflow drafts. */

.portal-dialog[data-mode="intake"] {
  width: min(1040px, calc(100vw - 48px));
  max-height: min(880px, calc(100vh - 32px));
}

.portal-dialog[data-mode="intake"] .portal-dialog-shell {
  max-height: min(880px, calc(100vh - 32px));
}

.portal-dialog[data-mode="intake"] .portal-dialog-body {
  padding: 24px 28px 28px;
}

.asset-intake-simple {
  gap: 22px;
}

.asset-intake-simple .intake-type-section {
  gap: 14px;
}

.asset-intake-simple .intake-section-heading {
  align-items: end;
}

.asset-intake-simple .intake-type-option {
  min-height: 112px;
  padding: 16px;
}

.asset-intake-simple .intake-type-copy strong {
  font-size: 16px;
}

.asset-intake-simple .intake-type-copy small {
  font-size: 13px;
}

.intake-workspace-simple {
  display: block;
  background: #101010;
}

.intake-create-heading {
  min-height: 104px;
  padding: 20px 22px;
}

.intake-create-heading > div:first-child {
  max-width: 520px;
}

.intake-create-heading p {
  margin: 2px 0 0;
  color: #818181;
  font-size: 14px;
  line-height: 1.65;
}

.intake-create-heading .intake-method-switch {
  width: min(390px, 100%);
}

.intake-create-heading .intake-method-switch button {
  min-height: 44px;
  font-size: 14px;
}

.intake-mcp-panel-simple {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 20px 30px;
  padding: 30px;
}

.intake-mcp-lead {
  align-self: center;
  min-width: 0;
}

.intake-mcp-lead h4,
.intake-manual-intro h4 {
  margin: 8px 0 10px;
  color: #eeeeee;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.intake-mcp-lead p,
.intake-manual-intro p,
.intake-create-result p {
  margin: 0;
  color: #909090;
  font-size: 15px;
  line-height: var(--leading-content);
}

.intake-mcp-source-grid {
  display: grid;
  border: 1px solid #353535;
}

.intake-mcp-source-grid > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 2px 12px;
  min-height: 84px;
  align-content: center;
  padding: 14px 16px;
  border-bottom: 1px solid #2d2d2d;
  background: #131313;
}

.intake-mcp-source-grid > div:last-child {
  border-bottom: 0;
}

.intake-mcp-source-grid span {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #513333;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.intake-mcp-source-grid strong {
  color: #d6d6d6;
  font-size: 14px;
  line-height: 1.4;
}

.intake-mcp-source-grid small {
  color: #737373;
  font-size: 12px;
  line-height: 1.55;
}

.intake-mcp-command {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(190px, 0.65fr) minmax(0, 1.35fr);
  gap: 14px 28px;
  align-items: start;
  padding: 20px;
  border: 1px solid #3a3a3a;
  border-left: 2px solid var(--brand);
  background: #0c0c0c;
}

.intake-mcp-command > div {
  display: grid;
  gap: 6px;
}

.intake-mcp-command > div span {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.intake-mcp-command > div strong {
  color: #d8d8d8;
  font-size: 14px;
  line-height: 1.5;
}

.intake-mcp-command p {
  margin: 0;
  color: #b6b6b6;
  font-size: 14px;
  line-height: 1.75;
}

.intake-mcp-command > small {
  grid-column: 2;
  color: #686868;
  font-size: 12px;
  line-height: 1.55;
}

.intake-manual-compact {
  padding: 30px;
}

.intake-manual-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid #303030;
}

.intake-manual-intro h4 {
  margin-bottom: 0;
}

.intake-manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 0;
}

.intake-manual-grid .intake-field > span {
  color: #bcbcbc;
  font-size: 14px;
}

.intake-manual-grid .intake-field > span b,
.intake-manual-grid .intake-field > span em {
  margin-left: 5px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.intake-manual-grid .intake-field > span b {
  color: var(--brand);
}

.intake-manual-grid .intake-field > span em {
  color: #666666;
}

.intake-manual-grid .intake-field input,
.intake-manual-grid .intake-field select {
  min-height: 48px;
  padding-inline: 14px;
  font-size: 15px;
}

.intake-platform-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.intake-platform-field legend {
  margin-bottom: 9px;
  color: #bcbcbc;
  font-size: 14px;
  font-weight: 600;
}

.intake-platform-field legend em {
  margin-left: 5px;
  color: #666666;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.intake-platform-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intake-platform-options label {
  position: relative;
  cursor: pointer;
}

.intake-platform-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.intake-platform-options span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #383838;
  background: #111111;
  color: #929292;
  font-size: 12px;
  font-weight: 650;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.intake-platform-options label:hover span,
.intake-platform-options input:focus-visible + span {
  border-color: #5b5b5b;
  color: #d5d5d5;
}

.intake-platform-options input:checked + span {
  border-color: #743c3c;
  background: rgb(255 77 77 / 10%);
  color: #ff7474;
}

.intake-create-result {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid #353535;
  background: linear-gradient(110deg, rgb(255 77 77 / 7%), transparent 45%), #121212;
}

.intake-create-result .intake-type-code {
  width: 46px;
  height: 46px;
}

.intake-create-result strong {
  color: #d7d7d7;
  font-size: 14px;
}

.intake-create-result p {
  margin-top: 3px;
  font-size: 13px;
}

.intake-actions-simple {
  margin-top: 0;
}

.intake-actions-simple > p strong {
  font-size: 12px;
}

.intake-actions-simple > p span {
  font-size: 11px;
}

.intake-actions-simple .button {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 13px;
}

.intake-actions-simple [data-intake-primary] {
  min-width: 190px;
}

/* Local document editor */
.draft-editor-frame {
  background: #090909;
}

.draft-editor-bar {
  grid-template-columns: minmax(180px, 1fr) auto minmax(360px, 1fr);
}

.draft-editor-location {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}

.draft-editor-location span,
.draft-editor-location strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #303030;
  color: #8b8b8b;
  font-size: 12px;
}

.draft-editor-location strong {
  border-color: #4d3333;
  background: #1b1212;
  color: #efb3b3;
}

.draft-editor-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 8px;
}

.draft-editor-actions .button {
  min-height: 38px;
  font-size: 13px;
}

.draft-save-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 4px;
  color: #777777;
  font-size: 12px;
  white-space: nowrap;
}

.draft-save-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6f8f72;
}

.draft-save-status.saving i {
  background: var(--brand);
}

.draft-editor-scroll {
  background:
    linear-gradient(90deg, transparent 49.95%, rgb(255 255 255 / 2.5%) 50%, transparent 50.05%),
    #090909;
}

.draft-editor-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 820px);
  justify-content: center;
  gap: 34px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 88px;
}

.draft-editor-outline {
  position: sticky;
  top: 28px;
  display: grid;
  align-self: start;
  gap: 7px;
  padding: 20px 0;
  border-top: 1px solid #333333;
  border-bottom: 1px solid #333333;
}

.draft-editor-outline > span {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.draft-editor-outline > strong {
  margin-bottom: 10px;
  color: #e3e3e3;
  font-family: var(--font-heading);
  font-size: 18px;
}

.draft-editor-outline nav {
  display: grid;
}

.draft-editor-outline nav button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 44px;
  align-items: center;
  padding: 0 8px 0 0;
  border: 0;
  border-top: 1px solid #242424;
  background: transparent;
  color: #8e8e8e;
  font-size: 13px;
  text-align: left;
}

.draft-editor-outline nav button:hover,
.draft-editor-outline nav button:focus-visible {
  color: #eeeeee;
}

.draft-editor-outline nav button span {
  color: #666666;
  font-family: var(--font-mono);
  font-size: 10px;
}

.draft-editor-owner {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid #2d2d2d;
}

.draft-editor-owner > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #4f3434;
  color: var(--brand);
  font-weight: 700;
}

.draft-editor-owner div {
  display: grid;
  gap: 2px;
}

.draft-editor-owner small {
  color: #666666;
  font-size: 11px;
}

.draft-editor-owner strong {
  color: #cfcfcf;
  font-size: 13px;
}

.draft-editor-document {
  min-width: 0;
  padding: 60px 72px 54px;
  border: 1px solid #363636;
  background: #131313;
  box-shadow: 0 28px 80px rgb(0 0 0 / 35%);
}

.draft-document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.draft-document-meta span {
  padding: 6px 9px;
  border: 1px solid #3a3a3a;
  color: #8b8b8b;
  font-size: 11px;
  line-height: 1;
}

.draft-document-meta span:last-child {
  border-color: #5a3333;
  color: #ef8585;
}

.draft-document-title,
.draft-document-summary {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f0f0f0;
  outline: 0;
}

.draft-document-title {
  min-height: 1.12em;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.12;
  overflow: hidden;
  resize: none;
  field-sizing: content;
}

.draft-document-summary {
  min-height: 64px;
  margin-top: 18px;
  padding: 0;
  color: #9d9d9d;
  font-size: 18px;
  line-height: 1.8;
  resize: none;
}

.draft-document-title::placeholder,
.draft-document-summary::placeholder {
  color: #535353;
}

.draft-document-title:focus,
.draft-document-summary:focus {
  box-shadow: none;
}

.draft-document-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 26px 0 0;
  padding: 20px 0;
  border-top: 1px solid #303030;
  border-bottom: 1px solid #303030;
}

.draft-document-facts div {
  display: grid;
  gap: 5px;
}

.draft-document-facts dt {
  color: #656565;
  font-size: 11px;
}

.draft-document-facts dd {
  margin: 0;
  color: #bdbdbd;
  font-size: 13px;
}

.draft-document-body {
  display: grid;
  gap: 0;
  margin-top: 20px;
}

.draft-document-section {
  scroll-margin-top: 28px;
  padding: 34px 0 38px;
  border-bottom: 1px solid #303030;
}

.draft-document-section header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.draft-document-section header span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #4f3434;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.draft-document-section h2 {
  margin: 0;
  color: #ececec;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.draft-document-field {
  min-height: 116px;
  padding: 12px 14px;
  border: 1px solid transparent;
  color: #d1d1d1;
  font-size: 18px;
  line-height: var(--leading-reading);
  outline: 0;
  white-space: pre-wrap;
}

.draft-document-field:empty::before {
  color: #5f5f5f;
  content: attr(data-placeholder);
  pointer-events: none;
}

.draft-document-field:hover {
  background: #161616;
}

.draft-document-field:focus {
  border-color: #4a4a4a;
  background: #101010;
}

.draft-editor-frame[data-editor-mode="preview"] .draft-document-field {
  min-height: 0;
  padding-inline: 0;
}

.draft-editor-frame[data-editor-mode="preview"] .draft-document-field:hover {
  background: transparent;
}

.draft-document-footer {
  display: grid;
  gap: 8px;
  padding-top: 34px;
}

.draft-document-footer span {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.draft-document-footer p {
  margin: 0;
  color: #656565;
  font-size: 12px;
  line-height: 1.7;
}

.local-draft-card .skill-card-visual::after {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  padding: 6px 8px;
  border: 1px solid rgb(255 77 77 / 45%);
  background: rgb(17 12 12 / 90%);
  color: var(--brand);
  content: "未发布草稿";
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 1020px) {
  .intake-mcp-panel-simple,
  .intake-manual-intro {
    grid-template-columns: 1fr;
  }

  .intake-mcp-command {
    grid-template-columns: 1fr;
  }

  .intake-mcp-command > small {
    grid-column: 1;
  }

  .draft-editor-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .draft-editor-location {
    display: none;
  }

  .draft-editor-layout {
    grid-template-columns: 1fr;
    width: min(860px, calc(100% - 40px));
  }

  .draft-editor-outline {
    position: static;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .draft-editor-outline > span,
  .draft-editor-outline > strong,
  .draft-editor-owner {
    display: none;
  }

  .draft-editor-outline nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid #303030;
  }

  .draft-editor-outline nav button {
    grid-template-columns: 24px minmax(0, 1fr);
    border-top: 0;
    border-right: 1px solid #2b2b2b;
    padding-left: 8px;
  }

  .draft-editor-outline nav button:last-child {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .portal-dialog[data-mode="intake"] {
    width: calc(100vw - 28px);
  }

  .portal-dialog[data-mode="intake"] .portal-dialog-body {
    padding: 18px 14px;
  }

  .asset-intake-simple .intake-section-heading {
    align-items: start;
  }

  .asset-intake-simple .intake-section-heading > p {
    font-size: 13px;
  }

  .asset-intake-simple .intake-type-option {
    min-height: 126px;
  }

  .intake-create-heading {
    padding: 18px 16px;
  }

  .intake-create-heading p {
    font-size: 13px;
  }

  .intake-create-heading .intake-method-switch button {
    font-size: 13px;
  }

  .intake-mcp-panel-simple,
  .intake-manual-compact {
    padding: 22px 16px;
  }

  .intake-mcp-lead h4,
  .intake-manual-intro h4 {
    font-size: 24px;
  }

  .intake-mcp-lead p,
  .intake-manual-intro p {
    font-size: 14px;
  }

  .intake-manual-grid {
    grid-template-columns: 1fr;
  }

  .intake-manual-grid .intake-field-wide {
    grid-column: auto;
  }

  .intake-actions-simple > p {
    display: none;
  }

  .intake-actions-simple > div {
    grid-template-columns: minmax(84px, 0.55fr) minmax(0, 1.45fr);
  }

  .intake-actions-simple [data-intake-primary] {
    min-width: 0;
  }

  .draft-editor-actions .draft-save-status,
  .draft-editor-actions [data-draft-preview] {
    display: none;
  }

  .draft-editor-actions [data-draft-done] {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .draft-editor-layout {
    width: min(100% - 24px, 640px);
    gap: 14px;
    padding: 14px 0 48px;
  }

  .draft-editor-outline {
    overflow-x: auto;
    padding: 0;
    border: 0;
  }

  .draft-editor-outline nav {
    grid-template-columns: repeat(5, minmax(108px, 1fr));
    min-width: 560px;
  }

  .draft-editor-outline nav button {
    min-height: 42px;
    font-size: 12px;
  }

  .draft-editor-document {
    padding: 36px 24px 38px;
  }

  .draft-document-title {
    font-size: 32px;
  }

  .draft-document-summary {
    font-size: 16px;
  }

  .draft-document-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .draft-document-section {
    padding: 28px 0 30px;
  }

  .draft-document-section h2 {
    font-size: 22px;
  }

  .draft-document-field {
    min-height: 106px;
    padding-inline: 0;
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .draft-editor-frame *,
  .asset-intake-simple * {
    scroll-behavior: auto !important;
  }
}

/* mcp-onboarding-v25.css */
/* MCP onboarding v25: guided client, transport, permission, and verification setup. */

.intake-mcp-panel-simple {
  display: block;
  padding: 0;
}

.intake-mcp-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 26px;
  padding: 30px;
}

.intake-mcp-entry .intake-mcp-lead {
  max-width: 620px;
}

.mcp-entry-status {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 112px;
  padding: 18px 20px;
  border: 1px solid #373737;
  background: #0d0d0d;
}

.mcp-entry-status > span,
.mcp-boundary-note > span,
.mcp-managed-card > span,
.mcp-auth-section header > span,
.mcp-tools-section > header > span,
.mcp-review-summary > header > span,
.mcp-verification-list > header > span,
.mcp-save-notice > span {
  color: #6f6f6f;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.mcp-entry-status strong {
  color: #d9d9d9;
  font-size: 16px;
  font-weight: 620;
}

.mcp-entry-status small {
  color: #777777;
  font-size: 12px;
  line-height: 1.5;
}

.mcp-entry-status.has-plan {
  border-color: #5d3b3b;
  background: linear-gradient(120deg, rgb(255 77 77 / 8%), transparent 68%), #111111;
}

.mcp-entry-status.has-plan > span,
.mcp-entry-status.has-plan strong {
  color: #f07a7a;
}

.mcp-journey-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 4px 0 0;
  padding: 0;
  border: 1px solid #343434;
  list-style: none;
}

.mcp-journey-grid li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 2px 10px;
  min-height: 100px;
  align-content: center;
  padding: 16px;
  border-right: 1px solid #303030;
  background: #131313;
}

.mcp-journey-grid li:last-child {
  border-right: 0;
}

.mcp-journey-grid li > span {
  grid-row: 1 / 3;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.mcp-journey-grid strong {
  color: #d1d1d1;
  font-size: 14px;
  line-height: 1.4;
}

.mcp-journey-grid small {
  color: #737373;
  font-size: 12px;
  line-height: 1.55;
}

.mcp-boundary-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 17px 20px;
  border-left: 2px solid var(--brand);
  background: linear-gradient(90deg, rgb(255 77 77 / 8%), transparent 55%), #0d0d0d;
}

.mcp-boundary-note > span {
  color: var(--brand);
}

.mcp-boundary-note p {
  margin: 0;
  color: #a3a3a3;
  font-size: 14px;
  line-height: 1.7;
}

.asset-intake-simple.mcp-wizard-active {
  gap: 0;
}

.asset-intake-simple.mcp-wizard-active > .intake-type-section,
.asset-intake-simple.mcp-wizard-active .intake-create-heading {
  display: none;
}

.asset-intake-simple.mcp-wizard-active .intake-workspace-simple {
  border-top: 1px solid #353535;
}

.mcp-setup-wizard {
  padding: 28px 30px 34px;
}

.mcp-wizard-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding-bottom: 24px;
}

.mcp-wizard-header h4 {
  margin: 7px 0 7px;
  color: #eeeeee;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.mcp-wizard-header p {
  max-width: 680px;
  margin: 0;
  color: #898989;
  font-size: 14px;
  line-height: 1.7;
}

.mcp-wizard-estimate {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #383838;
  color: #888888;
  font-size: 12px;
  white-space: nowrap;
}

.mcp-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 1px solid #353535;
  list-style: none;
}

.mcp-progress li {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  min-height: 58px;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid #303030;
  background: #101010;
}

.mcp-progress li:last-child {
  border-right: 0;
}

.mcp-progress li::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.mcp-progress span {
  color: #5e5e5e;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.mcp-progress strong {
  color: #707070;
  font-size: 13px;
  font-weight: 620;
}

.mcp-progress li.current {
  background: linear-gradient(110deg, rgb(255 77 77 / 8%), transparent 70%), #131313;
}

.mcp-progress li.current::after {
  background: var(--brand);
}

.mcp-progress li.current span,
.mcp-progress li.current strong {
  color: #f06a6a;
}

.mcp-progress li.complete span,
.mcp-progress li.complete strong {
  color: #adadad;
}

.mcp-step {
  padding-top: 30px;
}

.mcp-step-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}

.mcp-step-heading > div {
  display: grid;
  gap: 6px;
}

.mcp-step-heading > div > span {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.mcp-step-heading h5,
.mcp-saved-state h5 {
  margin: 0;
  color: #ededed;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.mcp-step-heading > p {
  margin: 0;
  color: #848484;
  font-size: 14px;
  line-height: 1.7;
}

.mcp-option-grid {
  display: grid;
  gap: 10px;
}

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

.mcp-mode-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mcp-option {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  min-width: 0;
  min-height: 96px;
  align-items: center;
  padding: 16px;
  border: 1px solid #343434;
  border-radius: 0;
  background: #121212;
  color: inherit;
  font-family: var(--font-body);
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.mcp-option:hover,
.mcp-option:focus-visible {
  border-color: #575757;
  background: #151515;
}

.mcp-option:focus-visible,
.mcp-auth-option:focus-visible,
.mcp-approval-option:focus-visible {
  outline: 1px solid #c6c6c6;
  outline-offset: 2px;
}

.mcp-option.active {
  border-color: #994646;
  background: linear-gradient(110deg, rgb(255 77 77 / 9%), transparent 68%), #151313;
  box-shadow: inset 3px 0 0 var(--brand);
}

.mcp-option-code {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #454545;
  color: #a8a8a8;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.mcp-option.active .mcp-option-code {
  border-color: #6e3d3d;
  color: var(--brand);
}

.mcp-option > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.mcp-option strong {
  color: #dadada;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.35;
}

.mcp-option small {
  color: #777777;
  font-size: 12px;
  line-height: 1.5;
}

.mcp-option em,
.mcp-auth-option em,
.mcp-approval-option em {
  align-self: start;
  padding: 5px 7px;
  border: 1px solid #653737;
  color: #eb6b6b;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.mcp-connection-config {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #363636;
  background: #0d0d0d;
}

.mcp-connection-config .intake-field > span {
  color: #b4b4b4;
  font-size: 13px;
}

.mcp-connection-config .intake-field input {
  min-height: 48px;
  padding-inline: 14px;
  font-size: 14px;
}

.mcp-managed-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px 22px;
  align-items: center;
}

.mcp-managed-card > span {
  color: var(--brand);
}

.mcp-managed-card strong {
  color: #d0d0d0;
  font-size: 14px;
  line-height: 1.5;
}

.mcp-managed-card code {
  grid-column: 2;
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 7px 9px;
  overflow-wrap: anywhere;
  border: 1px solid #3a3a3a;
  background: #0b0b0b;
  color: #ef7b7b;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

.mcp-managed-card p,
.mcp-field-help {
  margin: 0;
  color: #7f7f7f;
  font-size: 12px;
  line-height: 1.65;
}

.mcp-managed-card p {
  grid-column: 2;
}

.mcp-field-help {
  grid-column: 1 / -1;
}

.mcp-field-help.is-error {
  color: #f07878;
}

.mcp-connection-config .intake-field.is-invalid input {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.mcp-permission-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.mcp-auth-section,
.mcp-tools-section,
.mcp-review-summary,
.mcp-verification-list {
  min-width: 0;
  border: 1px solid #363636;
  background: #101010;
}

.mcp-auth-section > header,
.mcp-tools-section > header,
.mcp-review-summary > header,
.mcp-verification-list > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: end;
  padding: 17px 18px;
  border-bottom: 1px solid #303030;
}

.mcp-auth-section header > span,
.mcp-tools-section > header > span,
.mcp-review-summary > header > span,
.mcp-verification-list > header > span {
  grid-column: 1 / -1;
  color: var(--brand);
}

.mcp-auth-section h6,
.mcp-tools-section h6,
.mcp-review-summary h6,
.mcp-verification-list h6 {
  margin: 0;
  color: #d8d8d8;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 620;
}

.mcp-tools-section > header small {
  color: #7b7b7b;
  font-size: 11px;
}

.mcp-auth-options,
.mcp-approval-options {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.mcp-auth-option,
.mcp-approval-option {
  display: grid;
  min-height: 66px;
  align-items: center;
  border: 1px solid #303030;
  border-radius: 0;
  background: #131313;
  color: inherit;
  font-family: var(--font-body);
  text-align: left;
}

.mcp-auth-option {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  padding: 12px 14px;
}

.mcp-auth-option strong,
.mcp-approval-option strong {
  color: #c7c7c7;
  font-size: 13px;
  font-weight: 620;
}

.mcp-auth-option small,
.mcp-approval-option small {
  color: #707070;
  font-size: 11px;
  line-height: 1.5;
}

.mcp-auth-option small {
  grid-column: 1;
}

.mcp-auth-option em {
  grid-row: 1 / 3;
  grid-column: 2;
}

.mcp-auth-option.active,
.mcp-approval-option.active {
  border-color: #754040;
  background: #1a1313;
}

.mcp-auth-option:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.mcp-approval-heading {
  margin-top: 4px;
  border-top: 1px solid #303030;
}

.mcp-approval-option {
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 14px;
}

.mcp-approval-option > span {
  width: 12px;
  height: 12px;
  border: 1px solid #666666;
  border-radius: 50%;
}

.mcp-approval-option.active > span {
  border: 3px solid var(--brand);
}

.mcp-approval-option > div {
  display: grid;
  gap: 3px;
}

.mcp-tool-list {
  display: grid;
}

.mcp-tool-list label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 63px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #2b2b2b;
  cursor: pointer;
}

.mcp-tool-list label:last-child {
  border-bottom: 0;
}

.mcp-compatibility-tools {
  border-top: 1px solid #3a3030;
  background: #0d0d0d;
}

.mcp-compatibility-tools > header {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #292929;
}

.mcp-compatibility-tools > header strong {
  color: #a8a8a8;
  font-size: 12px;
  font-weight: 620;
}

.mcp-compatibility-tools > header small {
  color: #666666;
  font-size: 10px;
}

.mcp-compatibility-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  padding: 9px 16px 9px 46px;
  border-bottom: 1px solid #252525;
}

.mcp-compatibility-tool:last-child {
  border-bottom: 0;
}

.mcp-compatibility-tool > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.mcp-compatibility-tool strong,
.mcp-compatibility-tool small {
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.45;
}

.mcp-compatibility-tool strong {
  color: #898989;
  font-weight: 540;
}

.mcp-compatibility-tool small {
  color: #595959;
}

.mcp-compatibility-tool em {
  min-width: 42px;
  padding: 5px 7px;
  border: 1px solid #3b3b3b;
  color: #777777;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.mcp-tool-list label.locked {
  cursor: not-allowed;
  opacity: 0.5;
}

.mcp-tool-list input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand);
}

.mcp-tool-list label > span {
  display: grid;
  gap: 2px;
}

.mcp-tool-list strong {
  color: #c9c9c9;
  font-size: 13px;
  font-weight: 620;
}

.mcp-tool-list small {
  color: #6d6d6d;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.45;
}

.mcp-tool-list em {
  min-width: 42px;
  padding: 5px 7px;
  border: 1px solid #3b3b3b;
  color: #888888;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.mcp-tool-list em.write {
  border-color: #673b3b;
  color: #e27878;
}

.mcp-tool-list em.review {
  border-color: #52503b;
  color: #bdb378;
}

.mcp-tool-list em.publish,
.mcp-tool-list em.admin {
  border-color: #52503b;
  color: #bdb378;
}

.mcp-review-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.24fr);
  gap: 18px;
}

.mcp-review-summary dl {
  margin: 0;
}

.mcp-review-summary dl > div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 17px;
  border-bottom: 1px solid #2b2b2b;
}

.mcp-review-summary dl > div:last-child {
  border-bottom: 0;
}

.mcp-review-summary dt {
  color: #707070;
  font-size: 12px;
}

.mcp-review-summary dd {
  margin: 0;
  color: #c8c8c8;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.mcp-verification-list > div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 64px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #2b2b2b;
}

.mcp-verification-list > div:last-child {
  border-bottom: 0;
}

.mcp-verification-list > div > span {
  width: 8px;
  height: 8px;
  border: 1px solid #777777;
  border-radius: 50%;
}

.mcp-verification-list > div.ready > span {
  border-color: #6b936f;
  background: #6b936f;
}

.mcp-verification-list > div.pending > span {
  border-color: #866565;
}

.mcp-verification-list > div > div {
  display: grid;
  gap: 3px;
}

.mcp-verification-list strong {
  color: #c7c7c7;
  font-size: 13px;
}

.mcp-verification-list small {
  color: #6e6e6e;
  font-size: 11px;
  line-height: 1.5;
}

.mcp-verification-list em {
  color: #777777;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.mcp-verification-list .ready em {
  color: #85a989;
}

.mcp-save-notice {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
  padding: 15px 17px;
  border-left: 2px solid #555555;
  background: #0d0d0d;
}

.mcp-save-notice p {
  margin: 0;
  color: #888888;
  font-size: 12px;
  line-height: 1.65;
}

.mcp-saved-state {
  display: grid;
  justify-items: center;
  max-width: 680px;
  margin: 14px auto 0;
  padding: 48px 42px;
  border: 1px solid #503939;
  background: linear-gradient(140deg, rgb(255 77 77 / 9%), transparent 55%), #111111;
  text-align: center;
}

.mcp-saved-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid #8b4444;
  color: var(--brand);
  font-size: 24px;
}

.mcp-saved-state h5 {
  margin-top: 8px;
  font-size: 28px;
}

.mcp-saved-state > p {
  max-width: 540px;
  margin: 12px 0 24px;
  color: #909090;
  font-size: 14px;
  line-height: 1.8;
}

.mcp-saved-state > div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 14px;
  width: min(430px, 100%);
  padding: 13px 0;
  border-top: 1px solid #303030;
  text-align: left;
}

.mcp-saved-state > div span {
  color: #6e6e6e;
  font-size: 11px;
}

.mcp-saved-state > div strong {
  color: #c7c7c7;
  font-size: 12px;
  font-weight: 620;
}

.mcp-wizard-active .intake-actions-simple > div {
  flex-wrap: nowrap;
}

.mcp-wizard-active .intake-actions-simple [data-mcp-back] {
  min-width: 88px;
}

@media (max-width: 900px) {
  .intake-mcp-entry {
    grid-template-columns: 1fr;
  }

  .mcp-entry-status {
    min-height: 86px;
  }

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

  .mcp-journey-grid li:nth-child(2) {
    border-right: 0;
  }

  .mcp-journey-grid li:nth-child(-n + 2) {
    border-bottom: 1px solid #303030;
  }

  .mcp-step-heading,
  .mcp-permission-layout,
  .mcp-review-layout {
    grid-template-columns: 1fr;
  }

  .mcp-mode-grid {
    grid-template-columns: 1fr;
  }

  .mcp-managed-card {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .mcp-managed-card code,
  .mcp-managed-card p {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  .intake-mcp-entry,
  .mcp-setup-wizard {
    padding: 22px 16px 26px;
  }

  .intake-mcp-entry .intake-mcp-lead h4,
  .mcp-wizard-header h4 {
    font-size: 24px;
  }

  .mcp-entry-status strong {
    font-size: 15px;
  }

  .mcp-journey-grid {
    grid-template-columns: 1fr;
  }

  .mcp-journey-grid li {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid #303030;
  }

  .mcp-journey-grid li:last-child {
    border-bottom: 0;
  }

  .mcp-boundary-note {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mcp-wizard-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mcp-wizard-estimate {
    justify-self: start;
  }

  .mcp-progress {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(136px, 1fr));
  }

  .mcp-progress li {
    min-height: 54px;
  }

  .mcp-step-heading {
    gap: 10px;
    margin-bottom: 18px;
  }

  .mcp-step-heading h5 {
    font-size: 22px;
  }

  .mcp-step-heading > p {
    font-size: 13px;
  }

  .mcp-client-grid,
  .mcp-connection-config {
    grid-template-columns: 1fr;
  }

  .mcp-option {
    min-height: 88px;
  }

  .mcp-option strong {
    font-size: 14px;
  }

  .mcp-option small {
    font-size: 11px;
  }

  .mcp-permission-layout {
    gap: 12px;
  }

  .mcp-tools-section > header {
    align-items: start;
  }

  .mcp-tools-section > header small {
    max-width: 150px;
    line-height: 1.45;
    text-align: right;
  }

  .mcp-compatibility-tools > header {
    align-items: flex-start;
  }

  .mcp-compatibility-tools > header small {
    max-width: 155px;
    line-height: 1.45;
    text-align: right;
  }

  .mcp-review-summary dl > div {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .mcp-save-notice {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .mcp-saved-state {
    padding: 36px 20px;
  }

  .mcp-wizard-active .intake-actions-simple > p {
    display: none;
  }

  .mcp-wizard-active .intake-actions-simple > div {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    width: 100%;
  }

  .mcp-wizard-active .intake-actions-simple [data-intake-close] {
    display: none;
  }

  .mcp-wizard-active .intake-actions-simple [data-mcp-back] {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mcp-option,
  .mcp-setup-wizard * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* rich-document-editor-v26.css */
/* Rich document editor v26: Feishu-like continuous editing, media, slash commands, and article preview. */

.rich-document-editor {
  grid-template-rows: 64px 52px minmax(0, 1fr);
}

.rich-document-location {
  max-width: 420px;
  min-width: 0;
}

.rich-document-location strong {
  overflow: hidden;
  max-width: 260px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rich-document-location small {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #3d3030;
  color: #d86c6c;
  font-size: 11px;
}

.rich-editor-toolbar {
  z-index: 8;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  padding: 6px 18px 6px max(18px, calc((100vw - 1120px) / 2 + 238px));
  overflow-x: auto;
  border-bottom: 1px solid #303030;
  background: rgb(16 16 16 / 97%);
  scrollbar-width: thin;
}

.rich-editor-toolbar button,
.rich-style-select select {
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #a9a9a9;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.rich-editor-toolbar button:hover,
.rich-editor-toolbar button:focus-visible,
.rich-style-select select:hover,
.rich-style-select select:focus-visible {
  border-color: #3e3e3e;
  background: #222222;
  color: #eeeeee;
  outline: 0;
}

.rich-editor-toolbar .rich-toolbar-text {
  padding: 0;
  font-size: 15px;
}

.rich-style-select select {
  min-width: 94px;
  border-color: #333333;
  background: #171717;
}

.rich-toolbar-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 22px;
  margin: 0 5px;
  background: #343434;
}

.rich-toolbar-hint {
  margin-left: auto;
  color: #595959;
  font-size: 11px;
  white-space: nowrap;
}

.rich-editor-scroll {
  background:
    linear-gradient(90deg, transparent 49.95%, rgb(255 255 255 / 2%) 50%, transparent 50.05%),
    #090909;
}

.rich-editor-layout {
  grid-template-columns: 220px minmax(0, 860px);
  gap: 32px;
  width: min(1150px, calc(100% - 48px));
  padding-top: 28px;
}

.rich-editor-outline {
  top: 24px;
}

.rich-editor-outline nav button.subheading {
  padding-left: 18px;
  color: #727272;
}

.rich-editor-outline nav button.subheading span {
  opacity: 0.55;
}

.rich-document-paper {
  padding: 58px 76px 62px;
  background: #141414;
}

.rich-document-tip {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 28px 0 18px;
  padding: 13px 15px;
  border: 1px solid #343434;
  background: #101010;
}

.rich-document-tip > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #5a3737;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
}

.rich-document-tip p {
  margin: 0;
  color: #787878;
  font-size: 12px;
  line-height: 1.65;
}

.rich-document-tip strong {
  display: block;
  color: #bbbbbb;
  font-size: 13px;
}

.rich-editor-surface {
  min-height: 780px;
  padding: 2px 0 80px;
  color: #d4d4d4;
  font-size: 18px;
  line-height: 1.9;
  outline: 0;
  overflow-wrap: anywhere;
}

.rich-editor-surface > *:first-child {
  margin-top: 0;
}

.rich-editor-surface h2,
.rich-editor-surface h3,
.local-rich-article h2,
.local-rich-article h3 {
  color: #f0f0f0;
  font-family: var(--font-heading);
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.rich-editor-surface h2,
.local-rich-article h2 {
  margin: 58px 0 18px;
  padding-top: 6px;
  font-size: 27px;
}

.rich-editor-surface h3,
.local-rich-article h3 {
  margin: 36px 0 14px;
  font-size: 21px;
}

.rich-editor-surface p,
.local-rich-article p {
  margin: 12px 0;
  color: #cecece;
  font-size: 18px;
  line-height: 1.9;
}

.rich-editor-surface p:focus,
.rich-editor-surface h2:focus,
.rich-editor-surface h3:focus,
.rich-editor-surface li:focus,
.rich-editor-surface blockquote:focus {
  outline: 0;
}

.rich-editor-surface p[data-placeholder]:has(> br:only-child)::before,
.rich-editor-surface li[data-placeholder]:has(> br:only-child)::before {
  color: #555555;
  content: attr(data-placeholder);
  pointer-events: none;
}

.rich-editor-surface ul,
.rich-editor-surface ol,
.local-rich-article ul,
.local-rich-article ol {
  display: grid;
  gap: 8px;
  margin: 16px 0 24px;
  padding-left: 28px;
}

.rich-editor-surface li,
.local-rich-article li {
  padding-left: 4px;
  color: #cecece;
  font-size: 18px;
  line-height: 1.8;
}

.rich-editor-surface li::marker,
.local-rich-article li::marker {
  color: #747474;
}

.rich-editor-surface blockquote,
.local-rich-article blockquote {
  margin: 24px 0;
  padding: 8px 0 8px 20px;
  border-left: 3px solid #777777;
  color: #b6b6b6;
  font-size: 18px;
  font-style: italic;
  line-height: 1.85;
}

.rich-editor-surface .doc-callout,
.local-rich-article .doc-callout {
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid #4a3838;
  border-left: 3px solid var(--brand);
  background: linear-gradient(100deg, rgb(255 77 77 / 7%), transparent 60%), #111111;
}

.rich-editor-surface .doc-callout > strong,
.local-rich-article .doc-callout > strong {
  color: #ee8585;
  font-size: 13px;
}

.rich-editor-surface .doc-callout p,
.local-rich-article .doc-callout p {
  margin: 7px 0 0;
  color: #bdbdbd;
  font-size: 17px;
  line-height: 1.75;
}

.rich-editor-surface hr,
.local-rich-article hr {
  height: 1px;
  margin: 42px 0;
  border: 0;
  background: #383838;
}

.rich-editor-surface a,
.local-rich-article a {
  color: #ef8585;
  text-decoration: underline;
  text-decoration-color: rgb(239 133 133 / 45%);
  text-underline-offset: 4px;
}

.rich-editor-surface code,
.local-rich-article code {
  padding: 2px 6px;
  border: 1px solid #3a3a3a;
  background: #0d0d0d;
  color: #e1e1e1;
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.rich-editor-surface pre,
.local-rich-article pre {
  overflow-x: auto;
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid #363636;
  background: #0d0d0d;
  color: #d5d5d5;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre;
}

.rich-editor-surface figure.doc-image,
.local-rich-article figure.doc-image {
  margin: 30px 0;
}

.rich-editor-surface figure.doc-image img,
.local-rich-article figure.doc-image img {
  display: block;
  width: 100%;
  max-height: 680px;
  border: 1px solid #3b3b3b;
  background: #0b0b0b;
  object-fit: contain;
}

.rich-editor-surface figure.doc-image figcaption,
.local-rich-article figure.doc-image figcaption {
  margin-top: 10px;
  color: #777777;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.rich-editor-surface figure.doc-image figcaption:focus {
  color: #bdbdbd;
  outline: 0;
}

.rich-editor-surface.is-dragging {
  outline: 2px dashed var(--brand);
  outline-offset: 14px;
  background: rgb(255 77 77 / 3%);
}

.rich-slash-menu {
  position: fixed;
  z-index: 100;
  width: 280px;
  max-height: min(420px, calc(100vh - 110px));
  padding: 7px;
  overflow-y: auto;
  border: 1px solid #454545;
  background: #171717;
  box-shadow: 0 22px 70px rgb(0 0 0 / 60%);
}

.rich-slash-menu header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 9px;
  border-bottom: 1px solid #303030;
}

.rich-slash-menu header strong {
  color: #d4d4d4;
  font-size: 12px;
}

.rich-slash-menu header small {
  color: #686868;
  font-size: 10px;
}

.rich-slash-menu button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 52px;
  align-items: center;
  padding: 7px 9px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  text-align: left;
}

.rich-slash-menu button:hover,
.rich-slash-menu button:focus-visible {
  background: #242424;
  outline: 0;
}

.rich-slash-menu button > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #404040;
  color: #b5b5b5;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.rich-slash-menu button > div {
  display: grid;
  gap: 2px;
}

.rich-slash-menu button strong {
  color: #d3d3d3;
  font-size: 12px;
}

.rich-slash-menu button small {
  color: #696969;
  font-size: 10px;
}

.rich-link-popover {
  position: fixed;
  z-index: 110;
  top: 120px;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 8px;
  width: min(520px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid #454545;
  background: #171717;
  box-shadow: 0 20px 70px rgb(0 0 0 / 58%);
  transform: translateX(-50%);
}

.rich-link-popover label {
  display: grid;
  gap: 5px;
}

.rich-link-popover label span {
  color: #7e7e7e;
  font-size: 10px;
}

.rich-link-popover input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #3c3c3c;
  background: #0d0d0d;
  color: #dddddd;
  font-family: var(--font-body);
  font-size: 12px;
  outline: 0;
}

.rich-link-popover input:focus {
  border-color: #777777;
}

.rich-link-popover input.is-invalid {
  border-color: var(--brand);
}

.rich-link-popover button {
  align-self: end;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #3f3f3f;
  background: #222222;
  color: #d5d5d5;
  font-family: var(--font-body);
  font-size: 11px;
}

.rich-link-popover [data-rich-link-apply] {
  border-color: var(--brand);
  background: var(--brand);
  color: #101010;
  font-weight: 700;
}

.rich-document-footer {
  margin-top: 24px;
  border-top: 1px solid #333333;
}

.draft-save-status.error,
.draft-save-status.error i {
  color: #ef7777;
}

.draft-save-status.error i {
  background: var(--brand);
}

.local-workflow-article .workflow-article-hero {
  border-radius: 0;
  border-left-color: var(--brand);
  background: linear-gradient(115deg, rgb(255 77 77 / 9%), transparent 62%), #151515;
}

.local-rich-article-body {
  gap: 48px;
}

.local-rich-article {
  min-width: 0;
}

.local-rich-article > h2:first-child {
  margin-top: 0;
}

.local-rich-article figure.doc-image img {
  border-radius: 0;
}

@media (min-width: 1440px) {
  .rich-document-editor {
    grid-template-rows: 72px 52px minmax(0, 1fr);
  }
}

@media (max-width: 1020px) {
  .rich-editor-toolbar {
    padding-inline: 16px;
  }

  .rich-editor-layout {
    grid-template-columns: 1fr;
    width: min(860px, calc(100% - 40px));
  }

  .rich-editor-outline {
    grid-template-columns: auto 1fr;
  }
}

@media (max-width: 720px) {
  .rich-document-editor {
    grid-template-rows: 58px 48px minmax(0, 1fr);
  }

  .rich-document-location,
  .rich-document-editor .draft-save-status {
    display: none;
  }

  .rich-document-editor .draft-editor-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rich-document-editor .draft-editor-actions {
    justify-self: end;
  }

  .rich-document-editor .draft-editor-actions [data-draft-preview] {
    display: inline-flex;
    min-height: 36px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .rich-editor-toolbar {
    gap: 2px;
    padding: 5px 10px;
  }

  .rich-editor-toolbar button,
  .rich-style-select select {
    min-width: 38px;
    min-height: 38px;
  }

  .rich-toolbar-hint {
    display: none;
  }

  .rich-editor-layout {
    width: min(100% - 20px, 640px);
    padding-top: 10px;
  }

  .rich-editor-outline {
    display: none;
  }

  .rich-document-paper {
    padding: 34px 22px 40px;
  }

  .rich-document-tip {
    margin-top: 22px;
  }

  .rich-editor-surface {
    min-height: 640px;
    font-size: 17px;
  }

  .rich-editor-surface h2,
  .local-rich-article h2 {
    margin-top: 46px;
    font-size: 24px;
  }

  .rich-editor-surface h3,
  .local-rich-article h3 {
    font-size: 20px;
  }

  .rich-editor-surface p,
  .rich-editor-surface li,
  .rich-editor-surface blockquote,
  .local-rich-article p,
  .local-rich-article li,
  .local-rich-article blockquote {
    font-size: 17px;
  }

  .rich-slash-menu {
    width: min(280px, calc(100vw - 24px));
  }

  .rich-link-popover {
    top: 116px;
    grid-template-columns: 1fr 1fr;
  }

  .rich-link-popover label {
    grid-column: 1 / -1;
  }

  .local-rich-article-body {
    gap: 34px;
  }

  .local-workflow-preview-frame .reader-bar-actions [data-local-preview-edit] {
    display: none;
  }

  .local-workflow-preview-frame .reader-bar-actions [data-local-preview-done] {
    width: auto;
    min-width: 64px;
    min-height: 36px;
    padding: 0 12px;
    color: var(--primary-foreground);
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rich-document-editor *,
  .local-workflow-preview-frame * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* rich-document-interactions-v27.css */
/* Rich document interactions v27: block hover controls, selection tools and Untitled UI Icons. */

.rich-icon {
  --rich-icon: none;
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--rich-icon) center / contain no-repeat;
  mask: var(--rich-icon) center / contain no-repeat;
}

[data-rich-icon="plus"] { --rich-icon: url("./assets/icons/untitledui/plus.svg"); }
[data-rich-icon="drag"] { --rich-icon: url("./assets/icons/untitledui/dots-grid.svg"); }
[data-rich-icon="undo"] { --rich-icon: url("./assets/icons/untitledui/flip-backward.svg"); }
[data-rich-icon="redo"] { --rich-icon: url("./assets/icons/untitledui/flip-forward.svg"); }
[data-rich-icon="bold"] { --rich-icon: url("./assets/icons/untitledui/bold-01.svg"); }
[data-rich-icon="italic"] { --rich-icon: url("./assets/icons/untitledui/italic-01.svg"); }
[data-rich-icon="underline"] { --rich-icon: url("./assets/icons/untitledui/underline-01.svg"); }
[data-rich-icon="strike"] { --rich-icon: url("./assets/icons/untitledui/type-strikethrough-01.svg"); }
[data-rich-icon="list"] { --rich-icon: url("./assets/icons/untitledui/list.svg"); }
[data-rich-icon="ordered"] { --rich-icon: url("./assets/icons/untitledui/rows-01.svg"); }
[data-rich-icon="checklist"] { --rich-icon: url("./assets/icons/untitledui/check-square.svg"); }
[data-rich-icon="quote"] { --rich-icon: url("./assets/icons/untitledui/message-text-square-01.svg"); }
[data-rich-icon="link"] { --rich-icon: url("./assets/icons/untitledui/link-01.svg"); }
[data-rich-icon="image"] { --rich-icon: url("./assets/icons/untitledui/image-03.svg"); }
[data-rich-icon="callout"] { --rich-icon: url("./assets/icons/untitledui/alert-circle.svg"); }
[data-rich-icon="divider"] { --rich-icon: url("./assets/icons/untitledui/divider.svg"); }
[data-rich-icon="heading"] { --rich-icon: url("./assets/icons/untitledui/heading-02.svg"); }
[data-rich-icon="paragraph"] { --rich-icon: url("./assets/icons/untitledui/paragraph-wrap.svg"); }
[data-rich-icon="code"] { --rich-icon: url("./assets/icons/untitledui/code-02.svg"); }
[data-rich-icon="table"] { --rich-icon: url("./assets/icons/untitledui/table.svg"); }
[data-rich-icon="copy"] { --rich-icon: url("./assets/icons/untitledui/copy-03.svg"); }
[data-rich-icon="trash"] { --rich-icon: url("./assets/icons/untitledui/trash-01.svg"); }
[data-rich-icon="arrow-up"] { --rich-icon: url("./assets/icons/untitledui/arrow-up.svg"); }
[data-rich-icon="arrow-down"] { --rich-icon: url("./assets/icons/untitledui/arrow-down.svg"); }
[data-rich-icon="close"] { --rich-icon: url("./assets/icons/untitledui/x-close.svg"); }
[data-rich-icon="search"] { --rich-icon: url("./assets/icons/untitledui/search-sm.svg"); }
[data-rich-icon="edit"] { --rich-icon: url("./assets/icons/untitledui/edit-03.svg"); }
[data-rich-icon="upload"] { --rich-icon: url("./assets/icons/untitledui/upload-cloud-01.svg"); }
[data-rich-icon="align"] { --rich-icon: url("./assets/icons/untitledui/align-left.svg"); }
[data-rich-icon="expand"] { --rich-icon: url("./assets/icons/untitledui/expand-01.svg"); }

.rich-document-editor {
  grid-template-rows: 64px 54px minmax(0, 1fr);
}

.rich-editor-toolbar {
  gap: 3px;
  padding-block: 7px;
}

.rich-editor-toolbar button,
.rich-style-select select {
  min-width: 38px;
  min-height: 38px;
  border-radius: 4px;
  font-size: 13px;
}

.rich-editor-toolbar .rich-icon-button {
  display: inline-grid;
  padding: 0;
  place-items: center;
}

.rich-editor-toolbar button:hover,
.rich-editor-toolbar button:focus-visible,
.rich-editor-toolbar button[aria-pressed="true"],
.rich-style-select:hover,
.rich-style-select:focus-within {
  border-color: #424242;
  background: #252525;
  color: #f1f1f1;
}

.rich-editor-toolbar button[aria-pressed="true"] {
  border-color: #5a4141;
  background: #302020;
  color: #ff7a7a;
}

.rich-style-select {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid #333333;
  border-radius: 4px;
  background: #171717;
  color: #8f8f8f;
}

.rich-style-select > .rich-icon {
  position: absolute;
  left: 10px;
  z-index: 1;
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.rich-style-select select {
  min-width: 112px;
  padding: 0 28px 0 34px;
  border: 0;
  background: transparent;
  color: #c0c0c0;
  appearance: auto;
}

.rich-document-paper {
  position: relative;
}

.rich-editor-surface [data-doc-block] {
  position: relative;
  border-radius: 3px;
  transition: background-color 110ms ease, box-shadow 110ms ease, opacity 110ms ease;
}

.rich-editor-surface [data-doc-block].is-block-hovered {
  background: rgb(255 255 255 / 2.6%);
  box-shadow: 0 0 0 7px rgb(255 255 255 / 2.6%);
}

.rich-editor-surface [data-doc-block].is-block-dragging {
  opacity: 0.38;
}

.rich-editor-surface [data-doc-block].is-drop-before::before,
.rich-editor-surface [data-doc-block].is-drop-after::after {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 3;
  height: 2px;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgb(255 77 77 / 12%);
  content: "";
}

.rich-editor-surface [data-doc-block].is-drop-before::before { top: -8px; }
.rich-editor-surface [data-doc-block].is-drop-after::after { bottom: -8px; }

.rich-block-rail {
  position: absolute;
  z-index: 24;
  display: flex;
  gap: 2px;
  width: 76px;
  min-height: 34px;
  align-items: center;
  padding: 2px;
  border: 1px solid #383838;
  border-radius: 4px;
  background: #1b1b1b;
  box-shadow: 0 10px 30px rgb(0 0 0 / 34%);
}

.rich-block-rail button {
  display: grid;
  width: 34px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #898989;
  cursor: pointer;
}

.rich-block-rail button:hover,
.rich-block-rail button:focus-visible {
  background: #303030;
  color: #f0f0f0;
  outline: 0;
}

.rich-block-rail [data-rich-block-handle] {
  cursor: grab;
}

.rich-block-rail [data-rich-block-handle]:active {
  cursor: grabbing;
}

.rich-block-menu,
.rich-selection-toolbar,
.rich-image-toolbar {
  position: fixed;
  z-index: 150;
  border: 1px solid #464646;
  border-radius: 5px;
  background: #1b1b1b;
  box-shadow: 0 22px 70px rgb(0 0 0 / 62%);
}

.rich-block-menu {
  width: 286px;
  padding: 8px;
}

.rich-block-menu-heading {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 8px;
  color: #7d7d7d;
  font-size: 12px;
  font-weight: 600;
}

.rich-block-menu-heading button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #777777;
}

.rich-block-transform-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.rich-block-transform-row button,
.rich-block-menu > button {
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #c5c5c5;
  font-family: var(--font-body);
}

.rich-block-transform-row button {
  display: grid;
  min-height: 64px;
  gap: 6px;
  place-items: center;
  border: 1px solid #343434;
  font-size: 12px;
}

.rich-block-menu > button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  align-items: center;
  padding: 0 9px;
  font-size: 13px;
  text-align: left;
}

.rich-block-transform-row button:hover,
.rich-block-transform-row button:focus-visible,
.rich-block-menu > button:hover,
.rich-block-menu > button:focus-visible,
.rich-block-menu-heading button:hover {
  background: #2a2a2a;
  color: #f0f0f0;
  outline: 0;
}

.rich-block-menu > button.danger {
  color: #f07a7a;
}

.rich-block-menu kbd {
  color: #686868;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}

.rich-block-menu-divider {
  height: 1px;
  margin: 8px 0;
  background: #343434;
}

.rich-selection-toolbar,
.rich-image-toolbar {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 5px;
}

.rich-selection-toolbar button,
.rich-image-toolbar button {
  display: inline-flex;
  min-width: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #b9b9b9;
  font-family: var(--font-body);
  font-size: 12px;
}

.rich-selection-toolbar button:hover,
.rich-selection-toolbar button:focus-visible,
.rich-selection-toolbar button[aria-pressed="true"],
.rich-image-toolbar button:hover,
.rich-image-toolbar button:focus-visible,
.rich-image-toolbar button[aria-pressed="true"] {
  background: #303030;
  color: #f5f5f5;
  outline: 0;
}

.rich-selection-toolbar button[aria-pressed="true"],
.rich-image-toolbar button[aria-pressed="true"] {
  color: #ff7777;
}

.rich-selection-toolbar > span {
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background: #3b3b3b;
}

.rich-image-toolbar button.danger {
  color: #ef7777;
}

.rich-slash-menu {
  width: 300px;
  max-height: min(476px, calc(100vh - 100px));
  padding: 8px;
  border-radius: 5px;
}

.rich-slash-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  min-height: 40px;
  align-items: center;
  margin: 7px 2px 5px;
  padding: 0 10px;
  border: 1px solid #3c3c3c;
  border-radius: 3px;
  background: #101010;
  color: #777777;
}

.rich-slash-search:focus-within {
  border-color: #5c5c5c;
  color: #a8a8a8;
}

.rich-slash-search input {
  width: 100%;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #dddddd;
  font-family: var(--font-body);
  font-size: 13px;
  outline: 0;
}

.rich-slash-list {
  max-height: 348px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.rich-slash-menu button {
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 56px;
  border-radius: 3px;
}

.rich-slash-menu button > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-color: #454545;
}

.rich-slash-menu button strong {
  font-size: 14px;
  font-weight: 600;
}

.rich-slash-menu button small {
  font-size: 11px;
  line-height: 1.45;
}

.rich-editor-surface .doc-checklist,
.local-rich-article .doc-checklist {
  padding-left: 0;
  list-style: none;
}

.rich-editor-surface .doc-checklist li,
.local-rich-article .doc-checklist li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding-left: 0;
}

.doc-checkbox {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-top: 8px;
  place-items: center;
  border: 1px solid #666666;
  border-radius: 3px;
  cursor: pointer;
}

.doc-checklist li.is-checked .doc-checkbox {
  border-color: var(--brand);
  background: var(--brand);
}

.doc-checklist li.is-checked .doc-checkbox::after {
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #151515;
  border-left: 2px solid #151515;
  content: "";
  transform: translateY(-1px) rotate(-45deg);
}

.doc-checklist li.is-checked > span:last-child {
  color: #777777;
  text-decoration: line-through;
}

.rich-editor-surface .doc-table,
.local-rich-article .doc-table {
  width: 100%;
  margin: 28px 0;
  border: 1px solid #3b3b3b;
  border-collapse: collapse;
  table-layout: fixed;
}

.rich-editor-surface .doc-table th,
.rich-editor-surface .doc-table td,
.local-rich-article .doc-table th,
.local-rich-article .doc-table td {
  min-width: 120px;
  padding: 11px 13px;
  border: 1px solid #3b3b3b;
  color: #c8c8c8;
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
  vertical-align: top;
}

.rich-editor-surface .doc-table th,
.local-rich-article .doc-table th {
  background: #1d1d1d;
  color: #eeeeee;
  font-weight: 650;
}

.rich-editor-surface figure.doc-image {
  transition: box-shadow 120ms ease, width 160ms ease, margin-left 160ms ease;
}

.rich-editor-surface figure.doc-image.is-image-active {
  box-shadow: 0 0 0 2px #6f6f6f;
}

.rich-editor-surface figure.doc-image.is-wide,
.local-rich-article figure.doc-image.is-wide {
  width: calc(100% + 96px);
  max-width: calc(100vw - 80px);
  margin-left: -48px;
}

@media (max-width: 1020px) {
  .rich-block-rail {
    left: 10px !important;
  }
}

@media (max-width: 720px) {
  .rich-document-editor {
    grid-template-rows: 58px 50px minmax(0, 1fr);
  }

  .rich-editor-toolbar button,
  .rich-style-select,
  .rich-style-select select {
    min-height: 40px;
  }

  .rich-block-rail,
  .rich-block-menu,
  .rich-selection-toolbar,
  .rich-image-toolbar {
    display: none !important;
  }

  .rich-editor-surface [data-doc-block].is-block-hovered {
    background: transparent;
    box-shadow: none;
  }

  .rich-editor-surface figure.doc-image.is-wide,
  .local-rich-article figure.doc-image.is-wide {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .rich-slash-menu {
    width: min(300px, calc(100vw - 20px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .rich-editor-surface [data-doc-block],
  .rich-editor-surface figure.doc-image {
    transition: none !important;
  }
}

/* rich-document-polish-v28.css */
/* Rich document polish v28: calmer Feishu-like interactions and article-aligned typography. */

.rich-document-editor,
.local-workflow-article {
  --doc-body-size: 18px;
  --doc-body-leading: 1.85;
  --doc-h2-size: 30px;
  --doc-h3-size: 22px;
  --doc-content-measure: var(--measure-reading, 90ch);
  --doc-motion-fast: 150ms;
  --doc-motion-exit: 110ms;
  --doc-motion-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

.rich-document-editor {
  grid-template-rows: 64px 54px minmax(0, 1fr);
}

.rich-editor-toolbar {
  gap: 4px;
  padding-block: 7px;
  background: rgb(15 15 15 / 98%);
}

.rich-editor-toolbar button,
.rich-style-select,
.rich-style-select select {
  min-height: 38px;
}

.rich-editor-toolbar button,
.rich-style-select select {
  font-size: 13px;
  transition:
    border-color var(--doc-motion-fast) var(--doc-motion-ease),
    background-color var(--doc-motion-fast) var(--doc-motion-ease),
    color var(--doc-motion-fast) var(--doc-motion-ease);
}

.rich-toolbar-hint {
  color: #6e6e6e;
  font-size: 12px;
  line-height: 1.4;
}

.rich-editor-layout {
  grid-template-columns: 220px minmax(0, 900px);
  gap: 44px;
  width: min(1210px, calc(100% - 48px));
  padding-top: 32px;
}

.rich-editor-outline {
  top: 28px;
}

.rich-editor-outline nav button {
  min-height: 46px;
  color: #858585;
  font-size: 13px;
  line-height: 1.45;
  transition: color var(--doc-motion-fast) var(--doc-motion-ease), background-color var(--doc-motion-fast) var(--doc-motion-ease);
}

.rich-editor-outline nav button:hover,
.rich-editor-outline nav button:focus-visible {
  background: rgb(255 255 255 / 2.4%);
}

.rich-document-paper {
  padding: 58px 64px 68px;
  border-color: #333333;
  background: #141414;
  box-shadow: 0 28px 84px rgb(0 0 0 / 28%);
}

.draft-document-title {
  max-width: 20em;
  font-size: clamp(40px, 3.2vw, 46px);
  font-weight: 650;
  line-height: 1.14;
}

.draft-document-summary {
  max-width: 46em;
  min-height: 58px;
  margin-top: 18px;
  color: #a9a9b0;
  font-size: var(--doc-body-size);
  line-height: 1.8;
}

.draft-document-facts {
  margin-top: 28px;
  padding-block: 19px;
}

.draft-document-facts dt {
  font-size: 12px;
  line-height: 1.5;
}

.draft-document-facts dd {
  font-size: 13px;
  line-height: 1.5;
}

.rich-document-tip {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  margin: 30px 0 22px;
  padding: 11px 13px;
  border-color: #303030;
  background: #111111;
}

.rich-document-tip > span {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.rich-document-tip p {
  color: #848484;
  font-size: 13px;
  line-height: 1.55;
}

.rich-document-tip strong {
  display: inline;
  margin-right: 7px;
  color: #c6c6c6;
  font-size: 13px;
}

.rich-editor-surface {
  max-width: var(--doc-content-measure);
  color: #cecece;
  font-size: var(--doc-body-size);
  line-height: var(--doc-body-leading);
}

.rich-editor-surface h2,
.local-rich-article h2 {
  margin: 58px 0 18px;
  font-size: var(--doc-h2-size);
  line-height: 1.3;
}

.rich-editor-surface h3,
.local-rich-article h3 {
  margin: 40px 0 14px;
  font-size: var(--doc-h3-size);
  line-height: 1.35;
}

.rich-editor-surface p,
.local-rich-article p {
  margin: 12px 0;
  font-size: var(--doc-body-size);
  line-height: var(--doc-body-leading);
}

.rich-editor-surface li,
.local-rich-article li,
.rich-editor-surface blockquote,
.local-rich-article blockquote {
  font-size: var(--doc-body-size);
  line-height: var(--doc-body-leading);
}

.rich-editor-surface [data-doc-block] {
  border-radius: 3px;
  transition:
    background-color 170ms var(--doc-motion-ease),
    box-shadow 170ms var(--doc-motion-ease),
    opacity var(--doc-motion-fast) var(--doc-motion-ease);
}

.rich-editor-surface [data-doc-block].is-block-hovered {
  background: rgb(255 255 255 / 1.3%);
  box-shadow: 0 0 0 6px rgb(255 255 255 / 1.3%);
}

.rich-editor-surface [data-doc-block].is-block-dragging {
  opacity: 0.52;
  box-shadow: 0 12px 30px rgb(0 0 0 / 24%);
}

.rich-editor-surface [data-doc-block].is-drop-before::before,
.rich-editor-surface [data-doc-block].is-drop-after::after {
  height: 1px;
  box-shadow: 0 0 0 3px rgb(255 77 77 / 9%);
  animation: rich-drop-line-in var(--doc-motion-fast) var(--doc-motion-ease) both;
}

@keyframes rich-drop-line-in {
  from { opacity: 0; transform: scaleX(0.92); }
  to { opacity: 1; transform: scaleX(1); }
}

.rich-block-rail {
  width: 72px;
  min-height: 34px;
  border-color: #3b3b3b;
  background: rgb(27 27 27 / 98%);
  box-shadow: 0 12px 34px rgb(0 0 0 / 30%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-5px) scale(0.985);
  transform-origin: right center;
  transition:
    opacity var(--doc-motion-fast) var(--doc-motion-ease),
    transform var(--doc-motion-fast) var(--doc-motion-ease),
    border-color var(--doc-motion-fast) var(--doc-motion-ease);
  will-change: transform, opacity;
}

.rich-block-rail.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.rich-block-rail button {
  width: 32px;
  height: 30px;
  color: #929292;
  transition: color var(--doc-motion-fast) var(--doc-motion-ease), background-color var(--doc-motion-fast) var(--doc-motion-ease);
}

.rich-block-rail button:hover,
.rich-block-rail button:focus-visible {
  background: #2c2c2c;
}

.rich-block-menu,
.rich-selection-toolbar,
.rich-image-toolbar,
.rich-slash-menu,
.rich-link-popover {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(0.985);
  transform-origin: top left;
  transition:
    opacity var(--doc-motion-fast) var(--doc-motion-ease),
    transform var(--doc-motion-fast) var(--doc-motion-ease),
    border-color var(--doc-motion-fast) var(--doc-motion-ease);
  will-change: transform, opacity;
}

.rich-block-menu.is-open,
.rich-selection-toolbar.is-open,
.rich-image-toolbar.is-open,
.rich-slash-menu.is-open,
.rich-link-popover.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.rich-block-menu,
.rich-selection-toolbar,
.rich-image-toolbar {
  border-color: #414141;
  background: rgb(27 27 27 / 98%);
  box-shadow: 0 20px 60px rgb(0 0 0 / 48%);
}

.rich-block-menu-heading {
  min-height: 36px;
  font-size: 13px;
}

.rich-block-transform-row button {
  min-height: 66px;
  font-size: 13px;
  transition: background-color var(--doc-motion-fast) var(--doc-motion-ease), border-color var(--doc-motion-fast) var(--doc-motion-ease), color var(--doc-motion-fast) var(--doc-motion-ease);
}

.rich-block-menu > button {
  min-height: 42px;
  font-size: 14px;
  transition: background-color var(--doc-motion-fast) var(--doc-motion-ease), color var(--doc-motion-fast) var(--doc-motion-ease);
}

.rich-block-menu kbd {
  font-size: 11px;
}

.rich-selection-toolbar button,
.rich-image-toolbar button {
  min-height: 34px;
  font-size: 13px;
  transition: background-color var(--doc-motion-fast) var(--doc-motion-ease), color var(--doc-motion-fast) var(--doc-motion-ease);
}

.rich-slash-menu {
  border-color: #424242;
  background: rgb(24 24 24 / 98%);
  box-shadow: 0 22px 64px rgb(0 0 0 / 50%);
}

.rich-slash-menu header strong {
  font-size: 13px;
}

.rich-slash-search input {
  font-size: 14px;
}

.rich-slash-menu button {
  min-height: 58px;
  transition: background-color var(--doc-motion-fast) var(--doc-motion-ease), color var(--doc-motion-fast) var(--doc-motion-ease);
}

.rich-slash-menu button:hover,
.rich-slash-menu button:focus-visible,
.rich-slash-menu button.is-active {
  background: #292929;
  outline: 0;
}

.rich-slash-menu button strong {
  font-size: 14px;
  line-height: 1.4;
}

.rich-slash-menu button small {
  font-size: 12px;
  line-height: 1.45;
}

.rich-link-popover {
  border-color: #424242;
  background: rgb(24 24 24 / 98%);
  box-shadow: 0 20px 58px rgb(0 0 0 / 48%);
  transform: translateX(-50%) translateY(-4px) scale(0.985);
  transform-origin: top center;
}

.rich-link-popover.is-open {
  transform: translateX(-50%) translateY(0) scale(1);
}

.rich-link-popover label span,
.rich-link-popover button {
  font-size: 12px;
}

.rich-link-popover input {
  font-size: 14px;
}

.rich-editor-surface figure.doc-image {
  transition:
    box-shadow 170ms var(--doc-motion-ease),
    width 190ms var(--doc-motion-ease),
    margin-left 190ms var(--doc-motion-ease);
}

.rich-editor-surface figure.doc-image.is-image-active {
  box-shadow: 0 0 0 1px #777777, 0 12px 36px rgb(0 0 0 / 20%);
}

.local-rich-article {
  max-width: var(--doc-content-measure);
  font-size: var(--doc-body-size);
  line-height: var(--doc-body-leading);
}

.local-rich-article-body {
  grid-template-columns: minmax(0, var(--doc-content-measure)) 250px;
  gap: 56px;
}

.rich-document-footer p {
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 1020px) {
  .rich-editor-layout {
    grid-template-columns: 1fr;
    width: min(900px, calc(100% - 40px));
  }
}

@media (max-width: 720px) {
  .rich-document-editor,
  .local-workflow-article {
    --doc-body-size: 17px;
    --doc-body-leading: 1.82;
    --doc-h2-size: 26px;
    --doc-h3-size: 21px;
  }

  .rich-editor-layout {
    width: min(100% - 20px, 640px);
  }

  .rich-document-paper {
    padding: 34px 22px 42px;
  }

  .draft-document-title {
    font-size: 32px;
    line-height: 1.18;
  }

  .draft-document-summary {
    min-height: 50px;
    font-size: 17px;
    line-height: 1.75;
  }

  .rich-document-tip {
    margin-top: 24px;
  }

  .rich-document-tip p,
  .rich-document-tip strong {
    font-size: 12px;
  }

  .local-rich-article-body {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rich-block-rail,
  .rich-block-menu,
  .rich-selection-toolbar,
  .rich-image-toolbar,
  .rich-slash-menu,
  .rich-link-popover,
  .rich-editor-toolbar button,
  .rich-editor-outline nav button,
  .rich-block-menu button,
  .rich-slash-menu button,
  .rich-editor-surface [data-doc-block],
  .rich-editor-surface figure.doc-image {
    animation: none !important;
    transition: none !important;
  }
}

/* article-typeset-standard-v29.css */
/* Article typeset standard v29
 * Structure: Banner Motion Video article.
 * Reading system: Montserrat 18px / 1.9 leading / 90ch measure / 2em flow.
 */

:root {
  --hux-article-size: 18px;
  --hux-article-leading: 1.9;
  --hux-article-flow: 2em;
  --hux-article-measure: 90ch;
  --hux-article-section-gap: calc(var(--hux-article-size) * 3.5);
  --hux-article-subsection-gap: calc(var(--hux-article-size) * 2.25);
  --hux-article-heading-follow-gap: var(--hux-article-size);
  --hux-article-tight-heading-gap: calc(var(--hux-article-size) * 1.125);
}

.workflow-article-main,
.markdown-article,
.local-rich-article,
.rich-editor-surface {
  max-width: var(--hux-article-measure);
  color: #c8c8c8;
  font-family: var(--font-body);
  font-size: var(--hux-article-size);
  line-height: var(--hux-article-leading);
}

.markdown-article-body,
.local-rich-article-body {
  grid-template-columns: minmax(0, var(--hux-article-measure)) 250px;
  gap: 56px;
}

.workflow-article-hero p,
.local-workflow-article .workflow-article-hero p {
  max-width: 46em;
  font-size: var(--hux-article-size);
  line-height: var(--hux-article-leading);
}

/* Typeset flow: common blocks 2em apart, headings use a deliberate section rhythm. */
.markdown-article > *,
.local-rich-article > *,
.rich-editor-surface > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.markdown-article > * + *,
.local-rich-article > * + *,
.rich-editor-surface > * + * {
  margin-block-start: var(--hux-article-flow);
}

.markdown-article > * + .markdown-heading-2,
.local-rich-article > * + h2,
.rich-editor-surface > * + h2 {
  margin-block-start: var(--hux-article-section-gap);
}

.markdown-article > * + .markdown-heading-3,
.local-rich-article > * + h3,
.rich-editor-surface > * + h3 {
  margin-block-start: var(--hux-article-subsection-gap);
}

.markdown-article > .markdown-heading-2 + p,
.markdown-article > .markdown-heading-2 + ul,
.markdown-article > .markdown-heading-2 + ol,
.markdown-article > .markdown-heading-3 + p,
.markdown-article > .markdown-heading-3 + ul,
.markdown-article > .markdown-heading-3 + ol,
.markdown-article > .markdown-heading-2 + blockquote,
.markdown-article > .markdown-heading-2 + pre,
.markdown-article > .markdown-heading-2 + figure,
.markdown-article > .markdown-heading-3 + blockquote,
.markdown-article > .markdown-heading-3 + pre,
.markdown-article > .markdown-heading-3 + figure,
.local-rich-article > h2 + p,
.local-rich-article > h2 + ul,
.local-rich-article > h2 + ol,
.local-rich-article > h2 + blockquote,
.local-rich-article > h2 + pre,
.local-rich-article > h2 + figure,
.local-rich-article > h3 + p,
.local-rich-article > h3 + ul,
.local-rich-article > h3 + ol,
.local-rich-article > h3 + blockquote,
.local-rich-article > h3 + pre,
.local-rich-article > h3 + figure,
.rich-editor-surface > h2 + p,
.rich-editor-surface > h2 + ul,
.rich-editor-surface > h2 + ol,
.rich-editor-surface > h2 + blockquote,
.rich-editor-surface > h2 + pre,
.rich-editor-surface > h2 + figure,
.rich-editor-surface > h3 + p,
.rich-editor-surface > h3 + ul,
.rich-editor-surface > h3 + ol,
.rich-editor-surface > h3 + blockquote,
.rich-editor-surface > h3 + pre,
.rich-editor-surface > h3 + figure {
  margin-block-start: var(--hux-article-heading-follow-gap);
}

.markdown-article > .markdown-heading-2 + .markdown-heading-3,
.local-rich-article > h2 + h3,
.rich-editor-surface > h2 + h3 {
  margin-block-start: var(--hux-article-tight-heading-gap);
}

/* Body section levels map to the Typeset 18px scale while the Motion Video hero stays larger. */
.markdown-article .markdown-heading-2 h2,
.local-rich-article > h2,
.rich-editor-surface > h2 {
  margin: 0;
  padding: 0;
  color: #f0f0f0;
  font-family: var(--font-heading);
  font-size: 1.75em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.markdown-article .markdown-heading-3 h3,
.local-rich-article > h3,
.rich-editor-surface > h3 {
  margin: 0;
  color: #ededed;
  font-family: var(--font-heading);
  font-size: 1.25em;
  font-weight: 680;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.markdown-article > p,
.local-rich-article > p,
.rich-editor-surface > p,
.markdown-article li,
.local-rich-article li,
.rich-editor-surface li,
.markdown-article blockquote,
.local-rich-article blockquote,
.rich-editor-surface blockquote {
  font-size: 1em;
  line-height: inherit;
}

.markdown-article > p,
.markdown-article > ul,
.markdown-article > ol,
.markdown-article > blockquote,
.local-rich-article > p,
.local-rich-article > ul,
.local-rich-article > ol,
.local-rich-article > blockquote,
.rich-editor-surface > p,
.rich-editor-surface > ul,
.rich-editor-surface > ol,
.rich-editor-surface > blockquote {
  margin-block-end: 0;
}

.markdown-article > ul,
.markdown-article > ol,
.local-rich-article > ul,
.local-rich-article > ol,
.rich-editor-surface > ul,
.rich-editor-surface > ol {
  gap: 0;
  padding-left: 1.4em;
}

.markdown-article li + li,
.local-rich-article li + li,
.rich-editor-surface li + li {
  margin-block-start: 0.5em;
}

.markdown-article blockquote > p,
.local-rich-article blockquote > p,
.rich-editor-surface blockquote > p {
  margin: 0;
}

.markdown-article pre,
.local-rich-article pre,
.rich-editor-surface pre {
  margin-block: 0;
  padding: 20px 22px;
  font-size: 0.875em;
  line-height: 1.5;
}

.markdown-article table,
.local-rich-article table,
.rich-editor-surface table {
  font-size: 1em;
  line-height: 1.5;
}

.markdown-article .markdown-media,
.markdown-article .markdown-video-figure,
.local-rich-article figure.doc-image,
.rich-editor-surface figure.doc-image {
  margin-block: 0;
}

.workflow-media figcaption,
.markdown-media figcaption,
.markdown-video-figure figcaption,
.local-rich-article figcaption,
.rich-editor-surface figcaption {
  margin-top: 0.75em;
  font-size: 13px;
  line-height: 1.65;
}

/* The editor paper uses the same readable line length as the article body. */
.rich-editor-layout {
  grid-template-columns: 220px minmax(0, 960px);
  gap: 44px;
  width: min(1270px, calc(100% - 48px));
}

.rich-document-paper {
  padding-inline: 64px;
}

.rich-editor-surface {
  --doc-body-size: var(--hux-article-size);
  --doc-body-leading: var(--hux-article-leading);
}

.rich-editor-surface .doc-callout p,
.local-rich-article .doc-callout p {
  font-size: 1em;
  line-height: inherit;
}

@media (max-width: 1020px) {
  .rich-editor-layout {
    grid-template-columns: 1fr;
    width: min(960px, calc(100% - 40px));
  }
}

@media (max-width: 720px) {
  :root {
    --hux-article-size: 17px;
    --hux-article-leading: 1.85;
    --hux-article-measure: 100%;
  }

  .markdown-article-body,
  .local-rich-article-body {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .workflow-article-hero p,
  .local-workflow-article .workflow-article-hero p {
    font-size: var(--hux-article-size);
    line-height: var(--hux-article-leading);
  }

  .markdown-article .markdown-heading-2 h2,
  .local-rich-article > h2,
  .rich-editor-surface > h2 {
    font-size: 1.53em;
  }

  .markdown-article .markdown-heading-3 h3,
  .local-rich-article > h3,
  .rich-editor-surface > h3 {
    font-size: 1.24em;
  }

  .rich-editor-layout {
    width: min(100% - 20px, 640px);
  }

  .rich-document-paper {
    padding-inline: 22px;
  }
}

/* markdown-rhythm-v30.css */
/* Markdown rhythm v30
 * A relationship-aware reading rhythm shared by published articles,
 * local workflow previews, and the rich document editor.
 */

:root {
  --hux-md-size: var(--hux-article-size, 18px);
  --hux-md-leading: var(--hux-article-leading, 1.9);
  --hux-md-measure: var(--hux-article-measure, 90ch);
  --hux-md-flow: calc(var(--hux-md-size) * 2);
  --hux-md-paragraph-gap: calc(var(--hux-md-size) * 0.75);
  --hux-md-related-gap: var(--hux-md-size);
  --hux-md-list-exit-gap: calc(var(--hux-md-size) * 1.25);
  --hux-md-section-gap: calc(var(--hux-md-size) * 3.5);
  --hux-md-subsection-gap: calc(var(--hux-md-size) * 2.25);
  --hux-md-divider-gap: calc(var(--hux-md-size) * 2.75);
}

:is(.markdown-article, .local-rich-article, .rich-editor-surface) {
  max-width: var(--hux-md-measure);
  font-size: var(--hux-md-size);
  line-height: var(--hux-md-leading);
}

/* Reset legacy physical margins before applying one authoritative rhythm. */
:is(.markdown-article, .local-rich-article, .rich-editor-surface)
  > :where(p, ul, ol, pre, blockquote, figure, table, hr, h2, h3, .doc-callout, .markdown-section) {
  margin: 0;
}

.markdown-article > .markdown-section > :is(h2, h3) {
  margin: 0;
}

:is(.local-rich-article, .rich-editor-surface) > div:not([class]) {
  margin: 0;
  font-size: 1em;
  line-height: inherit;
}

/* 2em is the default Typeset flow for genuinely separate content blocks. */
:is(.markdown-article, .local-rich-article, .rich-editor-surface)
  > :where(p, ul, ol, pre, blockquote, figure, table, hr, h2, h3, .doc-callout, .markdown-section)
  + :where(p, ul, ol, pre, blockquote, figure, table, hr, h2, h3, .doc-callout, .markdown-section) {
  margin-top: var(--hux-md-flow);
}

/* Consecutive prose remains visibly grouped. */
:is(.markdown-article, .local-rich-article, .rich-editor-surface) > p + p {
  margin-top: var(--hux-md-paragraph-gap);
}

:is(.local-rich-article, .rich-editor-surface)
  > :is(p, div:not([class]))
  + :is(p, div:not([class])) {
  margin-top: var(--hux-md-paragraph-gap);
}

/* A lead-in sentence and the list/code it introduces form one reading unit. */
:is(.markdown-article, .local-rich-article, .rich-editor-surface) > p + :is(ul, ol) {
  margin-top: var(--hux-md-paragraph-gap);
}

:is(.markdown-article, .local-rich-article, .rich-editor-surface) > p + pre,
:is(.markdown-article, .local-rich-article, .rich-editor-surface) > pre + p {
  margin-top: var(--hux-md-related-gap);
}

:is(.markdown-article, .local-rich-article, .rich-editor-surface) > :is(ul, ol) + p {
  margin-top: var(--hux-md-list-exit-gap);
}

/* Chapters and subsections always start on the same vertical scale. */
.markdown-article > * + .markdown-heading-2,
.local-rich-article > * + h2,
.rich-editor-surface > * + h2 {
  margin-top: var(--hux-md-section-gap);
}

.markdown-article > * + .markdown-heading-3,
.local-rich-article > * + h3,
.rich-editor-surface > * + h3 {
  margin-top: var(--hux-md-subsection-gap);
}

.markdown-article > .markdown-heading-2 + .markdown-heading-3,
.local-rich-article > h2 + h3,
.rich-editor-surface > h2 + h3 {
  margin-top: calc(var(--hux-md-size) * 1.125);
}

.markdown-article > :is(.markdown-heading-2, .markdown-heading-3)
  + :is(p, ul, ol, pre, blockquote, figure, table, .doc-callout),
.local-rich-article > :is(h2, h3)
  + :is(p, ul, ol, pre, blockquote, figure, table, .doc-callout),
.rich-editor-surface > :is(h2, h3)
  + :is(p, ul, ol, pre, blockquote, figure, table, .doc-callout, div:not([class])) {
  margin-top: var(--hux-md-related-gap);
}

.local-rich-article > :is(h2, h3) + div:not([class]) {
  margin-top: var(--hux-md-related-gap);
}

/* Contenteditable uses <div><br></div> for an intentional blank line.
 * Keep the caret line while preventing it from doubling the next chapter gap.
 */
:is(.local-rich-article, .rich-editor-surface)
  > div:not([class]):has(> br:only-child)
  + h2 {
  margin-top: calc(var(--hux-md-size) * 0.67);
}

/* A divider owns the separation around it; the following chapter does not double it. */
:is(.markdown-article, .local-rich-article, .rich-editor-surface) > * + hr {
  margin-top: var(--hux-md-divider-gap);
}

.markdown-article > hr + .markdown-heading-2,
.local-rich-article > hr + h2,
.rich-editor-surface > hr + h2 {
  margin-top: var(--hux-md-divider-gap);
}

:is(.markdown-article, .local-rich-article, .rich-editor-surface) > hr {
  height: 1px;
  border: 0;
  background: #323236;
}

/* Lists use a calmer internal rhythm than surrounding article blocks. */
:is(.markdown-article, .local-rich-article, .rich-editor-surface) > :is(ul, ol) {
  display: grid;
  gap: 0;
  padding-left: 1.45em;
}

:is(.markdown-article, .local-rich-article, .rich-editor-surface) li {
  padding-left: 0.2em;
  font-size: 1em;
  line-height: 1.75;
}

:is(.markdown-article, .local-rich-article, .rich-editor-surface) li + li {
  margin-top: 0.45em;
}

:is(.markdown-article, .local-rich-article, .rich-editor-surface) li::marker {
  color: #7b7b82;
}

/* Code, quotes and callouts share the same outer geometry. */
:is(.markdown-article, .local-rich-article, .rich-editor-surface) > pre {
  overflow-x: auto;
  padding: 18px 20px;
  border: 1px solid #343438;
  border-radius: 6px;
  background: #101013;
  font-size: 0.875em;
  line-height: 1.6;
  white-space: pre;
}

:is(.markdown-article, .local-rich-article, .rich-editor-surface) > blockquote {
  padding: 0.35em 0 0.35em 1.15em;
  border-left: 3px solid #5e5e64;
  color: #b9b9bf;
  font-style: normal;
}

:is(.markdown-article, .local-rich-article, .rich-editor-surface) > blockquote > p,
:is(.markdown-article, .local-rich-article, .rich-editor-surface) > .doc-callout > p {
  margin: 0;
}

:is(.markdown-article, .local-rich-article, .rich-editor-surface) > .doc-callout {
  padding: 18px 20px;
}

/* Media aligns with the reading column and keeps captions optically attached. */
:is(.markdown-article, .local-rich-article, .rich-editor-surface)
  > :is(.markdown-media, .markdown-video-figure, figure.doc-image) {
  width: 100%;
}

:is(.markdown-article, .local-rich-article, .rich-editor-surface) figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  :root {
    --hux-md-section-gap: calc(var(--hux-md-size) * 2.75);
    --hux-md-subsection-gap: calc(var(--hux-md-size) * 1.9);
    --hux-md-divider-gap: calc(var(--hux-md-size) * 2.25);
  }

  :is(.markdown-article, .local-rich-article, .rich-editor-surface) > pre {
    padding: 16px;
  }
}

/* article-hero-polish-v31.css */
/* Article hero polish v31
 * A compact editorial cover system shared by published articles and previews.
 */

.workflow-article-hero {
  isolation: isolate;
  padding: 44px 48px 40px;
  border: 1px solid #303034;
  border-left-width: 1px;
  background:
    linear-gradient(118deg, rgb(255 77 77 / 4.5%), transparent 34%),
    #101010;
  box-shadow: inset 3px 0 0 var(--brand);
}

.workflow-article-hero::before {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 48px;
  width: 72px;
  height: 2px;
  background: var(--brand);
  content: "";
  opacity: 0.92;
  pointer-events: none;
}

.workflow-article-hero::after {
  z-index: -1;
  background:
    radial-gradient(circle at 92% 8%, rgb(255 77 77 / 8%), transparent 30%),
    linear-gradient(90deg, transparent 56%, rgb(255 255 255 / 1.8%) 100%);
  mask-image: none;
  opacity: 1;
}

.workflow-article-hero-main {
  max-width: none;
  gap: 0;
}

.workflow-article-meta {
  min-height: 30px;
  gap: 10px;
  color: #85858c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.workflow-article-meta .badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-color: #39393e;
  background: #141416;
  color: #e2e2e5;
  font-size: 12px;
  line-height: 1;
}

.workflow-article-type {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding-left: 12px;
  border-left-color: #3a3a3f;
  letter-spacing: 0.11em;
}

.workflow-article-hero h1 {
  max-width: 100%;
  margin-top: 28px;
  color: #f3f3f4;
  font-size: clamp(40px, 3.4vw, 50px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}

.workflow-article-hero p {
  max-width: 60ch;
  margin-top: 22px;
  color: #a8a8af;
  font-size: 18px;
  line-height: 1.85;
  text-wrap: pretty;
}

.workflow-article-facts {
  width: 100%;
  grid-template-columns: minmax(0, 1.45fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr);
  gap: 0;
  margin-top: 30px;
  padding-top: 20px;
  border-top-color: #303034;
}

.workflow-article-facts div {
  gap: 6px;
  padding-right: 24px;
}

.workflow-article-facts div + div {
  padding-right: 0;
  padding-left: 24px;
  border-left: 1px solid #2b2b2f;
}

.workflow-article-facts dt {
  color: #74747b;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.workflow-article-facts dd {
  color: #d0d0d4;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.55;
}

.workflow-quick-flow {
  padding: 48px 0 52px;
  border-bottom-color: #29292d;
}

.workflow-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  align-items: end;
  gap: 40px;
  margin-bottom: 22px;
}

.workflow-section-heading > div {
  gap: 7px;
}

.workflow-section-heading h2,
.workflow-block h2 {
  font-size: 28px;
  font-weight: 660;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.workflow-section-heading p {
  max-width: none;
  color: #7d7d84;
  font-size: 14px;
  line-height: 1.65;
}

.workflow-step-flow {
  border-color: #303034;
  background: #0f0f10;
}

.workflow-step-flow li + li {
  border-left-color: #303034;
}

.workflow-step-flow button {
  position: relative;
  overflow: hidden;
  min-height: 124px;
  column-gap: 14px;
  row-gap: 7px;
  padding: 24px 22px;
  transition: background-color 180ms ease;
}

.workflow-step-flow button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.18);
  transform-origin: left;
  transition: opacity 160ms ease, transform 210ms ease;
}

.workflow-step-flow button:hover {
  background: #151516;
}

.workflow-step-flow button:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.workflow-step-flow button:focus-visible {
  z-index: 1;
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  background: #151516;
}

.workflow-step-flow button:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.workflow-step-number {
  width: 36px;
  height: 36px;
  border-color: #3b3b40;
  background: #121214;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.workflow-step-flow strong {
  color: #e8e8ea;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.workflow-step-flow small {
  color: #77777e;
  font-size: 13px;
  line-height: 1.6;
}

.workflow-step-flow i {
  color: #65656c;
  transition: color 180ms ease, transform 180ms ease;
}

.workflow-step-flow button:hover i {
  color: var(--brand);
  transform: translate(2px, -2px);
}

@media (max-width: 860px) {
  .workflow-article-hero {
    padding: 36px 32px 32px;
  }

  .workflow-article-hero::before {
    left: 32px;
    width: 60px;
  }

  .workflow-article-hero h1 {
    margin-top: 26px;
    font-size: clamp(34px, 7vw, 42px);
  }

  .workflow-article-hero p {
    margin-top: 20px;
  }

  .workflow-article-facts {
    grid-template-columns: minmax(0, 1.25fr) minmax(130px, 0.75fr) minmax(130px, 0.75fr);
    margin-top: 26px;
  }

  .workflow-article-facts div {
    padding-right: 18px;
  }

  .workflow-article-facts div + div {
    padding-left: 18px;
  }

  .workflow-section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 28px;
  }

  .workflow-step-flow button {
    min-height: 116px;
    padding: 20px 18px;
  }
}

@media (max-width: 720px) {
  .workflow-article-hero {
    padding: 30px 22px 26px;
  }

  .workflow-article-hero::before {
    left: 22px;
    width: 52px;
  }

  .workflow-article-meta {
    gap: 8px;
  }

  .workflow-article-hero h1 {
    margin-top: 24px;
    font-size: 30px;
    line-height: 1.16;
  }

  .workflow-article-hero p {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.85;
  }

  .workflow-article-facts {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 24px;
    padding-top: 8px;
  }

  .workflow-article-facts div,
  .workflow-article-facts div + div {
    gap: 4px;
    padding: 12px 0;
    border-left: 0;
  }

  .workflow-article-facts div + div {
    border-top: 1px solid #29292d;
  }

  .workflow-quick-flow {
    padding: 36px 0 42px;
  }

  .workflow-section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
  }

  .workflow-section-heading h2,
  .workflow-block h2 {
    font-size: 25px;
  }

  .workflow-section-heading p {
    font-size: 13px;
  }

  .workflow-step-flow li + li {
    border-top-color: #303034;
  }

  .workflow-step-flow button {
    min-height: 104px;
    padding: 18px;
  }
}

@media (hover: none) {
  .workflow-step-flow button:hover {
    background: transparent;
  }

  .workflow-step-flow button:hover::after {
    opacity: 0;
    transform: scaleX(0.18);
  }

  .workflow-step-flow button:hover i {
    color: #65656c;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-step-flow button,
  .workflow-step-flow button::after,
  .workflow-step-flow i {
    transition: none;
  }
}

/* article-rail-polish-v32.css */
/* Article rail polish v32
 * Readable supporting navigation for long-form workflow articles.
 */

.markdown-article-body,
.local-rich-article-body {
  grid-template-columns: minmax(0, var(--hux-article-measure, 90ch)) 276px;
  gap: 48px;
}

.workflow-article-aside {
  border-color: #303034;
  background: #303034;
}

.workflow-article-aside::before {
  width: 72px;
}

.workflow-rail-panel {
  background: #101011;
}

.workflow-rail-header {
  min-height: 48px;
  padding: 0 16px;
  border-bottom-color: #2c2c30;
}

.workflow-rail-header .section-kicker {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
}

.workflow-rail-index {
  color: #77777e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
}

.workflow-rail-title {
  gap: 5px;
  padding: 17px 16px 16px;
  border-bottom-color: #2c2c30;
}

.workflow-rail-title strong {
  color: #ededee;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.workflow-rail-title > span {
  color: #74747b;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}

.workflow-toc nav {
  gap: 1px;
  padding: 7px 0;
}

.workflow-toc button {
  position: relative;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 40px;
  padding: 9px 16px;
  color: #a0a0a7;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  transition: background-color 170ms ease, color 170ms ease;
}

.workflow-toc button::before {
  position: absolute;
  inset: 7px auto 7px 0;
  width: 2px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleY(0.35);
  transition: opacity 150ms ease, transform 190ms ease;
}

.workflow-toc button:hover,
.workflow-toc button:focus-visible {
  background: rgb(255 77 77 / 7%);
  color: #f0f0f2;
}

.workflow-toc button:hover::before,
.workflow-toc button:focus-visible::before {
  opacity: 1;
  transform: scaleY(1);
}

.workflow-toc button:focus-visible {
  outline: 1px solid rgb(255 77 77 / 70%);
  outline-offset: -1px;
}

.workflow-toc-number {
  color: #68686f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.82;
}

.workflow-rail-footer {
  min-height: 44px;
  padding: 0 16px;
  border-top-color: #2c2c30;
  color: #7d7d84;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.workflow-rail-footer span:last-child {
  color: #66666d;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.workflow-source-content {
  gap: 10px;
  padding: 18px 16px 19px;
  font-size: 13px;
  line-height: 1.75;
}

.workflow-source-content strong {
  color: #ededee;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.workflow-source-note p {
  color: #929299;
  font-size: 13px;
  line-height: 1.75;
}

.workflow-source-link {
  min-height: 48px;
  padding: 0 16px;
  border-top-color: #2c2c30;
  color: #dedee1;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.workflow-source-link .icon {
  width: 14px;
  height: 14px;
  color: #77777e;
  transition: color 170ms ease, transform 170ms ease;
}

.workflow-source-link:hover .icon,
.workflow-source-link:focus-visible .icon {
  color: var(--brand);
  transform: translate(2px, -2px);
}

@media (max-width: 1020px) {
  .markdown-article-body,
  .local-rich-article-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .workflow-article-aside {
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  }
}

@media (max-width: 720px) {
  .workflow-article-aside {
    grid-template-columns: 1fr;
    max-height: min(480px, 58vh);
  }

  .workflow-toc button {
    min-height: 42px;
    font-size: 14px;
  }

  .workflow-source-content,
  .workflow-source-note p,
  .workflow-source-link {
    font-size: 14px;
  }
}

@media (hover: none) {
  .workflow-toc button:hover {
    background: transparent;
    color: #a0a0a7;
  }

  .workflow-toc button:hover::before {
    opacity: 0;
    transform: scaleY(0.35);
  }

  .workflow-source-link:hover .icon {
    color: #77777e;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-toc button,
  .workflow-toc button::before,
  .workflow-source-link .icon {
    transition: none;
  }
}

/* asset-intake-split-v33.css */
/* Asset intake v33: choose a type in the vertical rail, then create it in the workspace. */

.portal-dialog[data-mode="intake"] {
  width: min(1260px, calc(100vw - 48px));
  height: min(860px, calc(100vh - 32px));
  max-height: min(860px, calc(100vh - 32px));
}

.portal-dialog[data-mode="intake"] .portal-dialog-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  max-height: none;
  overflow: hidden;
}

.portal-dialog[data-mode="intake"] .portal-dialog-header {
  position: relative;
  min-height: 98px;
  align-items: center;
  padding: 19px 28px;
}

.portal-dialog[data-mode="intake"] .portal-dialog-header h2 {
  margin-top: 3px;
  font-size: 27px;
}

.portal-dialog[data-mode="intake"] .portal-dialog-body {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.asset-intake-split {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 74px;
  gap: 0;
  height: 100%;
  min-height: 0;
}

.asset-intake-split > .intake-type-section {
  grid-column: 1;
  grid-row: 1;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 22px;
  min-height: 0;
  padding: 28px 24px 24px;
  overflow: auto;
  border-right: 1px solid #333333;
  background: #0b0b0b;
  scrollbar-color: #454545 transparent;
  scrollbar-width: thin;
}

.asset-intake-split .intake-section-heading {
  display: grid;
  gap: 12px;
  align-content: start;
}

.asset-intake-split .intake-section-heading > div {
  gap: 7px;
}

.asset-intake-split .intake-section-heading > div > span {
  font-size: 11px;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.asset-intake-split .intake-section-heading h3 {
  font-size: 23px;
  line-height: 1.25;
}

.asset-intake-split .intake-section-heading > p {
  max-width: 230px;
  padding: 0;
  border: 0;
  color: #777777;
  font-size: 13px;
  line-height: 1.65;
}

.asset-intake-split .intake-type-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  border: 0;
}

.asset-intake-split .intake-type-option {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 14px;
  min-height: 108px;
  padding: 17px 16px;
  border: 1px solid #303030;
  border-bottom: 0;
  background: #101010;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.asset-intake-split .intake-type-option:last-child {
  border-right: 1px solid #303030;
  border-bottom: 1px solid #303030;
}

.asset-intake-split .intake-type-option::before {
  top: 0;
  right: auto;
  bottom: 0;
  left: -1px;
  width: 2px;
  height: auto;
  opacity: 0;
  transform: scaleY(0.45);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.asset-intake-split .intake-type-option:hover,
.asset-intake-split .intake-type-option:focus-visible {
  z-index: 1;
  border-color: #454545;
  background: #151515;
}

.asset-intake-split .intake-type-option.active {
  z-index: 2;
  border-color: #5a3535;
  background: linear-gradient(100deg, rgb(255 77 77 / 10%), transparent 76%), #151313;
}

.asset-intake-split .intake-type-option.active::before {
  right: auto;
  opacity: 1;
  transform: scaleY(1);
}

.asset-intake-split .intake-type-code {
  grid-row: 1 / 3;
  align-self: center;
  width: 42px;
  height: 42px;
  font-size: 11px;
}

.asset-intake-split .intake-type-copy {
  grid-column: 2;
  gap: 3px;
}

.asset-intake-split .intake-type-copy strong {
  font-size: 16px;
  line-height: 1.4;
}

.asset-intake-split .intake-type-copy small {
  color: #757575;
  font-size: 12px;
  line-height: 1.5;
}

.asset-intake-split .intake-type-state {
  grid-column: 2;
  justify-self: start;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.35;
}

.asset-intake-split > .intake-workspace-simple,
.asset-intake-split > .intake-coming-soon {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
}

.asset-intake-split > .intake-workspace-simple {
  overflow: auto;
  border: 0;
  background: #101010;
  overscroll-behavior: contain;
  scrollbar-color: #454545 transparent;
  scrollbar-width: thin;
}

.asset-intake-split .intake-create-heading {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 108px;
  padding: 20px 26px;
  border-bottom: 1px solid #333333;
  background: rgb(16 16 16 / 96%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.asset-intake-split .intake-create-heading > div:first-child {
  max-width: 470px;
}

.asset-intake-split .intake-create-heading > div > span {
  font-size: 11px;
  letter-spacing: 0.14em;
}

.asset-intake-split .intake-create-heading h3 {
  font-size: 25px;
  line-height: 1.25;
}

.asset-intake-split .intake-create-heading p {
  font-size: 13px;
  line-height: 1.6;
}

.asset-intake-split .intake-create-heading .intake-method-switch {
  width: min(360px, 44%);
}

.asset-intake-split .intake-create-heading .intake-method-switch button {
  min-height: 46px;
  font-size: 14px;
}

.asset-intake-split .intake-mcp-entry {
  grid-template-columns: minmax(0, 1fr) 228px;
  gap: 22px;
  padding: 30px 28px;
}

.asset-intake-split .intake-mcp-lead h4,
.asset-intake-split .intake-manual-intro h4,
.asset-intake-split .mcp-wizard-header h4 {
  font-size: 27px;
}

.asset-intake-split .mcp-journey-grid li {
  min-height: 96px;
  padding: 15px;
}

.asset-intake-split .mcp-boundary-note {
  padding: 15px 18px;
}

.asset-intake-split .intake-manual-compact,
.asset-intake-split .mcp-setup-wizard {
  padding: 28px;
}

.asset-intake-split > .intake-coming-soon {
  display: grid;
  grid-template-columns: 56px minmax(0, 520px);
  justify-content: center;
  align-content: center;
  gap: 20px;
  padding: 48px;
  border: 0;
  background: linear-gradient(130deg, rgb(255 77 77 / 7%), transparent 48%), #101010;
}

.asset-intake-split > .intake-coming-soon > .intake-type-code {
  grid-row: 1;
  width: 56px;
  height: 56px;
}

.asset-intake-split > .intake-coming-soon h3 {
  margin: 7px 0 8px;
  font-size: 30px;
}

.asset-intake-split > .intake-coming-soon p {
  font-size: 14px;
  line-height: 1.75;
}

.asset-intake-split > .intake-coming-soon .button {
  grid-column: 2;
  justify-self: start;
  margin-top: 6px;
}

.asset-intake-split > .intake-review {
  z-index: 8;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 20px 24px;
  box-shadow: 0 16px 42px rgb(0 0 0 / 36%);
}

.asset-intake-split > .intake-actions-simple {
  position: relative;
  bottom: auto;
  z-index: 10;
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  min-height: 74px;
  margin: 0;
  padding: 0;
  border-top: 1px solid #383838;
  background: #0d0d0d;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.asset-intake-split > .intake-actions-simple > p {
  align-content: center;
  padding: 13px 24px;
  border-right: 1px solid #333333;
}

.asset-intake-split > .intake-actions-simple > div {
  align-items: center;
  padding: 12px 24px;
}

.asset-intake-split > .intake-actions-simple .button {
  min-height: 46px;
  font-size: 14px;
}

.asset-intake-split > .intake-actions-simple [data-intake-primary] {
  min-width: 204px;
}

.asset-intake-simple.mcp-wizard-active > .intake-type-section {
  display: grid;
}

.asset-intake-split.mcp-wizard-active .intake-workspace-simple {
  border-top: 0;
}

.asset-intake-split.mcp-wizard-active .mcp-setup-wizard {
  min-height: 100%;
}

@media (max-width: 1040px) {
  .asset-intake-split {
    grid-template-columns: 254px minmax(0, 1fr);
  }

  .asset-intake-split > .intake-type-section {
    padding-inline: 18px;
  }

  .asset-intake-split > .intake-actions-simple {
    grid-template-columns: 254px minmax(0, 1fr);
  }

  .asset-intake-split .intake-create-heading {
    display: grid;
    gap: 16px;
  }

  .asset-intake-split .intake-create-heading .intake-method-switch {
    width: 100%;
  }

  .asset-intake-split .intake-mcp-entry {
    grid-template-columns: 1fr;
  }

  .asset-intake-split .mcp-entry-status {
    min-height: 84px;
  }
}

@media (max-width: 720px) {
  .portal-dialog[data-mode="intake"] {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
  }

  .portal-dialog[data-mode="intake"] .portal-dialog-header {
    min-height: 82px;
    padding: 14px 16px;
  }

  .portal-dialog[data-mode="intake"] .portal-dialog-header h2 {
    font-size: 23px;
  }

  .asset-intake-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) 68px;
  }

  .asset-intake-split > .intake-type-section {
    grid-column: 1;
    grid-row: 1;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 14px 16px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid #333333;
  }

  .asset-intake-split .intake-section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.8fr);
    align-items: end;
    gap: 16px;
  }

  .asset-intake-split .intake-section-heading h3 {
    font-size: 19px;
  }

  .asset-intake-split .intake-section-heading > p {
    font-size: 11px;
  }

  .asset-intake-split .intake-type-grid {
    grid-template-columns: repeat(4, minmax(154px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .asset-intake-split .intake-type-grid::-webkit-scrollbar {
    display: none;
  }

  .asset-intake-split .intake-type-option {
    min-height: 82px;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid #303030;
    scroll-snap-align: start;
  }

  .asset-intake-split .intake-type-option:last-child {
    border-right: 1px solid #303030;
  }

  .asset-intake-split .intake-type-copy small,
  .asset-intake-split .intake-type-state {
    display: none;
  }

  .asset-intake-split .intake-type-code {
    grid-row: 1;
    width: 36px;
    height: 36px;
  }

  .asset-intake-split .intake-type-copy {
    align-self: center;
  }

  .asset-intake-split > .intake-workspace-simple,
  .asset-intake-split > .intake-coming-soon {
    grid-column: 1;
    grid-row: 2;
  }

  .asset-intake-split .intake-create-heading {
    position: relative;
    min-height: auto;
    padding: 16px;
  }

  .asset-intake-split .intake-create-heading h3 {
    font-size: 22px;
  }

  .asset-intake-split .intake-create-heading .intake-method-switch button {
    font-size: 13px;
    white-space: nowrap;
  }

  .asset-intake-split .intake-mcp-entry,
  .asset-intake-split .intake-manual-compact,
  .asset-intake-split .mcp-setup-wizard {
    padding: 20px 16px 24px;
  }

  .asset-intake-split > .intake-coming-soon {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 24px 18px;
  }

  .asset-intake-split > .intake-coming-soon > .intake-type-code {
    width: 48px;
    height: 48px;
  }

  .asset-intake-split > .intake-coming-soon h3 {
    font-size: 24px;
  }

  .asset-intake-split > .intake-review {
    grid-column: 1;
    grid-row: 2;
    margin: 12px 16px;
  }

  .asset-intake-split > .intake-actions-simple {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: 1fr;
    min-height: 68px;
  }

  .asset-intake-split > .intake-actions-simple > p {
    display: none;
  }

  .asset-intake-split > .intake-actions-simple > div {
    display: flex;
    width: 100%;
    padding: 10px 12px;
  }

  .asset-intake-split > .intake-actions-simple [data-intake-primary] {
    flex: 1;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .asset-intake-split .intake-type-option,
  .asset-intake-split .intake-type-option::before {
    transition: none !important;
  }
}

/* article-cleanup-v35.css */
/* Article decoration cleanup v35 */

.workflow-article-hero::before {
  content: none;
}

/* agent-onboarding-v36.css */
/* Hux Agent onboarding v36 */

.agent-onboarding-slot[hidden] {
  display: none;
}

.agent-onboarding-slot {
  margin-bottom: 34px;
}

.agent-copy-launcher {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #eeeeef;
}

.agent-copy-launcher-home {
  min-height: 164px;
  align-content: center;
  padding: 28px 34px;
  border: 1px solid #303034;
  background:
    radial-gradient(circle at 15% 50%, rgb(255 77 77 / 8%), transparent 26%),
    linear-gradient(100deg, #101010, #151314 66%, #101010);
}

.agent-copy-launcher-home .agent-copy-pill {
  min-width: 560px;
  min-height: 62px;
}

.agent-copy-launcher-home .agent-copy-label {
  font-size: 18px;
}

.agent-copy-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #38383d;
  border-radius: 8px;
  background: #121214;
  color: #a7a7ad;
  font-size: 12px;
  line-height: 1.45;
}

.agent-copy-tip::after {
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid #38383d;
  border-bottom: 1px solid #38383d;
  background: #121214;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.agent-copy-tip img {
  width: 14px;
  height: 14px;
  filter: invert(74%);
}

.agent-copy-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
}

.agent-copy-pill {
  display: inline-grid;
  grid-template-columns: 30px minmax(0, auto) auto 32px;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 6px 8px 6px 10px;
  border: 1px solid #5a5a60;
  border-radius: 999px;
  background: #202023;
  color: #f2f2f3;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.agent-copy-pill:hover {
  border-color: #85858c;
  background: #27272b;
  transform: translateY(-1px);
}

.agent-copy-pill:focus-visible {
  outline-offset: 3px;
}

.agent-copy-launcher.copied .agent-copy-pill {
  border-color: rgb(255 77 77 / 72%);
  background: linear-gradient(90deg, rgb(255 77 77 / 11%), #222225 42%);
}

.hux-agent-signal {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgb(255 77 77 / 50%);
  border-radius: 50%;
  background: rgb(255 77 77 / 9%);
  color: var(--brand);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 750;
}

.agent-copy-label {
  min-width: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 620;
  line-height: 1.35;
  white-space: nowrap;
}

.agent-client-strip {
  display: flex;
  align-items: center;
  padding-left: 4px;
}

.agent-client-mark {
  display: grid;
  width: 28px;
  height: 28px;
  margin-left: -4px;
  place-items: center;
  border: 1px solid #4b4b50;
  border-radius: 50%;
  background: #151517;
  color: #d8d8dc;
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  line-height: 1;
}

.agent-client-mark:first-child {
  margin-left: 0;
}

.agent-client-mark[data-client="claude"] {
  color: #ff7867;
}

.agent-client-mark[data-client="cursor"] {
  border-radius: 7px;
  color: #f1f1f2;
}

.agent-client-mark[data-client="copilot"] {
  border-radius: 7px;
  color: #a9c5b5;
}

.agent-copy-status {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-left: 1px solid #4a4a4f;
  color: #a7a7ad;
}

.agent-copy-status img {
  width: 17px;
  height: 17px;
  filter: invert(72%);
}

.agent-copy-launcher.copied .agent-copy-status {
  color: var(--brand);
  font-size: 17px;
  font-weight: 800;
}

.agent-copy-config,
.agent-copy-dismiss {
  display: inline-grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid #3c3c41;
  background: #111113;
  color: #b6b6bb;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.agent-copy-config {
  min-width: 102px;
  padding: 0 16px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 620;
}

.agent-copy-dismiss {
  width: 48px;
  padding: 0;
  border-radius: 50%;
}

.agent-copy-config:hover,
.agent-copy-dismiss:hover {
  border-color: #68686e;
  background: #19191b;
  color: #f0f0f1;
}

.agent-copy-dismiss img {
  width: 17px;
  height: 17px;
  filter: invert(72%);
}

.agent-copy-launcher-mcp {
  grid-column: 1 / -1;
  justify-items: start;
  padding: 22px 24px;
  border: 1px solid #36363a;
  background:
    linear-gradient(100deg, rgb(255 77 77 / 8%), transparent 34%),
    #101011;
}

.agent-copy-launcher-mcp .agent-copy-tip::after {
  left: 30px;
}

.agent-copy-launcher-mcp .agent-copy-pill {
  min-height: 54px;
}

.agent-copy-launcher-mcp .agent-copy-note {
  margin: 0;
  color: #717177;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .agent-copy-launcher-home {
    min-height: 0;
    padding: 24px 18px;
  }

  .agent-copy-tip {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .agent-copy-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .agent-copy-pill {
    width: 100%;
    min-width: 0;
    grid-template-columns: 28px minmax(0, 1fr) auto 30px;
  }

  .agent-copy-label {
    font-size: 14px;
    white-space: normal;
  }

  .agent-copy-config {
    flex: 1;
  }

  .agent-client-mark:nth-child(n + 4) {
    display: none;
  }

  .agent-copy-launcher-mcp {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-copy-pill,
  .agent-copy-config,
  .agent-copy-dismiss {
    transition: none;
  }
}

/* agent-onboarding-v37.css */
/* Hux Agent onboarding v37 — verified Claude, Codex and Cursor marks */

:root {
  --agent-surface: #1d1d20;
  --agent-surface-hover: #232326;
  --agent-border: #4b4b51;
  --agent-border-active: #77777e;
  --agent-text: #f1f1f2;
  --agent-muted: #aaaab0;
  --agent-ease: cubic-bezier(0.33, 1, 0.68, 1);
  --agent-feedback-duration: 180ms;
}

.agent-onboarding-slot {
  margin-bottom: 32px;
}

.agent-copy-launcher {
  gap: 14px;
}

.agent-copy-launcher-home {
  min-height: 158px;
  padding: 30px 32px;
  border-color: #2d2d31;
  background:
    radial-gradient(circle at 50% 0, rgb(255 255 255 / 4%), transparent 36%),
    linear-gradient(100deg, rgb(255 77 77 / 5%), transparent 24% 74%, rgb(217 119 87 / 4%)),
    #101011;
}

.agent-copy-launcher-home .agent-copy-pill {
  min-width: 552px;
  min-height: 60px;
}

.agent-copy-tip {
  min-height: 36px;
  gap: 9px;
  padding: 8px 13px;
  border-color: #343439;
  background: rgb(18 18 20 / 96%);
  box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
  color: #b8b8bd;
  font-size: 13px;
  line-height: 1.45;
}

.agent-copy-tip::after {
  border-color: #343439;
  background: #121214;
}

.agent-copy-tip img {
  width: 15px;
  height: 15px;
}

.agent-copy-actions {
  gap: 12px;
}

.agent-copy-pill {
  grid-template-columns: minmax(0, auto) auto 40px;
  gap: 12px;
  min-height: 58px;
  padding: 7px 8px 7px 20px;
  border-color: var(--agent-border);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 4%), transparent 42%),
    var(--agent-surface);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 5%),
    0 12px 30px rgb(0 0 0 / 18%);
  color: var(--agent-text);
  transition:
    border-color var(--agent-feedback-duration) var(--agent-ease),
    background-color var(--agent-feedback-duration) var(--agent-ease),
    box-shadow var(--agent-feedback-duration) var(--agent-ease);
}

.agent-copy-pill:hover,
.agent-copy-pill:focus-visible {
  border-color: var(--agent-border-active);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 5%), transparent 45%),
    var(--agent-surface-hover);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 7%),
    0 14px 34px rgb(0 0 0 / 24%);
  transform: none;
}

.agent-copy-pill:active {
  border-color: #8b8b92;
  background: #202023;
}

.agent-copy-pill:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.agent-copy-launcher.copied .agent-copy-pill {
  border-color: rgb(255 77 77 / 70%);
  background:
    linear-gradient(90deg, rgb(255 77 77 / 10%), transparent 42%),
    #202023;
}

.agent-copy-label {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.agent-client-strip {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  align-items: center;
  gap: 6px;
  padding: 0 4px 0 2px;
}

.agent-client-mark {
  display: grid;
  width: 30px;
  height: 30px;
  margin: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 0.84;
  transform: translateY(0) scale(1);
  transform-origin: 50% 50%;
  transition:
    opacity var(--agent-feedback-duration) var(--agent-ease),
    transform var(--agent-feedback-duration) var(--agent-ease);
  transition-delay: calc(var(--agent-index) * 32ms);
  will-change: transform, opacity;
}

.agent-client-mark img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.agent-client-mark[data-client="claude"] img {
  width: 23px;
  height: 23px;
}

.agent-client-mark[data-client="codex"] img {
  width: 23px;
  height: 23px;
  filter: invert(1) brightness(1.08);
}

.agent-client-mark[data-client="cursor"] img {
  width: 20px;
  height: 23px;
  filter: invert(1) brightness(1.08);
}

.agent-copy-pill:hover .agent-client-mark,
.agent-copy-pill:focus-visible .agent-client-mark {
  opacity: 1;
  transform: translateY(-2px) scale(1.035);
}

@keyframes agent-mark-confirm {
  0%, 100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  46% {
    opacity: 1;
    transform: translateY(-2px) scale(1.065);
  }
}

.agent-copy-launcher.copied .agent-client-mark {
  animation: agent-mark-confirm 220ms var(--agent-ease) both;
  animation-delay: calc(var(--agent-index) * 32ms);
}

.agent-copy-status {
  width: 40px;
  height: 40px;
  border-left-color: #47474c;
  color: #aaaab0;
}

.agent-copy-status img {
  width: 18px;
  height: 18px;
}

.agent-copy-launcher.copied .agent-copy-status {
  color: var(--brand);
  font-family: var(--font-heading);
  font-size: 18px;
}

.agent-copy-config,
.agent-copy-dismiss {
  min-height: 58px;
  border-color: #3f3f44;
  background: #111113;
  color: #bcbcc1;
  transition:
    border-color var(--agent-feedback-duration) var(--agent-ease),
    color var(--agent-feedback-duration) var(--agent-ease),
    background-color var(--agent-feedback-duration) var(--agent-ease);
}

.agent-copy-config {
  min-width: 112px;
  padding-inline: 18px;
  font-size: 14px;
  font-weight: 650;
}

.agent-copy-dismiss {
  width: 58px;
}

.agent-copy-config:hover,
.agent-copy-config:focus-visible,
.agent-copy-dismiss:hover,
.agent-copy-dismiss:focus-visible {
  border-color: #6d6d73;
  background: #19191c;
  color: #f0f0f1;
}

.agent-copy-config:focus-visible,
.agent-copy-dismiss:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.agent-copy-launcher-mcp {
  gap: 14px;
  padding: 24px;
  border-color: #38383d;
  background:
    linear-gradient(100deg, rgb(255 77 77 / 7%), transparent 36%),
    #101011;
}

.agent-copy-launcher-mcp .agent-copy-pill {
  min-height: 58px;
}

.agent-copy-launcher-mcp .agent-copy-note {
  max-width: 62ch;
  color: #818188;
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .agent-onboarding-slot {
    margin-bottom: 24px;
  }

  .agent-copy-launcher-home {
    min-height: 0;
    padding: 24px 18px;
  }

  .agent-copy-launcher-home .agent-copy-pill,
  .agent-copy-pill {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto 36px;
    gap: 8px;
    padding-left: 16px;
  }

  .agent-copy-label {
    font-size: 15px;
    white-space: normal;
  }

  .agent-client-strip {
    grid-template-columns: repeat(3, 26px);
    gap: 2px;
    padding-inline: 0 2px;
  }

  .agent-client-mark {
    width: 26px;
    height: 28px;
  }

  .agent-client-mark[data-client="claude"] img,
  .agent-client-mark[data-client="codex"] img {
    width: 21px;
    height: 21px;
  }

  .agent-client-mark[data-client="cursor"] img {
    width: 18px;
    height: 21px;
  }

  .agent-copy-status {
    width: 36px;
  }

  .agent-copy-config {
    min-height: 52px;
  }

  .agent-copy-dismiss {
    width: 52px;
    min-height: 52px;
  }

  .agent-copy-launcher-mcp {
    padding: 20px 18px;
  }
}

@media (max-width: 430px) {
  .agent-copy-tip {
    font-size: 12px;
  }

  .agent-copy-pill {
    grid-template-columns: minmax(0, 1fr) auto 32px;
    min-height: 56px;
    padding-right: 6px;
  }

  .agent-copy-label {
    font-size: 14px;
  }

  .agent-client-strip {
    grid-template-columns: repeat(3, 23px);
  }

  .agent-client-mark {
    width: 23px;
  }

  .agent-copy-status {
    width: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-copy-pill,
  .agent-copy-config,
  .agent-copy-dismiss,
  .agent-client-mark {
    transition-duration: 0.01ms;
    transition-delay: 0ms;
  }

  .agent-copy-pill:hover .agent-client-mark,
  .agent-copy-pill:focus-visible .agent-client-mark,
  .agent-copy-launcher.copied .agent-client-mark {
    animation: none;
    transform: none;
  }
}

/* dashboard-reframe-v38.css */
/* Hux home dashboard v38 — readable operational hierarchy */
.dashboard-section {
  --dashboard-surface: #111111;
  --dashboard-surface-strong: #151515;
  --dashboard-surface-hover: #181818;
  --dashboard-border: #303034;
  --dashboard-text: #f1f1f2;
  --dashboard-text-secondary: #aaaab0;
  --dashboard-text-muted: #77777e;
  --dashboard-accent: #ff4d4d;
  --dashboard-duration: 420ms;
  --dashboard-chart-duration: 720ms;
  --dashboard-stagger: 60ms;
  container-type: inline-size;
  gap: 32px;
}

.dashboard-heading {
  align-items: end;
  min-height: 0;
  padding: 38px 40px 40px;
  border: 1px solid var(--dashboard-border);
  border-left: 4px solid var(--dashboard-accent);
  background: var(--dashboard-surface);
}

.dashboard-heading::before {
  display: none;
}

.dashboard-heading > div {
  gap: 14px;
}

.dashboard-heading .section-kicker,
.panel-heading .section-kicker {
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.2em;
}

.dashboard-heading h2 {
  max-width: 840px;
  font-size: clamp(48px, 4.5vw, 62px);
  font-weight: 540;
  letter-spacing: -0.04em;
  line-height: 1;
}

.dashboard-heading p {
  max-width: 52em;
  color: var(--dashboard-text-secondary);
  font-size: 18px;
  line-height: 1.65;
}

.dashboard-asset-link {
  min-height: 48px;
  padding-inline: 18px;
  border-color: #47474c;
  font-size: 14px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: minmax(280px, 1.42fr) repeat(3, minmax(0, 1fr));
  border: 1px solid var(--dashboard-border);
  background: var(--dashboard-border);
  gap: 1px;
}

.dashboard-metrics article,
.dashboard-metrics article:first-child,
.dashboard-metrics article:last-child {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 188px;
  padding: 28px 28px 24px;
  border: 0;
  background: var(--dashboard-surface);
  gap: 12px;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.dashboard-ready .dashboard-metrics article {
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    opacity var(--dashboard-duration) cubic-bezier(0.22, 1, 0.36, 1),
    transform var(--dashboard-duration) cubic-bezier(0.22, 1, 0.36, 1);
}

.dashboard-metrics article::before {
  top: 0;
  left: 28px;
  width: 40px;
  height: 3px;
  background: #515158;
  transition: background-color 160ms ease;
}

.dashboard-metrics article:hover {
  background: var(--dashboard-surface-hover);
}

.dashboard-metrics article:hover::before {
  width: 40px;
  background: var(--dashboard-accent);
}

.dashboard-metrics .metric-card-primary {
  background: #151212;
}

.dashboard-metrics .metric-card-primary::before {
  width: 76px;
  background: var(--dashboard-accent);
}

.dashboard-metrics .metric-card-primary:hover::before {
  width: 76px;
}

.dashboard-metrics .metric-icon {
  top: 26px;
  right: 26px;
  width: 42px;
  height: 42px;
  border-color: #3b3b40;
  color: #8a8a91;
}

.dashboard-metrics .metric-icon svg {
  width: 20px;
  height: 20px;
}

.dashboard-metrics .metric-label {
  padding-right: 48px;
  color: var(--dashboard-text-secondary);
  font-size: 15px;
  font-weight: 620;
  line-height: 1.45;
}

.dashboard-metrics .metric-value {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: auto;
}

.dashboard-metrics .metric-value strong {
  margin: 0;
  color: var(--dashboard-text);
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 50px;
  font-weight: 520;
  letter-spacing: 0.01em;
  line-height: 0.92;
  font-variant-numeric: tabular-nums lining-nums;
}

.dashboard-metrics .metric-card-primary .metric-value strong {
  font-size: 62px;
}

.dashboard-metrics .metric-value em {
  color: var(--dashboard-text-muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
}

.dashboard-metrics small {
  overflow: visible;
  color: var(--dashboard-text-muted);
  font-size: 13px;
  line-height: 1.55;
  text-overflow: clip;
  white-space: normal;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(390px, 0.82fr);
  align-items: stretch;
  gap: 18px;
  border: 0;
  background: transparent;
}

.dashboard-panel {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--dashboard-border);
  background: var(--dashboard-surface);
}

.dashboard-panel + .dashboard-panel {
  border-left: 1px solid var(--dashboard-border);
}

.panel-heading {
  min-height: 122px;
  padding: 26px 28px;
  border-bottom: 1px solid var(--dashboard-border);
  background: var(--dashboard-surface-strong);
}

.panel-heading > div {
  gap: 9px;
}

.panel-heading h3 {
  color: var(--dashboard-text);
  font-size: 28px;
  font-weight: 580;
  line-height: 1.18;
}

.panel-note {
  align-self: end;
  color: var(--dashboard-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.panel-note strong {
  margin-right: 4px;
  color: var(--dashboard-accent);
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 22px;
  font-weight: 540;
  font-variant-numeric: tabular-nums lining-nums;
}

.recent-list {
  display: grid;
}

.recent-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 46px minmax(0, 1fr) 108px;
  align-items: center;
  gap: 16px;
  min-height: 94px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--dashboard-border);
  background: transparent;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.dashboard-ready .recent-item {
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    opacity 360ms cubic-bezier(0.33, 1, 0.68, 1),
    transform 360ms cubic-bezier(0.33, 1, 0.68, 1);
  transition-delay: calc(var(--row-index, 0) * var(--dashboard-stagger));
}

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

.recent-item::before {
  inset: 16px auto 16px 0;
  width: 3px;
  background: var(--dashboard-accent);
  transform: scaleY(0.35);
  transform-origin: center;
  transition: opacity 160ms ease, transform 180ms ease;
}

.recent-item:hover,
.recent-item:focus-visible {
  background: var(--dashboard-surface-hover);
}

.recent-item:focus-visible {
  outline: 2px solid var(--dashboard-accent);
  outline-offset: -3px;
}

.recent-item:hover::before,
.recent-item:focus-visible::before {
  opacity: 1;
  transform: scaleY(1);
}

.recent-index {
  color: #73737a;
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 560;
  font-variant-numeric: tabular-nums lining-nums;
}

.recent-icon {
  width: 46px;
  height: 46px;
  border-color: #3a3a40;
  background: #171717;
  color: #a0a0a6;
}

.recent-icon svg {
  width: 20px;
  height: 20px;
}

.recent-copy {
  gap: 5px;
}

.recent-copy strong {
  color: var(--dashboard-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.recent-copy small {
  color: var(--dashboard-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.recent-item time {
  color: #8b8b92;
  font-size: 13px;
  font-weight: 540;
  line-height: 1.4;
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}

.category-overview {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.category-summary {
  min-height: 118px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--dashboard-border);
  background: #131313;
}

.category-summary > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.category-summary span {
  margin-right: 8px;
  color: var(--dashboard-text-secondary);
  font-size: 14px;
  font-weight: 620;
}

.category-summary strong {
  color: var(--dashboard-text);
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 50px;
  font-weight: 520;
  line-height: 0.95;
  font-variant-numeric: tabular-nums lining-nums;
}

.category-summary em {
  color: var(--dashboard-text-muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.category-summary p {
  margin: 9px 0 0;
  color: var(--dashboard-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.category-bars {
  display: grid;
  padding: 10px 28px 18px;
}

.category-row {
  display: grid;
  grid-template-columns: minmax(128px, auto) minmax(96px, 1fr) 70px;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 0;
  border-bottom: 1px solid var(--dashboard-border);
  background: transparent;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

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

.category-row:hover,
.category-row:focus-visible {
  background: #171717;
  box-shadow: 14px 0 #171717, -14px 0 #171717;
}

.category-row:focus-visible {
  outline: 2px solid var(--dashboard-accent);
  outline-offset: -2px;
}

.category-row-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-row-label .icon {
  width: 24px;
  height: 24px;
  color: #8e8e95;
}

.category-row-label strong {
  color: var(--dashboard-text-secondary);
  font-size: 15px;
  font-weight: 620;
  line-height: 1.4;
}

.category-track {
  overflow: hidden;
  display: block;
  height: 7px;
  background: #2a2a2e;
}

.category-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--dashboard-accent);
  opacity: 0.92;
  transform: scaleX(0);
  transform-origin: left center;
}

.dashboard-ready .category-track i {
  transform: scaleX(var(--category-scale, 0));
  transition: transform var(--dashboard-chart-duration) cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(160ms + var(--bar-index, 0) * var(--dashboard-stagger));
}

.category-stat {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: end;
  gap: 7px;
  text-align: right;
}

.category-stat strong {
  color: var(--dashboard-text);
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 24px;
  font-weight: 520;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.category-stat small {
  color: var(--dashboard-text-muted);
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 12px;
  font-weight: 540;
  font-variant-numeric: tabular-nums lining-nums;
}

.dashboard-section:not(.dashboard-ready) .dashboard-metrics article,
.dashboard-section:not(.dashboard-ready) .recent-item {
  opacity: 0;
  transform: translateY(clamp(6px, 1.2cqw, 12px));
}

.dashboard-section:not(.dashboard-ready) .category-track i {
  transform: scaleX(0);
  transition: none !important;
}

.dashboard-ready .dashboard-metrics article:nth-child(1) { transition-delay: 30ms; }
.dashboard-ready .dashboard-metrics article:nth-child(2) { transition-delay: 90ms; }
.dashboard-ready .dashboard-metrics article:nth-child(3) { transition-delay: 150ms; }
.dashboard-ready .dashboard-metrics article:nth-child(4) { transition-delay: 210ms; }

@media (max-width: 1180px) {
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard-panel + .dashboard-panel {
    border-left: 1px solid var(--dashboard-border);
  }
}

@media (max-width: 720px) {
  .dashboard-section {
    gap: 24px;
  }

  .dashboard-heading {
    align-items: flex-start;
    padding: 28px 22px 30px;
  }

  .dashboard-heading h2 {
    font-size: 40px;
    line-height: 1.04;
  }

  .dashboard-heading p {
    font-size: 16px;
    line-height: 1.65;
  }

  .dashboard-asset-link {
    width: 100%;
  }

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

  .dashboard-metrics article,
  .dashboard-metrics article:first-child,
  .dashboard-metrics article:last-child,
  .dashboard-metrics article:nth-child(odd) {
    min-height: 164px;
    padding: 22px 18px 20px;
  }

  .dashboard-metrics article::before {
    left: 18px;
  }

  .dashboard-metrics .metric-icon {
    top: 18px;
    right: 16px;
    width: 34px;
    height: 34px;
  }

  .dashboard-metrics .metric-label {
    padding-right: 34px;
    font-size: 14px;
  }

  .dashboard-metrics .metric-value strong,
  .dashboard-metrics .metric-card-primary .metric-value strong {
    font-size: 44px;
  }

  .dashboard-metrics small {
    font-size: 12px;
  }

  .panel-heading {
    min-height: 108px;
    padding: 22px 20px;
  }

  .panel-heading h3 {
    font-size: 24px;
  }

  .panel-note {
    font-size: 12px;
  }

  .recent-item {
    grid-template-columns: 28px 42px minmax(0, 1fr);
    gap: 12px;
    min-height: 102px;
    padding: 16px 18px;
  }

  .recent-icon {
    width: 42px;
    height: 42px;
  }

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

  .recent-copy small {
    font-size: 12px;
  }

  .recent-item time {
    display: block;
    grid-column: 3;
    color: #808087;
    font-size: 12px;
    text-align: left;
  }

  .category-summary,
  .category-bars {
    padding-inline: 20px;
  }

  .category-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 10px 14px;
    min-height: 88px;
    padding-block: 14px;
  }

  .category-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .category-stat {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 430px) {
  .dashboard-heading h2 {
    max-width: 8em;
    font-size: 36px;
  }

  .dashboard-metrics .metric-label {
    max-width: 7em;
  }

  .dashboard-metrics .metric-value strong,
  .dashboard-metrics .metric-card-primary .metric-value strong {
    font-size: 40px;
  }

  .dashboard-metrics .metric-value em {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-section:not(.dashboard-ready) .dashboard-metrics article,
  .dashboard-section:not(.dashboard-ready) .recent-item {
    opacity: 1;
    transform: none;
  }

  .dashboard-metrics article,
  .recent-item,
  .category-track i {
    transition: none !important;
  }

  .category-track i,
  .dashboard-ready .category-track i {
    transform: scaleX(var(--category-scale, 0));
  }
}

/* untitled-ui-icons-v39.css */
/* Untitled UI Icons v39 — one visual language for every generic interface icon. */
.ui-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-image: var(--ui-icon);
  mask-image: var(--ui-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  vertical-align: middle;
  pointer-events: none;
}

.icon.ui-icon {
  width: 18px;
  height: 18px;
  fill: initial;
  stroke: initial;
}

/* Primary navigation keeps the current type-led composition. */
.nav-link > .ui-icon {
  display: none;
}

.user-menu > .ui-icon {
  width: 17px;
  height: 17px;
  color: #77777e;
}

.view-tab > .ui-icon {
  width: 19px;
  height: 19px;
}

.button > .ui-icon,
.dashboard-asset-link > .ui-icon {
  width: 17px;
  height: 17px;
}

.dashboard-asset-link > .ui-icon {
  width: 16px;
  height: 16px;
}

.dashboard-metrics .metric-icon > .ui-icon {
  width: 20px;
  height: 20px;
}

.search-wrap > .ui-icon {
  width: 20px;
  height: 20px;
  color: #686868;
}

.icon-button > .ui-icon,
.portal-dialog-close > .ui-icon,
.identity-dialog-close > .ui-icon {
  width: 16px;
  height: 16px;
}

.pill .ui-icon {
  width: 16px;
  height: 16px;
}

.favorite-btn .ui-icon,
.recent-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.favorite-btn.active .ui-icon {
  color: #facc15;
}

.category-row-label .ui-icon {
  width: 24px;
  height: 24px;
}

.identity-option-state .ui-icon,
.agent-copy-status .ui-icon {
  width: 18px;
  height: 18px;
}

.mcp-saved-mark .ui-icon {
  width: 26px;
  height: 26px;
}

.play-button .ui-icon,
.terminal .ui-icon,
.wand .ui-icon,
.sheet-actions .ui-icon,
.reader-back .ui-icon,
.workflow-source-link .ui-icon,
.workflow-resource .ui-icon,
.markdown-video-play .ui-icon {
  width: 18px;
  height: 18px;
}

.workflow-checklist .ui-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 980px) {
  .user-menu > .ui-icon,
  .view-tab > .ui-icon {
    display: none;
  }

  .upload-button > .ui-icon {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 720px) {
  .upload-button > .ui-icon {
    width: 17px;
    height: 17px;
    color: var(--primary-foreground);
  }
}

/* home-command-dashboard-v40.css */
/* Hux home command bridge + dashboard continuity v40 */

.dashboard-section {
  --home-command-border: #333338;
  --home-command-surface: #121213;
  --home-command-surface-strong: #171719;
  --home-command-surface-hover: #1d1d20;
  --home-command-text: #f3f3f4;
  --home-command-secondary: #aaaab0;
  --home-command-muted: #77777e;
  --home-command-accent: #ff4d4d;
  --home-command-ease: cubic-bezier(0.33, 1, 0.68, 1);
  --home-command-duration: 460ms;
  gap: 28px;
}

.agent-onboarding-slot {
  margin-bottom: 0;
}

.agent-copy-launcher-home {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(520px, 1.14fr);
  align-content: stretch;
  justify-items: stretch;
  min-height: 270px;
  padding: 0;
  border: 1px solid var(--home-command-border);
  background: var(--home-command-surface);
  color: var(--home-command-text);
  container-type: inline-size;
  isolation: isolate;
  opacity: 0;
  transform: translate3d(0, clamp(8px, 1cqw, 14px), 0);
  transition:
    opacity var(--home-command-duration) var(--home-command-ease),
    transform var(--home-command-duration) var(--home-command-ease);
}

.agent-copy-launcher-home::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(112deg, rgb(255 77 77 / 8%), transparent 28%),
    linear-gradient(270deg, rgb(255 255 255 / 2%), transparent 42%);
  content: "";
  pointer-events: none;
}

.agent-bridge-ready .agent-copy-launcher-home {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.agent-bridge-intro,
.agent-bridge-console {
  min-width: 0;
}

.agent-bridge-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 42px 36px;
  border-right: 1px solid var(--home-command-border);
  background:
    linear-gradient(130deg, rgb(255 77 77 / 7%), transparent 44%),
    #111112;
}

.agent-bridge-kicker {
  color: var(--home-command-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.19em;
  line-height: 1.4;
}

.agent-bridge-intro h3 {
  max-width: 12em;
  margin: 16px 0 0;
  color: var(--home-command-text);
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.05cqw, 42px);
  font-weight: 570;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.agent-bridge-intro > p {
  max-width: 31em;
  margin: 16px 0 0;
  color: var(--home-command-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.agent-bridge-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.agent-bridge-steps::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: #414146;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 540ms var(--home-command-ease) 180ms;
}

.agent-bridge-ready .agent-bridge-steps::before {
  transform: scaleX(1);
}

.agent-bridge-steps li {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px 10px 0 0;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 340ms var(--home-command-ease),
    transform 340ms var(--home-command-ease);
  transition-delay: calc(220ms + var(--agent-index) * 60ms);
}

.agent-bridge-ready .agent-bridge-steps li {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.agent-bridge-steps li::before {
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--home-command-accent);
  content: "";
}

.agent-bridge-steps span {
  color: var(--home-command-accent);
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 17px;
  font-weight: 560;
  letter-spacing: 0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.agent-bridge-steps strong {
  overflow: hidden;
  color: #b9b9be;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-bridge-console {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 42px 34px;
}

.agent-console-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 24px;
}

.agent-console-heading > span:last-child {
  color: var(--home-command-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.agent-console-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d0d0d4;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.agent-console-state i {
  width: 8px;
  height: 8px;
  background: var(--home-command-accent);
  box-shadow: 0 0 0 4px rgb(255 77 77 / 9%);
}

.agent-copy-launcher-home .agent-copy-tip {
  position: static;
  justify-content: flex-start;
  width: 100%;
  min-height: 0;
  margin: 23px 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #898990;
  font-size: 13px;
}

.agent-copy-launcher-home .agent-copy-tip::after {
  display: none;
}

.agent-copy-launcher-home .agent-copy-tip img {
  width: 16px;
  height: 16px;
  opacity: 0.78;
}

.agent-copy-launcher-home .agent-copy-pill {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 50px;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 78px;
  padding: 8px 8px 8px 10px;
  border: 1px solid #55555c;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 4%), transparent 46%),
    var(--home-command-surface-strong);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
  color: var(--home-command-text);
  text-align: left;
  transition:
    border-color 180ms var(--home-command-ease),
    background-color 180ms var(--home-command-ease),
    box-shadow 180ms var(--home-command-ease);
}

.agent-copy-launcher-home .agent-copy-pill:hover,
.agent-copy-launcher-home .agent-copy-pill:focus-visible {
  border-color: #86868d;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 5%), transparent 48%),
    var(--home-command-surface-hover);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 6%),
    0 14px 32px rgb(0 0 0 / 18%);
  transform: none;
}

.agent-copy-launcher-home .agent-copy-pill:active {
  border-color: #96969d;
  background: #202023;
}

.agent-copy-launcher-home .agent-copy-pill:focus-visible {
  outline: 2px solid var(--home-command-accent);
  outline-offset: 3px;
}

.agent-copy-launcher-home.copied .agent-copy-pill {
  border-color: rgb(255 77 77 / 72%);
  background:
    linear-gradient(90deg, rgb(255 77 77 / 10%), transparent 44%),
    #1c1c1f;
}

.agent-copy-glyph {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #414147;
  background: #111113;
  color: #b8b8bd;
}

.agent-copy-glyph img {
  width: 21px;
  height: 21px;
  filter: invert(74%);
}

.agent-copy-copy {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}

.agent-copy-launcher-home .agent-copy-label {
  overflow: hidden;
  color: var(--home-command-text);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-copy-copy small {
  overflow: hidden;
  color: #85858c;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-copy-launcher-home .agent-copy-status {
  display: grid;
  width: 50px;
  height: 48px;
  place-items: center;
  border-left: 1px solid #49494f;
  color: #b8b8bd;
}

.agent-copy-launcher-home .agent-copy-status img {
  width: 19px;
  height: 19px;
  filter: invert(72%);
}

.agent-copy-launcher-home.copied .agent-copy-status {
  color: var(--home-command-accent);
}

.agent-copy-launcher-home.copied .agent-client-mark {
  animation: none;
  transform: none;
}

.agent-console-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
}

.agent-supported-clients {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.agent-supported-label {
  color: #73737a;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.agent-copy-launcher-home .agent-client-strip-labelled {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 16px;
  padding: 0;
}

.agent-client-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition:
    opacity 320ms var(--home-command-ease),
    transform 320ms var(--home-command-ease);
  transition-delay: calc(260ms + var(--agent-index) * 60ms);
}

.agent-bridge-ready .agent-client-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.agent-copy-launcher-home .agent-client-item .agent-client-mark {
  width: 24px;
  height: 26px;
  opacity: 0.92;
  transform: none;
  transition: opacity 150ms ease;
}

.agent-copy-launcher-home .agent-client-item:hover .agent-client-mark {
  opacity: 1;
  transform: none;
}

.agent-copy-launcher-home .agent-client-mark[data-client="claude"] img,
.agent-copy-launcher-home .agent-client-mark[data-client="codex"] img {
  width: 20px;
  height: 20px;
}

.agent-copy-launcher-home .agent-client-mark[data-client="cursor"] img {
  width: 18px;
  height: 20px;
}

.agent-client-name {
  color: #9b9ba1;
  font-size: 12px;
  font-weight: 580;
  line-height: 1;
}

.agent-copy-launcher-home .agent-copy-config {
  display: inline-flex;
  min-width: 148px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid #45454a;
  background: #111113;
  color: #c4c4c8;
  font-size: 13px;
  font-weight: 650;
}

.agent-copy-launcher-home .agent-copy-config img {
  width: 17px;
  height: 17px;
  filter: invert(72%);
}

.agent-copy-launcher-home .agent-copy-config:hover,
.agent-copy-launcher-home .agent-copy-config:focus-visible {
  border-color: #74747b;
  background: #1a1a1c;
  color: #f0f0f1;
}

.agent-copy-launcher-home .agent-copy-config:focus-visible {
  outline: 2px solid var(--home-command-accent);
  outline-offset: 2px;
}

.agent-copy-launcher-home > .agent-copy-dismiss {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 44px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #77777e;
}

.agent-copy-launcher-home > .agent-copy-dismiss img {
  width: 17px;
  height: 17px;
  filter: invert(56%);
}

.agent-copy-launcher-home > .agent-copy-dismiss:hover,
.agent-copy-launcher-home > .agent-copy-dismiss:focus-visible {
  border-color: #4a4a50;
  background: #19191b;
}

.dashboard-heading {
  background:
    linear-gradient(90deg, rgb(255 77 77 / 3.5%), transparent 24%),
    var(--dashboard-surface);
}

.dashboard-metrics,
.dashboard-panel,
.dashboard-heading,
.agent-copy-launcher-home {
  box-shadow: 0 18px 44px rgb(0 0 0 / 7%);
}

.dashboard-metrics article,
.dashboard-panel,
.dashboard-heading {
  transition-property: background-color, border-color, box-shadow, opacity, transform;
}

@media (max-width: 1120px) {
  .agent-copy-launcher-home {
    grid-template-columns: minmax(300px, 0.78fr) minmax(460px, 1.22fr);
  }

  .agent-bridge-intro,
  .agent-bridge-console {
    padding-inline: 30px;
  }

  .agent-console-heading > span:last-child {
    max-width: 25em;
  }

  .agent-client-name {
    display: none;
  }
}

@media (max-width: 960px) {
  .agent-copy-launcher-home {
    grid-template-columns: 1fr;
  }

  .agent-bridge-intro {
    padding: 32px 28px 30px;
    border-right: 0;
    border-bottom: 1px solid var(--home-command-border);
  }

  .agent-bridge-intro h3 {
    max-width: 13em;
    font-size: 36px;
  }

  .agent-bridge-console {
    padding: 30px 28px 28px;
  }

  .agent-client-name {
    display: inline;
  }
}

@media (max-width: 560px) {
  .dashboard-section {
    gap: 22px;
  }

  .agent-bridge-intro {
    padding: 28px 22px 26px;
  }

  .agent-bridge-kicker {
    padding-right: 38px;
    font-size: 12px;
  }

  .agent-bridge-intro h3 {
    max-width: 9em;
    margin-top: 13px;
    font-size: 32px;
    line-height: 1.1;
  }

  .agent-bridge-intro > p {
    margin-top: 13px;
    font-size: 15px;
    line-height: 1.6;
  }

  .agent-bridge-steps {
    margin-top: 24px;
  }

  .agent-bridge-steps li {
    gap: 5px;
    padding-right: 6px;
  }

  .agent-bridge-steps span {
    font-size: 16px;
  }

  .agent-bridge-steps strong {
    font-size: 12px;
    white-space: normal;
  }

  .agent-bridge-console {
    padding: 26px 22px 24px;
  }

  .agent-console-heading {
    align-items: flex-start;
  }

  .agent-console-heading > span:last-child {
    max-width: 12em;
    font-size: 12px;
  }

  .agent-copy-launcher-home .agent-copy-tip {
    margin-top: 20px;
    font-size: 12px;
    text-align: left;
  }

  .agent-copy-launcher-home .agent-copy-pill {
    grid-template-columns: 42px minmax(0, 1fr) 40px;
    gap: 10px;
    min-height: 72px;
    padding-left: 8px;
    border-radius: 12px;
  }

  .agent-copy-glyph {
    width: 42px;
    height: 42px;
  }

  .agent-copy-glyph img {
    width: 19px;
    height: 19px;
  }

  .agent-copy-launcher-home .agent-copy-label {
    font-size: 16px;
    white-space: normal;
  }

  .agent-copy-copy small {
    display: none;
  }

  .agent-copy-launcher-home .agent-copy-status {
    width: 40px;
    height: 42px;
  }

  .agent-console-footer {
    display: grid;
    gap: 16px;
    align-items: stretch;
  }

  .agent-copy-launcher-home .agent-client-strip-labelled {
    justify-content: space-between;
    gap: 10px;
  }

  .agent-client-name {
    font-size: 12px;
  }

  .agent-copy-launcher-home .agent-copy-config {
    width: 100%;
    min-height: 48px;
  }

  .agent-copy-launcher-home > .agent-copy-dismiss {
    top: 12px;
    right: 12px;
  }

  .dashboard-metrics,
  .dashboard-panel,
  .dashboard-heading,
  .agent-copy-launcher-home {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-copy-launcher-home,
  .agent-bridge-steps::before,
  .agent-bridge-steps li,
  .agent-client-item {
    opacity: 1;
    transform: none;
    transition: none !important;
  }

  .agent-bridge-steps::before {
    transform: scaleX(1);
  }

  .agent-copy-launcher-home .agent-copy-pill,
  .agent-copy-launcher-home .agent-copy-config,
  .agent-copy-launcher-home > .agent-copy-dismiss {
    transition: none;
  }
}

/* home-dashboard-v41.css */
/* Hux home dashboard v41 — source-backed, readable, stable geometry */
.dashboard-section {
  --dashboard-surface: #111111;
  --dashboard-surface-strong: #151515;
  --dashboard-surface-hover: #191919;
  --dashboard-border: #303034;
  --dashboard-border-strong: #414146;
  --dashboard-text: #f1f1f2;
  --dashboard-text-secondary: #b2b2b7;
  --dashboard-text-muted: #7d7d84;
  --dashboard-accent: #ff4d4d;
  --dashboard-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dashboard-duration: 420ms;
  gap: 20px;
}

.dashboard-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: 26px 30px;
  border: 1px solid var(--dashboard-border);
  border-left: 3px solid var(--dashboard-accent);
  background: var(--dashboard-surface);
}

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

.dashboard-heading .section-kicker,
.panel-heading .section-kicker {
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.18em;
}

.dashboard-heading h2 {
  max-width: none;
  font-size: clamp(30px, 2.8vw, 38px);
  font-weight: 580;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.dashboard-heading p {
  max-width: 54em;
  color: var(--dashboard-text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.dashboard-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.dashboard-data-status {
  display: grid;
  grid-template-columns: 7px auto auto;
  align-items: center;
  gap: 7px;
  color: var(--dashboard-text-muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.dashboard-data-status i {
  width: 7px;
  height: 7px;
  background: var(--dashboard-accent);
  box-shadow: 0 0 0 3px rgb(255 77 77 / 10%);
}

.dashboard-data-status time {
  color: var(--dashboard-text-secondary);
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 14px;
  font-variant-numeric: tabular-nums lining-nums;
}

.dashboard-asset-link {
  min-height: 44px;
  padding-inline: 16px;
  border-color: var(--dashboard-border-strong);
  font-size: 14px;
  white-space: nowrap;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, 0.78fr);
  grid-template-rows: repeat(3, minmax(118px, 1fr));
  gap: 1px;
  border: 1px solid var(--dashboard-border);
  background: var(--dashboard-border);
}

.dashboard-metrics article,
.dashboard-metrics article:first-child,
.dashboard-metrics article:last-child {
  position: relative;
  display: flex;
  min-height: 0;
  padding: 22px 24px;
  border: 0;
  background: var(--dashboard-surface);
  gap: 10px;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    opacity var(--dashboard-duration) var(--dashboard-ease),
    transform var(--dashboard-duration) var(--dashboard-ease);
}

.dashboard-metrics article::before {
  top: 0;
  left: 24px;
  width: 32px;
  height: 2px;
  background: #505058;
  transition: background-color 160ms ease;
}

.dashboard-metrics article:hover {
  background: var(--dashboard-surface-hover);
}

.dashboard-metrics article:hover::before {
  width: 32px;
  background: var(--dashboard-accent);
}

.dashboard-metrics article.metric-card-primary {
  grid-row: 1 / -1;
  display: grid;
  grid-template-columns: minmax(210px, 0.74fr) minmax(360px, 1.4fr);
  align-items: stretch;
  gap: 28px;
  padding: 30px;
  background: #141212;
}

.dashboard-metrics article.metric-card-primary::before {
  left: 30px;
  width: 72px;
  background: var(--dashboard-accent);
}

.dashboard-metrics article.metric-card-primary:hover::before {
  width: 72px;
}

.activity-card-summary {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-right: 28px;
  border-right: 1px solid var(--dashboard-border);
}

.metric-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-metrics .metric-label {
  padding: 0;
  color: var(--dashboard-text-secondary);
  font-size: 15px;
  font-weight: 620;
  line-height: 1.45;
}

.metric-context,
.metric-sequence {
  color: var(--dashboard-text-muted);
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.dashboard-metrics .metric-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.dashboard-metrics .metric-value strong {
  margin: 0;
  color: var(--dashboard-text);
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 48px;
  font-weight: 520;
  letter-spacing: 0.01em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums lining-nums;
}

.dashboard-metrics article.metric-card-primary .metric-value {
  margin-top: 54px;
}

.dashboard-metrics article.metric-card-primary .metric-value strong {
  font-size: clamp(76px, 7vw, 104px);
  line-height: 0.82;
}

.dashboard-metrics .metric-value em {
  color: var(--dashboard-text-muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.activity-card-summary p {
  max-width: 24em;
  margin: 20px 0 0;
  color: var(--dashboard-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.dashboard-metrics small {
  overflow: visible;
  color: var(--dashboard-text-muted);
  font-size: 13px;
  line-height: 1.5;
  text-overflow: clip;
  white-space: normal;
}

.activity-visual {
  display: grid;
  grid-template-rows: auto minmax(210px, 1fr);
  min-width: 0;
  gap: 18px;
}

.activity-visual > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.activity-visual > header > div {
  display: grid;
  gap: 4px;
}

.activity-visual > header strong {
  color: var(--dashboard-text);
  font-size: 15px;
  font-weight: 620;
  line-height: 1.4;
}

.activity-visual > header span {
  color: var(--dashboard-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.activity-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.activity-legend i {
  width: 14px;
  height: 3px;
  background: var(--dashboard-accent);
}

.activity-chart {
  position: relative;
  min-width: 0;
  min-height: 210px;
}

.activity-chart svg {
  overflow: visible;
  display: block;
  width: 100%;
  height: 100%;
}

.activity-grid-line,
.activity-baseline {
  fill: none;
  stroke: #303034;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.activity-grid-line {
  stroke-dasharray: 3 6;
}

.activity-bar {
  fill: #2d2729;
  stroke: #45383b;
  stroke-width: 1;
  transform-box: fill-box;
  transform: scaleY(0);
  transform-origin: center bottom;
  transition:
    fill 160ms ease,
    stroke 160ms ease,
    transform 620ms var(--dashboard-ease);
  transition-delay: calc(100ms + var(--activity-index, 0) * 55ms);
  vector-effect: non-scaling-stroke;
}

.activity-line {
  fill: none;
  stroke: var(--dashboard-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.92;
  transition: stroke-dashoffset 520ms var(--dashboard-ease) 80ms;
  vector-effect: non-scaling-stroke;
}

.activity-node {
  fill: #141212;
  stroke: var(--dashboard-accent);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform: scale(0.6);
  transform-origin: center;
  transition:
    fill 160ms ease,
    opacity 220ms ease,
    transform 300ms var(--dashboard-ease);
  transition-delay: calc(220ms + var(--activity-index, 0) * 45ms);
  vector-effect: non-scaling-stroke;
}

.activity-label,
.activity-value-label {
  fill: #85858c;
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums lining-nums;
  text-anchor: middle;
}

.activity-value-label {
  fill: #b7b7bc;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 220ms ease;
}

.dashboard-ready .activity-bar {
  transform: scaleY(1);
}

.dashboard-ready .activity-line {
  stroke-dashoffset: 0;
}

.dashboard-ready .activity-node {
  opacity: 1;
  transform: scale(1);
}

.activity-chart[data-active] .activity-bar {
  fill: #241f20;
}

.activity-chart .activity-period.is-active .activity-bar {
  fill: #593033;
  stroke: var(--dashboard-accent);
}

.activity-chart .activity-period.is-active .activity-node {
  fill: var(--dashboard-accent);
  transform: scale(1.16);
}

.activity-chart .activity-period.is-active .activity-value-label {
  opacity: 1;
}

.activity-hit-grid {
  position: absolute;
  inset: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.activity-hit {
  min-width: 0;
  border: 0;
  background: transparent;
  cursor: crosshair;
}

.activity-hit:focus-visible {
  outline: 1px solid var(--dashboard-accent);
  outline-offset: -3px;
}

.activity-tooltip {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: var(--tooltip-left, 50%);
  display: grid;
  min-width: 126px;
  padding: 12px 14px;
  border: 1px solid #4a4a50;
  background: rgb(20 20 20 / 96%);
  box-shadow: 0 14px 28px rgb(0 0 0 / 28%);
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 180ms var(--dashboard-ease);
}

.activity-tooltip[data-edge="start"] {
  transform: translate(0, 4px);
}

.activity-tooltip[data-edge="end"] {
  transform: translate(-100%, 4px);
}

.activity-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.activity-tooltip[data-edge="start"].is-visible {
  transform: translate(0, 0);
}

.activity-tooltip[data-edge="end"].is-visible {
  transform: translate(-100%, 0);
}

.activity-tooltip strong {
  color: var(--dashboard-text);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.4;
}

.activity-tooltip span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--dashboard-text-muted);
  font-size: 12px;
}

.activity-tooltip b {
  color: var(--dashboard-accent);
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 20px;
  font-weight: 560;
  font-variant-numeric: tabular-nums lining-nums;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(380px, 0.9fr);
  align-items: stretch;
  gap: 18px;
  border: 0;
  background: transparent;
}

.dashboard-panel {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--dashboard-border);
  background: var(--dashboard-surface);
}

.panel-heading {
  min-height: 108px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--dashboard-border);
  background: var(--dashboard-surface-strong);
}

.panel-heading > div {
  gap: 7px;
}

.panel-heading h3 {
  font-size: 26px;
  font-weight: 580;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.panel-note {
  align-self: end;
  color: var(--dashboard-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.panel-note strong {
  margin-right: 4px;
  color: var(--dashboard-accent);
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 20px;
  font-weight: 540;
  font-variant-numeric: tabular-nums lining-nums;
}

.recent-item {
  grid-template-columns: 32px 44px minmax(0, 1fr) 100px;
  gap: 15px;
  min-height: 90px;
  padding: 17px 22px;
}

.recent-index,
.recent-item time {
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
}

.recent-index {
  font-size: 14px;
}

.recent-icon {
  width: 44px;
  height: 44px;
}

.recent-copy strong {
  font-size: 16px;
  line-height: 1.38;
}

.recent-copy small,
.recent-item time {
  font-size: 13px;
}

.category-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(150px, 1.18fr);
  align-items: stretch;
  min-height: 132px;
  padding: 0;
  border-bottom: 1px solid var(--dashboard-border);
  background: #131313;
}

.category-summary-main,
.category-summary-dominant {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px;
}

.category-summary-main {
  border-right: 1px solid var(--dashboard-border);
}

.category-summary .summary-eyebrow {
  margin: 0 0 10px;
  color: var(--dashboard-text-muted);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.4;
}

.category-summary-main > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.category-summary-main strong {
  color: var(--dashboard-text);
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 48px;
  font-weight: 520;
  line-height: 0.9;
  font-variant-numeric: tabular-nums lining-nums;
}

.category-summary-main em {
  color: var(--dashboard-text-muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.category-summary-dominant strong {
  overflow: hidden;
  color: var(--dashboard-text);
  font-size: 17px;
  font-weight: 620;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-summary-dominant p {
  margin: 5px 0 0;
  color: var(--dashboard-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.category-summary-dominant b {
  color: var(--dashboard-accent);
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 15px;
  font-weight: 560;
  font-variant-numeric: tabular-nums lining-nums;
}

.category-bars {
  display: grid;
  padding: 8px 24px 16px;
}

.category-row {
  grid-template-columns: minmax(122px, auto) minmax(86px, 1fr) 64px;
  gap: 16px;
  min-height: 78px;
}

.category-row:hover,
.category-row:focus-visible {
  box-shadow: 12px 0 #171717, -12px 0 #171717;
}

.category-row-label strong {
  font-size: 15px;
}

.category-stat strong {
  font-size: 23px;
}

.dashboard-section:not(.dashboard-ready) .dashboard-metrics article,
.dashboard-section:not(.dashboard-ready) .recent-item {
  opacity: 0;
  transform: translateY(10px);
}

.dashboard-ready .dashboard-metrics article:nth-child(1) { transition-delay: 30ms; }
.dashboard-ready .dashboard-metrics article:nth-child(2) { transition-delay: 90ms; }
.dashboard-ready .dashboard-metrics article:nth-child(3) { transition-delay: 150ms; }
.dashboard-ready .dashboard-metrics article:nth-child(4) { transition-delay: 210ms; }

@media (max-width: 1180px) {
  .dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }

  .dashboard-metrics article.metric-card-primary {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 340px;
  }

  .dashboard-metrics article:not(.metric-card-primary) {
    min-height: 148px;
  }

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

@media (max-width: 900px) {
  .dashboard-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dashboard-heading-actions {
    justify-content: space-between;
  }

  .dashboard-metrics article.metric-card-primary {
    grid-template-columns: minmax(190px, 0.7fr) minmax(320px, 1.3fr);
    gap: 22px;
  }
}

@media (max-width: 720px) {
  .dashboard-section {
    gap: 18px;
  }

  .dashboard-heading {
    padding: 24px 20px;
  }

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

  .dashboard-heading p {
    font-size: 15px;
  }

  .dashboard-heading-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .dashboard-data-status {
    grid-template-columns: 7px auto 1fr;
  }

  .dashboard-asset-link {
    width: 100%;
  }

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

  .dashboard-metrics article.metric-card-primary {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px 20px;
  }

  .activity-card-summary {
    padding: 0 0 22px;
    border-right: 0;
    border-bottom: 1px solid var(--dashboard-border);
  }

  .dashboard-metrics article.metric-card-primary .metric-value {
    margin-top: 34px;
  }

  .dashboard-metrics article.metric-card-primary .metric-value strong {
    font-size: 74px;
  }

  .activity-visual {
    grid-template-rows: auto 220px;
  }

  .dashboard-metrics article:not(.metric-card-primary) {
    min-height: 142px;
    padding: 20px 16px;
  }

  .dashboard-metrics article::before {
    left: 16px;
  }

  .dashboard-metrics .metric-value strong {
    font-size: 42px;
  }

  .dashboard-metrics .metric-label {
    font-size: 14px;
  }

  .dashboard-metrics small {
    font-size: 12px;
  }

  .panel-heading {
    min-height: 102px;
    padding: 22px 20px;
  }

  .panel-heading h3 {
    font-size: 24px;
  }

  .recent-item {
    grid-template-columns: 28px 42px minmax(0, 1fr);
    min-height: 100px;
    padding: 16px 18px;
  }

  .recent-item time {
    display: block;
    grid-column: 3;
    text-align: left;
  }

  .category-summary {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .category-summary-main,
  .category-summary-dominant {
    padding: 20px;
  }

  .category-bars {
    padding-inline: 20px;
  }
}

@media (max-width: 560px) {
  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-metrics article.metric-card-primary {
    grid-column: auto;
  }

  .dashboard-metrics article:not(.metric-card-primary) {
    min-height: 132px;
  }

  .activity-visual > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .category-summary {
    grid-template-columns: 1fr 1fr;
  }

  .category-summary-main,
  .category-summary-dominant {
    padding: 18px 16px;
  }

  .category-summary-main strong {
    font-size: 42px;
  }
}

@media (max-width: 430px) {
  .dashboard-heading h2 {
    max-width: none;
    font-size: 30px;
  }

  .activity-chart {
    min-height: 210px;
  }

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

  .category-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 10px 14px;
    min-height: 86px;
    padding-block: 13px;
  }

  .category-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .category-stat {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-section:not(.dashboard-ready) .dashboard-metrics article,
  .dashboard-section:not(.dashboard-ready) .recent-item {
    opacity: 1;
    transform: none;
  }

  .dashboard-metrics article,
  .recent-item,
  .activity-bar,
  .activity-line,
  .activity-node,
  .activity-tooltip {
    transition: none !important;
  }

  .activity-bar {
    transform: scaleY(1);
  }

  .activity-line {
    stroke-dashoffset: 0;
  }

  .activity-node {
    opacity: 1;
    transform: scale(1);
  }
}

/* home-dashboard-v42.css */
/* Hux home dashboard v42 — visual operations system + stable SVG trace settlement */

.dashboard-section {
  --v42-surface: #111112;
  --v42-surface-raised: #151516;
  --v42-surface-active: #1a1819;
  --v42-border: #303034;
  --v42-border-strong: #44444a;
  --v42-text: #f2f2f3;
  --v42-secondary: #b6b6bb;
  --v42-muted: #7e7e85;
  --v42-red: #ff4d4d;
  --v42-ease: cubic-bezier(0.22, 1, 0.36, 1);
  gap: 22px;
}

/* Agent / MCP entry */
.agent-copy-launcher-home {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(390px, 0.92fr) minmax(480px, 1.08fr);
  min-height: 310px;
  padding: 0;
  border: 1px solid var(--v42-border);
  background: var(--v42-surface);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms var(--v42-ease), transform 420ms var(--v42-ease);
}

.agent-copy-launcher-home::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 14%, rgb(255 77 77 / 11%), transparent 27%),
    linear-gradient(105deg, rgb(255 77 77 / 4%), transparent 37% 70%, rgb(255 255 255 / 2%));
  content: "";
  pointer-events: none;
}

.agent-bridge-ready .agent-copy-launcher-home {
  opacity: 1;
  transform: translateY(0);
}

.agent-copy-launcher-home > .agent-copy-dismiss {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 40px;
  min-height: 40px;
  border: 1px solid transparent;
  background: transparent;
}

.agent-copy-launcher-home > .agent-copy-dismiss:hover,
.agent-copy-launcher-home > .agent-copy-dismiss:focus-visible {
  border-color: var(--v42-border-strong);
  background: #1a1a1c;
}

.agent-copy-launcher-home > .agent-copy-dismiss img {
  width: 16px;
  height: 16px;
  filter: invert(58%);
}

.agent-connect-copy,
.agent-route-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.agent-connect-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 42px;
  border-right: 1px solid var(--v42-border);
}

.agent-bridge-kicker {
  color: var(--v42-red);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.agent-connect-copy h3 {
  max-width: 13em;
  margin: 14px 0 0;
  color: var(--v42-text);
  font-family: var(--font-heading);
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 590;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.agent-connect-copy > p {
  max-width: 36em;
  margin: 15px 0 0;
  color: var(--v42-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.agent-connect-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 25px;
}

.agent-copy-launcher-home .agent-copy-pill {
  display: grid;
  grid-template-columns: auto minmax(0, auto) 38px;
  align-items: center;
  gap: 12px;
  width: auto;
  min-width: 0;
  min-height: 58px;
  padding: 7px 8px 7px 16px;
  border: 1px solid #55555c;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 5%), transparent 52%),
    #1b1b1e;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
  color: var(--v42-text);
  transition: border-color 170ms ease, background-color 170ms ease, box-shadow 170ms ease;
}

.agent-copy-launcher-home .agent-copy-pill:hover,
.agent-copy-launcher-home .agent-copy-pill:focus-visible {
  border-color: #86868d;
  background: #222225;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), 0 10px 28px rgb(0 0 0 / 23%);
  transform: none;
}

.agent-copy-launcher-home .agent-copy-pill:focus-visible,
.agent-guide-link:focus-visible {
  outline: 2px solid var(--v42-red);
  outline-offset: 3px;
}

.agent-copy-launcher-home .agent-client-strip {
  display: grid;
  grid-template-columns: repeat(3, 24px);
  gap: 4px;
  padding: 0;
}

.agent-copy-launcher-home .agent-client-mark {
  width: 24px;
  height: 26px;
  opacity: 0.9;
  transform: none;
}

.agent-copy-launcher-home .agent-client-mark img,
.agent-copy-launcher-home .agent-client-mark[data-client="claude"] img,
.agent-copy-launcher-home .agent-client-mark[data-client="codex"] img {
  width: 20px;
  height: 20px;
}

.agent-copy-launcher-home .agent-client-mark[data-client="cursor"] img {
  width: 18px;
  height: 20px;
}

.agent-copy-launcher-home .agent-copy-label {
  overflow: visible;
  color: var(--v42-text);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.agent-copy-launcher-home .agent-copy-status {
  display: grid;
  width: 38px;
  height: 40px;
  place-items: center;
  border-left: 1px solid #4b4b50;
}

.agent-copy-launcher-home .agent-copy-status img {
  width: 17px;
  height: 17px;
  filter: invert(72%);
}

.agent-copy-launcher-home.copied .agent-copy-pill {
  border-color: rgb(255 77 77 / 76%);
  background: #241c1e;
}

.agent-copy-launcher-home.copied .agent-client-mark {
  animation: none;
  transform: none;
}

.agent-guide-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--v42-secondary);
  font-size: 14px;
  font-weight: 620;
}

.agent-guide-link img {
  width: 16px;
  height: 16px;
  filter: invert(64%);
  transition: transform 170ms var(--v42-ease);
}

.agent-guide-link:hover {
  border-bottom-color: #57575d;
  color: var(--v42-text);
}

.agent-guide-link:hover img {
  transform: translateX(3px);
}

.agent-connect-copy .agent-safety-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--v42-muted);
  font-size: 12px;
}

.agent-safety-note > span {
  width: 6px;
  height: 6px;
  background: var(--v42-red);
  box-shadow: 0 0 0 3px rgb(255 77 77 / 10%);
}

.agent-route-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 54px 38px 42px;
  background:
    linear-gradient(rgb(255 255 255 / 1.8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 1.8%) 1px, transparent 1px),
    #121213;
  background-size: 54px 54px;
}

.agent-route-visual > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-right: 34px;
}

.agent-route-visual > header span {
  color: var(--v42-text);
  font-size: 15px;
  font-weight: 650;
}

.agent-route-visual > header small {
  color: var(--v42-muted);
  font-size: 12px;
}

.agent-route-map {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) minmax(36px, 0.35fr) minmax(106px, 0.85fr) minmax(36px, 0.35fr) minmax(112px, 1fr);
  align-items: center;
  gap: 0;
  margin-top: 28px;
}

.agent-route-node {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 92px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #414146;
  background: rgb(18 18 19 / 92%);
}

.agent-route-node::after {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 32px;
  height: 2px;
  background: #5b5b62;
  content: "";
}

.agent-route-node-mcp {
  border-color: rgb(255 77 77 / 56%);
  background: linear-gradient(135deg, rgb(255 77 77 / 13%), transparent 60%), #171415;
}

.agent-route-node-mcp::after {
  background: var(--v42-red);
}

.agent-route-node strong {
  color: var(--v42-secondary);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.agent-route-node > .ui-icon {
  width: 24px;
  height: 24px;
  color: #ababaf;
}

.agent-route-node-mcp > .ui-icon {
  color: var(--v42-red);
}

.agent-route-node .agent-client-strip {
  grid-template-columns: repeat(3, 20px);
}

.agent-route-node .agent-client-mark {
  width: 20px;
  height: 22px;
}

.agent-route-node .agent-client-mark img,
.agent-route-node .agent-client-mark[data-client="claude"] img,
.agent-route-node .agent-client-mark[data-client="codex"] img {
  width: 17px;
  height: 17px;
}

.agent-route-node .agent-client-mark[data-client="cursor"] img {
  width: 15px;
  height: 17px;
}

.agent-route-link {
  position: relative;
  display: block;
  height: 1px;
  background: #4a4a50;
}

.agent-route-link::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 7px;
  height: 7px;
  border-top: 1px solid #77777e;
  border-right: 1px solid #77777e;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.agent-route-link i {
  display: block;
  width: 40%;
  height: 1px;
  background: var(--v42-red);
  animation: agent-route-signal 2.4s ease-in-out infinite;
}

@keyframes agent-route-signal {
  0%, 18% { transform: translateX(0); opacity: 0; }
  36%, 68% { opacity: 1; }
  82%, 100% { transform: translateX(150%); opacity: 0; }
}

.agent-route-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0 0;
  border: 1px solid var(--v42-border);
  background: #111112;
}

.agent-route-rules > div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--v42-border);
}

.agent-route-rules > div:last-child {
  border-right: 0;
}

.agent-route-rules dt {
  color: var(--v42-red);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.agent-route-rules dd {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--v42-muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dashboard heading and metric hierarchy */
.dashboard-heading {
  padding: 28px 30px;
  background:
    linear-gradient(90deg, rgb(255 77 77 / 5%), transparent 27%),
    var(--v42-surface);
}

.dashboard-heading h2 {
  font-size: clamp(32px, 2.75vw, 40px);
}

.dashboard-heading p {
  font-size: 15px;
  line-height: 1.65;
}

.dashboard-metrics {
  grid-template-columns: minmax(0, 2.3fr) minmax(270px, 0.72fr);
  grid-template-rows: repeat(3, minmax(132px, 1fr));
}

.dashboard-metrics article.metric-card-primary {
  grid-template-columns: minmax(270px, 0.84fr) minmax(420px, 1.45fr);
  gap: 30px;
  padding: 30px;
  background:
    radial-gradient(circle at 12% 44%, rgb(255 77 77 / 8%), transparent 30%),
    #141212;
}

.activity-card-summary {
  align-items: stretch;
  padding-right: 30px;
}

.asset-orbit {
  position: relative;
  display: grid;
  width: 238px;
  height: 238px;
  margin: 14px auto 0;
  place-items: center;
}

.asset-orbit-ring {
  position: absolute;
  border: 1px solid #39363a;
  border-radius: 50%;
}

.asset-orbit-ring-outer {
  width: 210px;
  height: 210px;
  border-style: dashed;
}

.asset-orbit-ring-inner {
  width: 118px;
  height: 118px;
  border-color: #4a3b3e;
}

.asset-orbit-ring-outer::before,
.asset-orbit-ring-inner::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid var(--v42-red);
  border-radius: 50%;
  background: #171313;
  content: "";
  transform: translate(-50%, -50%);
}

.asset-orbit-dots,
.asset-orbit-dot {
  position: absolute;
  top: 50%;
  left: 50%;
}

.asset-orbit-dots {
  width: 0;
  height: 0;
}

.asset-orbit-dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border: 1px solid rgb(255 77 77 / 86%);
  border-radius: 50%;
  background: #1b1416;
  box-shadow: 0 0 0 3px rgb(255 77 77 / 5%);
  opacity: var(--dot-opacity);
  transform: rotate(var(--orbit-angle)) translateX(var(--orbit-radius)) rotate(calc(var(--orbit-angle) * -1)) translate(-50%, -50%);
}

.asset-orbit-core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 104px;
  height: 104px;
  align-content: center;
  justify-items: center;
  border: 1px solid rgb(255 77 77 / 48%);
  border-radius: 50%;
  background: radial-gradient(circle, #211819, #151313 72%);
  box-shadow: 0 0 34px rgb(255 77 77 / 9%);
}

.asset-orbit-core > span {
  color: var(--v42-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.dashboard-metrics article.metric-card-primary .asset-orbit-core .metric-value {
  margin-top: 4px;
}

.dashboard-metrics article.metric-card-primary .asset-orbit-core .metric-value strong {
  font-size: 48px;
  line-height: 0.88;
}

.asset-orbit-core .metric-value em {
  font-size: 12px;
}

.activity-card-summary > p {
  margin: auto 0 0;
  font-size: 13px;
}

.activity-visual {
  grid-template-rows: auto minmax(240px, 1fr);
}

.activity-chart {
  min-height: 240px;
}

.activity-area {
  fill: rgb(255 77 77 / 6%);
  stroke: none;
  opacity: 0;
  transition: opacity 420ms ease 120ms;
}

.dashboard-ready .activity-area {
  opacity: 1;
}

.activity-line {
  stroke-width: 2.2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 520ms var(--v42-ease) 80ms;
}

.dashboard-ready .activity-line {
  stroke-dashoffset: 0;
}

.activity-line.is-trace-settled,
.dashboard-ready .activity-line.is-trace-settled {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  transition: none;
}

.activity-bar {
  fill: #30292b;
  stroke: #4a3a3e;
}

.activity-value-label {
  opacity: 0.72;
}

.activity-period.is-active .activity-value-label {
  fill: var(--v42-text);
  opacity: 1;
}

/* Website operating flow */
.dashboard-flow-panel {
  overflow: hidden;
  border: 1px solid var(--v42-border);
  background: var(--v42-surface);
}

.dashboard-flow-panel > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  align-items: end;
  gap: 30px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--v42-border);
  background: var(--v42-surface-raised);
}

.dashboard-flow-panel > header > div {
  display: grid;
  gap: 7px;
}

.dashboard-flow-panel h3 {
  color: var(--v42-text);
  font-size: 25px;
  font-weight: 590;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.dashboard-flow-panel > header p {
  max-width: 40em;
  margin: 0;
  color: var(--v42-muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

.dashboard-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 36px 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 126px;
  padding: 22px;
  border-right: 1px solid var(--v42-border);
  background: #121213;
}

.dashboard-flow li:last-child {
  border-right: 0;
}

.dashboard-flow li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -5px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-top: 1px solid #696970;
  border-right: 1px solid #696970;
  background: #121213;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.flow-number {
  align-self: start;
  color: var(--v42-red);
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 18px;
  font-weight: 560;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.flow-icon {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid #44444a;
  background-color: #b0b0b5;
  -webkit-mask-image: var(--ui-icon);
  mask-image: var(--ui-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 20px 20px;
  mask-size: 20px 20px;
}

.dashboard-flow li > div {
  display: grid;
  gap: 6px;
}

.dashboard-flow strong {
  color: var(--v42-text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.dashboard-flow small {
  color: var(--v42-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Recent timeline and category donut */
.dashboard-grid {
  grid-template-columns: minmax(0, 1.32fr) minmax(440px, 0.92fr);
  gap: 18px;
}

.recent-item {
  grid-template-columns: 42px 44px minmax(0, 1fr) 100px;
  min-height: 94px;
}

.recent-index {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #45454b;
  background: #151516;
  color: var(--v42-secondary);
}

.recent-index::after {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 1px;
  height: 64px;
  background: #343438;
  content: "";
}

.recent-item:last-child .recent-index::after {
  display: none;
}

.recent-item::before {
  inset: 18px auto 18px 0;
  width: 2px;
}

.category-summary {
  display: grid;
  grid-template-columns: 150px 92px minmax(150px, 1fr);
  min-height: 154px;
}

.category-donut-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 14px;
  border-right: 1px solid var(--v42-border);
}

.category-donut {
  display: block;
  width: 118px;
  height: 118px;
  transform: rotate(-90deg);
}

.category-donut-track,
.category-donut-segment {
  fill: none;
  stroke-width: 13;
}

.category-donut-track {
  stroke: #29292d;
}

.category-donut-segment {
  stroke: var(--v42-red);
  stroke-dasharray: var(--segment-share) calc(100 - var(--segment-share));
  stroke-dashoffset: var(--segment-offset);
  stroke-linecap: butt;
  opacity: calc(1 - var(--segment-index) * 0.13);
}

.category-donut-center {
  position: absolute;
  display: grid;
  place-items: center;
}

.category-donut-center strong {
  color: var(--v42-text);
  font-family: var(--font-din-numerals), "Arial Narrow", sans-serif;
  font-size: 31px;
  font-weight: 540;
  line-height: 0.9;
  font-variant-numeric: tabular-nums lining-nums;
}

.category-donut-center span {
  margin: 5px 0 0;
  color: var(--v42-muted);
  font-size: 10px;
  font-weight: 620;
}

.category-summary-main,
.category-summary-dominant {
  padding: 18px 16px;
}

.category-summary-main {
  border-right: 1px solid var(--v42-border);
}

.category-summary-main strong {
  font-size: 38px;
}

.category-bars {
  padding: 8px 22px 16px;
}

.category-row {
  grid-template-columns: minmax(112px, auto) minmax(70px, 1fr) 62px;
  min-height: 72px;
}

.category-row:hover,
.category-row:focus-visible,
.dashboard-metrics article:hover {
  transform: none;
}

@media (max-width: 1180px) {
  .agent-copy-launcher-home {
    grid-template-columns: minmax(340px, 0.82fr) minmax(420px, 1.18fr);
  }

  .agent-connect-copy {
    padding-inline: 32px;
  }

  .agent-route-visual {
    padding-left: 32px;
    padding-right: 48px;
  }

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

  .dashboard-metrics article.metric-card-primary {
    grid-column: 1 / -1;
    grid-template-columns: minmax(270px, 0.72fr) minmax(430px, 1.28fr);
    min-height: 380px;
  }

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

  .dashboard-flow li:nth-child(2) {
    border-right: 0;
  }

  .dashboard-flow li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--v42-border);
  }

  .dashboard-flow li:nth-child(2)::after {
    display: none;
  }

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

  .category-summary {
    grid-template-columns: 170px 110px minmax(170px, 1fr);
  }
}

@media (max-width: 900px) {
  .agent-copy-launcher-home {
    grid-template-columns: 1fr;
  }

  .agent-connect-copy {
    padding: 34px 30px;
    border-right: 0;
    border-bottom: 1px solid var(--v42-border);
  }

  .agent-route-visual {
    padding: 30px;
  }

  .dashboard-flow-panel > header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-flow-panel > header p {
    text-align: left;
  }

  .dashboard-metrics article.metric-card-primary {
    grid-template-columns: minmax(250px, 0.72fr) minmax(360px, 1.28fr);
  }
}

@media (max-width: 720px) {
  .agent-connect-copy {
    padding: 30px 22px;
  }

  .agent-connect-copy h3 {
    font-size: 32px;
  }

  .agent-route-visual {
    padding: 28px 22px;
  }

  .agent-route-visual > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding-right: 34px;
  }

  .agent-route-map {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .agent-route-link {
    width: 1px;
    height: 28px;
    justify-self: center;
    background: #4a4a50;
  }

  .agent-route-link::after {
    top: auto;
    right: auto;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .agent-route-link i {
    width: 1px;
    height: 40%;
    animation: agent-route-signal-vertical 2.4s ease-in-out infinite;
  }

  @keyframes agent-route-signal-vertical {
    0%, 18% { transform: translateY(0); opacity: 0; }
    36%, 68% { opacity: 1; }
    82%, 100% { transform: translateY(150%); opacity: 0; }
  }

  .agent-route-rules {
    grid-template-columns: 1fr;
  }

  .agent-route-rules > div {
    border-right: 0;
    border-bottom: 1px solid var(--v42-border);
  }

  .agent-route-rules > div:last-child {
    border-bottom: 0;
  }

  .dashboard-metrics article.metric-card-primary {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .activity-card-summary {
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--v42-border);
  }

  .asset-orbit {
    margin-top: 8px;
  }

  .activity-visual {
    padding-top: 2px;
  }

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

  .dashboard-flow li,
  .dashboard-flow li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--v42-border);
  }

  .dashboard-flow li:last-child {
    border-bottom: 0;
  }

  .dashboard-flow li::after {
    display: none;
  }

  .category-summary {
    grid-template-columns: 140px 92px minmax(120px, 1fr);
  }
}

@media (max-width: 560px) {
  .agent-connect-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .agent-copy-launcher-home .agent-copy-pill {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) 38px;
  }

  .agent-guide-link {
    align-self: flex-start;
  }

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

  .category-summary {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .category-summary-dominant {
    grid-column: 1 / -1;
    border-top: 1px solid var(--v42-border);
  }

  .category-summary-main {
    border-right: 0;
  }
}

@media (max-width: 430px) {
  .agent-connect-copy h3 {
    max-width: 10em;
    font-size: 30px;
  }

  .agent-copy-launcher-home .agent-copy-label {
    font-size: 15px;
  }

  .agent-copy-launcher-home .agent-client-strip {
    grid-template-columns: repeat(3, 20px);
  }

  .agent-copy-launcher-home .agent-client-mark {
    width: 20px;
  }

  .dashboard-flow-panel > header {
    padding: 22px 20px;
  }

  .dashboard-flow li {
    grid-template-columns: 32px 38px minmax(0, 1fr);
    padding: 20px 18px;
  }

  .flow-icon {
    width: 38px;
    height: 38px;
  }

  .recent-item {
    grid-template-columns: 36px 42px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-copy-launcher-home,
  .activity-area,
  .activity-line,
  .agent-route-link i,
  .agent-guide-link img {
    animation: none !important;
    transition: none !important;
  }

  .agent-copy-launcher-home,
  .activity-area {
    opacity: 1;
    transform: none;
  }

  .activity-line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

/* home-dashboard-v43.css */
/* Hux home dashboard v43 — signal field + unified operations command board */

.dashboard-section {
  --v43-surface: #101011;
  --v43-surface-soft: #131314;
  --v43-surface-active: #181617;
  --v43-border: #303034;
  --v43-border-strong: #4a4a50;
  --v43-text: #f3f3f4;
  --v43-secondary: #b0b0b6;
  --v43-muted: #77777f;
  --v43-red: #ff4d4d;
  --v43-number-font: "Instrument Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --v43-ease: cubic-bezier(0.22, 1, 0.36, 1);
  gap: 24px;
}

/* Keep the asset-browser masthead out of the dashboard homepage. */
.workspace.page-home .workspace-header {
  display: none;
}

.workspace.page-home .workspace-content {
  padding-top: clamp(42px, 4.5vw, 68px);
}

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

/* Reserve the final two-digit navigation geometry before Registry data arrives. */
.nav-count[data-stat="totalSkills"] {
  min-width: 28px;
}

/* Agent connection field */
.agent-copy-launcher-home {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(430px, 0.82fr) minmax(560px, 1.18fr);
  min-height: 310px;
  border: 1px solid var(--v43-border);
  background:
    linear-gradient(112deg, rgb(255 77 77 / 8%), transparent 30%),
    var(--v43-surface);
  opacity: 0;
  transform: none;
  transition: opacity 340ms ease;
}

.agent-copy-launcher-home::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  z-index: 3;
  background: var(--v43-red);
  content: "";
  pointer-events: none;
}

.agent-bridge-ready .agent-copy-launcher-home {
  opacity: 1;
  transform: none;
}

.agent-copy-launcher-home > .agent-copy-dismiss {
  top: 20px;
  right: 20px;
  z-index: 8;
}

.agent-connect-copy {
  position: relative;
  z-index: 2;
  justify-content: center;
  padding: 34px 44px;
  border-right: 0;
}

.agent-connect-copy::after {
  position: absolute;
  top: 26px;
  right: 0;
  bottom: 26px;
  width: 1px;
  background: linear-gradient(transparent, #343438 14% 86%, transparent);
  content: "";
}

.agent-connect-copy h3 {
  max-width: none;
  margin-top: 16px;
  font-size: clamp(34px, 3vw, 44px);
  font-weight: 590;
  letter-spacing: -0.04em;
  line-height: 1.08;
  white-space: nowrap;
}

.agent-connect-copy > p {
  max-width: 38em;
  margin-top: 18px;
  color: var(--v43-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.agent-connect-actions {
  gap: 12px 18px;
  margin-top: 28px;
}

/* Deliberately preserve the approved capsule geometry and appearance. */
.agent-copy-launcher-home .agent-copy-pill {
  grid-template-columns: auto minmax(0, auto) 38px;
  min-height: 58px;
  padding: 7px 8px 7px 16px;
  border: 1px solid #55555c;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 5%), transparent 52%),
    #1b1b1e;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}

.agent-copy-launcher-home .agent-copy-pill:hover,
.agent-copy-launcher-home .agent-copy-pill:focus-visible {
  border-color: #86868d;
  background: #222225;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), 0 10px 28px rgb(0 0 0 / 23%);
  transform: none;
}

.agent-signal-field {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 22px 30px 20px;
  background:
    linear-gradient(rgb(255 255 255 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2.5%) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgb(255 77 77 / 6%), transparent 36%);
  background-size: 32px 32px, 32px 32px, auto;
}

.agent-signal-field > header {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  color: var(--v43-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.agent-signal-map {
  position: relative;
  min-height: 190px;
}

.agent-signal-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.agent-signal-grid {
  fill: none;
  stroke: rgb(255 255 255 / 3.5%);
  stroke-width: 1;
}

.agent-signal-track,
.agent-signal-live {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.agent-signal-track {
  stroke: #39393e;
  stroke-width: 1;
}

.agent-signal-live {
  stroke: var(--v43-red);
  stroke-width: 1.8;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  opacity: 1;
}

.agent-bridge-ready .agent-signal-live {
  animation: none;
}

.agent-signal-anchor {
  fill: #111112;
  stroke: #6b6b72;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.agent-signal-anchor-core {
  fill: var(--v43-red);
  stroke: rgb(255 77 77 / 24%);
  stroke-width: 8;
}

.agent-signal-source,
.agent-signal-core,
.agent-signal-assets {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  transform: translate(-50%, -50%);
}

.agent-signal-source {
  top: 50%;
  left: 14.5%;
  gap: 9px;
}

.agent-signal-source .agent-client-strip {
  grid-template-columns: repeat(3, 36px);
  gap: 0;
  padding: 6px;
  border: 1px solid #49494f;
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 4%), transparent 60%),
    #171719;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%), 0 8px 24px rgb(0 0 0 / 16%);
}

.agent-signal-source .agent-client-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 1;
}

.agent-copy-launcher-home .agent-client-mark,
.agent-copy-launcher-home .agent-copy-pill:hover .agent-client-mark,
.agent-copy-launcher-home .agent-copy-pill:focus-visible .agent-client-mark,
.agent-copy-launcher-home.copied .agent-client-mark,
.agent-signal-source .agent-client-mark,
.agent-signal-source:hover .agent-client-mark {
  animation: none;
  opacity: 1;
  transform: none;
  transition: none;
}

.agent-signal-source .agent-client-mark + .agent-client-mark::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  width: 1px;
  background: #3c3c42;
  content: "";
}

.agent-signal-source .agent-client-mark img {
  width: 21px;
  height: 21px;
}

.agent-signal-source > span,
.agent-signal-assets > strong {
  color: var(--v43-secondary);
  font-size: 12px;
  font-weight: 650;
}

.agent-signal-core {
  top: 50%;
  left: 50%;
  width: 108px;
  height: 108px;
  grid-template-rows: auto auto;
  place-content: center;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid rgb(255 77 77 / 58%);
  border-radius: 50%;
  background: #171314;
  box-shadow: inset 0 0 0 10px rgb(255 77 77 / 2.5%);
  isolation: isolate;
  text-align: center;
  animation: v52-mcp-core-breathe 2800ms cubic-bezier(0.65, 0, 0.35, 1) infinite;
  will-change: border-color, box-shadow;
}

.agent-signal-core::before {
  position: absolute;
  z-index: -1;
  inset: -30px;
  border: 1px solid rgb(255 77 77 / 7%);
  border-radius: 50%;
  content: "";
  opacity: 0.34;
  transform: scale(0.92);
  transform-origin: center;
  animation: v52-mcp-halo-breathe 2800ms cubic-bezier(0.65, 0, 0.35, 1) infinite;
  will-change: opacity, transform;
}

.agent-signal-core-ring {
  position: absolute;
  inset: -16px;
  border: 1px solid rgb(255 77 77 / 14%);
  border-radius: 50%;
  opacity: 0.62;
  transform: scale(0.95);
  transform-origin: center;
  animation: v52-mcp-ring-breathe 2800ms cubic-bezier(0.65, 0, 0.35, 1) infinite;
  will-change: opacity, transform;
}

.agent-signal-core .ui-icon {
  width: 24px;
  height: 24px;
  margin: 0;
  background-color: var(--v43-red);
}

.agent-signal-core strong {
  margin: 0;
  color: var(--v43-text);
  font-size: 14px;
  line-height: 1;
}

.agent-signal-assets {
  top: 50%;
  left: 87%;
  width: 132px;
  height: 126px;
  align-content: center;
  gap: 14px;
}

.asset-layer {
  position: absolute;
  top: 16px;
  left: 50%;
  display: grid;
  width: 76px;
  height: 62px;
  place-items: center;
  border: 1px solid #4b4b51;
  border-radius: 8px;
  background: #171719;
  transform: translateX(-50%);
  will-change: auto;
}

.asset-layer-back {
  transform: translate(-50%, -14px) scale(0.86);
  opacity: 0.34;
  animation: none;
}

.asset-layer-middle {
  transform: translate(-50%, -7px) scale(0.93);
  opacity: 0.58;
  animation: none;
}

.asset-layer-front {
  border-color: #66666e;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 4%), transparent 68%),
    #18181a;
  box-shadow: 0 10px 30px rgb(0 0 0 / 18%);
  animation: none;
}

.asset-layer-front .ui-icon {
  width: 31px;
  height: 31px;
  background-color: #e0e0e3;
}

.agent-signal-assets > strong {
  margin-top: 86px;
  color: var(--v43-text);
  font-size: 13px;
}

@keyframes v43-signal-pass {
  0% {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
    stroke-dasharray: none;
  }
}

@keyframes v52-mcp-core-breathe {
  0%,
  18%,
  82%,
  100% {
    border-color: rgb(255 77 77 / 48%);
    box-shadow:
      inset 0 0 0 10px rgb(255 77 77 / 2.5%),
      0 0 0 0 rgb(255 77 77 / 0%),
      0 0 20px rgb(255 77 77 / 6%);
  }
  48% {
    border-color: rgb(255 77 77 / 96%);
    box-shadow:
      inset 0 0 0 10px rgb(255 77 77 / 8%),
      0 0 0 9px rgb(255 77 77 / 7%),
      0 0 42px rgb(255 77 77 / 22%);
  }
}

@keyframes v52-mcp-ring-breathe {
  0%,
  18%,
  82%,
  100% {
    opacity: 0.38;
    transform: scale(0.95);
  }
  48% {
    opacity: 1;
    transform: scale(1.09);
  }
}

@keyframes v52-mcp-halo-breathe {
  0%,
  24%,
  88%,
  100% {
    opacity: 0.16;
    transform: scale(0.92);
  }
  54% {
    opacity: 0.78;
    transform: scale(1.15);
  }
}

/* Unified dashboard command board */
.dashboard-command-board {
  overflow: hidden;
  border: 1px solid var(--v43-border);
  background: var(--v43-surface);
}

.dashboard-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 34px;
  padding: 38px 40px 32px;
  border: 0;
  background:
    radial-gradient(circle at 0 20%, rgb(255 77 77 / 9%), transparent 30%),
    var(--v43-surface);
}

.dashboard-heading-copy {
  display: grid;
  gap: 10px;
}

.dashboard-heading .section-kicker {
  color: var(--v43-red);
}

.dashboard-heading h2 {
  margin: 0;
  color: var(--v43-text);
  font-size: clamp(36px, 3.2vw, 48px);
  font-weight: 590;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.dashboard-heading p {
  max-width: 48em;
  margin: 0;
  color: var(--v43-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.dashboard-heading-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dashboard-data-status {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--v43-muted);
  font-size: 12px;
  white-space: nowrap;
}

.dashboard-data-status i {
  width: 6px;
  height: 6px;
  background: var(--v43-red);
  box-shadow: 0 0 0 4px rgb(255 77 77 / 9%);
}

.dashboard-data-status time {
  color: var(--v43-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-variant-numeric: tabular-nums lining-nums;
}

.dashboard-asset-link {
  min-height: 46px;
  border-color: #49494f;
  background: #151516;
}

.dashboard-asset-link:hover,
.dashboard-asset-link:focus-visible {
  border-color: #707078;
  background: #1b1b1d;
  transform: none;
}

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

.dashboard-metrics article.metric-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 158px;
  flex-direction: column;
  padding: 24px 26px 28px;
  border: 0;
  border-right: 1px solid var(--v43-border);
  background: #111112;
  opacity: 0;
  transform: none;
  transition: opacity 320ms ease, background-color 160ms ease;
}

.dashboard-ready .dashboard-metrics article.metric-card {
  opacity: 1;
}

.dashboard-metrics article.metric-card:nth-child(2) {
  transition-delay: 45ms;
}

.dashboard-metrics article.metric-card:nth-child(3) {
  transition-delay: 90ms;
}

.dashboard-metrics article.metric-card:nth-child(4) {
  border-right: 0;
  transition-delay: 135ms;
}

.dashboard-metrics article.metric-card:hover {
  background: #151516;
  transform: none;
}

.dashboard-metrics article.metric-card::before {
  position: absolute;
  top: -1px;
  left: 26px;
  width: 38px;
  height: 2px;
  background: #56565d;
  content: "";
}

.dashboard-metrics article.metric-card-inventory::before,
.dashboard-metrics article.metric-card-updates::before {
  background: var(--v43-red);
}

.metric-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.metric-label {
  color: var(--v43-secondary);
  font-size: 13px;
  font-weight: 650;
}

.metric-sequence {
  color: #66666e;
  font-family: var(--v43-number-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.dashboard-metrics .metric-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 26px;
}

.dashboard-metrics .metric-value strong {
  color: var(--v43-text);
  font-family: var(--v43-number-font);
  font-size: clamp(40px, 3vw, 52px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.dashboard-metrics .metric-value em {
  color: #8e8e96;
  font-family: var(--v43-number-font);
  font-size: 13px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
}

.dashboard-metrics article.metric-card > small {
  margin-top: auto;
  color: var(--v43-muted);
  font-size: 11px;
  line-height: 1.45;
}

.dashboard-metrics .asset-matrix,
.dashboard-metrics .update-progress,
.dashboard-metrics .metric-visual,
.dashboard-metrics article.metric-card > small {
  display: none;
}

.asset-matrix,
.update-progress {
  display: grid;
  grid-template-columns: repeat(11, minmax(3px, 1fr));
  gap: 4px;
  width: 100%;
  margin: 20px 0 16px;
}

.asset-matrix i,
.update-progress i {
  height: 7px;
  background: #3d3d42;
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left center;
  transition: opacity 240ms ease calc(var(--matrix-index) * 18ms), transform 300ms var(--v43-ease) calc(var(--matrix-index) * 18ms);
}

.asset-matrix i {
  background: linear-gradient(90deg, #8e363a, var(--v43-red));
}

.update-progress i.is-active {
  background: var(--v43-red);
}

.dashboard-ready .asset-matrix i,
.dashboard-ready .update-progress i {
  opacity: 1;
  transform: scaleX(1);
}

.metric-visual {
  display: flex;
  height: 32px;
  align-items: center;
  margin: 17px 0 15px;
}

.metric-visual-views {
  gap: 8px;
}

.metric-visual-views .ui-icon {
  width: 22px;
  height: 22px;
  margin-right: 5px;
  background-color: var(--v43-red);
}

.metric-visual-views i {
  width: 24%;
  height: 1px;
  background: #45454a;
}

.metric-visual-views i:nth-of-type(2) {
  width: 16%;
  background: #67676e;
}

.metric-visual-views i:nth-of-type(3) {
  width: 10%;
}

.metric-visual-calls {
  gap: 0;
}

.metric-visual-calls span {
  width: 8px;
  height: 8px;
  border: 1px solid #7a7a82;
  background: #151516;
}

.metric-visual-calls span:nth-of-type(2) {
  border-color: var(--v43-red);
  background: rgb(255 77 77 / 12%);
}

.metric-visual-calls i {
  width: 34px;
  height: 1px;
  background: #45454a;
}

/* Unified operational analysis: deposition columns + expanded category mix */
.activity-card {
  border: 0;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 1.4%), transparent 28%),
    #0f0f10;
}

.dashboard-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(390px, 0.78fr);
  align-items: stretch;
}

.activity-trend-pane {
  min-width: 0;
  border-right: 1px solid var(--v43-border);
}

.activity-category-pane {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    linear-gradient(145deg, rgb(255 77 77 / 3%), transparent 34%),
    #111112;
}

.activity-card-header {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  height: 108px;
  min-height: 108px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  padding: 22px 30px;
}

.activity-card-header > div:first-child {
  display: grid;
  gap: 8px;
}

.activity-card-header h3 {
  margin: 0;
  color: var(--v43-text);
  font-size: 28px;
  font-weight: 590;
  letter-spacing: -0.035em;
}

.category-pane-header {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  height: 108px;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--v43-border);
}

.category-pane-header > div {
  display: grid;
  gap: 8px;
}

.category-pane-header h3 {
  margin: 0;
  color: var(--v43-text);
  font-size: 28px;
  font-weight: 590;
  letter-spacing: -0.035em;
}

.category-pane-header .panel-note {
  flex: 0 0 auto;
  color: var(--v43-muted);
  font-size: 12px;
}

.category-pane-header .panel-note strong {
  margin-right: 5px;
  color: var(--v43-red);
  font-family: var(--v43-number-font);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.activity-card-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--v43-muted);
}

.activity-card-meta small {
  font-size: 11px;
}

.activity-legend {
  color: var(--v43-secondary);
  font-size: 12px;
}

.activity-legend i {
  width: 22px;
  height: 2px;
  background: var(--v43-red);
}

.activity-visual {
  display: block;
  min-width: 0;
  padding: 0 18px 18px;
}

.activity-chart {
  position: relative;
  height: 310px;
  min-height: 0;
}

.activity-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.activity-grid-line,
.activity-baseline {
  vector-effect: non-scaling-stroke;
}

.activity-grid-line {
  stroke: #27272b;
  stroke-dasharray: 3 7;
}

.activity-baseline {
  stroke: #414147;
}

.activity-column {
  fill: url(#activity-column-fill);
  stroke: none;
  stroke-width: 0;
  opacity: 0;
  transform: scaleY(0.04);
  transform-box: fill-box;
  transform-origin: center bottom;
  vector-effect: non-scaling-stroke;
  transition:
    opacity 260ms ease calc(90ms + var(--activity-index) * 55ms),
    transform 520ms var(--v43-ease) calc(90ms + var(--activity-index) * 55ms),
    fill 160ms ease;
}

.dashboard-ready .activity-column {
  opacity: 1;
  transform: scaleY(1);
}

.activity-column.is-zero {
  fill: #343439;
  stroke: none;
}

.activity-value-label,
.activity-label {
  text-anchor: middle;
  font-family: var(--v43-number-font);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.activity-value-label {
  fill: #b4b4ba;
  font-size: 12px;
  font-weight: 600;
}

.activity-label {
  fill: #85858d;
  font-size: 12px;
  font-weight: 500;
}

.activity-period.is-active .activity-column {
  fill: var(--v43-red);
  stroke: none;
}

.activity-period.is-active .activity-value-label,
.activity-period.is-active .activity-label {
  fill: var(--v43-text);
}

.activity-hit-grid {
  inset: 0 var(--activity-plot-right, 3.2%) 12% var(--activity-plot-left, 6.4%);
}

.activity-tooltip {
  --v43-red: #ff4d4d;
  --v43-secondary: #b0b0b6;
  --dashboard-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  min-width: 176px;
  padding: 12px 14px;
  border: 1px solid #664044;
  border-radius: 10px;
  background: rgb(19 19 20 / 94%);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgb(0 0 0 / 36%), 0 0 26px rgb(255 77 77 / 8%);
  transform: translateY(6px);
  transition: opacity 130ms ease, transform 160ms var(--dashboard-ease);
}

.activity-tooltip.is-visible {
  transform: translateY(0);
}

.activity-tooltip strong {
  font-family: var(--v43-number-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.activity-tooltip span {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.activity-tooltip span > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v43-red);
  box-shadow: 0 0 0 5px rgb(255 77 77 / 18%), 0 0 14px rgb(255 77 77 / 36%);
}

.activity-tooltip span > em {
  color: var(--v43-secondary);
  font-style: normal;
}

.activity-tooltip span > b {
  color: var(--v43-red);
  font-family: var(--v43-number-font);
  font-weight: 650;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.activity-category-pane .category-overview {
  display: grid;
  min-width: 0;
  min-height: 0;
}

.activity-category-pane .category-horizontal-chart {
  display: grid;
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}

.activity-category-pane .category-bars {
  display: grid;
  height: 100%;
  min-height: 0;
  align-content: stretch;
  grid-auto-rows: minmax(0, 1fr);
  padding: 8px 22px 10px;
}

.activity-category-pane .category-row {
  display: grid;
  grid-template-columns: 26px minmax(102px, auto) minmax(62px, 1fr) 58px;
  min-height: 0;
  height: 100%;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--v43-border);
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background-color 140ms ease;
}

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

.activity-category-pane .category-rank {
  color: #5f5f66;
  font-family: var(--v43-number-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.activity-category-pane .category-row-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.activity-category-pane .category-row-label .ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background-color: #8f8f96;
}

.activity-category-pane .category-row-label strong {
  overflow: hidden;
  color: var(--v43-secondary);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-category-pane .category-track {
  position: relative;
  overflow: hidden;
  display: block;
  height: 9px;
  background: #29292e;
}

.activity-category-pane .category-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #d64040, var(--v43-red));
  opacity: 0.96;
  transform: scaleX(0);
  transform-origin: left center;
  transition: filter 140ms ease, opacity 140ms ease, transform var(--dashboard-chart-duration) cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(160ms + var(--bar-index, 0) * var(--dashboard-stagger));
}

.dashboard-ready .activity-category-pane .category-track i {
  transform: scaleX(var(--category-scale, 0));
}

.activity-category-pane .category-stat {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: end;
  gap: 6px;
  text-align: right;
}

.activity-category-pane .category-stat strong {
  color: var(--v43-text);
  font-family: var(--v43-number-font);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.activity-category-pane .category-stat small {
  color: var(--v43-muted);
  font-family: var(--v43-number-font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.activity-category-pane .category-row:hover,
.activity-category-pane .category-row:focus-visible {
  background: #161617;
  box-shadow: none;
  transform: none;
}

.activity-category-pane .category-row:hover .category-track i,
.activity-category-pane .category-row:focus-visible .category-track i {
  filter: brightness(1.12);
  opacity: 1;
  transform: scaleX(var(--category-scale, 0));
}

.activity-category-pane .category-row:focus-visible {
  outline: 1px solid rgb(255 77 77 / 72%);
  outline-offset: -1px;
}

/* Explicitly retire the previous visual system. */
.asset-orbit,
.agent-route-visual,
.agent-route-node,
.agent-route-rules,
.activity-bar {
  display: none !important;
}

@media (max-width: 1180px) {
  .agent-copy-launcher-home {
    grid-template-columns: minmax(390px, 0.9fr) minmax(470px, 1.1fr);
  }

  .agent-connect-copy {
  padding: 32px 30px;
  }

  .agent-signal-field {
    padding-inline: 24px;
  }

  .dashboard-heading {
    padding-inline: 30px;
  }

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

  .dashboard-metrics article.metric-card:nth-child(2) {
    border-right: 0;
  }

  .dashboard-metrics article.metric-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--v43-border);
  }
}

@media (max-width: 900px) {
  .agent-copy-launcher-home {
    grid-template-columns: 1fr;
  }

  .agent-connect-copy {
    padding: 40px 34px 30px;
  }

  .agent-connect-copy::after {
    top: auto;
    right: 34px;
    bottom: 0;
    left: 34px;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, #343438 10% 90%, transparent);
  }

  .agent-signal-field {
    min-height: 330px;
    padding: 24px 34px 28px;
  }

  .dashboard-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dashboard-heading-actions {
    justify-content: space-between;
  }

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

  .activity-trend-pane {
    border-right: 0;
    border-bottom: 1px solid var(--v43-border);
  }

  .activity-card-header {
    padding-inline: 30px;
  }

  .activity-chart {
    height: 300px;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .agent-connect-copy {
    padding: 34px 22px 28px;
  }

  .agent-connect-copy::after {
    right: 22px;
    left: 22px;
  }

  .agent-connect-copy h3 {
    max-width: 9em;
    font-size: clamp(34px, 10.5vw, 44px);
    white-space: normal;
  }

  .agent-connect-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-copy-launcher-home .agent-copy-pill {
    max-width: 100%;
  }

  .agent-copy-launcher-home .agent-copy-label {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
  }

  .agent-signal-field {
    min-height: 310px;
    padding: 22px 18px 24px;
  }

  .agent-signal-field > header {
    padding-right: 0;
  }

  .agent-signal-map {
    min-height: 194px;
  }

  .agent-signal-source {
    left: 15%;
  }

  .agent-signal-source .agent-client-strip {
    grid-template-columns: repeat(3, 30px);
    padding: 5px;
  }

  .agent-signal-source .agent-client-mark {
    width: 30px;
    height: 32px;
  }

  .agent-signal-source .agent-client-mark img {
    width: 18px;
    height: 18px;
  }

  .agent-signal-core {
    width: 90px;
    height: 90px;
  }

  .agent-signal-assets {
    left: 86%;
    width: 110px;
    height: 112px;
    transform: translate(-54%, -50%);
  }

  .asset-layer {
    width: 66px;
    height: 54px;
  }

  .asset-layer-front .ui-icon {
    width: 27px;
    height: 27px;
  }

  .agent-signal-assets > strong {
    margin-top: 76px;
  }

  .dashboard-heading {
    gap: 24px;
    padding: 32px 22px 26px;
  }

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

  .dashboard-heading-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .dashboard-metrics article.metric-card,
  .dashboard-metrics article.metric-card:nth-child(2),
  .dashboard-metrics article.metric-card:nth-child(4) {
    min-height: 148px;
    border-right: 0;
    border-bottom: 1px solid var(--v43-border);
  }

  .dashboard-metrics .metric-value {
    margin-top: 24px;
  }

  .dashboard-metrics article.metric-card:last-child {
    border-bottom: 0;
  }

  .asset-matrix,
  .update-progress {
    grid-template-columns: repeat(11, minmax(4px, 1fr));
  }

  .activity-card-header {
    height: auto;
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    padding: 26px 22px 8px;
  }

  .category-pane-header {
    height: auto;
    min-height: auto;
    align-items: end;
    padding: 26px 22px 20px;
  }

  .activity-card-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .activity-visual {
    padding-inline: 5px;
  }

  .activity-chart {
    height: 286px;
    min-height: 0;
  }

  .activity-value-label {
    font-size: 12px;
  }

  .activity-label {
    font-size: 11px;
  }

  .activity-category-pane .category-bars {
    padding-inline: 16px;
  }

  .activity-category-pane .category-row {
    grid-template-columns: 24px minmax(92px, auto) minmax(42px, 1fr) 54px;
    min-height: 68px;
    gap: 10px;
  }

}

@media (max-width: 420px) {
  .agent-copy-launcher-home .agent-copy-pill {
    grid-template-columns: auto minmax(0, 1fr) 34px;
    width: 100%;
    padding-left: 12px;
  }

  .agent-copy-launcher-home .agent-client-strip {
    grid-template-columns: repeat(3, 20px);
  }

  .agent-copy-launcher-home .agent-client-mark {
    width: 20px;
  }

  .agent-copy-launcher-home .agent-copy-status {
    width: 34px;
  }

  .agent-signal-source .agent-client-strip {
    grid-template-columns: repeat(3, 25px);
    padding: 4px;
  }

  .agent-signal-source .agent-client-mark {
    width: 25px;
    height: 28px;
  }

  .agent-signal-source .agent-client-mark img {
    width: 16px;
    height: 16px;
  }

  .agent-signal-core {
    width: 78px;
    height: 78px;
  }

  .agent-signal-core .ui-icon {
    width: 20px;
    height: 20px;
  }

  .agent-signal-source > span,
  .agent-signal-assets > strong {
    font-size: 9px;
  }

  .asset-layer {
    width: 60px;
    height: 49px;
  }

  .dashboard-heading p {
    font-size: 14px;
  }

  .activity-category-pane .category-bars {
    padding: 10px 12px 12px;
  }

  .activity-category-pane .category-row {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    min-height: 66px;
    gap: 9px 7px;
  }

  .activity-category-pane .category-rank {
    grid-column: 1;
    grid-row: 1;
  }

  .activity-category-pane .category-row-label {
    grid-column: 2;
    grid-row: 1;
  }

  .activity-category-pane .category-row-label {
    gap: 7px;
  }

  .activity-category-pane .category-row-label .ui-icon {
    width: 16px;
    height: 16px;
  }

  .activity-category-pane .category-row-label strong {
    font-size: 12px;
  }

  .activity-category-pane .category-track {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 8px;
  }

  .activity-category-pane .category-stat {
    grid-column: 3;
    grid-row: 1;
    gap: 4px;
  }

  .activity-category-pane .category-stat strong {
    font-size: 17px;
  }

  .activity-category-pane .category-stat small {
    font-size: 9px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .agent-copy-launcher-home,
  .dashboard-metrics article.metric-card,
  .asset-matrix i,
  .update-progress i,
  .activity-column {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .agent-bridge-ready .agent-signal-live {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }

  .asset-layer-back,
  .asset-layer-middle,
  .asset-layer-front,
  .agent-signal-core,
  .agent-signal-core::before,
  .agent-signal-core-ring {
    animation: none;
  }

  .agent-signal-core {
    border-color: rgb(255 77 77 / 58%);
    box-shadow: inset 0 0 0 10px rgb(255 77 77 / 2.5%);
  }

  .agent-signal-core::before {
    opacity: 0.18;
    transform: scale(0.94);
  }

  .agent-signal-core-ring {
    opacity: 0.42;
    transform: scale(0.97);
  }

  .asset-layer-back {
    opacity: 0.34;
    transform: translate(-50%, -14px) scale(0.86);
  }

  .asset-layer-middle {
    opacity: 0.58;
    transform: translate(-50%, -7px) scale(0.93);
  }

  .asset-layer-front {
    border-color: #66666e;
    transform: translateX(-50%);
  }
}

/* favorite-state-v54.css */
/* Favorite state v54 — persistent, independent state for every asset card. */
#asset-grid .skill-card > .favorite-btn.active,
#asset-grid .skill-card > .favorite-btn[aria-pressed="true"],
#asset-grid .skill-card:hover > .favorite-btn.active,
#asset-grid .skill-card:focus-within > .favorite-btn.active,
#asset-grid .skill-card:focus-within:not(:hover) > .favorite-btn.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #f0f0f2;
  opacity: 1;
  transform: none;
}

#asset-grid .skill-card > .favorite-btn.active:hover,
#asset-grid .skill-card > .favorite-btn.active:focus-visible,
#asset-grid .skill-card > .favorite-btn[aria-pressed="true"]:hover,
#asset-grid .skill-card > .favorite-btn[aria-pressed="true"]:focus-visible {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
  transform: none;
}

#asset-grid .skill-card > .favorite-btn.active .ui-icon,
#asset-grid .skill-card > .favorite-btn[aria-pressed="true"] .ui-icon {
  color: #ffffff;
}

/* asset-library-spacing-v62.css */
/* Asset library v63: shared rhythm and stable category separators. */
#assets-view .asset-grid,
#assets-view .skeleton-grid {
  margin-block-start: var(--asset-grid-gap, 16px);
}

/*
 * Empty categories remain visibly disabled, while their structural divider
 * keeps the same weight as every other tab boundary.
 */
#category-pills > .pill {
  border-right-color: var(--border);
}

#category-pills > .pill:disabled,
#category-pills > .pill.empty {
  color: #464646;
  opacity: 1;
}

#category-pills > .pill:disabled .ui-icon,
#category-pills > .pill.empty .ui-icon,
#category-pills > .pill:disabled .pill-count,
#category-pills > .pill.empty .pill-count {
  color: #3f3f3f;
}

/* interface-motion-v83.css */
/* Hux interface motion: gradual, stable reveals for authentication and navigation. */

:root {
  --hux-motion-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --hux-motion-settle: cubic-bezier(0.33, 1, 0.68, 1);
  --hux-motion-login: 440ms;
  --hux-motion-workspace: 320ms;
}

.auth-gate-card-copy {
  display: grid;
  gap: 12px;
}

.auth-gate-card-copy p {
  max-width: 34ch;
  margin-top: 0;
  text-wrap: pretty;
}

html.app-ready.auth-login .auth-gate-brand {
  animation: hux-auth-brand-in 260ms var(--hux-motion-settle) both;
}

html.app-ready.auth-login .auth-gate-layout {
  animation: hux-auth-frame-in var(--hux-motion-login) var(--hux-motion-enter) both;
}

html.app-ready.auth-login .auth-gate-intro > .section-kicker,
html.app-ready.auth-login .auth-gate-intro > h1,
html.app-ready.auth-login .auth-gate-intro > p,
html.app-ready.auth-login .auth-gate-flow {
  animation: hux-auth-copy-in 360ms var(--hux-motion-enter) both;
}

html.app-ready.auth-login .auth-gate-intro > .section-kicker {
  animation-delay: 50ms;
}

html.app-ready.auth-login .auth-gate-intro > h1 {
  animation-delay: 90ms;
}

html.app-ready.auth-login .auth-gate-intro > p {
  animation-delay: 125ms;
}

html.app-ready.auth-login .auth-gate-flow {
  animation-delay: 160ms;
}

html.app-ready.auth-login .auth-gate-card > * {
  animation: hux-auth-action-in 340ms var(--hux-motion-enter) both;
}

html.app-ready.auth-login .auth-gate-card-index {
  animation-delay: 80ms;
}

html.app-ready.auth-login .auth-gate-card-copy {
  animation-delay: 115ms;
}

html.app-ready.auth-login .auth-gate-primary {
  animation-delay: 150ms;
}

html.app-ready.auth-login .auth-gate-divider {
  animation-delay: 180ms;
}

html.app-ready.auth-login .auth-gate-secondary {
  animation-delay: 205ms;
}

html.app-ready.auth-login .auth-gate-card-note,
html.app-ready.auth-login .auth-gate-status {
  animation-delay: 225ms;
}

html.app-ready.auth-login .auth-gate-footer {
  animation: hux-auth-brand-in 260ms 190ms var(--hux-motion-settle) both;
}

html.app-ready.auth-workspace .topbar {
  animation: hux-workspace-chrome-in 180ms var(--hux-motion-settle) both;
}

html.app-ready.auth-workspace .workspace {
  animation: hux-workspace-in var(--hux-motion-workspace) var(--hux-motion-enter) both;
}

/* Older class-based reveals are superseded by the cancellable Web Animation in app.js. */
.view-entering {
  animation: none;
}

@keyframes hux-auth-brand-in {
  from { opacity: 0.16; }
  to { opacity: 1; }
}

@keyframes hux-auth-frame-in {
  from { opacity: 0.12; }
  to { opacity: 1; }
}

@keyframes hux-auth-copy-in {
  from {
    opacity: 0;
    filter: blur(0.75px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes hux-auth-action-in {
  from {
    opacity: 0;
    filter: blur(0.75px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes hux-workspace-chrome-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hux-workspace-in {
  from { opacity: 0.24; }
  to { opacity: 1; }
}

@media (max-width: 620px) {
  :root {
    --hux-motion-login: 380ms;
    --hux-motion-workspace: 280ms;
  }

  html.app-ready.auth-login .auth-gate-card > * {
    animation-delay: 0ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.app-ready.auth-login .auth-gate-brand,
  html.app-ready.auth-login .auth-gate-layout,
  html.app-ready.auth-login .auth-gate-intro > .section-kicker,
  html.app-ready.auth-login .auth-gate-intro > h1,
  html.app-ready.auth-login .auth-gate-intro > p,
  html.app-ready.auth-login .auth-gate-flow,
  html.app-ready.auth-login .auth-gate-card > *,
  html.app-ready.auth-login .auth-gate-footer,
  html.app-ready.auth-workspace .topbar,
  html.app-ready.auth-workspace .workspace {
    animation: none !important;
  }
}

/* tab-hierarchy-v91.css */
/* Hux tab hierarchy v91: consistent structure with three readable levels. */

:root {
  --hux-tab-line: #303033;
  --hux-tab-line-soft: #27272a;
  --hux-tab-surface: #101011;
  --hux-tab-surface-active: #171719;
  --hux-tab-text: #8b8b90;
  --hux-tab-text-strong: #f2f2f3;
  --hux-tab-text-disabled: #515156;
}

/* Level 1: page views — light separators and a restrained active underline. */
.view-switch {
  isolation: isolate;
}

.view-switch > .view-tab {
  min-height: 100%;
  padding-inline: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--hux-tab-text);
}

.view-switch > .view-tab + .view-tab {
  border-left: 1px solid var(--hux-tab-line-soft);
}

.view-switch > .view-tab:hover {
  background: rgb(255 255 255 / 2%);
  color: #d8d8da;
}

.view-switch > .view-tab.active {
  background: rgb(255 255 255 / 2.5%);
  color: var(--hux-tab-text-strong);
}

.view-switch > .view-tab:focus-visible {
  outline: 1px solid #6a6a70;
  outline-offset: -4px;
}

/* Level 2: major asset categories — full-height, continuous cell borders. */
.asset-toolbar {
  border-color: var(--hux-tab-line);
  background: var(--hux-tab-surface);
}

.asset-toolbar .search-wrap {
  border-right-color: var(--hux-tab-line);
}

#category-pills > .pill {
  border-right: 1px solid var(--hux-tab-line);
  color: var(--hux-tab-text);
}

#category-pills > .pill:hover {
  background: #151516;
  color: #dedee0;
}

#category-pills > .pill.active {
  border-right: 1px solid var(--hux-tab-line);
  background: var(--hux-tab-surface-active);
  color: var(--hux-tab-text-strong);
}

#category-pills > .pill:disabled,
#category-pills > .pill.empty {
  background: transparent;
  color: var(--hux-tab-text-disabled);
  opacity: 1;
}

#category-pills > .pill:disabled .ui-icon,
#category-pills > .pill.empty .ui-icon,
#category-pills > .pill:disabled .pill-count,
#category-pills > .pill.empty .pill-count {
  color: #48484d;
}

#category-pills > .pill:focus-visible {
  outline: 1px solid #66666b;
  outline-offset: -4px;
}

/* Level 3: secondary filters — shorter row, same structural grammar. */
#subcategory-group {
  min-height: 56px;
  margin: -1px 0 16px;
  padding: 0;
  border-color: var(--hux-tab-line);
  background: #0d0d0e;
}

#subcategory-pills {
  align-items: stretch;
  width: 100%;
  min-height: 56px;
  padding: 0;
  border: 0;
}

#subcategory-pills > .secondary-pill {
  min-height: 56px;
  padding-inline: 20px;
  border-right: 1px solid var(--hux-tab-line-soft);
  background: transparent;
  color: #7d7d82;
  font-size: 13px;
}

#subcategory-pills > .secondary-pill:hover {
  background: #141415;
  color: #d8d8da;
}

#subcategory-pills > .secondary-pill.active {
  border-right: 1px solid var(--hux-tab-line-soft);
  background: #151516;
  color: var(--hux-tab-text-strong);
}

#subcategory-pills > .secondary-pill:disabled,
#subcategory-pills > .secondary-pill.empty {
  background: transparent;
  color: var(--hux-tab-text-disabled);
  opacity: 1;
}

#subcategory-pills > .secondary-pill:disabled .ui-icon,
#subcategory-pills > .secondary-pill.empty .ui-icon,
#subcategory-pills > .secondary-pill:disabled .pill-count,
#subcategory-pills > .secondary-pill.empty .pill-count {
  color: #48484d;
}

#subcategory-pills > .secondary-pill:focus-visible {
  outline: 1px solid #606066;
  outline-offset: -4px;
}

/* Mode tabs on the asset-creation page share the same selected-state language. */
.intake-method-switch {
  border-color: var(--hux-tab-line);
  background: #0d0d0e;
}

.intake-method-switch > button {
  position: relative;
  border-right-color: var(--hux-tab-line);
  background: #101011;
  color: var(--hux-tab-text);
}

.intake-method-switch > button:hover,
.intake-method-switch > button:focus-visible {
  background: #151516;
  color: #dedee0;
}

.intake-method-switch > button.active {
  background: var(--hux-tab-surface-active);
  color: var(--hux-tab-text-strong);
}

.intake-method-switch > button.active::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  background: var(--brand);
  content: "";
}

.intake-method-switch > button:focus-visible {
  outline: 1px solid #66666b;
  outline-offset: -4px;
}

@media (max-width: 760px) {
  .workspace.page-assets .view-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .view-switch > .view-tab {
    min-width: 0;
    padding-inline: 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  #subcategory-group {
    min-height: 52px;
  }

  #subcategory-pills,
  #subcategory-pills > .secondary-pill {
    min-height: 52px;
  }

  #subcategory-pills > .secondary-pill {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view-tab,
  .pill,
  .intake-method-switch > button {
    transition: none !important;
  }
}

/* asset-filter-rail-v92.css */
/* Hux asset filter rail v92: fast vertical discovery with hover/focus branches. */

.asset-browser-shell {
  min-width: 0;
}

.asset-filter-rail-head,
.asset-category-flyout-head {
  display: none;
}

.asset-category-flyout[hidden] {
  display: none !important;
}

@media (min-width: 901px) {
  .asset-browser-shell {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  .asset-filter-rail {
    position: sticky;
    top: 88px;
    z-index: 24;
    min-width: 0;
    border: 1px solid var(--hux-tab-line, #303033);
    background: #0d0d0e;
    box-shadow: 0 18px 48px rgb(0 0 0 / 22%);
  }

  .asset-filter-rail-head {
    display: grid;
    gap: 4px;
    min-height: 78px;
    padding: 17px 16px 14px;
    border-bottom: 1px solid var(--hux-tab-line, #303033);
    background:
      linear-gradient(135deg, rgb(255 77 77 / 8%), transparent 52%),
      #111112;
  }

  .asset-filter-rail-head .section-kicker {
    color: var(--brand, #ff4d4d);
  }

  .asset-filter-rail-head strong {
    color: #ededee;
    font-size: 15px;
    font-weight: 680;
    letter-spacing: -0.01em;
  }

  .asset-filter-rail-head small {
    color: #68686d;
    font-size: 10px;
    line-height: 1.45;
  }

  #assets-view .asset-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    margin: 0;
    border: 0;
    background: transparent;
  }

  #assets-view .asset-toolbar .search-wrap {
    grid-template-columns: 18px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 9px;
    width: 100%;
    height: 55px;
    padding: 0 13px 0 15px;
    border: 0;
    border-bottom: 1px solid var(--hux-tab-line, #303033);
    border-radius: 0;
    background: #0f0f10;
    box-shadow: none;
    cursor: text;
  }

  #assets-view .asset-toolbar .search-wrap:hover {
    background: #121213;
    box-shadow: none;
  }

  #assets-view .asset-toolbar .search-wrap:focus-within {
    background: #141415;
    box-shadow: inset 3px 0 0 var(--brand, #ff4d4d);
  }

  #assets-view .asset-toolbar .search-wrap input {
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0 !important;
    font-size: 14px;
    font-weight: 680;
    letter-spacing: 0.02em;
    line-height: 1.2;
  }

  #assets-view .asset-toolbar .search-wrap .ui-icon {
    width: 16px;
    height: 16px;
    color: #68686d;
  }

  #assets-view .asset-toolbar .search-wrap:focus-within .ui-icon {
    color: #a8a8ac;
  }

  #assets-view .asset-toolbar .search-wrap kbd {
    display: inline-grid;
    width: 32px;
    min-width: 32px;
    height: 20px;
    place-items: center;
    justify-self: end;
    padding: 0;
    border: 1px solid #343438;
    border-radius: 3px;
    color: #66666b;
    font-size: 8px;
    line-height: 1;
  }

  #assets-view .asset-toolbar:has(.search-wrap:focus-within) #category-pills > .pill.active,
  #assets-view .asset-toolbar:has(#asset-search:not(:placeholder-shown)) #category-pills > .pill.active {
    background: transparent;
    color: var(--hux-tab-text, #8b8b90);
  }

  #assets-view .asset-toolbar:has(.search-wrap:focus-within) #category-pills > .pill.active::before,
  #assets-view .asset-toolbar:has(#asset-search:not(:placeholder-shown)) #category-pills > .pill.active::before {
    background: transparent;
  }

  #assets-view .asset-toolbar:has(.search-wrap:focus-within) #category-pills > .pill.active .ui-icon,
  #assets-view .asset-toolbar:has(#asset-search:not(:placeholder-shown)) #category-pills > .pill.active .ui-icon {
    color: #636368;
  }

  #assets-view .asset-toolbar:has(.search-wrap:focus-within) #category-pills > .pill.active .pill-count,
  #assets-view .asset-toolbar:has(#asset-search:not(:placeholder-shown)) #category-pills > .pill.active .pill-count {
    color: #69696e;
  }

  #assets-view .filter-type-group,
  #assets-view #category-pills {
    width: 100%;
  }

  #assets-view #category-pills {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 230px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #3c3c40 transparent;
    scrollbar-width: thin;
  }

  #category-pills > .pill {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto 14px;
    gap: 9px;
    width: 100%;
    min-height: 55px;
    padding: 8px 13px 8px 15px;
    border: 0;
    border-right: 0;
    border-bottom: 1px solid var(--hux-tab-line-soft, #27272a);
    border-radius: 0;
    background: transparent;
    text-align: left;
  }

  #category-pills > .pill:last-child {
    border-bottom: 0;
  }

  #category-pills > .pill::before {
    position: absolute;
    inset: 10px auto 10px 0;
    width: 2px;
    background: transparent;
    content: "";
    transition: background 120ms ease, inset 120ms ease;
  }

  #category-pills > .pill::after,
  #subcategory-pills > .secondary-pill::after {
    display: none;
  }

  #category-pills > .pill:hover,
  #category-pills > .pill:focus-visible {
    background: #171718;
    color: #f0f0f1;
  }

  #category-pills > .pill.active {
    border-right: 0;
    background: #171718;
    color: #f5f5f5;
  }

  #category-pills > .pill.active::before {
    inset-block: 0;
    background: var(--brand, #ff4d4d);
  }

  #category-pills > .pill:focus-visible {
    outline: 1px solid #68686d;
    outline-offset: -4px;
  }

  #category-pills > .pill .ui-icon {
    width: 16px;
    height: 16px;
  }

  #category-pills > .pill .pill-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  #category-pills > .pill .pill-copy > span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #category-pills > .pill .pill-copy small {
    overflow: hidden;
    color: #747479;
    font-size: 9px;
    font-weight: 520;
    line-height: 1.25;
    text-overflow: ellipsis;
  }

  #category-pills > .pill .pill-count {
    justify-self: end;
    min-width: 22px;
    padding-inline: 4px;
    background: transparent;
    color: #69696e;
  }

  #category-pills > .pill.active .pill-count {
    color: #8b8b90;
  }

  #category-pills > .pill.active .ui-icon {
    color: #c5c5c8;
  }

  #category-pills > .pill .pill-branch-indicator {
    display: grid;
    place-items: center;
    color: #55555a;
    transition: color 120ms ease, transform 120ms ease;
  }

  #category-pills > .pill:hover .pill-branch-indicator,
  #category-pills > .pill:focus-visible .pill-branch-indicator,
  #category-pills > .pill[aria-expanded="true"] .pill-branch-indicator {
    color: #b8b8bc;
    transform: translateX(2px);
  }

  #category-pills > .pill[data-has-branches="false"] .pill-branch-indicator {
    visibility: hidden;
  }

  #category-pills > .pill:disabled,
  #category-pills > .pill.empty {
    background: transparent;
    color: var(--hux-tab-text, #8b8b90);
    opacity: 1;
  }

  #category-pills > .pill:disabled .ui-icon,
  #category-pills > .pill.empty .ui-icon {
    color: #636368;
  }

  #category-pills > .pill:disabled .pill-count,
  #category-pills > .pill.empty .pill-count {
    color: #69696e;
  }

  #subcategory-group.asset-category-flyout {
    position: fixed;
    top: var(--asset-flyout-top, 96px);
    left: var(--asset-flyout-left, 280px);
    z-index: 80;
    display: block;
    width: 258px;
    max-height: min(530px, calc(100vh - 24px));
    margin: 0;
    padding: 0;
    overflow: auto;
    border: 1px solid #3a3a3e;
    background: rgb(17 17 18 / 98%);
    box-shadow: 0 24px 70px rgb(0 0 0 / 54%), 0 0 0 1px rgb(255 255 255 / 2%);
    backdrop-filter: blur(18px) saturate(115%);
    animation: asset-branch-in 130ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .asset-category-flyout-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    gap: 3px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid #343438;
    background: rgb(17 17 18 / 96%);
    backdrop-filter: blur(16px);
  }

  .asset-category-flyout-head .section-kicker {
    color: var(--brand, #ff4d4d);
  }

  .asset-category-flyout-head strong {
    color: #f0f0f1;
    font-size: 14px;
  }

  .asset-category-flyout-head small {
    color: #68686d;
    font-size: 9px;
  }

  #subcategory-pills {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-height: 0;
  }

  #subcategory-pills > .secondary-pill {
    position: relative;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    border-right: 0;
    border-bottom: 1px solid #29292c;
    border-radius: 0;
    background: transparent;
    text-align: left;
  }

  #subcategory-pills > .secondary-pill:last-child {
    border-bottom: 0;
  }

  #subcategory-pills > .secondary-pill:hover,
  #subcategory-pills > .secondary-pill:focus-visible {
    background: #1a1a1c;
    color: #f1f1f2;
  }

  #subcategory-pills > .secondary-pill.active {
    border-right: 0;
    background: #1a1a1c;
    color: #fff;
    box-shadow: inset 2px 0 0 var(--brand, #ff4d4d);
  }

  #subcategory-pills > .secondary-pill .pill-count {
    justify-self: end;
    background: transparent;
    color: #6d6d72;
  }

  #subcategory-pills > .secondary-pill.active .pill-count {
    color: #8b8b90;
  }

  #subcategory-pills > .secondary-pill.active .ui-icon {
    color: #c5c5c8;
  }

  #subcategory-pills > .secondary-pill:disabled,
  #subcategory-pills > .secondary-pill.empty {
    color: #7d7d82;
    opacity: 1;
  }

  #subcategory-pills > .secondary-pill:disabled .ui-icon,
  #subcategory-pills > .secondary-pill.empty .ui-icon {
    color: #636368;
  }

  #subcategory-pills > .secondary-pill:disabled .pill-count,
  #subcategory-pills > .secondary-pill.empty .pill-count {
    color: #6d6d72;
  }

  #assets-view .asset-results-pane {
    min-width: 0;
  }

  #assets-view .asset-results-pane .asset-grid,
  #assets-view .asset-results-pane .skeleton-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(282px, 100%), 1fr));
    margin-top: 0;
  }

  @keyframes asset-branch-in {
    from {
      opacity: 0;
      transform: translateX(-5px) scale(0.99);
    }
    to {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
  }
}

@media (min-width: 901px) and (max-width: 1020px) {
  .asset-browser-shell {
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 14px;
  }

  .asset-filter-rail {
    top: 132px;
  }

  #assets-view #category-pills {
    max-height: calc(100vh - 274px);
  }
}

@media (max-width: 900px) {
  .asset-results-pane {
    min-width: 0;
  }

  .asset-category-flyout-head {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #subcategory-group.asset-category-flyout {
    animation: none !important;
  }

  #category-pills > .pill::before,
  #category-pills > .pill .pill-branch-indicator {
    transition: none !important;
  }
}

/* skill-detail-polish-v95.css */
/* Hux Studio · Skill detail rhythm and hierarchy v95 */

.skill-detail-sheet,
.skill-detail-record,
.skill-detail-sheet .sheet-actions {
  background: #0d0d0f;
}

.skill-detail-row {
  grid-template-columns: 144px minmax(0, 1fr);
  min-height: 84px;
  padding-inline: 30px;
}

.skill-detail-label {
  display: flex;
  align-items: flex-start;
  padding: 22px 24px 22px 0;
  background: transparent;
  box-sizing: border-box;
}

.skill-detail-value {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 20px 0 20px 28px;
  box-sizing: border-box;
}

.skill-detail-value > p,
.skill-detail-steps,
.skill-detail-link,
.skill-detail-pills,
.skill-detail-resources {
  margin-block: 0;
}

.skill-detail-command,
.skill-detail-person {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgb(255 255 255 / 10%);
  background: #131315;
  color: #f1f1f3;
  box-sizing: border-box;
}

.skill-detail-command {
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 13px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.skill-detail-person {
  font-size: 14px;
  font-weight: 650;
}

.skill-detail-uploader {
  gap: 0;
}

.skill-detail-sheet .sheet-actions {
  position: sticky;
  bottom: 0;
  padding: 18px 30px 20px;
  border-top: 0;
  box-shadow: none;
  backdrop-filter: none;
}

@media (max-width: 760px) {
  .skill-detail-row {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 8px;
    padding: 18px 20px;
  }

  .skill-detail-label {
    padding: 0;
  }

  .skill-detail-value {
    min-height: 0;
    justify-content: flex-start;
    padding: 0;
    border-left: 0;
  }

  .skill-detail-sheet .sheet-actions {
    padding: 14px 20px 16px;
  }
}

/* interaction-hover-v96.css */
/* Hux interaction hover v96: restrained micro-feedback with stable geometry. */

:root {
  --hux-hover-fast: 108ms;
  --hux-hover-base: 148ms;
  --hux-hover-ease: cubic-bezier(0.33, 1, 0.68, 1);
  --hux-hover-surface: #171718;
  --hux-hover-border: #56565a;
}

/* Discovery rail */
#assets-view .asset-toolbar .search-wrap,
#category-pills > .pill,
#subcategory-pills > .secondary-pill {
  transition:
    background-color var(--hux-hover-base) var(--hux-hover-ease),
    border-color var(--hux-hover-base) var(--hux-hover-ease),
    color var(--hux-hover-fast) ease-out,
    box-shadow var(--hux-hover-base) var(--hux-hover-ease);
}

#assets-view .asset-toolbar .search-wrap .ui-icon,
#assets-view .asset-toolbar .search-wrap kbd,
#category-pills > .pill .ui-icon,
#category-pills > .pill .pill-copy,
#category-pills > .pill .pill-count,
#category-pills > .pill .pill-branch-indicator,
#subcategory-pills > .secondary-pill .ui-icon,
#subcategory-pills > .secondary-pill > span:not(.ui-icon) {
  transition:
    color var(--hux-hover-fast) ease-out,
    border-color var(--hux-hover-fast) ease-out,
    opacity var(--hux-hover-fast) ease-out,
    transform var(--hux-hover-base) var(--hux-hover-ease);
}

#assets-view .asset-toolbar .search-wrap:focus-within .ui-icon {
  transform: scale(1.045);
}

#assets-view .asset-toolbar .search-wrap:focus-within kbd {
  border-color: #4d4d52;
  color: #929297;
}

#category-pills > .pill:not(:disabled):focus-visible .pill-copy,
#subcategory-pills > .secondary-pill:not(:disabled):focus-visible > span:not(.ui-icon):not(.pill-count) {
  transform: translateX(2px);
}

#category-pills > .pill:not(:disabled):focus-visible .ui-icon,
#subcategory-pills > .secondary-pill:not(:disabled):focus-visible .ui-icon {
  color: #dadadd;
  transform: scale(1.045);
}

#category-pills > .pill:not(:disabled):focus-visible .pill-count,
#subcategory-pills > .secondary-pill:not(:disabled):focus-visible .pill-count {
  color: #a5a5aa;
}

#category-pills > .pill:not(:disabled):focus-visible .pill-branch-indicator {
  transform: translateX(3px);
}

/* Asset cards stay planted; only their surface and local content respond. */
.asset-card,
.asset-card:hover,
.asset-card:focus-visible,
.asset-card:focus-within {
  transform: none;
  transition:
    border-color var(--hux-hover-base) var(--hux-hover-ease),
    background-color var(--hux-hover-base) var(--hux-hover-ease),
    box-shadow var(--hux-hover-base) var(--hux-hover-ease);
}

.asset-card:focus-visible,
.asset-card:focus-within {
  border-color: var(--hux-hover-border);
  background: #121213;
  box-shadow:
    0 14px 34px rgb(0 0 0 / 20%),
    inset 0 0 0 1px rgb(255 255 255 / 1.5%);
}

.asset-card .asset-cover-media .asset-cover-preview,
.asset-card:hover .asset-cover-media .asset-cover-preview,
.asset-card:focus-visible .asset-cover-media .asset-cover-preview,
.asset-card:focus-within .asset-cover-media .asset-cover-preview,
.asset-card:focus-within:not(:hover) .asset-cover-media .asset-cover-preview,
.asset-card .visual,
.asset-card:hover .visual,
.asset-card:focus-visible .visual,
.asset-card:focus-within .visual,
.asset-card .skill-card-noise,
.asset-card:hover .skill-card-noise,
.asset-card:focus-within .skill-card-noise,
.asset-card .skill-card-body,
.asset-card:hover .skill-card-body,
.asset-card:focus-visible .skill-card-body,
.asset-card:focus-within .skill-card-body,
.asset-card .skill-owner-copy .skill-card-summary,
.asset-card:hover .skill-owner-copy .skill-card-summary,
.asset-card:focus-visible .skill-owner-copy .skill-card-summary,
.asset-card:focus-within .skill-owner-copy .skill-card-summary,
.asset-card .card-category-tag,
.asset-card:hover .card-category-tag,
.asset-card:focus-visible .card-category-tag,
.asset-card:focus-within .card-category-tag {
  transition:
    opacity var(--hux-hover-base) ease-out,
    color var(--hux-hover-fast) ease-out,
    border-color var(--hux-hover-base) ease-out,
    background-color var(--hux-hover-base) ease-out,
    filter var(--hux-hover-base) var(--hux-hover-ease),
    transform var(--hux-hover-base) var(--hux-hover-ease);
}

.asset-card:focus-visible .asset-cover-media .asset-cover-preview,
.asset-card:focus-within .asset-cover-media .asset-cover-preview,
.asset-card:focus-within:not(:hover) .asset-cover-media .asset-cover-preview {
  filter: saturate(0.94) contrast(1.03) brightness(0.94);
  transform: scale(1.01);
}

.asset-card:focus-visible .visual,
.asset-card:focus-within .visual {
  opacity: 0.82;
  transform: translateY(-2px);
}

.asset-card:focus-visible .skill-card-noise,
.asset-card:focus-within .skill-card-noise {
  opacity: 0.13;
}

.asset-card .skill-owner-copy .skill-card-summary {
  transform: translateY(3px);
}

.asset-card .skill-owner-copy {
  transition:
    grid-template-rows var(--hux-hover-base) var(--hux-hover-ease),
    gap var(--hux-hover-base) var(--hux-hover-ease);
}

.asset-card:focus-visible .skill-owner-copy .skill-card-summary,
.asset-card:focus-within .skill-owner-copy .skill-card-summary {
  transform: translateY(0);
}

/* Local actions */
.skill-card > .favorite-btn,
.asset-grid .skill-card > .favorite-btn,
.asset-card:hover > .favorite-btn,
.asset-card:focus-within > .favorite-btn,
.asset-card:focus-within:not(:hover) > .favorite-btn,
.sheet-close-button,
.skill-detail-link,
#assets-view .view-tab,
#assets-view .upload-button,
.topbar .nav-link,
.topbar .user-menu {
  transition:
    color var(--hux-hover-fast) ease-out,
    border-color var(--hux-hover-fast) ease-out,
    background-color var(--hux-hover-base) var(--hux-hover-ease),
    box-shadow var(--hux-hover-base) var(--hux-hover-ease),
    transform var(--hux-hover-base) var(--hux-hover-ease);
}

.favorite-btn .ui-icon,
.sheet-close-button .ui-icon,
.skill-detail-link .ui-icon,
#assets-view .view-tab .ui-icon,
#assets-view .upload-button .ui-icon,
.topbar .nav-link .ui-icon,
.topbar .user-menu .ui-icon {
  transition:
    color var(--hux-hover-fast) ease-out,
    transform var(--hux-hover-base) var(--hux-hover-ease);
}

.skill-card > .favorite-btn:focus-visible,
.asset-grid .skill-card > .favorite-btn:focus-visible,
.asset-card:focus-within:not(:hover) > .favorite-btn:focus-visible,
.sheet-close-button:focus-visible,
#assets-view .view-tab:focus-visible,
#assets-view .upload-button:focus-visible,
.topbar .nav-link:focus-visible,
.topbar .user-menu:focus-visible {
  transform: translateY(-1px);
}

.skill-card > .favorite-btn:focus-visible .ui-icon,
.asset-card:focus-within:not(:hover) > .favorite-btn:focus-visible .ui-icon {
  transform: rotate(-5deg) scale(1.045);
}

.skill-detail-link:focus-visible .ui-icon,
#assets-view .upload-button:focus-visible .ui-icon,
.topbar .nav-link:focus-visible .ui-icon {
  transform: translateX(2px);
}

@media (hover: hover) and (pointer: fine) {
  #assets-view .asset-toolbar .search-wrap:hover .ui-icon {
    color: #a8a8ac;
    transform: scale(1.045);
  }

  #assets-view .asset-toolbar .search-wrap:hover kbd {
    border-color: #4d4d52;
    color: #929297;
  }

  #category-pills > .pill:not(:disabled):hover .pill-copy,
  #subcategory-pills > .secondary-pill:not(:disabled):hover > span:not(.ui-icon):not(.pill-count) {
    transform: translateX(2px);
  }

  #category-pills > .pill:not(:disabled):hover .ui-icon,
  #subcategory-pills > .secondary-pill:not(:disabled):hover .ui-icon {
    color: #dadadd;
    transform: scale(1.045);
  }

  #category-pills > .pill:not(:disabled):hover .pill-count,
  #subcategory-pills > .secondary-pill:not(:disabled):hover .pill-count {
    color: #a5a5aa;
  }

  #category-pills > .pill:not(:disabled):hover .pill-branch-indicator {
    transform: translateX(3px);
  }

  .asset-card:hover {
    border-color: var(--hux-hover-border);
    background: #121213;
    box-shadow:
      0 14px 34px rgb(0 0 0 / 20%),
      inset 0 0 0 1px rgb(255 255 255 / 1.5%);
  }

  .asset-card:hover .asset-cover-media .asset-cover-preview {
    filter: saturate(0.94) contrast(1.03) brightness(0.94);
    transform: scale(1.01);
  }

  .asset-card:hover .visual {
    opacity: 0.82;
    transform: translateY(-2px);
  }

  .asset-card:hover .skill-card-noise {
    opacity: 0.13;
  }

  .asset-card:hover .skill-owner-copy .skill-card-summary {
    transform: translateY(0);
  }

  .skill-card > .favorite-btn:hover,
  .asset-grid .skill-card > .favorite-btn:hover,
  .asset-card:hover > .favorite-btn:hover,
  .sheet-close-button:hover,
  #assets-view .view-tab:hover,
  #assets-view .upload-button:hover,
  .topbar .nav-link:hover,
  .topbar .user-menu:hover {
    transform: translateY(-1px);
  }

  .skill-card > .favorite-btn:hover .ui-icon,
  .asset-card:hover > .favorite-btn:hover .ui-icon {
    transform: rotate(-5deg) scale(1.045);
  }

  .skill-detail-link:hover .ui-icon,
  #assets-view .upload-button:hover .ui-icon,
  .topbar .nav-link:hover .ui-icon {
    transform: translateX(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #assets-view .asset-toolbar .search-wrap,
  #assets-view .asset-toolbar .search-wrap *,
  #category-pills > .pill,
  #category-pills > .pill *,
  #subcategory-pills > .secondary-pill,
  #subcategory-pills > .secondary-pill *,
  .asset-card,
  .asset-card *,
  .favorite-btn,
  .sheet-close-button,
  .skill-detail-link,
  #assets-view .view-tab,
  #assets-view .upload-button,
  .topbar .nav-link,
  .topbar .user-menu {
    transition-duration: 0.01ms !important;
  }

  #assets-view .asset-toolbar .search-wrap *,
  #category-pills > .pill *,
  #subcategory-pills > .secondary-pill *,
  .asset-card *,
  .favorite-btn,
  .sheet-close-button,
  .skill-detail-link,
  #assets-view .view-tab,
  #assets-view .upload-button,
  .topbar .nav-link,
  .topbar .user-menu {
    transform: none !important;
  }
}

/* skill-detail-layout-v98.css */
/* Hux Studio · Skill detail column system v98 */

.sheet-backdrop {
  background: rgb(3 3 4 / 84%);
  backdrop-filter: blur(2px) saturate(0.72);
}

.asset-sheet {
  width: min(760px, 100vw);
  border-left-color: rgb(255 255 255 / 15%);
  box-shadow: -32px 0 72px rgb(0 0 0 / 46%);
}

.skill-detail-sheet {
  --skill-detail-label-width: 168px;
  --skill-detail-edge: 32px;
  --skill-detail-row-pad: 24px;
}

.skill-detail-record {
  border-top: 1px solid rgb(255 255 255 / 9%);
}

.skill-detail-row {
  grid-template-columns: var(--skill-detail-label-width) minmax(0, 1fr);
  min-height: 88px;
  padding: 0;
  border-bottom-color: rgb(255 255 255 / 9%);
  align-items: stretch;
}

.skill-detail-label,
.skill-detail-value {
  min-height: 88px;
  padding-block: var(--skill-detail-row-pad);
  box-sizing: border-box;
}

.skill-detail-label {
  align-items: flex-start;
  padding-inline: var(--skill-detail-edge) 24px;
  border-right: 1px solid rgb(255 255 255 / 10%);
  background: #111113;
  color: #b8b8be;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.skill-detail-value {
  min-width: 0;
  justify-content: flex-start;
  gap: 14px;
  padding-inline: 32px var(--skill-detail-edge);
  border-left: 0;
  color: #dddddf;
}

.skill-detail-value > p,
.skill-detail-command,
.skill-detail-steps,
.skill-detail-link,
.skill-detail-pills,
.skill-detail-resources {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.skill-detail-command {
  display: flex;
  min-height: 42px;
  padding: 9px 13px;
  border-color: rgb(255 255 255 / 13%);
  background: #151517;
  line-height: 1.65;
}

.skill-detail-link {
  min-height: 42px;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid rgb(255 76 79 / 24%);
  background: rgb(255 76 79 / 4%);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.skill-detail-link:hover,
.skill-detail-link:focus-visible {
  border-color: rgb(255 76 79 / 58%);
  background: rgb(255 76 79 / 9%);
  color: #fff;
  outline: 0;
}

.skill-detail-steps {
  gap: 12px;
  padding-left: 22px;
}

.skill-detail-pills {
  align-items: flex-start;
}

.skill-detail-person {
  min-height: 42px;
  padding-inline: 13px;
  border-color: rgb(255 255 255 / 13%);
  background: #151517;
}

.skill-detail-empty {
  color: #909096;
}

@media (max-width: 760px) {
  .sheet-backdrop {
    background: rgb(3 3 4 / 88%);
    backdrop-filter: none;
  }

  .asset-sheet {
    right: 0;
    left: 0;
    width: auto;
  }

  .skill-detail-sheet {
    --skill-detail-edge: 20px;
    --skill-detail-row-pad: 18px;
  }

  .skill-detail-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: var(--skill-detail-row-pad) var(--skill-detail-edge) 20px;
  }

  .skill-detail-label,
  .skill-detail-value {
    min-height: 0;
    padding: 0;
  }

  .skill-detail-label {
    border-right: 0;
    background: transparent;
    color: #a9a9af;
  }

  .skill-detail-value {
    gap: 10px;
  }

  .skill-detail-command,
  .skill-detail-link {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-detail-link {
    transition: none;
  }
}

/* category-flyout-motion-v99.css */
/* Hux Studio · category flyout entrance and switching v99 */

/* Keep the accepted tab label treatment stable. */
#category-pills > .pill .pill-copy,
#subcategory-pills > .secondary-pill > span:not(.ui-icon):not(.pill-count),
#category-pills > .pill:not(:disabled):hover .pill-copy,
#category-pills > .pill:not(:disabled):focus-visible .pill-copy,
#subcategory-pills > .secondary-pill:not(:disabled):hover > span:not(.ui-icon):not(.pill-count),
#subcategory-pills > .secondary-pill:not(:disabled):focus-visible > span:not(.ui-icon):not(.pill-count),
#assets-view .asset-toolbar .search-wrap .ui-icon,
#assets-view .asset-toolbar .search-wrap:hover .ui-icon,
#assets-view .asset-toolbar .search-wrap:focus-within .ui-icon,
#category-pills > .pill .ui-icon,
#category-pills > .pill:not(:disabled):hover .ui-icon,
#category-pills > .pill:not(:disabled):focus-visible .ui-icon,
#subcategory-pills > .secondary-pill .ui-icon,
#subcategory-pills > .secondary-pill:not(:disabled):hover .ui-icon,
#subcategory-pills > .secondary-pill:not(:disabled):focus-visible .ui-icon,
#category-pills > .pill .pill-branch-indicator,
#category-pills > .pill:hover .pill-branch-indicator,
#category-pills > .pill:focus-visible .pill-branch-indicator,
#category-pills > .pill[aria-expanded="true"] .pill-branch-indicator {
  transform: none;
}

@media (min-width: 901px) {
  #subcategory-group.asset-category-flyout {
    animation: asset-branch-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
    transition:
      top 148ms cubic-bezier(0.33, 1, 0.68, 1),
      left 148ms cubic-bezier(0.33, 1, 0.68, 1),
      border-color 100ms ease-out,
      box-shadow 136ms cubic-bezier(0.33, 1, 0.68, 1);
    will-change: top, opacity, transform;
  }

  #subcategory-group.asset-category-flyout.is-positioning {
    visibility: hidden;
    animation: none;
    transition: none;
  }

  @keyframes asset-branch-in {
    from {
      opacity: 0;
      transform: translateX(8px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  #subcategory-group.asset-category-flyout {
    animation: none;
    transition-duration: 0.01ms !important;
  }
}

/* skill-detail-rhythm-v102.css */
/* Hux Studio · Skill detail spacing and left alignment v102 */

@media (min-width: 761px) {
  .skill-detail-row {
    min-height: 0;
  }

  .skill-detail-row .skill-detail-label,
  .skill-detail-row .skill-detail-value {
    min-height: 0;
    padding-top: var(--skill-detail-row-pad);
    padding-bottom: var(--skill-detail-row-pad);
  }

  .skill-detail-row .skill-detail-label {
    align-items: center;
  }

  .skill-detail-row.is-list .skill-detail-label {
    align-items: flex-start;
  }

  .skill-detail-row .skill-detail-value > p,
  .skill-detail-row .skill-detail-pills,
  .skill-detail-row .skill-detail-steps {
    padding-left: 0;
  }

  .skill-detail-steps {
    list-style: none;
    counter-reset: skill-detail-step;
  }

  .skill-detail-steps li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 8px;
    align-items: start;
    counter-increment: skill-detail-step;
  }

  .skill-detail-steps li::before {
    content: counter(skill-detail-step) ".";
    color: var(--brand);
    font-family: var(--font-mono);
    font-weight: 750;
    line-height: inherit;
  }
}

/* view-switch-frame-v103.css */
/* Hux Studio · top view switch outer dividers v103 */

.workspace.page-assets .view-switch {
  box-shadow:
    inset 1px 0 0 var(--hux-tab-line-soft),
    inset -1px 0 0 var(--hux-tab-line-soft);
}

.workspace.page-assets .view-switch > .view-tab + .view-tab {
  border-left-color: var(--hux-tab-line-soft);
}

/* profile-avatar-v111.css */
/* Profile avatar v111: one profile image source across identity and owned assets. */

.avatar,
.identity-option-avatar,
.identity-profile-avatar,
.skill-uploader-avatar,
.skill-detail-avatar,
.compact-meta-avatar {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hux-avatar-fallback,
.hux-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hux-avatar-fallback {
  z-index: 0;
  display: grid;
  place-items: center;
  background: inherit;
  color: inherit;
  font: inherit;
}

.hux-avatar-image {
  z-index: 1;
  display: block;
  object-fit: cover;
  background: #171717;
}

.identity-avatar-editor {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid #303030;
  background:
    linear-gradient(90deg, rgb(255 77 77 / 7%), transparent 70%),
    #0e0e0e;
}

.identity-profile-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #573434;
  background: #211717;
  color: var(--brand);
  font-size: 13px;
  font-weight: 720;
  line-height: 1;
}

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

.identity-avatar-copy strong,
.identity-avatar-copy small,
.identity-avatar-status {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-avatar-copy strong {
  color: #e6e6e6;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.identity-avatar-copy small,
.identity-avatar-status {
  color: #777777;
  font-size: 10px;
  line-height: 1.4;
}

.identity-avatar-status:not(:empty) {
  color: #b48a8a;
}

.identity-avatar-select {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid #444444;
  border-radius: 0;
  background: #171717;
  color: #dedede;
  font: 600 11px/1.35 var(--font-body, Montserrat, "PingFang SC", system-ui, sans-serif);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.identity-avatar-select:hover,
.identity-avatar-select:focus-visible {
  border-color: #765050;
  background: #211717;
  color: #ffffff;
  outline: none;
}

.identity-avatar-select:focus-visible {
  box-shadow: 0 0 0 2px #111111, 0 0 0 3px #8a4444;
}

.identity-profile-card[aria-busy="true"] .identity-avatar-select {
  border-color: #333333;
  background: #151515;
  color: #797979;
  cursor: wait;
}

.identity-profile-card[aria-busy="true"] .identity-profile-avatar::after {
  position: absolute;
  z-index: 2;
  right: 4px;
  bottom: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgb(16 16 16 / 85%);
  content: "";
  animation: hux-avatar-upload-pulse 900ms ease-in-out infinite alternate;
}

.avatar,
.identity-option-avatar,
.skill-uploader-avatar,
.skill-detail-avatar,
.compact-meta-avatar {
  flex: 0 0 auto;
}

.skill-detail-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  place-items: center;
  border: 1px solid #4b3434;
  background: #1d1717;
  color: var(--brand);
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
}

.compact-meta-person {
  display: flex;
  gap: 9px;
  align-items: center;
}

.compact-meta-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #3d3434;
  background: #1b1717;
  color: var(--brand);
  font-size: 10px;
  font-weight: 720;
  line-height: 1;
}

@keyframes hux-avatar-upload-pulse {
  from { opacity: 0.45; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 720px) {
  .identity-avatar-editor {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .identity-profile-avatar {
    width: 44px;
    height: 44px;
  }

  .identity-avatar-select {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity-avatar-select {
    transition: none;
  }

  .identity-profile-card[aria-busy="true"] .identity-profile-avatar::after {
    animation: none;
  }
}

/* profile-settings-v112.css */
/* Profile settings v114: merged profile identity block with centered icon actions. */

.identity-account-settings {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #484040;
  border-radius: 0;
  background: #1a1717;
  color: #b8aaaa;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.identity-option-session {
  grid-template-columns: 40px minmax(0, 1fr) 38px;
}

.identity-account-settings .ui-icon {
  width: 17px;
  height: 17px;
}

.identity-account-settings:hover,
.identity-account-settings:focus-visible {
  border-color: #8a4848;
  background: #281919;
  color: #ff6666;
  outline: none;
}

.identity-account-settings:focus-visible {
  box-shadow: 0 0 0 2px #111111, 0 0 0 3px #9a4b4b;
}

.profile-settings-dialog {
  width: min(620px, calc(100vw - 32px));
  max-width: none;
  max-height: min(720px, calc(100vh - 40px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #393939;
  border-radius: 0;
  background: #101010;
  color: #eeeeee;
  box-shadow: 0 28px 96px rgb(0 0 0 / 78%);
  color-scheme: dark;
}

.profile-settings-dialog::backdrop {
  background: rgb(0 0 0 / 72%);
}

.profile-settings-dialog[open] {
  animation: profile-settings-enter 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.profile-settings-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: inherit;
  min-width: 0;
}

.profile-settings-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 20px;
  align-items: start;
  padding: 22px 22px 20px;
  border-bottom: 1px solid #303030;
  background:
    linear-gradient(112deg, rgb(255 77 77 / 7%), transparent 52%),
    #131313;
}

.profile-settings-heading {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.profile-settings-heading .section-kicker,
.profile-settings-heading h2,
.profile-settings-heading p {
  margin: 0;
}

.profile-settings-heading .section-kicker {
  color: var(--brand);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.profile-settings-heading h2 {
  color: #f2f2f2;
  font-family: var(--font-heading, "Instrument Sans", "PingFang SC", system-ui, sans-serif);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
}

.profile-settings-heading p {
  color: #858585;
  font-size: 11px;
  line-height: 1.55;
}

.profile-settings-close,
.profile-settings-icon-action {
  display: grid;
  grid-template: 1fr / 1fr;
  gap: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid #3b3b3b;
  border-radius: 0;
  background: #171717;
  color: #a8a8a8;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.profile-settings-close {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
}

.profile-settings-close .ui-icon,
.profile-settings-icon-action .ui-icon {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  margin: 0;
  place-self: center;
}

.profile-settings-close:hover,
.profile-settings-close:focus-visible,
.profile-settings-icon-action:hover,
.profile-settings-icon-action:focus-visible {
  border-color: #744545;
  background: #211717;
  color: #ff6666;
  outline: none;
}

.profile-settings-close:focus-visible,
.profile-settings-icon-action:focus-visible {
  box-shadow: 0 0 0 2px #101010, 0 0 0 3px #8a4444;
}

.profile-settings-content {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.profile-settings-card.identity-profile-card {
  display: block;
  padding: 0;
  border: 0;
  background: #101010;
}

.profile-settings-primary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  column-gap: 16px;
  row-gap: 16px;
  align-items: center;
  min-width: 0;
  min-height: 126px;
  padding: 24px 22px;
  border-bottom: 1px solid #2b2b2b;
}

.profile-settings-primary .identity-profile-avatar {
  grid-column: 1;
  grid-row: 1;
  width: 72px;
  height: 72px;
  font-size: 17px;
}

.profile-settings-primary-copy {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  gap: 4px;
  min-width: 0;
}

.profile-settings-primary-copy strong,
.profile-settings-primary-copy small,
.profile-settings-primary-copy span {
  min-width: 0;
  margin: 0;
}

.profile-settings-primary-copy strong {
  overflow: hidden;
  color: #f2f2f2;
  font-family: var(--font-heading, "Instrument Sans", "PingFang SC", system-ui, sans-serif);
  font-size: 19px;
  font-weight: 670;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-settings-field-label {
  color: #8d8d8d;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.profile-settings-github {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  overflow: hidden;
  color: #b5b5b5;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-settings-github .ui-icon {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  color: #777777;
}

.profile-settings-github > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-settings-description,
.identity-avatar-status {
  overflow: hidden;
  color: #707070;
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-avatar-status:not(:empty) {
  color: #b48a8a;
}

.profile-settings-actions {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.profile-settings-icon-action.identity-avatar-select,
.profile-settings-icon-action.identity-profile-edit {
  grid-template: 1fr / 1fr;
  gap: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}

.profile-settings-primary .identity-profile-form {
  grid-column: 2 / 4;
  grid-row: 2;
  margin: 0;
}

.profile-settings-meta {
  display: block;
  margin: 0;
  border-bottom: 1px solid #2b2b2b;
}

.profile-settings-meta > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 3px;
  align-items: center;
  min-width: 0;
  min-height: 72px;
  padding: 14px 22px;
}

.profile-settings-meta-icon,
.profile-settings-owner-icon {
  display: grid;
  place-items: center;
  border: 1px solid #343434;
  background: #151515;
  color: #858585;
}

.profile-settings-meta-icon {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
}

.profile-settings-meta-icon .ui-icon,
.profile-settings-owner-icon .ui-icon {
  width: 15px;
  height: 15px;
}

.profile-settings-meta dt,
.profile-settings-meta dd {
  grid-column: 2;
  min-width: 0;
  margin: 0;
}

.profile-settings-meta dt {
  align-self: end;
  color: #747474;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.profile-settings-meta dd {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  align-self: start;
  overflow: hidden;
  color: #d1d1d1;
  font-size: 12px;
  line-height: 1.45;
}

.profile-settings-meta code {
  overflow: hidden;
  color: #b4b4b4;
  font: 500 11px/1.45 var(--font-mono, "SFMono-Regular", Consolas, monospace);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-settings-meta dd small {
  flex: 0 0 auto;
  color: #676767;
  font-size: 10px;
  white-space: nowrap;
}

.profile-settings-owner-linker {
  border-bottom: 0;
}

.profile-settings-owner-linker summary {
  min-height: 66px;
  padding: 12px 22px;
}

.profile-settings-owner-linker summary::after {
  margin-left: 2px;
}

.profile-settings-owner-linker summary > small {
  font-size: 10px;
}

.profile-settings-owner-title {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.profile-settings-owner-icon {
  width: 34px;
  height: 34px;
}

.profile-settings-owner-title > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-settings-owner-title strong,
.profile-settings-owner-title small {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-settings-owner-title strong {
  color: #dcdcdc;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.profile-settings-owner-title small {
  color: #686868;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

@keyframes profile-settings-enter {
  from { opacity: 0; transform: translateY(7px) scale(0.994); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
  .profile-settings-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .profile-settings-header {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 14px;
    padding: 18px 16px 16px;
  }

  .profile-settings-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .profile-settings-primary {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 14px;
    min-height: 116px;
    padding: 18px 16px;
  }

  .profile-settings-primary .identity-profile-avatar {
    width: 62px;
    height: 62px;
    font-size: 15px;
  }

  .profile-settings-actions {
    gap: 6px;
  }

  .profile-settings-icon-action.identity-avatar-select,
  .profile-settings-icon-action.identity-profile-edit {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .profile-settings-description {
    display: none;
  }

  .profile-settings-primary .identity-profile-form {
    grid-column: 1 / -1;
  }

  .profile-settings-meta > div {
    min-height: 68px;
    padding: 13px 16px;
  }

  .profile-settings-meta dd {
    gap: 10px;
  }

  .profile-settings-owner-linker summary {
    padding: 11px 16px;
  }

  .profile-settings-owner-linker .identity-owner-link-row {
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }
}

@media (max-width: 430px) {
  .profile-settings-primary {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    column-gap: 10px;
    padding-inline: 14px;
  }

  .profile-settings-primary .identity-profile-avatar {
    width: 58px;
    height: 58px;
  }

  .profile-settings-actions {
    gap: 5px;
  }

  .profile-settings-icon-action.identity-avatar-select,
  .profile-settings-icon-action.identity-profile-edit {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity-account-settings,
  .profile-settings-close,
  .profile-settings-icon-action,
  .profile-settings-dialog[open] {
    animation: none;
    transition: none;
  }
}

/* category-top-nav-v115.css */
/* Hux Studio category navigation v115: primary rail + horizontal secondary index. */

.asset-results-pane {
  min-width: 0;
}

#subcategory-group.asset-subcategory-bar {
  --subcategory-line: #37373c;
  position: sticky;
  top: calc(var(--nav-height) + var(--subnav-height) + 12px);
  z-index: 24;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-height: 58px;
  margin: 0 0 16px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--subcategory-line);
  background: rgb(13 13 14 / 96%);
  box-shadow: 0 4px 14px rgb(0 0 0 / 10%);
  backdrop-filter: blur(14px) saturate(110%);
  animation: asset-subcategory-reveal 180ms cubic-bezier(0.33, 1, 0.68, 1) both;
}

.asset-subcategory-heading {
  display: grid;
  align-self: stretch;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding: 10px 14px;
  border-right: 1px solid var(--subcategory-line);
  background: linear-gradient(120deg, rgb(255 77 77 / 7%), transparent 72%);
}

.asset-subcategory-heading .section-kicker {
  overflow: hidden;
  color: var(--brand, #ff4d4d);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-subcategory-heading strong {
  overflow: hidden;
  color: var(--hux-tab-text-strong, #f2f2f3);
  font-size: 13px;
  font-weight: 690;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#subcategory-pills.secondary-pills {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  min-height: 56px;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  background: transparent;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

#subcategory-pills.secondary-pills::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#subcategory-pills > .secondary-pill {
  position: relative;
  display: inline-flex;
  flex: 1 1 auto;
  min-width: 76px;
  width: auto;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  grid-template-columns: none;
  gap: 8px;
  padding: 0 11px;
  border: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  color: var(--hux-tab-text, #8b8b90);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: color 140ms ease, background-color 140ms ease;
}

#subcategory-pills > .secondary-pill::before {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 2px;
  background: var(--brand, #ff4d4d);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 140ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

#subcategory-pills > .secondary-pill::after {
  /* Separators are structural, independent of hover and selected borders. */
  display: block;
  position: absolute;
  inset: 0 0 0 auto;
  width: 1px;
  height: auto;
  background: var(--subcategory-line);
  content: "";
  opacity: 1;
  transform: none;
  pointer-events: none;
}

#subcategory-pills > .secondary-pill:last-child::after {
  display: none;
}

#subcategory-pills > .secondary-pill:hover,
#subcategory-pills > .secondary-pill:focus-visible {
  background: rgb(255 255 255 / 3%);
  color: #e6e6e8;
}

#subcategory-pills > .secondary-pill.active {
  border: 0;
  background: rgb(255 77 77 / 5%);
  color: var(--hux-tab-text-strong, #f2f2f3);
  box-shadow: none;
}

#subcategory-pills > .secondary-pill.active::before {
  opacity: 1;
  transform: scaleX(1);
}

#subcategory-pills > .secondary-pill .ui-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
  align-self: center;
  background-color: currentColor;
  mask-size: 16px 16px;
  -webkit-mask-size: 16px 16px;
  color: inherit;
  opacity: 1;
  filter: none;
  transform: none;
}

#subcategory-pills > .secondary-pill .secondary-pill-label {
  line-height: 20px;
}

#subcategory-pills > .secondary-pill.active .ui-icon {
  color: var(--brand, #ff4d4d);
}

#subcategory-pills > .secondary-pill .pill-count,
#subcategory-pills > .secondary-pill.active .pill-count {
  min-width: 1.5ch;
  padding: 0;
  background: transparent;
  color: #6f6f75;
  font-size: 11px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

#subcategory-pills > .secondary-pill.active .pill-count {
  color: var(--brand, #ff4d4d);
}

#subcategory-pills > .secondary-pill:disabled,
#subcategory-pills > .secondary-pill.empty,
#subcategory-pills > .secondary-pill:disabled .ui-icon,
#subcategory-pills > .secondary-pill.empty .ui-icon,
#subcategory-pills > .secondary-pill:disabled .pill-count,
#subcategory-pills > .secondary-pill.empty .pill-count {
  color: var(--hux-tab-text, #8b8b90);
  opacity: 1;
}

#subcategory-pills > .secondary-pill:disabled,
#subcategory-pills > .secondary-pill.empty {
  cursor: default;
}

/* The same single-pixel frame runs through the heading and every tab state. */
html[data-theme="light"] #subcategory-group.asset-subcategory-bar {
  --subcategory-line: #d4d4d8;
  border-color: var(--subcategory-line);
  box-shadow: 0 4px 14px rgb(24 24 27 / 5%);
}

#subcategory-group .asset-subcategory-heading {
  border-right-color: var(--subcategory-line);
}

html[data-theme="light"] #subcategory-pills > .secondary-pill:not(.active) .ui-icon,
html[data-theme="light"] #subcategory-pills > .secondary-pill:not(.active) .pill-count {
  color: #606066;
}

#assets-view .asset-results-pane .asset-grid,
#assets-view .asset-results-pane .skeleton-grid {
  margin-top: 0;
}

#category-pills > .pill .pill-copy small {
  display: none;
}

@keyframes asset-subcategory-reveal {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1020px) {
  #subcategory-group.asset-subcategory-bar {
    top: calc(var(--nav-height) + var(--subnav-height) + 8px);
    grid-template-columns: 116px minmax(0, 1fr);
  }

  #subcategory-pills > .secondary-pill {
    flex: 0 0 auto;
    min-width: max-content;
    padding-inline: 15px;
  }
}

@media (max-width: 900px) {
  #subcategory-group.asset-subcategory-bar {
    margin-top: 10px;
  }
}

@media (max-width: 720px) {
  #subcategory-group.asset-subcategory-bar {
    top: calc(var(--subnav-height) + 8px);
    grid-template-columns: minmax(0, 1fr);
    min-height: 50px;
    margin-bottom: 12px;
  }

  .asset-subcategory-heading {
    display: none;
  }

  #subcategory-pills.secondary-pills,
  #subcategory-pills > .secondary-pill {
    min-height: 50px;
  }

  #subcategory-pills > .secondary-pill {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #subcategory-group.asset-subcategory-bar {
    animation: none;
  }

  #subcategory-pills > .secondary-pill,
  #subcategory-pills > .secondary-pill::before {
    transition: none;
  }
}

/* light-theme-v116.css */
/* Hux Studio theme system v117: persistent themes with complete dialog and detail coverage. */

.workspace-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.workspace-actions .upload-button {
  grid-column: auto;
}

.theme-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #3b3b3b;
  border-radius: 0;
  background: #101010;
  color: #b9b9bc;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: #66666b;
  background: #171717;
  color: #f2f2f2;
}

.theme-toggle .ui-icon {
  width: 17px;
  height: 17px;
}

.theme-toggle-global {
  width: 58px;
  min-width: 58px;
  height: var(--nav-height);
  padding: 0;
  border-width: 0 0 0 1px;
  border-color: var(--border);
  background: transparent;
}

.theme-toggle-global [data-theme-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-toggle-mobile {
  display: none;
}

html[data-theme="light"] {
  color-scheme: light;
  --background: #f4f4f5;
  --foreground: #18181b;
  --card: #ffffff;
  --card-foreground: #18181b;
  --popover: #ffffff;
  --popover-foreground: #18181b;
  --primary: #18181b;
  --primary-foreground: #ffffff;
  --secondary: #f4f4f5;
  --secondary-foreground: #27272a;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --accent: #ff4d4d;
  --accent-foreground: #ffffff;
  --brand: #df3f43;
  --brand-strong: #c93035;
  --brand-muted: rgb(223 63 67 / 9%);
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --input: #d4d4d8;
  --ring: #df3f43;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 5%);
  --shadow-md: 0 14px 34px rgb(0 0 0 / 8%);
  --shadow-lg: 0 28px 80px rgb(0 0 0 / 14%);
  --hux-tab-line: #d4d4d8;
  --hux-tab-line-soft: #e4e4e7;
  --hux-tab-surface: #ffffff;
  --hux-tab-surface-active: #f4f4f5;
  --hux-tab-text: #71717a;
  --hux-tab-text-strong: #18181b;
  --hux-tab-text-disabled: #71717a;
  background: var(--background);
  scrollbar-color: #a1a1aa #e4e4e7;
}

html[data-theme="light"] body {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgb(28 28 28 / 3.2%) 25%, transparent calc(25% + 1px)),
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgb(28 28 28 / 3.2%) 50%, transparent calc(50% + 1px)),
    linear-gradient(90deg, transparent 0, transparent calc(75% - 1px), rgb(28 28 28 / 3.2%) 75%, transparent calc(75% + 1px)),
    var(--background);
  color: var(--foreground);
}

html[data-theme="light"] ::selection {
  background: var(--brand);
  color: #ffffff;
}

html[data-theme="light"] .topbar,
html[data-theme="light"] .workspace-header {
  border-color: var(--border);
  background: rgb(255 255 255 / 96%);
}

html[data-theme="light"] .brand,
html[data-theme="light"] .nav-link,
html[data-theme="light"] .user-menu,
html[data-theme="light"] .theme-toggle-global,
html[data-theme="light"] .view-switch > .view-tab + .view-tab {
  border-color: var(--border);
}

html[data-theme="light"] .brand-mark::before,
html[data-theme="light"] .footer-mark::before {
  background: #1a1a1a;
}

html[data-theme="light"] .brand-mark::after,
html[data-theme="light"] .footer-mark::after {
  background: linear-gradient(180deg, #d4d4d8, #71717a);
}

html[data-theme="light"] .brand-name,
html[data-theme="light"] .user-copy strong,
html[data-theme="light"] .workspace-title h1 {
  color: #202022;
}

html[data-theme="light"] .product-name,
html[data-theme="light"] .user-copy small {
  color: #737278;
}

html[data-theme="light"] .nav-link {
  color: #69696e;
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active,
html[data-theme="light"] .user-menu:hover,
html[data-theme="light"] .theme-toggle-global:hover {
  background: #f4f4f5;
  color: #1d1d1f;
}

html[data-theme="light"] .avatar {
  border-color: #d4d4d8;
  background: #f4f4f5;
}

html[data-theme="light"] .theme-toggle {
  border-color: #d4d4d8;
  background: #ffffff;
  color: #55555a;
}

html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .theme-toggle:focus-visible {
  border-color: #a1a1aa;
  background: #f4f4f5;
  color: #1d1d1f;
}

html[data-theme="light"] .view-switch > .view-tab {
  color: #6b6b70;
}

html[data-theme="light"] .view-switch > .view-tab:hover,
html[data-theme="light"] .view-switch > .view-tab.active {
  background: rgb(0 0 0 / 2.5%);
  color: #202022;
}

html[data-theme="light"] .button {
  border-color: #d4d4d8;
  background: #ffffff;
  color: #323236;
}

html[data-theme="light"] .button:hover,
html[data-theme="light"] .button:focus-visible {
  border-color: var(--brand);
  background: #f4f4f5;
  color: #171719;
}

html[data-theme="light"] .button.primary,
html[data-theme="light"] .upload-button {
  border-color: #222224;
  background: #222224;
  color: #ffffff;
}

html[data-theme="light"] .button.primary:hover,
html[data-theme="light"] .upload-button:hover,
html[data-theme="light"] .button.primary:focus-visible,
html[data-theme="light"] .upload-button:focus-visible {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

html[data-theme="light"] .dashboard-section {
  --v43-surface: #ffffff;
  --v43-surface-soft: #fafafa;
  --v43-surface-active: #f4f4f5;
  --v43-border: #e4e4e7;
  --v43-border-strong: #a1a1aa;
  --v43-text: #202023;
  --v43-secondary: #5f5f65;
  --v43-muted: #77777d;
  --v43-red: var(--brand);
  --home-command-border: #e4e4e7;
  --home-command-surface: #ffffff;
  --home-command-surface-strong: #fafafa;
  --home-command-surface-hover: #f4f4f5;
  --home-command-text: #202023;
  --home-command-secondary: #5f5f65;
  --home-command-muted: #77777d;
  --home-command-accent: var(--brand);
}

html[data-theme="light"] .agent-copy-launcher-home,
html[data-theme="light"] .dashboard-command-board,
html[data-theme="light"] .dashboard-metrics article.metric-card,
html[data-theme="light"] .activity-card,
html[data-theme="light"] .activity-trend-pane,
html[data-theme="light"] .activity-category-pane {
  border-color: var(--border);
  background-color: #ffffff;
  color: #202023;
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .agent-copy-launcher-home {
  background:
    linear-gradient(112deg, rgb(223 63 67 / 7%), transparent 30%),
    #ffffff;
}

html[data-theme="light"] .agent-connect-copy::after {
  background: linear-gradient(transparent, #d4d4d8 14% 86%, transparent);
}

html[data-theme="light"] .agent-signal-field {
  background:
    linear-gradient(rgb(31 31 31 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(31 31 31 / 4%) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgb(223 63 67 / 8%), transparent 38%);
  background-size: 32px 32px, 32px 32px, auto;
}

html[data-theme="light"] .agent-signal-grid,
html[data-theme="light"] .activity-grid-line {
  stroke: rgb(31 31 31 / 8%);
}

html[data-theme="light"] .agent-signal-track,
html[data-theme="light"] .activity-baseline {
  stroke: #d4d4d8;
}

html[data-theme="light"] .agent-signal-anchor,
html[data-theme="light"] .agent-signal-source .agent-client-strip,
html[data-theme="light"] .asset-layer {
  border-color: #d4d4d8;
  background: #fafafa;
}

html[data-theme="light"] .agent-copy-launcher-home .agent-copy-pill {
  border-color: #d4d4d8;
  background: #f4f4f5;
  color: #202023;
}

html[data-theme="light"] .agent-copy-launcher-home .agent-copy-pill:hover,
html[data-theme="light"] .agent-copy-launcher-home .agent-copy-pill:focus-visible {
  border-color: #a1a1aa;
  background: #e4e4e7;
  box-shadow: 0 10px 26px rgb(0 0 0 / 9%);
}

html[data-theme="light"] .agent-client-mark[data-client="codex"] img,
html[data-theme="light"] .agent-client-mark[data-client="cursor"] img {
  filter: none;
}

html[data-theme="light"] .dashboard-heading h2,
html[data-theme="light"] .activity-card-header h3,
html[data-theme="light"] .category-pane-header h3,
html[data-theme="light"] .dashboard-metrics .metric-value strong,
html[data-theme="light"] .activity-category-pane .category-row-label strong {
  color: #202023;
}

html[data-theme="light"] .dashboard-heading p,
html[data-theme="light"] .metric-label,
html[data-theme="light"] .activity-legend,
html[data-theme="light"] .category-pane-header .panel-note,
html[data-theme="light"] .activity-category-pane .category-stat small {
  color: #68686d;
}

html[data-theme="light"] .dashboard-data-status,
html[data-theme="light"] .dashboard-asset-link {
  border-color: #d4d4d8;
  background: #f4f4f5;
  color: #3e3e42;
}

html[data-theme="light"] .activity-category-pane .category-row:hover,
html[data-theme="light"] .activity-category-pane .category-row:focus-visible,
html[data-theme="light"] .dashboard-metrics article.metric-card:hover {
  background: #f4f4f5;
}

html[data-theme="light"] .asset-filter-rail {
  border-color: var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

html[data-theme="light"] .asset-filter-rail-head {
  border-color: var(--border);
  background:
    linear-gradient(135deg, rgb(223 63 67 / 7%), transparent 52%),
    #ffffff;
}

html[data-theme="light"] .asset-filter-rail-head strong {
  color: #252527;
}

html[data-theme="light"] .asset-filter-rail-head small {
  color: #79787d;
}

html[data-theme="light"] #assets-view .asset-toolbar .search-wrap {
  border-color: var(--border);
  background: #ffffff;
}

html[data-theme="light"] #assets-view .asset-toolbar .search-wrap:hover,
html[data-theme="light"] #assets-view .asset-toolbar .search-wrap:focus-within {
  background: #f4f4f5;
}

html[data-theme="light"] #assets-view .asset-toolbar .search-wrap input {
  /* The row owns the surface in rest, hover and focus states. */
  background: transparent;
  color: #222224;
}

html[data-theme="light"] #assets-view .asset-toolbar .search-wrap input::placeholder {
  color: #77777c;
}

html[data-theme="light"] #category-pills > .pill {
  border-color: var(--hux-tab-line-soft);
  color: var(--hux-tab-text);
}

html[data-theme="light"] #category-pills > .pill:hover,
html[data-theme="light"] #category-pills > .pill:focus-visible,
html[data-theme="light"] #category-pills > .pill.active {
  background: #f4f4f5;
  color: var(--hux-tab-text-strong);
}

html[data-theme="light"] #category-pills > .pill .ui-icon,
html[data-theme="light"] #category-pills > .pill .pill-count,
html[data-theme="light"] #category-pills > .pill .pill-branch-indicator {
  color: #74737a;
}

html[data-theme="light"] #subcategory-group.asset-subcategory-bar {
  border-color: var(--subcategory-line);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 4px 14px rgb(24 24 27 / 5%);
}

html[data-theme="light"] .asset-subcategory-heading {
  border-color: var(--subcategory-line);
  background: linear-gradient(120deg, rgb(223 63 67 / 7%), transparent 72%);
}

html[data-theme="light"] #subcategory-pills > .secondary-pill {
  border-color: var(--hux-tab-line-soft);
  color: #606066;
}

html[data-theme="light"] #subcategory-pills > .secondary-pill:hover,
html[data-theme="light"] #subcategory-pills > .secondary-pill:focus-visible,
html[data-theme="light"] #subcategory-pills > .secondary-pill.active {
  background: #f4f4f5;
  color: #1f1f21;
}

html[data-theme="light"] #subcategory-pills > .secondary-pill .ui-icon,
html[data-theme="light"] #subcategory-pills > .secondary-pill .pill-count {
  color: #606066;
}

html[data-theme="light"] #subcategory-pills > .secondary-pill.active .ui-icon,
html[data-theme="light"] #subcategory-pills > .secondary-pill.active .pill-count {
  color: var(--brand);
}

html[data-theme="light"] .asset-card {
  border-color: #d4d4d8;
  background: #ffffff;
  color: #18181b;
  box-shadow: none;
}

html[data-theme="light"] .asset-card:hover,
html[data-theme="light"] .asset-card:focus-visible,
html[data-theme="light"] .asset-card:focus-within {
  border-color: #a1a1aa;
  background: #fafafa;
  box-shadow: none;
}

html[data-theme="light"] .skill-card-body {
  border-color: #e4e4e7;
  background: #ffffff;
}

html[data-theme="light"] .skill-card .badge {
  border-color: #d4d4d8;
  background: #f4f4f5;
  color: #52525b;
}

html[data-theme="light"] .skill-card .badge.level,
html[data-theme="light"] .skill-owner-copy strong {
  color: #18181b !important;
}

html[data-theme="light"] .skill-owner-copy .skill-card-summary {
  color: #71717a;
}

html[data-theme="light"] .skill-footer {
  border-color: #e4e4e7;
}

html[data-theme="light"] .skeleton-grid span {
  border-color: var(--border);
  background: linear-gradient(90deg, #e4e4e7 20%, #fafafa 48%, #e4e4e7 76%);
  background-size: 240% 100%;
}

html[data-theme="light"] .empty-state {
  border-color: var(--border);
  background: #ffffff;
  color: #252527;
}

html[data-theme="light"] .empty-state p {
  color: #68686d;
}

html[data-theme="light"] .sheet-backdrop,
html[data-theme="light"] .portal-dialog::backdrop,
html[data-theme="light"] .profile-settings-dialog::backdrop,
html[data-theme="light"] .identity-dialog::backdrop {
  background: rgb(0 0 0 / 32%);
}

html[data-theme="light"] .asset-sheet,
html[data-theme="light"] .portal-dialog,
html[data-theme="light"] .portal-dialog-shell,
html[data-theme="light"] .identity-dialog,
html[data-theme="light"] .profile-settings-dialog,
html[data-theme="light"] .workflow-reader {
  border-color: var(--border-strong);
  background: #fafafa;
  color: #222224;
  box-shadow: var(--shadow-lg);
  color-scheme: light;
}

html[data-theme="light"] .sheet-hero,
html[data-theme="light"] .sheet-block,
html[data-theme="light"] .sheet-grid .sheet-block,
html[data-theme="light"] .sheet-actions,
html[data-theme="light"] .portal-dialog-header,
html[data-theme="light"] .portal-steps li,
html[data-theme="light"] .portal-guide-grid section,
html[data-theme="light"] .portal-guide-overview,
html[data-theme="light"] .workflow-reader-bar,
html[data-theme="light"] .workflow-article-hero,
html[data-theme="light"] .workflow-step-flow,
html[data-theme="light"] .workflow-platform-grid article,
html[data-theme="light"] .workflow-toc,
html[data-theme="light"] .workflow-source-note,
html[data-theme="light"] .workflow-callout,
html[data-theme="light"] .workflow-resource,
html[data-theme="light"] .identity-dialog-header,
html[data-theme="light"] .profile-settings-header,
html[data-theme="light"] .profile-settings-card.identity-profile-card {
  border-color: var(--border);
  background-color: #ffffff;
  color: #222224;
}

html[data-theme="light"] .identity-dialog-header,
html[data-theme="light"] .profile-settings-header {
  background:
    linear-gradient(112deg, rgb(223 63 67 / 7%), transparent 52%),
    #ffffff;
}

html[data-theme="light"] :is(
  .identity-dialog-heading h2,
  .identity-option-topline strong,
  .profile-settings-heading h2,
  .profile-settings-primary h3,
  .portal-dialog-header h2,
  .portal-guide-overview h3,
  .portal-platform-map strong,
  .sheet-content h2,
  .sheet-content h3,
  .workflow-article h1,
  .workflow-article h2,
  .workflow-article h3
) {
  color: #222224;
}

html[data-theme="light"] :is(
  .identity-dialog-heading p,
  .identity-option-copy p,
  .identity-option-topline small,
  .identity-dialog-note p,
  .profile-settings-heading p,
  .portal-guide-overview p,
  .portal-guide-heading p,
  .workflow-article p,
  .sheet-content p
) {
  color: #66666b;
}

html[data-theme="light"] .identity-option,
html[data-theme="light"] .identity-dialog-note,
html[data-theme="light"] .profile-settings-primary,
html[data-theme="light"] .profile-settings-meta,
html[data-theme="light"] .profile-settings-history {
  border-color: var(--border);
  background-color: #ffffff;
}

html[data-theme="light"] .identity-option:hover,
html[data-theme="light"] .identity-option:focus-visible,
html[data-theme="light"] .identity-option.active {
  background: #f4f4f5;
}

html[data-theme="light"] .identity-option-avatar,
html[data-theme="light"] .profile-settings-avatar,
html[data-theme="light"] .identity-account-settings,
html[data-theme="light"] .profile-settings-close,
html[data-theme="light"] .profile-settings-icon-action,
html[data-theme="light"] .identity-dialog-close {
  border-color: #d4d4d8;
  background: #f4f4f5;
  color: #5f5f64;
}

html[data-theme="light"] :is(input, textarea, select) {
  border-color: #d4d4d8;
  background-color: #ffffff;
  color: #222224;
}

html[data-theme="light"] :is(input, textarea)::placeholder {
  color: #85848a;
}

html[data-theme="light"] .toast {
  border-color: var(--brand);
  background: #ffffff;
  color: #252527;
  box-shadow: var(--shadow-md);
}

html[data-theme="light"] .auth-gate {
  background: #f4f4f5;
  color: #202023;
}

html[data-theme="light"] .auth-gate-grid {
  background-image:
    linear-gradient(rgb(30 30 30 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(30 30 30 / 5%) 1px, transparent 1px);
}

html[data-theme="light"] .auth-gate-content,
html[data-theme="light"] .auth-gate-card,
html[data-theme="light"] .auth-gate-footer {
  border-color: var(--border-strong);
  background-color: #ffffff;
  color: #202023;
}

html[data-theme="light"] .auth-gate-intro {
  border-color: var(--border-strong);
  background: #171719;
  color: #f3f3f4;
}

html[data-theme="light"] .auth-gate-card-copy h2 {
  color: #222224;
}

html[data-theme="light"] .auth-gate-card-copy p,
html[data-theme="light"] .auth-gate-card-note,
html[data-theme="light"] .auth-gate-footer,
html[data-theme="light"] .auth-gate-brand small {
  color: #6d6d72;
}

html[data-theme="light"] .auth-gate-status:not(:empty) {
  border-left-color: var(--brand);
  background: rgb(223 63 67 / 7%);
  color: #52525b;
}

html[data-theme="light"] .auth-gate-divider {
  color: #71717a;
}

html[data-theme="light"] .auth-gate-divider::before,
html[data-theme="light"] .auth-gate-divider::after {
  background: #d4d4d8;
}

html[data-theme="light"] .auth-gate-secondary {
  border-color: #d4d4d8;
  background: #ffffff;
  color: #2b2b2e;
}

html[data-theme="light"] .auth-gate-secondary:hover,
html[data-theme="light"] .auth-gate-secondary:focus-visible {
  border-color: #a1a1aa;
  background: #f4f4f5;
}

/* v117 visual audit: complete light surfaces across detail, identity and creation flows. */

.auth-gate-theme-toggle {
  min-width: 112px;
  margin-left: auto;
}

html[data-theme="light"] .auth-gate-layout {
  border-color: var(--border-strong);
  background: #ffffff;
  box-shadow: 0 28px 72px rgb(24 24 27 / 12%);
}

html[data-theme="light"] .auth-gate-monogram {
  border-color: var(--border-strong);
  background: #ffffff;
}

html[data-theme="light"] .auth-gate-card {
  background: #ffffff;
}

html[data-theme="light"] .auth-gate-primary:disabled {
  border-color: #d4d4d8;
  background: #e4e4e7;
  color: #71717a;
}

html[data-theme="light"] .asset-sheet,
html[data-theme="light"] .skill-detail-sheet,
html[data-theme="light"] .skill-detail-record,
html[data-theme="light"] .skill-detail-sheet .sheet-actions {
  border-color: var(--border-strong);
  background: #ffffff;
  color: #27272a;
}

html[data-theme="light"] .asset-sheet {
  box-shadow: -28px 0 68px rgb(24 24 27 / 18%);
}

html[data-theme="light"] .skill-detail-record {
  border-top-color: var(--border);
}

html[data-theme="light"] .skill-detail-row {
  border-bottom-color: var(--border);
}

html[data-theme="light"] .skill-detail-label {
  border-right-color: var(--border);
  background: #fafafa;
  color: #52525b;
}

html[data-theme="light"] .skill-detail-value {
  background: #ffffff;
  color: #3f3f46;
}

html[data-theme="light"] .skill-detail-command,
html[data-theme="light"] .skill-detail-person {
  border-color: #d4d4d8;
  background: #fafafa;
  color: #18181b;
}

html[data-theme="light"] .skill-detail-pills span {
  border-color: rgb(201 48 53 / 28%);
  background: rgb(223 63 67 / 6%);
  color: #8f2f33;
}

html[data-theme="light"] .skill-detail-link {
  border-color: rgb(201 48 53 / 30%);
  background: rgb(223 63 67 / 5%);
  color: #b33439;
}

html[data-theme="light"] .skill-detail-link:hover,
html[data-theme="light"] .skill-detail-link:focus-visible {
  border-color: rgb(201 48 53 / 58%);
  background: rgb(223 63 67 / 10%);
  color: #8f2429;
}

html[data-theme="light"] .skill-detail-empty {
  color: #71717a;
}

html[data-theme="light"] .skill-detail-avatar {
  border-color: #d4d4d8;
  background: #f4f4f5;
  color: var(--brand);
}

html[data-theme="light"] .sheet-close-button {
  border-color: #d4d4d8;
  background: #f4f4f5;
  color: #52525b;
}

html[data-theme="light"] .sheet-close-button:hover,
html[data-theme="light"] .sheet-close-button:focus-visible {
  border-color: #a1a1aa;
  background: #e4e4e7;
  color: #18181b;
}

html[data-theme="light"] .favorite-btn,
html[data-theme="light"] #asset-grid .skill-card > .favorite-btn {
  border: 1px solid #d4d4d8;
  background: #ffffff;
  color: #52525b;
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .favorite-btn:hover,
html[data-theme="light"] .favorite-btn:focus-visible,
html[data-theme="light"] .asset-card:focus-within .favorite-btn {
  border-color: #a1a1aa;
  background: #f4f4f5;
  color: #18181b;
}

html[data-theme="light"] #asset-grid .skill-card > .favorite-btn.active,
html[data-theme="light"] #asset-grid .skill-card > .favorite-btn[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

html[data-theme="light"] .identity-dialog-shell,
html[data-theme="light"] .identity-options,
html[data-theme="light"] .identity-login-panel,
html[data-theme="light"] .identity-session-actions {
  border-color: var(--border);
  background: #ffffff;
  color: #27272a;
}

html[data-theme="light"] .identity-option {
  border-bottom-color: var(--border);
  background: #ffffff;
  color: #27272a;
}

html[data-theme="light"] .identity-option:hover,
html[data-theme="light"] .identity-option:focus-visible {
  border-bottom-color: var(--border);
  background: #f4f4f5;
}

html[data-theme="light"] .identity-option.active,
html[data-theme="light"] .identity-option-session:hover {
  border-bottom-color: var(--border);
  background: linear-gradient(90deg, rgb(223 63 67 / 8%), transparent 78%), #ffffff;
}

html[data-theme="light"] .identity-login-panel {
  border-top-color: var(--border);
  background: linear-gradient(135deg, rgb(223 63 67 / 6%), transparent 54%), #fafafa;
}

html[data-theme="light"] .identity-login-copy strong {
  color: #18181b;
}

html[data-theme="light"] .identity-login-copy p {
  color: #71717a;
}

html[data-theme="light"] .identity-github-login {
  border-color: #27272a;
  background: #27272a;
  color: #ffffff;
}

html[data-theme="light"] .identity-github-login:hover,
html[data-theme="light"] .identity-github-login:focus-visible {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

html[data-theme="light"] .identity-session-actions {
  border-top-color: var(--border);
  background: #fafafa;
}

html[data-theme="light"] .identity-session-logout {
  border-color: #d4d4d8;
  background: #ffffff;
  color: #3f3f46;
}

html[data-theme="light"] .identity-session-logout:hover,
html[data-theme="light"] .identity-session-logout:focus-visible {
  border-color: rgb(201 48 53 / 46%);
  background: rgb(223 63 67 / 7%);
  color: #a62d32;
}

html[data-theme="light"] .profile-settings-shell,
html[data-theme="light"] .profile-settings-content,
html[data-theme="light"] .profile-settings-card.identity-profile-card {
  background: #ffffff;
  color: #27272a;
}

html[data-theme="light"] .profile-settings-primary,
html[data-theme="light"] .profile-settings-meta,
html[data-theme="light"] .profile-settings-owner-linker {
  border-color: var(--border);
  background: #ffffff;
}

html[data-theme="light"] .profile-settings-primary-copy strong,
html[data-theme="light"] .profile-settings-owner-title strong {
  color: #18181b;
}

html[data-theme="light"] .profile-settings-field-label,
html[data-theme="light"] .profile-settings-github,
html[data-theme="light"] .profile-settings-description,
html[data-theme="light"] .profile-settings-owner-title small,
html[data-theme="light"] .profile-settings-meta dt,
html[data-theme="light"] .profile-settings-meta dd small {
  color: #71717a;
}

html[data-theme="light"] .profile-settings-meta dd,
html[data-theme="light"] .profile-settings-meta code {
  color: #3f3f46;
}

html[data-theme="light"] .profile-settings-meta-icon,
html[data-theme="light"] .profile-settings-owner-icon {
  border-color: #d4d4d8;
  background: #f4f4f5;
  color: #52525b;
}

html[data-theme="light"] .identity-profile-input {
  border-color: #d4d4d8;
  background: #ffffff;
  color: #18181b;
}

html[data-theme="light"] .identity-profile-cancel {
  border-color: #d4d4d8;
  background: #ffffff;
  color: #52525b;
}

html[data-theme="light"] .identity-profile-save {
  border-color: #27272a;
  background: #27272a;
  color: #ffffff;
}

html[data-theme="light"] .portal-dialog[data-mode="intake"],
html[data-theme="light"] .portal-dialog[data-mode="intake"] .portal-dialog-shell,
html[data-theme="light"] .portal-dialog[data-mode="intake"] .portal-dialog-body,
html[data-theme="light"] .asset-intake-simple,
html[data-theme="light"] .intake-workspace,
html[data-theme="light"] .intake-workspace-simple,
html[data-theme="light"] .intake-main,
html[data-theme="light"] .intake-mcp-panel-simple,
html[data-theme="light"] .mcp-setup-wizard {
  border-color: var(--border);
  background: #ffffff;
  color: #27272a;
  color-scheme: light;
}

html[data-theme="light"] .portal-dialog[data-mode="intake"] .portal-dialog-header,
html[data-theme="light"] .intake-create-heading,
html[data-theme="light"] .intake-requirement-rail {
  border-color: var(--border);
  background: #fafafa;
}

html[data-theme="light"] :is(
  .intake-type-grid,
  .intake-mcp-source-grid,
  .intake-mcp-command,
  .intake-create-result,
  .mcp-entry-status,
  .mcp-journey-grid,
  .mcp-boundary-note,
  .mcp-progress,
  .mcp-managed-card,
  .mcp-auth-section,
  .mcp-tools-section,
  .mcp-review-summary,
  .mcp-verification-list,
  .mcp-compatibility-tools,
  .mcp-save-notice
) {
  border-color: var(--border);
  background: #fafafa;
  color: #27272a;
}

html[data-theme="light"] :is(
  .intake-type-option,
  .intake-mcp-source-grid > div,
  .mcp-journey-grid li,
  .mcp-progress li,
  .mcp-option,
  .mcp-auth-option,
  .mcp-approval-option,
  .mcp-tool-list label,
  .mcp-compatibility-tool
) {
  border-color: var(--border);
  background: #ffffff;
  color: #3f3f46;
}

html[data-theme="light"] :is(
  .intake-type-option:hover,
  .intake-type-option:focus-visible,
  .mcp-option:hover,
  .mcp-option:focus-visible,
  .mcp-auth-option:hover,
  .mcp-approval-option:hover
) {
  background: #f4f4f5;
}

html[data-theme="light"] :is(
  .intake-type-option.active,
  .mcp-progress li.current,
  .mcp-option.active,
  .mcp-auth-option.active,
  .mcp-approval-option.active,
  .mcp-entry-status.has-plan
) {
  border-color: rgb(201 48 53 / 32%);
  background: linear-gradient(120deg, rgb(223 63 67 / 8%), transparent 70%), #ffffff;
}

html[data-theme="light"] :is(
  .intake-section-heading h3,
  .intake-main-heading h3,
  .intake-mcp-lead h4,
  .intake-manual-intro h4,
  .intake-type-copy strong,
  .intake-mcp-source-grid strong,
  .intake-mcp-command > div strong,
  .mcp-entry-status strong,
  .mcp-journey-grid strong,
  .mcp-wizard-header h4,
  .mcp-step-heading h5,
  .mcp-auth-section h6,
  .mcp-tools-section h6,
  .mcp-review-summary h6,
  .mcp-verification-list h6
) {
  color: #27272a;
}

html[data-theme="light"] :is(
  .intake-section-heading p,
  .intake-main-heading p,
  .intake-mcp-lead p,
  .intake-manual-intro p,
  .intake-type-copy small,
  .intake-mcp-source-grid small,
  .intake-mcp-command p,
  .mcp-entry-status small,
  .mcp-journey-grid small,
  .mcp-boundary-note p,
  .mcp-wizard-header p,
  .mcp-option small,
  .mcp-auth-option small,
  .mcp-approval-option small,
  .mcp-compatibility-tool small
) {
  color: #71717a;
}

html[data-theme="light"] .intake-method-switch {
  border-color: #d4d4d8;
}

html[data-theme="light"] .intake-method-switch button {
  border-color: var(--border);
  background: #ffffff;
  color: #71717a;
}

html[data-theme="light"] .intake-method-switch button:hover,
html[data-theme="light"] .intake-method-switch button:focus-visible {
  background: #f4f4f5;
  color: #18181b;
}

html[data-theme="light"] .intake-method-switch button.active {
  background: #27272a;
  color: #ffffff;
}

html[data-theme="light"] .draft-editor-frame,
html[data-theme="light"] .draft-editor-scroll {
  background: #f4f4f5;
  color: #27272a;
}

html[data-theme="light"] .draft-editor-document {
  border-color: #d4d4d8;
  background: #ffffff;
  box-shadow: 0 22px 60px rgb(24 24 27 / 10%);
}

html[data-theme="light"] .draft-document-title,
html[data-theme="light"] .draft-document-section h2,
html[data-theme="light"] .draft-editor-outline > strong {
  color: #18181b;
}

html[data-theme="light"] .draft-document-summary,
html[data-theme="light"] .draft-document-field,
html[data-theme="light"] .draft-document-facts dd,
html[data-theme="light"] .draft-editor-owner strong {
  color: #52525b;
}

html[data-theme="light"] .draft-document-section,
html[data-theme="light"] .draft-document-facts,
html[data-theme="light"] .draft-editor-outline,
html[data-theme="light"] .draft-editor-outline nav button,
html[data-theme="light"] .draft-editor-owner {
  border-color: var(--border);
}

html[data-theme="light"] .draft-document-field:hover,
html[data-theme="light"] .draft-document-field:focus {
  border-color: #d4d4d8;
  background: #fafafa;
}

@media (max-width: 620px) {
  .auth-gate-theme-toggle {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }

  .auth-gate-theme-toggle [data-theme-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 1020px) and (min-width: 721px) {
  .topbar .sidebar-footer {
    display: flex;
    width: 58px;
  }

  .topbar .theme-toggle-global {
    display: inline-flex;
    width: 58px;
    min-width: 58px;
  }

  .topbar .user-menu,
  .topbar .source-status {
    display: none;
  }
}

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

  .workspace-actions {
    grid-column: 2;
    gap: 7px;
  }

  .theme-toggle-mobile {
    display: inline-flex;
    width: 34px;
    min-width: 34px;
    min-height: 32px;
    padding: 0;
  }

  .theme-toggle-mobile [data-theme-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .theme-toggle-mobile .ui-icon {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle {
    transition: none;
  }
}

/* interaction-theme-v119.css */
/* Hux Studio interaction theme v119: one hover/focus language across dark and light modes. */

:root {
  /* Retain legacy token names while all controls share neutral-gray feedback. */
  --hux-interactive-inverse-surface: #303034;
  --hux-interactive-inverse-text: #f3f3f4;
  --hux-interactive-inverse-muted: #b8b8bd;
  --hux-interactive-subtle-surface: #19191a;
  --hux-interactive-subtle-text: #f2f2f3;
  --hux-interactive-subtle-muted: #a1a1a6;
  --hux-interactive-border: #505056;
  --hux-interactive-duration: 90ms;
  --hux-interactive-ease: cubic-bezier(0.33, 1, 0.68, 1);
}

html[data-theme="light"] {
  --hux-interactive-inverse-surface: #ededf0;
  --hux-interactive-inverse-text: #202023;
  --hux-interactive-inverse-muted: #606066;
  --hux-interactive-subtle-surface: #f4f4f5;
  --hux-interactive-subtle-text: #18181b;
  --hux-interactive-subtle-muted: #52525b;
  --hux-interactive-border: #d4d4d8;
}

/* Interactive feedback must never move navigation, filters or utility controls. */
:is(
  .theme-toggle,
  .topbar .nav-link,
  .topbar .user-menu,
  .view-switch > .view-tab,
  #assets-view .asset-toolbar .search-wrap,
  #category-pills > .pill,
  #subcategory-pills > .secondary-pill,
  .sheet-close-button,
  .portal-dialog-close,
  .identity-dialog-close,
  .identity-account-settings,
  .profile-settings-close,
  .profile-settings-icon-action,
  .identity-avatar-select,
  .identity-profile-edit,
  .identity-profile-cancel,
  .auth-gate-secondary,
  .button.secondary,
  .button.ghost,
  .favorite-btn
) {
  transition:
    border-color var(--hux-interactive-duration) ease,
    background-color var(--hux-interactive-duration) var(--hux-interactive-ease),
    color 100ms ease,
    box-shadow var(--hux-interactive-duration) var(--hux-interactive-ease);
}

:is(
  .theme-toggle,
  .topbar .nav-link,
  .topbar .user-menu,
  .view-switch > .view-tab,
  #assets-view .asset-toolbar .search-wrap,
  #category-pills > .pill,
  #subcategory-pills > .secondary-pill,
  .sheet-close-button,
  .portal-dialog-close,
  .identity-dialog-close,
  .identity-account-settings,
  .profile-settings-close,
  .profile-settings-icon-action,
  .identity-avatar-select,
  .identity-profile-edit,
  .identity-profile-cancel,
  .auth-gate-secondary,
  .button.secondary,
  .button.ghost,
  .favorite-btn
):is(:hover, :focus-visible) {
  transform: none;
}

/* Neutral hover keeps surface, text, icon and metadata in the same theme. */
:is(
  .theme-toggle:not(:disabled),
  .topbar .nav-link:not(.active),
  .topbar .user-menu,
  .view-switch > .view-tab:not(.active),
  .sheet-close-button,
  .portal-dialog-close,
  .identity-dialog-close,
  .identity-account-settings,
  .profile-settings-close,
  .profile-settings-icon-action,
  .identity-avatar-select,
  .identity-profile-edit,
  .identity-profile-cancel,
  .auth-gate-secondary,
  .button.secondary,
  .button.ghost,
  .favorite-btn:not(.active):not([aria-pressed="true"])
):is(:hover, :focus-visible) {
  border-color: var(--hux-interactive-border) !important;
  background: var(--hux-interactive-inverse-surface) !important;
  color: var(--hux-interactive-inverse-text) !important;
  box-shadow: none;
}

:is(
  .theme-toggle:not(:disabled),
  .topbar .nav-link:not(.active),
  .topbar .user-menu,
  .view-switch > .view-tab:not(.active),
  .sheet-close-button,
  .portal-dialog-close,
  .identity-dialog-close,
  .identity-account-settings,
  .profile-settings-close,
  .profile-settings-icon-action,
  .identity-avatar-select,
  .identity-profile-edit,
  .identity-profile-cancel,
  .auth-gate-secondary,
  .button.secondary,
  .button.ghost,
  .favorite-btn:not(.active):not([aria-pressed="true"])
):is(:hover, :focus-visible) :is(.ui-icon, .icon, strong, [data-theme-label]) {
  color: var(--hux-interactive-inverse-text) !important;
}

.topbar .user-menu:is(:hover, :focus-visible) .user-copy small {
  color: var(--hux-interactive-inverse-muted) !important;
}

/* Search keeps the field legible while the whole row reverses. */
#assets-view .asset-toolbar .search-wrap:is(:hover, :focus-within) {
  border-color: var(--hux-interactive-border) !important;
  background: var(--hux-interactive-inverse-surface) !important;
  box-shadow: none;
}

#assets-view .asset-toolbar .search-wrap:is(:hover, :focus-within) :is(.ui-icon, input) {
  color: var(--hux-interactive-inverse-text) !important;
}

#assets-view .asset-toolbar .search-wrap:is(:hover, :focus-within) input::placeholder {
  color: var(--hux-interactive-inverse-muted) !important;
}

/* Taxonomy hover is clear and selected states remain singular. */
#category-pills > .pill:not(.active):not(:disabled):is(:hover, :focus-visible),
#subcategory-pills > .secondary-pill:not(.active):not(:disabled):is(:hover, :focus-visible) {
  border-color: var(--hux-interactive-border) !important;
  background: var(--hux-interactive-inverse-surface) !important;
  color: var(--hux-interactive-inverse-text) !important;
  box-shadow: none;
  transform: none;
}

#category-pills > .pill:not(.active):not(:disabled):is(:hover, :focus-visible) :is(.ui-icon, .pill-copy, .pill-count, .pill-branch-indicator),
#subcategory-pills > .secondary-pill:not(.active):not(:disabled):is(:hover, :focus-visible) :is(.ui-icon, .pill-count, span) {
  color: var(--hux-interactive-inverse-text) !important;
  transform: none;
}

#category-pills > .pill:not(.active):not(:disabled):is(:hover, :focus-visible) .pill-copy small {
  color: var(--hux-interactive-inverse-muted) !important;
}

#category-pills > .pill.active:is(:hover, :focus-visible),
#subcategory-pills > .secondary-pill.active:is(:hover, :focus-visible) {
  transform: none;
}

/* Buttons share gray hover; persistent selected states retain Hux red. */
:is(
  .upload-button,
  .button.primary,
  .auth-gate-primary:not(:disabled),
  .identity-github-login:not(:disabled),
  .identity-profile-save:not(:disabled),
  .agent-copy-pill:not(:disabled)
):is(:hover, :focus-visible) {
  border-color: var(--hux-interactive-border) !important;
  background: var(--hux-interactive-inverse-surface) !important;
  color: var(--hux-interactive-inverse-text) !important;
  box-shadow: none;
  transform: none;
}

:is(
  .upload-button,
  .button.primary,
  .auth-gate-primary:not(:disabled),
  .identity-github-login:not(:disabled),
  .identity-profile-save:not(:disabled),
  .agent-copy-pill:not(:disabled)
):is(:hover, :focus-visible) :is(.ui-icon, .icon, strong, span) {
  color: var(--hux-interactive-inverse-text) !important;
}

/* Clickable rows reverse their full content instead of leaving pale labels behind. */
.identity-option:not(.active):is(:hover, :focus-visible),
:is(
  .intake-type-option,
  .mcp-option,
  .mcp-auth-option,
  .mcp-approval-option
):not(.active):is(:hover, :focus-visible),
.intake-method-switch > button:not(.active):is(:hover, :focus-visible) {
  border-color: var(--hux-interactive-border) !important;
  background: var(--hux-interactive-inverse-surface) !important;
  color: var(--hux-interactive-inverse-text) !important;
  box-shadow: none;
  transform: none;
}

.identity-option:not(.active):is(:hover, :focus-visible) :is(strong, .ui-icon, .identity-option-state),
:is(
  .intake-type-option,
  .mcp-option,
  .mcp-auth-option,
  .mcp-approval-option
):not(.active):is(:hover, :focus-visible) :is(strong, .ui-icon),
.intake-method-switch > button:not(.active):is(:hover, :focus-visible) :is(strong, .ui-icon) {
  color: var(--hux-interactive-inverse-text) !important;
}

.identity-option:not(.active):is(:hover, :focus-visible) :is(small, p),
:is(
  .intake-type-option,
  .mcp-option,
  .mcp-auth-option,
  .mcp-approval-option
):not(.active):is(:hover, :focus-visible) :is(small, p) {
  color: var(--hux-interactive-inverse-muted) !important;
}

/* Destructive/session action uses one decisive red state. */
.identity-session-logout:is(:hover, :focus-visible) {
  border-color: var(--brand) !important;
  background: var(--brand) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgb(223 63 67 / 18%);
  transform: none;
}

.identity-session-logout:is(:hover, :focus-visible) :is(.ui-icon, .identity-logout-icon, span) {
  color: #ffffff !important;
}

/* Detail links become a complete brand action on hover. */
.skill-detail-link:is(:hover, :focus-visible),
.workflow-source-link:is(:hover, :focus-visible) {
  border-color: var(--brand) !important;
  background: var(--brand) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgb(223 63 67 / 16%);
  transform: none;
}

.skill-detail-link:is(:hover, :focus-visible) :is(.ui-icon, .icon, span),
.workflow-source-link:is(:hover, :focus-visible) :is(.ui-icon, .icon, span) {
  color: #ffffff !important;
}

/* Cards keep their accepted geometry; only the surface and internal signifiers respond. */
.asset-card,
.asset-card:hover,
.asset-card:focus-visible,
.asset-card:focus-within {
  transform: none;
}

.asset-card:hover .card-category-tag,
.asset-card:focus-visible .card-category-tag,
.asset-card:focus-within .card-category-tag {
  border-color: var(--brand) !important;
  background: var(--brand) !important;
  color: #ffffff !important;
}

.asset-card:hover > .favorite-btn:not(.active):not([aria-pressed="true"]),
.asset-card:focus-within > .favorite-btn:not(.active):not([aria-pressed="true"]) {
  border-color: var(--hux-interactive-inverse-surface) !important;
  background: var(--hux-interactive-inverse-surface) !important;
  color: var(--hux-interactive-inverse-text) !important;
}

#asset-grid .skill-card > .favorite-btn.active,
#asset-grid .skill-card > .favorite-btn[aria-pressed="true"],
#asset-grid .skill-card > .favorite-btn.active:is(:hover, :focus-visible),
#asset-grid .skill-card > .favorite-btn[aria-pressed="true"]:is(:hover, :focus-visible) {
  border-color: var(--brand) !important;
  background: var(--brand) !important;
  color: #ffffff !important;
  transform: none;
}

#asset-grid .skill-card > .favorite-btn.active .ui-icon,
#asset-grid .skill-card > .favorite-btn[aria-pressed="true"] .ui-icon {
  color: #ffffff !important;
}

/* Light cards use a light body, so every expanded card label must stay dark. */
html[data-theme="light"] .asset-card .skill-card-body,
html[data-theme="light"] .asset-card:hover .skill-card-body,
html[data-theme="light"] .asset-card:focus-visible .skill-card-body,
html[data-theme="light"] .asset-card:focus-within .skill-card-body {
  background: #ffffff;
  color: #18181b;
}

html[data-theme="light"] .asset-card:is(:hover, :focus-visible, :focus-within) .skill-card-body {
  background: #fafafa;
}

html[data-theme="light"] .asset-card .skill-owner-copy strong {
  color: #18181b !important;
}

html[data-theme="light"] .asset-card .skill-owner-copy .skill-card-summary,
html[data-theme="light"] .asset-card:is(:hover, :focus-visible, :focus-within) .skill-owner-copy .skill-card-summary {
  color: #52525b;
}

html[data-theme="light"] .asset-card .skill-card .badge,
html[data-theme="light"] .asset-card .badge.level {
  border-color: #d4d4d8;
  background: #f4f4f5;
  color: #3f3f46 !important;
}

html[data-theme="light"] .asset-card .skill-footer {
  border-top-color: #e4e4e7;
}

/* The primary rail carries older high-specificity rules, so keep its final state explicit. */
html[data-theme] #category-pills > .pill:not(.active):not(:disabled):hover,
html[data-theme] #category-pills > .pill:not(.active):not(:disabled):focus-visible {
  border-color: var(--hux-interactive-border) !important;
  background: var(--hux-interactive-inverse-surface) !important;
  color: var(--hux-interactive-inverse-text) !important;
  box-shadow: none !important;
  transform: none !important;
}

html[data-theme] #category-pills > button.pill:not(.active):hover,
html[data-theme] #category-pills > button.pill:not(.active):focus-visible {
  border-color: var(--hux-interactive-border) !important;
  background-color: var(--hux-interactive-inverse-surface) !important;
  color: var(--hux-interactive-inverse-text) !important;
  box-shadow: none !important;
  transform: none !important;
}

html[data-theme] #category-pills > button.pill:not(.active):is(:hover, :focus-visible) :is(svg, .pill-label, .pill-count) {
  color: var(--hux-interactive-inverse-text) !important;
  stroke: currentColor !important;
}

html[data-theme] #category-pills > button.pill:disabled {
  border-color: transparent !important;
  background-color: transparent !important;
  color: var(--hux-tab-text) !important;
}

html[data-theme] #category-pills > .pill:not(.active):not(:disabled):hover :is(.ui-icon, .pill-copy, .pill-count, .pill-branch-indicator),
html[data-theme] #category-pills > .pill:not(.active):not(:disabled):focus-visible :is(.ui-icon, .pill-copy, .pill-count, .pill-branch-indicator) {
  color: var(--hux-interactive-inverse-text) !important;
  transform: none !important;
}

/* Large data cards use a restrained hover so dashboard hierarchy stays calm. */
:is(.dashboard-metrics article.metric-card, .activity-category-pane .category-row, .recent-item):is(:hover, :focus-visible) {
  border-color: var(--hux-interactive-border);
  background: var(--hux-interactive-subtle-surface);
  color: var(--hux-interactive-subtle-text);
  transform: none;
}

:is(.dashboard-metrics article.metric-card, .activity-category-pane .category-row, .recent-item):is(:hover, :focus-visible) :is(strong, .ui-icon) {
  color: var(--hux-interactive-subtle-text);
}

:is(.dashboard-metrics article.metric-card, .activity-category-pane .category-row, .recent-item):is(:hover, :focus-visible) :is(small, p) {
  color: var(--hux-interactive-subtle-muted);
}

@media (prefers-reduced-motion: reduce) {
  :is(
    .theme-toggle,
    .topbar .nav-link,
    .topbar .user-menu,
    .view-switch > .view-tab,
    #assets-view .asset-toolbar .search-wrap,
    #category-pills > .pill,
    #subcategory-pills > .secondary-pill,
    .sheet-close-button,
    .portal-dialog-close,
    .identity-dialog-close,
    .identity-account-settings,
    .profile-settings-close,
    .profile-settings-icon-action,
    .identity-avatar-select,
    .identity-profile-edit,
    .identity-profile-cancel,
    .auth-gate-secondary,
    .button,
    .favorite-btn,
    .identity-option,
    .intake-type-option,
    .mcp-option,
    .mcp-auth-option,
    .mcp-approval-option,
    .identity-session-logout,
    .skill-detail-link,
    .workflow-source-link
  ) {
    transition-duration: 0.01ms !important;
  }
}

/* theme-controls-v120.css */
/* Hux Studio theme controls v120: shadcn-like neutrals with Hux red interaction states. */

:root {
  --hux-theme-rest-surface: #18181a;
  --hux-theme-rest-border: #3f3f43;
  --hux-theme-rest-icon: #e4e4e7;
  --hux-favorite-rest-surface: #111113;
  --hux-favorite-rest-border: #3f3f43;
  --hux-favorite-rest-icon: #d4d4d8;
  --hux-control-shadow: 0 1px 2px rgb(0 0 0 / 18%);
}

html[data-theme="light"] {
  --background: #f5f5f6;
  --foreground: #18181b;
  --card: #ffffff;
  --card-foreground: #18181b;
  --secondary: #f4f4f5;
  --secondary-foreground: #27272a;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --border: #dedee2;
  --border-strong: #d4d4d8;
  --brand: #df3f43;
  --brand-strong: #c93035;
  --ring: #df3f43;
  --hux-theme-rest-surface: #f4f4f5;
  --hux-theme-rest-border: #d4d4d8;
  --hux-theme-rest-icon: #27272a;
  --hux-favorite-rest-surface: #ffffff;
  --hux-favorite-rest-border: #d4d4d8;
  --hux-favorite-rest-icon: #52525b;
  --hux-control-shadow: 0 1px 2px rgb(0 0 0 / 6%);
}

.theme-toggle {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.theme-toggle-icon {
  --ui-icon: url("./assets/icons/untitledui/sun.svg");
  position: relative;
  z-index: 1;
  width: 18px !important;
  height: 18px !important;
  color: var(--hux-theme-rest-icon);
}

html[data-theme="light"] .theme-toggle-icon {
  --ui-icon: url("./assets/icons/untitledui/moon-01.svg");
}

html[data-theme] .topbar > .sidebar-footer > .theme-toggle.theme-toggle-global {
  width: 64px;
  min-width: 64px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--border);
  background: transparent !important;
  color: var(--hux-theme-rest-icon);
  box-shadow: none !important;
}

html[data-theme] .topbar > .sidebar-footer > .theme-toggle.theme-toggle-global::before {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hux-theme-rest-border);
  background: var(--hux-theme-rest-surface);
  box-shadow: var(--hux-control-shadow);
  content: "";
  transform: translate(-50%, -50%);
  transition:
    border-color 140ms ease,
    background-color 140ms cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 140ms ease;
}

html[data-theme] .topbar > .sidebar-footer > .theme-toggle.theme-toggle-global:is(:hover, :focus-visible) {
  border-left-color: var(--border) !important;
  background: transparent !important;
  color: var(--hux-interactive-inverse-text) !important;
  box-shadow: none !important;
}

html[data-theme] .topbar > .sidebar-footer > .theme-toggle.theme-toggle-global:is(:hover, :focus-visible)::before {
  border-color: var(--hux-interactive-border);
  background: var(--hux-interactive-inverse-surface);
  box-shadow: none;
}

html[data-theme] .topbar > .sidebar-footer > .theme-toggle.theme-toggle-global:is(:hover, :focus-visible) .theme-toggle-icon {
  color: var(--hux-interactive-inverse-text) !important;
}

html[data-theme] .auth-gate .theme-toggle.auth-gate-theme-toggle,
html[data-theme] .workspace-actions > .theme-toggle.theme-toggle-mobile {
  border-color: var(--hux-theme-rest-border) !important;
  background: var(--hux-theme-rest-surface) !important;
  color: var(--hux-theme-rest-icon) !important;
  box-shadow: var(--hux-control-shadow) !important;
}

html[data-theme] .auth-gate .theme-toggle.auth-gate-theme-toggle:is(:hover, :focus-visible),
html[data-theme] .workspace-actions > .theme-toggle.theme-toggle-mobile:is(:hover, :focus-visible) {
  border-color: var(--hux-interactive-border) !important;
  background: var(--hux-interactive-inverse-surface) !important;
  color: var(--hux-interactive-inverse-text) !important;
  box-shadow: none !important;
}

html[data-theme] .auth-gate .theme-toggle.auth-gate-theme-toggle:is(:hover, :focus-visible) :is(.theme-toggle-icon, [data-theme-label]),
html[data-theme] .workspace-actions > .theme-toggle.theme-toggle-mobile:is(:hover, :focus-visible) :is(.theme-toggle-icon, [data-theme-label]) {
  color: var(--hux-interactive-inverse-text) !important;
}

/* Card hover alone keeps the favorite control at rest. */
#asset-grid .skill-card > .favorite-btn:not(.active):not([aria-pressed="true"]),
#asset-grid .skill-card:hover > .favorite-btn:not(.active):not([aria-pressed="true"]),
#asset-grid .skill-card:focus-within > .favorite-btn:not(.active):not([aria-pressed="true"]) {
  border: 1px solid var(--hux-favorite-rest-border) !important;
  background: var(--hux-favorite-rest-surface) !important;
  color: var(--hux-favorite-rest-icon) !important;
  box-shadow: var(--hux-control-shadow) !important;
  transform: none !important;
}

/* Direct hover makes the action explicit; selection is communicated by the filled star. */
#asset-grid .skill-card > .favorite-btn:not(.active):not([aria-pressed="true"]):is(:hover, :focus-visible) {
  border-color: var(--hux-interactive-border) !important;
  background: var(--hux-interactive-inverse-surface) !important;
  color: var(--hux-interactive-inverse-text) !important;
  box-shadow: none !important;
}

#asset-grid .skill-card > .favorite-btn:not(.active):not([aria-pressed="true"]):is(:hover, :focus-visible) .ui-icon {
  color: var(--hux-interactive-inverse-text) !important;
  transform: none !important;
}

#asset-grid .skill-card > .favorite-btn.active,
#asset-grid .skill-card > .favorite-btn[aria-pressed="true"] {
  border-color: var(--brand) !important;
  background: var(--brand) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgb(223 63 67 / 20%) !important;
}

#asset-grid .skill-card > .favorite-btn.active:is(:hover, :focus-visible),
#asset-grid .skill-card > .favorite-btn[aria-pressed="true"]:is(:hover, :focus-visible) {
  border-color: var(--brand-strong) !important;
  background: var(--brand-strong) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgb(201 48 53 / 22%) !important;
}

#asset-grid .skill-card > .favorite-btn.active .ui-icon,
#asset-grid .skill-card > .favorite-btn[aria-pressed="true"] .ui-icon {
  color: #ffffff !important;
  transform: none !important;
}

@media (max-width: 1020px) and (min-width: 721px) {
  html[data-theme] .topbar > .sidebar-footer > .theme-toggle.theme-toggle-global {
    width: 58px;
    min-width: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme] .topbar > .sidebar-footer > .theme-toggle.theme-toggle-global::before,
  .theme-toggle-icon,
  #asset-grid .skill-card > .favorite-btn {
    transition-duration: 0.01ms !important;
  }
}

/* header-refinement-v121.css */
/* Compact, shared geometry for the global navigation and asset view toolbar. */
:root {
  --nav-height: 64px;
  --subnav-height: 48px;
}

.topbar {
  margin: 0;
  grid-template-columns: 240px minmax(0, 1fr) 276px;
  grid-template-rows: var(--nav-height);
}

.topbar .brand {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding-inline: 24px;
}

.topbar .brand-mark {
  width: 40px;
  height: 40px;
}

.topbar .brand-mark::before,
.topbar .brand-mark::after {
  inset-block: 5px;
  width: 19px;
}

.topbar .brand-mark::before { left: 2px; }
.topbar .brand-mark::after { right: 1px; left: auto; }
.topbar .brand-copy { gap: 2px; }
.topbar .brand-name { font-size: 17px; line-height: 22px; letter-spacing: 0; }
.topbar .product-name { font-size: 10px; line-height: 14px; letter-spacing: 0.08em; }

.topbar .nav-link {
  min-width: 104px;
  padding-inline: 20px;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.topbar .nav-link::after { right: 20px; bottom: 0; left: 20px; }
.topbar .nav-count { font-size: 11px; }
.topbar .nav-count[data-stat="totalSkills"] { min-width: 24px; }

html[data-theme] .topbar > .sidebar-footer {
  width: auto;
  min-width: 0;
  align-items: center;
  gap: 0;
}

html[data-theme] .topbar > .sidebar-footer > .theme-toggle.theme-toggle-global {
  width: 56px;
  min-width: 56px;
  height: var(--nav-height);
}

html[data-theme] .topbar > .sidebar-footer > .theme-toggle.theme-toggle-global::before {
  box-shadow: none;
}

.topbar .user-menu {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  min-width: 0;
  height: var(--nav-height);
  padding-inline: 14px 16px;
  gap: 10px;
  text-align: left;
}

.topbar .user-menu .avatar { width: 32px; height: 32px; font-size: 12px; }
.topbar .user-copy { display: grid; min-width: 0; gap: 2px; }
.topbar .user-copy strong { font-size: 13px; line-height: 18px; }
.topbar .user-copy small { font-size: 11px; line-height: 16px; letter-spacing: 0; }
.topbar .user-menu > .ui-icon { width: 14px; height: 14px; }

.workspace .workspace-header {
  min-height: var(--subnav-height);
  height: var(--subnav-height);
  padding-inline: 32px;
}

.workspace .workspace-title h1 {
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.workspace .view-switch > .view-tab {
  height: var(--subnav-height);
  min-height: var(--subnav-height);
  gap: 7px;
  padding-inline: 18px;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
}

.workspace .view-tab::after { right: 18px; bottom: 0; left: 18px; }
.workspace .view-tab > .ui-icon { width: 16px; height: 16px; }
.workspace .view-tab .view-count { font-size: 11px; line-height: 16px; }

.workspace .workspace-actions .upload-button {
  height: 34px;
  min-height: 34px;
  padding-inline: 12px;
  gap: 6px;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0;
}

.workspace .upload-button > .ui-icon { width: 16px; height: 16px; }
.workspace.page-assets .workspace-content { padding-top: 32px; }

/* Keep inversion legible and borders continuous, without large hover shadows. */
html[data-theme] .topbar .nav-link:is(:hover, :focus-visible),
html[data-theme] .topbar .user-menu:is(:hover, :focus-visible),
html[data-theme] .workspace .view-switch > .view-tab:is(:hover, :focus-visible) {
  border-color: var(--border) !important;
  box-shadow: none !important;
}

html[data-theme] .topbar .nav-link:not(.active):is(:hover, :focus-visible) .nav-count,
html[data-theme] .topbar .nav-link:not(.active):is(:hover, :focus-visible) .nav-count::before,
html[data-theme] .workspace .view-tab:not(.active):is(:hover, :focus-visible) .view-count {
  color: var(--hux-interactive-inverse-text) !important;
}

html[data-theme] .workspace .workspace-actions .upload-button:is(:hover, :focus-visible),
html[data-theme] .workspace .workspace-actions .upload-button:is(:hover, :focus-visible) .ui-icon {
  color: var(--hux-interactive-inverse-text) !important;
}

@media (max-width: 1100px) and (min-width: 721px) {
  .topbar { grid-template-columns: 210px minmax(0, 1fr) 108px; }
  html[data-theme] .topbar .user-menu {
    display: grid;
    grid-template-columns: 1fr;
    width: 52px;
    padding: 0;
    place-items: center;
  }
  .topbar .user-copy,
  .topbar .user-menu > .ui-icon { display: none; }
  .workspace.page-assets .workspace-title { display: none; }
  .workspace.page-assets .workspace-header { grid-template-columns: minmax(0, 1fr) auto; }
  .workspace.page-assets .view-switch { justify-self: start; }
  .workspace.page-assets .workspace-actions { grid-column: 2; }
}

@media (max-width: 720px) {
  :root { --nav-height: 56px; --subnav-height: 48px; }
  body { min-width: 0; }
  .topbar { grid-template-columns: 130px minmax(0, 1fr) 44px; }
  .topbar .brand { grid-template-columns: 28px minmax(0, 1fr); gap: 6px; padding-inline: 10px; }
  .topbar .brand-mark { width: 28px; height: 28px; }
  .topbar .brand-mark::before,
  .topbar .brand-mark::after { inset-block: 4px; width: 13px; }
  .topbar .brand-mark::before { left: 1px; }
  .topbar .brand-mark::after { right: 0; }
  .topbar .brand-name { font-size: 12px; line-height: 18px; }
  .topbar .nav-link { min-width: 50%; padding-inline: 8px; gap: 5px; font-size: 12px; }
  .topbar .nav-link::after { right: 12px; left: 12px; }
  .topbar .nav-count[data-stat="totalSkills"] { min-width: 20px; font-size: 10px; }
  .topbar .user-menu { width: 44px; padding: 0; grid-template-columns: 1fr; place-items: center; }
  .topbar .user-menu .avatar { width: 28px; height: 28px; }
  .topbar .user-copy,
  .topbar .user-menu > .ui-icon { display: none; }
  .workspace .workspace-header { padding-inline: 12px; }
  .workspace .view-switch { min-width: 0; }
  .workspace .view-switch > .view-tab { min-width: 0; gap: 4px; padding-inline: 6px; font-size: 12px; }
  .workspace .view-tab > .ui-icon { display: none; }
  .workspace .view-tab::after { left: 9px; right: 9px; }
  .workspace .workspace-actions { gap: 6px; }
  .workspace .workspace-actions .upload-button { width: 34px; padding: 0; justify-content: center; }
  .workspace .upload-button-label { display: none; }
  .workspace.page-assets .workspace-content { padding-top: 20px; }
}

/* home-refinement-v122.css */
/* Home-only rhythm and theme corrections. Asset-library interactions stay unchanged. */
#dashboard-view {
  --home-surface: #111112;
  --home-soft: #19191b;
  --home-hover: #202023;
  --home-border: #303034;
  --home-text: #f3f3f4;
  --home-secondary: #b0b0b8;
  --home-track: #303034;
  --home-grid: rgb(255 255 255 / 5%);
  gap: 20px;
}
html[data-theme="light"] #dashboard-view {
  --home-surface: #ffffff;
  --home-soft: #fafafa;
  --home-hover: #f4f4f5;
  --home-border: #e4e4e7;
  --home-text: #202023;
  --home-secondary: #66666e;
  --home-track: #eaeaed;
  --home-grid: rgb(24 24 27 / 3.5%);
}
.workspace.page-home .workspace-content { padding-top: 28px; padding-bottom: 40px; }

#dashboard-view :is(.agent-copy-launcher-home, .dashboard-command-board) {
  border: 1px solid var(--home-border);
  background: var(--home-surface);
  box-shadow: none;
}
#dashboard-view .agent-copy-launcher-home {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 254px;
  background: linear-gradient(110deg, rgb(223 63 67 / 5%), transparent 45%), var(--home-surface);
}
#dashboard-view .agent-connect-copy { padding: 28px 32px; min-width: 0; border: 0; }
#dashboard-view .agent-connect-copy::after {
  top: 24px; bottom: 24px; right: 0; left: auto; width: 1px; height: auto;
  background: var(--home-border);
}
#dashboard-view :is(.section-kicker, .agent-bridge-kicker) {
  font-size: 11px; line-height: 16px; letter-spacing: .13em;
  color: var(--brand);
}
#dashboard-view .agent-connect-copy h3 {
  margin: 12px 0 0;
  color: var(--home-text);
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.3; letter-spacing: -.025em;
  white-space: normal; max-width: none;
}
#dashboard-view .agent-connect-copy p {
  margin: 12px 0 0; max-width: 36em;
  font-size: 15px; line-height: 1.7;
  color: var(--home-secondary);
}
#dashboard-view .agent-connect-actions { margin-top: 22px; }
#dashboard-view .agent-copy-pill {
  min-height: 48px;
  padding: 5px 6px 5px 14px;
  grid-template-columns: auto minmax(0, 1fr) 32px;
  gap: 10px;
  background: var(--home-soft);
  color: var(--home-text);
  border-color: var(--home-border);
  box-shadow: none;
}
#dashboard-view .agent-copy-label { font-size: 15px; color: inherit; }
#dashboard-view .agent-copy-status {
  width: 32px; height: 30px;
  border-color: var(--home-border);
  color: inherit;
}
#dashboard-view .agent-copy-status .ui-icon { width: 17px; height: 17px; }
#dashboard-view .agent-copy-status img { filter: brightness(0) invert(.8); }
html[data-theme="light"] #dashboard-view .agent-copy-status img { filter: brightness(0) opacity(.65); }
#dashboard-view .agent-copy-pill:is(:hover, :focus-visible) .agent-copy-status img { filter: brightness(0) invert(1); }
html[data-theme="light"] #dashboard-view .agent-copy-pill:is(:hover, :focus-visible) .agent-copy-status img { filter: brightness(0) opacity(.8); }
#dashboard-view .agent-copy-pill:is(:hover, :focus-visible) .agent-copy-status {
  border-color: var(--home-border);
}
#dashboard-view .agent-copy-launcher-home.copied .agent-copy-pill {
  background: var(--home-hover); color: var(--home-text); border-color: var(--brand);
}
#dashboard-view .agent-signal-field {
  padding: 20px 26px 14px;
  min-height: 0;
  background:
    linear-gradient(var(--home-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgb(223 63 67 / 7%), transparent 45%);
  background-size: 32px 32px, 32px 32px, auto;
}
#dashboard-view .agent-signal-field > header { color: var(--home-secondary); font-size: 10px; }
#dashboard-view .agent-signal-map { min-height: 182px; }
#dashboard-view :is(.agent-signal-core, .asset-layer, .agent-signal-source .agent-client-strip) {
  background: var(--home-soft);
  color: var(--home-text);
  border-color: var(--home-border);
}
#dashboard-view .agent-signal-core {
  width: 96px; height: 96px;
  border-color: rgb(223 63 67 / 45%);
}
#dashboard-view .agent-signal-core strong { color: var(--home-text); font-size: 13px; }
#dashboard-view :is(.agent-signal-source > span, .agent-signal-assets > strong) {
  color: var(--home-secondary); font-size: 12px;
}
#dashboard-view .asset-layer-front .ui-icon { background-color: var(--home-text); }

#dashboard-view .dashboard-heading {
  padding: 26px 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 24px;
  background: var(--home-surface);
}
#dashboard-view .dashboard-heading-copy { gap: 8px; }
#dashboard-view .dashboard-heading h2 {
  font-size: 30px; line-height: 1.3; letter-spacing: -.025em;
  color: var(--home-text);
}
#dashboard-view .dashboard-heading p {
  font-size: 15px; line-height: 1.6; color: var(--home-secondary);
}
#dashboard-view .dashboard-heading-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
#dashboard-view .dashboard-data-status {
  display: flex; gap: 8px; min-height: 20px; padding: 0; border: 0; background: none;
  font-size: 12px; color: var(--home-secondary);
}
#dashboard-view .dashboard-data-status time { font-size: 12px; color: var(--home-secondary); }
#dashboard-view .dashboard-data-status > i { display: none; }
#dashboard-view .dashboard-asset-link {
  min-height: 38px; padding: 0 14px; gap: 12px;
  font-size: 13px; line-height: 20px;
  border: 1px solid var(--home-border);
  background: var(--home-soft); color: var(--home-text);
}
#dashboard-view .dashboard-asset-link .ui-icon { width: 16px; height: 16px; color: inherit; }
#dashboard-view .dashboard-asset-link:is(:hover, :focus-visible) {
  background: var(--hux-interactive-inverse-surface); color: var(--home-text); border-color: var(--home-border);
  transform: none; box-shadow: none;
}
#dashboard-view .dashboard-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-inline: 0; border-color: var(--home-border); background: var(--home-surface);
}
#dashboard-view .dashboard-metrics article.metric-card {
  min-height: 134px; padding: 22px 28px;
  border: 0; border-right: 1px solid var(--home-border);
  background: var(--home-surface); box-shadow: none;
}
#dashboard-view .dashboard-metrics article.metric-card:last-child { border-right: 0; }
#dashboard-view .metric-card::before { display: none; }
#dashboard-view .metric-sequence { display: none; }
#dashboard-view .metric-label { font-size: 14px; line-height: 20px; color: var(--home-secondary); }
#dashboard-view .metric-value { margin-top: 16px; gap: 8px; }
#dashboard-view .metric-value strong { font-size: 40px; line-height: 1; color: var(--home-text); }
#dashboard-view .metric-value em { font-size: 13px; color: var(--home-secondary); }
#dashboard-view .dashboard-metrics article.metric-card:hover { background: var(--home-soft); }

#dashboard-view :is(.activity-card, .activity-trend-pane, .activity-category-pane) {
  background: var(--home-surface); box-shadow: none; border-color: var(--home-border);
}
#dashboard-view .dashboard-insight-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
#dashboard-view :is(.activity-card-header, .category-pane-header) {
  height: 100px; min-height: 100px; padding: 22px 28px;
  border-bottom: 1px solid var(--home-border); align-items: center; gap: 16px;
}
#dashboard-view :is(.activity-card-header h3, .category-pane-header h3) {
  font-size: 22px; line-height: 30px; margin-top: 6px; color: var(--home-text);
}
#dashboard-view .activity-card-meta { flex-direction: column; align-items: flex-end; gap: 6px; }
#dashboard-view :is(.activity-legend, .activity-card-meta small, .category-pane-header .panel-note) {
  font-size: 12px; line-height: 18px; color: var(--home-secondary);
}
#dashboard-view .category-pane-header .panel-note strong { font-size: 20px; color: var(--home-text); }
#dashboard-view .activity-visual { padding: 6px 8px 0; }
#dashboard-view .activity-chart { height: 284px; min-height: 0; }
#dashboard-view .activity-grid-line { stroke: var(--home-border); }
#dashboard-view .activity-baseline { stroke: var(--home-border); }
#dashboard-view .activity-column {
  fill: var(--brand); opacity: .68;
  /* Only the entrance transform is staggered. Inspection is immediate. */
  transition: opacity 80ms ease-out, fill 80ms ease-out,
    transform 520ms var(--v43-ease) calc(90ms + var(--activity-index) * 55ms);
}
#dashboard-view .activity-column.is-zero { fill: var(--home-track); opacity: 1; }
#dashboard-view .activity-period.is-active .activity-column { fill: var(--brand); opacity: 1; }
#dashboard-view :is(.activity-value-label, .activity-label) { fill: var(--home-secondary); opacity: 1; }
#dashboard-view .activity-period.is-active :is(.activity-value-label, .activity-label) { fill: var(--home-text); }
#dashboard-view .activity-category-pane .category-bars { padding: 0 28px; }
#dashboard-view .category-row {
  grid-template-columns: 22px minmax(84px, auto) minmax(36px, 1fr) 62px;
  gap: 12px; padding: 18px 0; min-height: 76px;
  border-color: var(--home-border);
  background: transparent; box-shadow: none;
}
#dashboard-view .category-row:is(:hover, :focus-visible) { background: var(--home-hover); border-color: var(--home-border); }
#dashboard-view .category-rank { font-size: 11px; color: var(--home-secondary); }
#dashboard-view .category-row-label strong { font-size: 14px; color: var(--home-text); }
#dashboard-view .category-row-label .ui-icon { width: 18px; height: 18px; background-color: var(--home-secondary); }
#dashboard-view .category-track { height: 7px; background: var(--home-track); }
#dashboard-view .category-track i { background: var(--brand); }
#dashboard-view .category-stat { gap: 6px; }
#dashboard-view .category-stat strong { font-size: 22px; color: var(--home-text); }
#dashboard-view .category-stat small { font-size: 12px; color: var(--home-secondary); }
#dashboard-view .category-empty {
  display: grid; align-content: center; justify-items: start; gap: 8px;
  min-height: 180px; padding: 28px; color: var(--home-secondary); font-size: 14px; line-height: 1.6;
}
#dashboard-view .category-empty strong { color: var(--home-text); font-size: 16px; }

/* The chart tooltip is portaled to body; resolve its theme independently. */
html[data-theme] [data-hux-activity-tooltip] {
  border: 1px solid #414147; border-radius: 6px;
  background: #202023; color: #f3f3f4;
  box-shadow: 0 6px 18px rgb(0 0 0 / 16%);
  transform: none;
  backdrop-filter: none;
  transition: opacity 60ms ease-out;
}
html[data-theme="light"] [data-hux-activity-tooltip] {
  background: #ffffff; color: #202023; border-color: #e4e4e7;
  box-shadow: 0 6px 18px rgb(0 0 0 / 10%);
}
html[data-theme] [data-hux-activity-tooltip] strong { color: inherit; font-size: 13px; }
html[data-theme] [data-hux-activity-tooltip] span > em { color: inherit; font-size: 13px; }
html[data-theme] [data-hux-activity-tooltip] span > b { color: var(--brand); font-size: 22px; }

@media (prefers-reduced-motion: reduce) {
  #dashboard-view .activity-column,
  html[data-theme] [data-hux-activity-tooltip] { transition: none; }
}

@media (max-width: 1100px) {
  #dashboard-view .agent-copy-launcher-home { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  #dashboard-view .agent-connect-copy { padding: 24px; }
  #dashboard-view .agent-signal-field { padding-inline: 14px; }
  #dashboard-view .agent-signal-source .agent-client-strip { grid-template-columns: repeat(3, 24px); }
  #dashboard-view .agent-signal-source .agent-client-mark { width: 24px; }
  #dashboard-view .agent-signal-assets { left: 85%; }
  #dashboard-view .agent-signal-core { width: 80px; height: 80px; }
  #dashboard-view .dashboard-insight-grid { grid-template-columns: 1fr; }
  #dashboard-view .activity-trend-pane { border-right: 0; border-bottom: 1px solid var(--home-border); }
  #dashboard-view .category-overview { min-height: 0; }
  #dashboard-view .category-row { min-height: 70px; }
}
@media (max-width: 720px) {
  .workspace.page-home .workspace-content { padding-top: 18px; padding-bottom: 24px; }
  #dashboard-view { gap: 16px; }
  #dashboard-view .agent-copy-launcher-home { grid-template-columns: 1fr; }
  #dashboard-view .agent-connect-copy { padding: 24px 20px; }
  #dashboard-view .agent-connect-copy::after { display: none; }
  #dashboard-view .agent-connect-copy h3 { font-size: 27px; line-height: 1.3; }
  #dashboard-view .agent-connect-copy p { font-size: 14px; }
  #dashboard-view .agent-copy-pill { width: fit-content; max-width: 100%; gap: 8px; padding-left: 10px; }
  #dashboard-view .agent-copy-label { font-size: 13px; }
  #dashboard-view .agent-signal-field { border-top: 1px solid var(--home-border); padding: 14px 20px 8px; }
  #dashboard-view .agent-signal-map { min-height: 156px; }
  #dashboard-view .agent-signal-source > span, #dashboard-view .agent-signal-assets > strong { font-size: 11px; }
  #dashboard-view .dashboard-heading { grid-template-columns: 1fr; padding: 22px 20px; gap: 18px; }
  #dashboard-view .dashboard-heading h2 { font-size: 26px; }
  #dashboard-view .dashboard-heading p { font-size: 14px; }
  #dashboard-view .dashboard-heading-actions { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  #dashboard-view .dashboard-data-status { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
  #dashboard-view .dashboard-asset-link { width: auto; flex-shrink: 0; }
  #dashboard-view .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dashboard-view .dashboard-metrics article.metric-card { min-height: 120px; padding: 20px; }
  #dashboard-view .dashboard-metrics article.metric-card:nth-child(2) { border-right: 0; }
  #dashboard-view .dashboard-metrics article.metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--home-border); }
  #dashboard-view .metric-value strong { font-size: 34px; }
  #dashboard-view .metric-label { font-size: 13px; }
  #dashboard-view :is(.activity-card-header, .category-pane-header) { padding: 20px; height: auto; min-height: 94px; }
  #dashboard-view .activity-card-header { grid-template-columns: 1fr; gap: 12px; }
  #dashboard-view .activity-card-meta { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  #dashboard-view :is(.activity-card-header h3, .category-pane-header h3) { font-size: 21px; }
  #dashboard-view .activity-chart { height: 250px; }
  #dashboard-view .activity-category-pane .category-bars { padding: 0 20px; }
  #dashboard-view .category-row { grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 10px; }
  #dashboard-view .category-rank { grid-column: 1; grid-row: 1; }
  #dashboard-view .category-row-label { grid-column: 2; grid-row: 1; }
  #dashboard-view .category-stat { grid-column: 3; grid-row: 1; }
  #dashboard-view .category-track { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 360px) {
  #dashboard-view .agent-copy-pill { grid-template-columns: minmax(0, 1fr) 30px; }
  #dashboard-view .agent-copy-pill > .agent-client-strip { display: none; }
  #dashboard-view .agent-signal-source { left: 13%; }
  #dashboard-view .agent-signal-assets { left: 88%; }
  #dashboard-view .agent-signal-core { width: 70px; height: 70px; }
}

/* cover-performance-v126.css */
/* Hux cover pipeline v126: stable 16:9 media, responsive derivatives and calm loading. */

:root {
  --hux-cover-placeholder-a: #171719;
  --hux-cover-placeholder-b: #222225;
}

html[data-theme="light"] {
  --hux-cover-placeholder-a: #eeeef0;
  --hux-cover-placeholder-b: #f8f8f9;
}

/* Keep image cards flat in every theme and interaction state. */
.asset-card,
.asset-card:hover,
.asset-card:focus-visible,
.asset-card:focus-within {
  box-shadow: none !important;
}

.asset-cover-media {
  inset: 0 auto auto 0 !important;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  background: var(--hux-cover-placeholder-a);
  contain: layout paint;
}

/* Published card media is shown without decorative tint, texture or scrim. */
.skill-card-noise,
.skill-media-scrim,
.asset-cover-media::after {
  display: none !important;
}

#asset-grid .asset-card,
#asset-grid .skill-card-visual,
#asset-grid .skill-display,
#asset-grid .skill-card-body {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Keep every card stable: reserve only the compact resting body and let longer content grow over media. */
#asset-grid .asset-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 104px;
  align-content: start;
  height: auto;
  min-height: 0;
  padding-top: 0;
  aspect-ratio: auto;
}

#asset-grid .skill-card-visual {
  position: relative;
  inset: auto;
  grid-row: 1;
  height: auto;
  aspect-ratio: 16 / 9;
}

#asset-grid .skill-display {
  position: absolute;
  inset: 0;
}

#asset-grid .skill-card-body,
#asset-grid .asset-card:hover .skill-card-body,
#asset-grid .asset-card:focus-visible .skill-card-body,
#asset-grid .asset-card:focus-within .skill-card-body {
  position: absolute;
  inset: auto 0 0;
  grid-row: 2;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 8px;
  min-height: 104px;
  padding: 14px 16px 12px;
}

#asset-grid .skill-info-group {
  gap: 0;
}

#asset-grid .skill-footer,
#asset-grid .asset-card:hover .skill-footer,
#asset-grid .asset-card:focus-visible .skill-footer,
#asset-grid .asset-card:focus-within .skill-footer,
#asset-grid .asset-card:focus-within:not(:hover) .skill-footer {
  min-height: 40px;
  padding-top: 8px;
}

.asset-cover-media::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    100deg,
    var(--hux-cover-placeholder-a) 22%,
    var(--hux-cover-placeholder-b) 46%,
    var(--hux-cover-placeholder-a) 70%
  );
  background-size: 220% 100%;
  content: "";
  opacity: 1;
  animation: hux-cover-loading 1.1s linear infinite;
  transition: opacity 140ms ease-out;
}

.asset-cover-media.is-loaded::before {
  opacity: 0;
  animation: none;
}

.asset-cover-media .asset-cover-preview,
.asset-card:hover .asset-cover-media .asset-cover-preview,
.asset-card:focus-visible .asset-cover-media .asset-cover-preview,
.asset-card:focus-within .asset-cover-media .asset-cover-preview,
.asset-card:focus-within:not(:hover) .asset-cover-media .asset-cover-preview {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  filter: none;
  mix-blend-mode: normal;
  opacity: 0;
}

.asset-cover-media.is-loaded .asset-cover-preview,
.asset-card:hover .asset-cover-media.is-loaded .asset-cover-preview,
.asset-card:focus-visible .asset-cover-media.is-loaded .asset-cover-preview,
.asset-card:focus-within .asset-cover-media.is-loaded .asset-cover-preview {
  opacity: 1;
}

.asset-cover-media.top .asset-cover-preview,
.asset-card:hover .asset-cover-media.top .asset-cover-preview,
.asset-card:focus-visible .asset-cover-media.top .asset-cover-preview,
.asset-card:focus-within .asset-cover-media.top .asset-cover-preview,
.asset-card:focus-within:not(:hover) .asset-cover-media.top .asset-cover-preview {
  object-position: center top;
}

@keyframes hux-cover-loading {
  to { background-position: -220% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .asset-cover-media::before {
    animation: none;
  }
}

/* control-system-v132.css */
/* Hux Studio control system v132: one compact geometry for card and theme actions. */

:root {
  --hux-control-height: 36px;
  --hux-control-icon-box: 36px;
  --hux-control-icon-size: 18px;
  --hux-control-padding-inline: 12px;
  --hux-control-gap: 8px;
  --hux-control-inset: 12px;
}

/* Square icon actions share the same visible box and icon canvas. */
#asset-grid .skill-card > .favorite-btn,
#asset-grid .skill-card:hover > .favorite-btn,
#asset-grid .skill-card:focus-visible > .favorite-btn,
#asset-grid .skill-card:focus-within > .favorite-btn,
#asset-grid .skill-card:focus-within:not(:hover) > .favorite-btn {
  inset: auto var(--hux-control-inset) var(--hux-control-inset) auto;
  width: var(--hux-control-icon-box);
  min-width: var(--hux-control-icon-box);
  height: var(--hux-control-icon-box);
  min-height: var(--hux-control-icon-box);
  padding: 0;
  box-sizing: border-box;
}

#asset-grid .skill-card > .favorite-btn :is(.ui-icon, .icon),
.theme-toggle .theme-toggle-icon {
  width: var(--hux-control-icon-size) !important;
  height: var(--hux-control-icon-size) !important;
}

/* Text controls keep their natural width while sharing the 36px control height. */
#asset-grid .card-category-tag {
  width: auto;
  height: var(--hux-control-height);
  min-height: var(--hux-control-height);
  padding-inline: var(--hux-control-padding-inline);
  gap: var(--hux-control-gap);
  box-sizing: border-box;
  white-space: nowrap;
}

/* The topbar keeps its structural column; the visible theme control matches card actions. */
html[data-theme] .topbar > .sidebar-footer > .theme-toggle.theme-toggle-global::before {
  width: var(--hux-control-icon-box);
  height: var(--hux-control-icon-box);
  box-sizing: border-box;
}

html[data-theme] .workspace-actions > .theme-toggle.theme-toggle-mobile {
  width: var(--hux-control-icon-box);
  min-width: var(--hux-control-icon-box);
  height: var(--hux-control-icon-box);
  min-height: var(--hux-control-icon-box);
  padding: 0;
  box-sizing: border-box;
}

/* A 36px footer control plus the shared inset fits without dead space. */
#asset-grid .asset-card {
  grid-template-rows: auto 108px;
}

#asset-grid .skill-card-body,
#asset-grid .asset-card:hover .skill-card-body,
#asset-grid .asset-card:focus-visible .skill-card-body,
#asset-grid .asset-card:focus-within .skill-card-body {
  min-height: 108px;
}

@media (prefers-reduced-motion: reduce) {
  #asset-grid .skill-card > .favorite-btn,
  .theme-toggle,
  .card-category-tag {
    transition-duration: 0.01ms !important;
  }
}

/* reference-files-search-v133.css */
/* Hux Studio v133: typed input references and an explicit search-clear control. */

/* The search row always reserves one standard icon-control column. */
#assets-view .asset-toolbar .search-wrap {
  grid-template-columns: 18px minmax(0, 1fr) var(--hux-control-icon-box, 36px);
  gap: 8px;
  padding-right: 9px;
}

#asset-search::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}

#asset-search::-ms-clear {
  display: none;
}

#assets-view .asset-toolbar .search-clear {
  display: inline-grid;
  width: var(--hux-control-icon-box, 36px);
  min-width: var(--hux-control-icon-box, 36px);
  height: var(--hux-control-icon-box, 36px);
  min-height: var(--hux-control-icon-box, 36px);
  place-items: center;
  justify-self: end;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #8f8f95;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color 90ms ease,
    background-color 90ms cubic-bezier(0.33, 1, 0.68, 1),
    color 90ms ease;
}

#assets-view .asset-toolbar .search-clear[hidden] {
  display: none !important;
}

#assets-view .asset-toolbar .search-wrap > .search-clear > .ui-icon {
  width: var(--hux-control-icon-size, 18px) !important;
  height: var(--hux-control-icon-size, 18px) !important;
  color: currentColor !important;
  transform: none !important;
}

#assets-view .asset-toolbar .search-clear:is(:hover, :focus-visible) {
  border-color: #4e4e54;
  background: #38383d;
  color: #f4f4f5;
  outline: 0;
  transform: none;
}

#assets-view .asset-toolbar .search-clear:focus-visible {
  box-shadow: 0 0 0 1px var(--brand, #ff4d4d);
}

#assets-view .asset-toolbar .search-clear:active {
  background: #414146;
}

html[data-theme="light"] #assets-view .asset-toolbar .search-clear {
  color: #68686e;
}

html[data-theme="light"] #assets-view .asset-toolbar .search-clear:is(:hover, :focus-visible) {
  border-color: #c9c9cf;
  background: #dedee2;
  color: #202023;
}

html[data-theme="light"] #assets-view .asset-toolbar .search-clear:active {
  background: #d4d4d9;
}

/* Input images are direct previews; filenames remain available to assistive tech only. */
.skill-detail-resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
  width: 100%;
}

.skill-detail-resource.is-image {
  position: relative;
  display: block;
  grid-column: 1 / -1;
  min-height: 0;
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  border: 1px solid #2d2d31;
  background: #111113;
  color: #8f8f95;
  box-sizing: border-box;
}

@media (min-width: 761px) {
  .skill-detail-row.has-resources > .skill-detail-label {
    align-items: flex-start;
  }
}

.skill-detail-resource.is-image > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
  opacity: 0;
  transition: opacity 120ms ease;
}

.skill-detail-resource.is-image.is-loaded > img {
  opacity: 1;
}

.skill-detail-resource-image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 0 !important;
  color: #77777d;
  transition: opacity 120ms ease;
}

.skill-detail-resource-image-fallback > .ui-icon {
  width: 24px;
  height: 24px;
}

.skill-detail-resource-image-fallback > small {
  color: inherit;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.skill-detail-resource.is-image.is-loaded > .skill-detail-resource-image-fallback {
  opacity: 0;
}

.skill-detail-resource.is-image > .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0 !important;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skill-detail-resource.is-image:is(:hover, :focus-visible) {
  border-color: #55555b;
  background: #171719;
  color: #b8b8bd;
  outline: 0;
  transform: none;
}

/* Other attachment types use a file row with a semantic library icon. */
.skill-detail-resource.is-file {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid #303034;
  background: #111113;
  color: #dedee1;
  box-sizing: border-box;
  transition:
    border-color 90ms ease,
    background-color 90ms cubic-bezier(0.33, 1, 0.68, 1),
    color 90ms ease;
}

.skill-detail-resource-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid #35353a;
  background: #18181b;
  color: #b7b7bd;
  box-sizing: border-box;
}

.skill-detail-resource-icon > .ui-icon {
  width: 23px;
  height: 23px;
}

.skill-detail-resource-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.skill-detail-resource-copy > strong {
  overflow: hidden;
  color: #ededee;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-detail-resource-copy > small {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #85858b;
  font-size: 11px;
  line-height: 1;
}

.skill-detail-resource-copy b {
  color: var(--brand, #ff4d4d);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.06em;
}

.skill-detail-resource.is-file > .ui-icon {
  width: 16px;
  height: 16px;
  color: #77777d;
}

.skill-detail-resource.is-file:is(:hover, :focus-visible) {
  border-color: #505056;
  background: #19191c;
  color: #f4f4f5;
  outline: 0;
  transform: none;
}

.skill-detail-resource.is-file:focus-visible {
  box-shadow: inset 3px 0 0 var(--brand, #ff4d4d);
}

.skill-detail-resource.is-file:is(:hover, :focus-visible) .skill-detail-resource-icon {
  border-color: #48484e;
  background: #222226;
  color: #f0f0f2;
}

html[data-theme="light"] .skill-detail-resource.is-image {
  border-color: #dedee2;
  background: #f4f4f5;
  color: #6f6f75;
}

html[data-theme="light"] .skill-detail-resource.is-image:is(:hover, :focus-visible) {
  border-color: #c7c7cc;
  background: #eeeeef;
  color: #444449;
}

html[data-theme="light"] .skill-detail-resource.is-file {
  border-color: #dedee2;
  background: #fafafa;
  color: #3f3f46;
}

html[data-theme="light"] .skill-detail-resource-icon {
  border-color: #dedee2;
  background: #f1f1f3;
  color: #5f5f66;
}

html[data-theme="light"] .skill-detail-resource-copy > strong {
  color: #252528;
}

html[data-theme="light"] .skill-detail-resource-copy > small {
  color: #717178;
}

html[data-theme="light"] .skill-detail-resource.is-file > .ui-icon {
  color: #6f6f75;
}

html[data-theme="light"] .skill-detail-resource.is-file:is(:hover, :focus-visible) {
  border-color: #c9c9cf;
  background: #f0f0f2;
  color: #202023;
}

html[data-theme="light"] .skill-detail-resource.is-file:is(:hover, :focus-visible) .skill-detail-resource-icon {
  border-color: #c9c9cf;
  background: #e6e6e9;
  color: #202023;
}

@media (max-width: 760px) {
  #assets-view .asset-toolbar .search-wrap {
    grid-template-columns: 18px minmax(0, 1fr) var(--hux-control-icon-box, 36px);
  }

  .skill-detail-resources {
    grid-template-columns: minmax(0, 1fr);
  }

  .skill-detail-resource.is-file {
    grid-template-columns: 44px minmax(0, 1fr) 16px;
    min-height: 68px;
    gap: 10px;
    padding: 11px;
  }

  .skill-detail-resource-icon {
    width: 44px;
    height: 44px;
  }

  .skill-detail-resource-copy > strong {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #assets-view .asset-toolbar .search-clear,
  .skill-detail-resource,
  .skill-detail-resource.is-image > img,
  .skill-detail-resource-image-fallback {
    transition-duration: 0.01ms !important;
  }
}

/* home-category-pie-v134.css */
/* Hux home category distribution: shadcn-inspired chart hierarchy, Hux geometry. */
#dashboard-view {
  --category-tone-1: #ff5358;
  --category-tone-2: #b9333b;
  --category-tone-3: #f29a9e;
  --category-tone-4: #73737d;
}

html[data-theme="light"] #dashboard-view {
  --category-tone-1: #df3f43;
  --category-tone-2: #962e35;
  --category-tone-3: #ee8b8f;
  --category-tone-4: #52525b;
}

/* The chart header now flows directly into the visualization. */
#dashboard-view :is(.activity-card-header, .category-pane-header) {
  border-bottom: 0;
}

#dashboard-view .activity-category-pane .category-overview {
  min-height: 284px;
}

#dashboard-view .category-distribution-chart {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 284px;
  grid-template-columns: minmax(154px, 0.82fr) minmax(220px, 1.18fr);
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
  padding: 4px 28px 24px;
}

#dashboard-view .category-pie-visual {
  position: relative;
  display: grid;
  width: min(100%, 190px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
}

#dashboard-view .category-pie {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#dashboard-view :is(.category-pie-track, .category-pie-segment) {
  fill: none;
  vector-effect: non-scaling-stroke;
}

#dashboard-view .category-pie-track {
  stroke: var(--home-track);
  stroke-width: 22;
}

#dashboard-view .category-pie-segment {
  stroke: var(--category-color);
  stroke-width: 22;
  stroke-linecap: butt;
  cursor: pointer;
  outline: none;
  transition: opacity 90ms ease-out, filter 90ms ease-out, stroke-width 90ms ease-out;
}

#dashboard-view .category-pie-center {
  position: absolute;
  inset: 25%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  pointer-events: none;
  text-align: center;
}

#dashboard-view .category-pie-center strong {
  color: var(--home-text);
  font-family: var(--v43-number-font);
  font-size: clamp(28px, 2.2vw, 34px);
  font-weight: 620;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -0.025em;
  line-height: 1;
}

#dashboard-view .category-pie-center small {
  color: var(--home-secondary);
  font-size: 11px;
  line-height: 16px;
}

#dashboard-view .category-legend {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 6px;
}

#dashboard-view .category-row {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  height: auto;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 90ms ease-out, border-color 90ms ease-out, opacity 90ms ease-out;
}

#dashboard-view .category-swatch {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--category-color);
}

#dashboard-view .category-row-label {
  grid-column: 2;
  grid-row: 1;
  gap: 8px;
}

#dashboard-view .category-row-label .ui-icon {
  width: 17px;
  height: 17px;
  background-color: var(--home-secondary);
}

#dashboard-view .category-row-label strong {
  overflow: hidden;
  color: var(--home-text);
  font-size: 14px;
  font-weight: 560;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dashboard-view .category-stat {
  display: grid;
  min-width: 76px;
  grid-column: 3;
  grid-row: 1;
  grid-template-columns: minmax(30px, auto) 34px;
  align-items: baseline;
  justify-content: end;
  gap: 8px;
  text-align: right;
}

#dashboard-view .category-stat strong {
  color: var(--home-text);
  font-family: var(--v43-number-font);
  font-size: 20px;
  font-weight: 620;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

#dashboard-view .category-stat small {
  color: var(--home-secondary);
  font-family: var(--v43-number-font);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

#dashboard-view .category-tone-1 { --category-color: var(--category-tone-1); }
#dashboard-view .category-tone-2 { --category-color: var(--category-tone-2); }
#dashboard-view .category-tone-3 { --category-color: var(--category-tone-3); }
#dashboard-view .category-tone-4 { --category-color: var(--category-tone-4); }

#dashboard-view .category-row:is(:hover, :focus-visible, .is-active) {
  border-color: var(--home-border);
  background: var(--home-hover);
  box-shadow: none;
  transform: none;
}

#dashboard-view .category-row:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

#dashboard-view .category-pie-segment:is(:hover, :focus-visible, .is-active) {
  stroke-width: 26;
  filter: brightness(1.06);
}

#dashboard-view .category-distribution-chart.has-active-category :is(.category-pie-segment, .category-row) {
  opacity: 0.42;
}

#dashboard-view .category-distribution-chart.has-active-category :is(.category-pie-segment, .category-row).is-active {
  opacity: 1;
}

@media (max-width: 1100px) {
  #dashboard-view .activity-category-pane .category-overview,
  #dashboard-view .category-distribution-chart {
    min-height: 260px;
  }

  #dashboard-view .category-distribution-chart {
    grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.3fr);
  }

  #dashboard-view .category-pie-visual {
    width: min(100%, 206px);
  }
}

@media (max-width: 720px) {
  #dashboard-view :is(.activity-card-header, .category-pane-header) {
    border-bottom: 0;
  }

  #dashboard-view .activity-category-pane .category-overview,
  #dashboard-view .category-distribution-chart {
    min-height: 0;
  }

  #dashboard-view .category-distribution-chart {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 12px;
    padding: 2px 20px 20px;
  }

  #dashboard-view .category-pie-visual {
    width: 124px;
  }

  #dashboard-view .category-pie-track,
  #dashboard-view .category-pie-segment {
    stroke-width: 20;
  }

  #dashboard-view .category-pie-segment:is(:hover, :focus-visible, .is-active) {
    stroke-width: 23;
  }

  #dashboard-view .category-pie-center strong {
    font-size: 25px;
  }

  #dashboard-view .category-row {
    min-height: 48px;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 7px 8px;
  }

  #dashboard-view .category-row-label {
    gap: 6px;
  }

  #dashboard-view .category-row-label .ui-icon {
    width: 15px;
    height: 15px;
  }

  #dashboard-view .category-row-label strong {
    font-size: 13px;
  }

  #dashboard-view .category-stat {
    min-width: 62px;
    grid-template-columns: minmax(24px, auto) 30px;
    gap: 5px;
  }

  #dashboard-view .category-stat strong {
    font-size: 17px;
  }

  #dashboard-view .category-stat small {
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  #dashboard-view .category-distribution-chart {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #dashboard-view .category-pie-visual {
    width: 142px;
  }

  #dashboard-view .category-legend {
    width: 100%;
  }

  #dashboard-view .category-row {
    padding-inline: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #dashboard-view :is(.category-pie-segment, .category-row) {
    transition: none;
  }
}

/* home-chart-spacing-v135.css */
/* Compact chart rhythm derived from the shadcn chart-card spacing model. */
#dashboard-view :is(.activity-card-header, .category-pane-header) {
  height: 86px;
  min-height: 86px;
  padding: 18px 28px 8px;
  align-items: center;
}

#dashboard-view :is(.activity-card-header h3, .category-pane-header h3) {
  margin-top: 4px;
}

#dashboard-view .activity-card-meta {
  gap: 3px;
}

#dashboard-view .activity-visual {
  padding: 0 16px 12px;
}

#dashboard-view .activity-chart {
  height: 250px;
}

#dashboard-view .activity-category-pane .category-overview,
#dashboard-view .category-distribution-chart {
  min-height: 262px;
}

#dashboard-view .category-distribution-chart {
  grid-template-columns: minmax(164px, 184px) minmax(250px, 340px);
  justify-content: center;
  gap: clamp(24px, 2.4vw, 48px);
  padding: 0 28px 16px;
}

#dashboard-view .category-pie-visual {
  width: min(100%, 176px);
}

#dashboard-view .category-legend {
  width: 100%;
  max-width: 340px;
  justify-self: center;
  gap: 4px;
}

#dashboard-view .category-row {
  min-height: 50px;
  padding: 8px 10px;
}

@media (max-width: 1100px) {
  #dashboard-view .activity-category-pane .category-overview,
  #dashboard-view .category-distribution-chart {
    min-height: 246px;
  }

  #dashboard-view .category-distribution-chart {
    grid-template-columns: 176px minmax(260px, 340px);
    padding-bottom: 14px;
  }

  #dashboard-view .category-pie-visual {
    width: 176px;
  }
}

@media (max-width: 720px) {
  #dashboard-view :is(.activity-card-header, .category-pane-header) {
    height: auto;
    min-height: 0;
    padding: 16px 20px 8px;
  }

  #dashboard-view .activity-card-header {
    gap: 8px;
  }

  #dashboard-view .activity-visual {
    padding: 0 4px 10px;
  }

  #dashboard-view .activity-chart {
    height: 226px;
  }

  #dashboard-view .activity-category-pane .category-overview,
  #dashboard-view .category-distribution-chart {
    min-height: 0;
  }

  #dashboard-view .category-distribution-chart {
    grid-template-columns: 124px minmax(0, 1fr);
    padding: 0 20px 16px;
  }
}

@media (max-width: 520px) {
  #dashboard-view .category-distribution-chart {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 18px;
  }

  #dashboard-view .category-pie-visual {
    width: 136px;
  }

  #dashboard-view .category-legend {
    gap: 2px;
  }

  #dashboard-view .category-row {
    min-height: 46px;
    padding-block: 7px;
  }
}

/* asset-detail-v137.css */
/* Hux Studio v137: immediate, compact asset detail surface. */

body.asset-sheet-open {
  overflow: hidden;
}

.sheet-backdrop {
  background: rgb(4 4 5 / 66%);
  backdrop-filter: none;
  transition: opacity 140ms ease-out;
}

.sheet-backdrop:not(.open),
.asset-sheet:not(.open) {
  pointer-events: none;
}

.asset-sheet {
  width: min(720px, 100vw);
  border-left: 1px solid #2c2c30;
  background: #0b0b0d;
  box-shadow: -20px 0 56px rgb(0 0 0 / 34%);
  contain: layout paint;
  will-change: transform;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sheet-content {
  scrollbar-gutter: auto;
}

.asset-detail-shell {
  --detail-surface: #111113;
  --detail-surface-subtle: #171719;
  --detail-border: #29292d;
  --detail-border-strong: #35353a;
  --detail-text: #ededee;
  --detail-copy: #b5b5bb;
  --detail-muted: #808087;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  background: #0b0b0d;
  color: var(--detail-text);
}

.asset-detail-shell .skill-detail-hero {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 18px 24px 22px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--detail-border);
  background: #101012;
  box-shadow: none;
}

.asset-detail-shell .skill-detail-hero::after {
  display: none;
}

.skill-detail-hero-bar {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.skill-detail-hero-context {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.skill-detail-hero-bar .section-kicker {
  overflow: hidden;
  color: var(--brand, #ff4d4d);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-detail-shell .sheet-close-button,
.asset-detail-shell .sheet-close-button:is(:hover, :focus-visible) {
  position: static;
  display: inline-grid;
  width: var(--hux-control-icon-box, 36px);
  min-width: var(--hux-control-icon-box, 36px);
  height: var(--hux-control-icon-box, 36px);
  min-height: var(--hux-control-icon-box, 36px);
  place-items: center;
  padding: 0;
  border: 1px solid var(--detail-border-strong);
  border-radius: 2px;
  background: transparent;
  color: #aaaab0;
  transform: none;
  box-shadow: none;
  transition: border-color 90ms ease, background-color 90ms ease, color 90ms ease;
}

.asset-detail-shell .sheet-close-button:is(:hover, :focus-visible) {
  border-color: #4b4b51;
  background: #29292d;
  color: #f5f5f6;
  outline: 0;
}

.asset-detail-shell .sheet-close-button .ui-icon {
  width: var(--hux-control-icon-size, 18px);
  height: var(--hux-control-icon-size, 18px);
}

.asset-detail-shell .sheet-hero-main {
  display: grid;
  gap: 0;
  max-width: none;
}

.asset-detail-shell .sheet-badges {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.asset-detail-shell .sheet-badges .badge {
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--detail-border-strong);
  border-radius: 2px;
  background: var(--detail-surface-subtle);
  color: #bcbcc2;
  font-size: 10px;
  font-weight: 680;
}

.asset-detail-shell .sheet-badges .badge.level {
  color: #bcbcc2 !important;
}

.asset-detail-shell .sheet-badges .badge.status {
  border-color: rgb(255 77 77 / 30%);
  background: rgb(255 77 77 / 7%);
  color: #e28b8d;
}

.asset-detail-shell .sheet-hero h2 {
  margin: 0;
  color: var(--detail-text);
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 720;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.asset-detail-shell .sheet-hero p {
  max-width: 62ch;
  margin: 9px 0 0;
  color: var(--detail-copy);
  font-size: 14px;
  line-height: 1.7;
}

.skill-detail-main {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  background: #0b0b0d;
}

.skill-detail-section {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--detail-border);
  border-radius: 4px;
  background: var(--detail-surface);
}

.skill-detail-section-heading {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.skill-detail-section-heading > span,
.skill-detail-overview-grid article > span {
  color: var(--brand, #ff4d4d);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.14em;
  line-height: 1.3;
}

.skill-detail-section-heading h3,
.skill-detail-overview-grid h3 {
  margin: 0;
  color: var(--detail-text);
  font-size: 15px;
  font-weight: 680;
  line-height: 1.4;
}

.skill-detail-commandbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--hux-control-icon-box, 36px);
  align-items: center;
  gap: 8px;
}

.asset-detail-shell .skill-detail-command {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  padding: 9px 12px;
  overflow-wrap: anywhere;
  border: 1px solid var(--detail-border-strong);
  border-radius: 2px;
  background: var(--detail-surface-subtle);
  color: #f0f0f2;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
}

.asset-detail-shell .skill-detail-copy,
.asset-detail-shell .skill-detail-copy:is(:hover, :focus-visible) {
  display: inline-grid;
  width: var(--hux-control-icon-box, 36px);
  min-width: var(--hux-control-icon-box, 36px);
  height: var(--hux-control-icon-box, 36px);
  min-height: var(--hux-control-icon-box, 36px);
  place-items: center;
  padding: 0;
  border: 1px solid var(--detail-border-strong);
  border-radius: 2px;
  background: transparent;
  color: #9d9da4;
  transform: none;
  box-shadow: none;
  transition: border-color 90ms ease, background-color 90ms ease, color 90ms ease;
}

.asset-detail-shell .skill-detail-copy:is(:hover, :focus-visible) {
  border-color: #4b4b51;
  background: #29292d;
  color: #f4f4f5;
  outline: 0;
}

.asset-detail-shell .skill-detail-copy[data-copied="true"] {
  border-color: rgb(255 77 77 / 38%);
  background: rgb(255 77 77 / 9%);
  color: var(--brand, #ff4d4d);
}

.asset-detail-shell .skill-detail-copy .ui-icon {
  width: var(--hux-control-icon-size, 18px);
  height: var(--hux-control-icon-size, 18px);
}

.asset-detail-shell .skill-detail-link {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid var(--detail-border);
  border-radius: 2px;
  background: transparent;
  color: var(--detail-copy);
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 90ms ease, background-color 90ms ease, color 90ms ease;
}

.asset-detail-shell .skill-detail-link > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.asset-detail-shell .skill-detail-link small {
  color: var(--detail-muted);
  font-size: 10px;
}

.asset-detail-shell .skill-detail-link strong {
  overflow: hidden;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-detail-shell .skill-detail-link > .ui-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.asset-detail-shell .skill-detail-link:is(:hover, :focus-visible) {
  border-color: #4b4b51;
  background: #1d1d20;
  color: #f4f4f5;
  outline: 0;
  transform: none;
}

.skill-detail-description,
.skill-detail-overview-grid p,
.skill-detail-prose {
  margin: 0;
  color: var(--detail-copy);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.asset-detail-shell .skill-detail-resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 10px;
  width: 100%;
  margin: 14px 0 0;
}

.asset-detail-shell .skill-detail-resource.is-image {
  aspect-ratio: 16 / 10;
  border-color: var(--detail-border-strong);
  border-radius: 3px;
  background: #0b0b0d;
}

.asset-detail-shell .skill-detail-resource.is-image > img {
  transition: none;
}

.asset-detail-shell .skill-detail-resource.is-image:is(:hover, :focus-visible) {
  border-color: #55555b;
  background: #151517;
}

.asset-detail-shell .skill-detail-resource.is-file {
  border-color: var(--detail-border-strong);
  border-radius: 3px;
  background: var(--detail-surface-subtle);
}

.skill-detail-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.skill-detail-overview-grid article {
  min-width: 0;
  padding-right: 20px;
}

.skill-detail-overview-grid article + article {
  padding-right: 0;
  padding-left: 20px;
  border-left: 1px solid var(--detail-border);
}

.skill-detail-overview-grid h3 {
  margin: 7px 0 10px;
}

.asset-detail-shell .skill-detail-pills {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  width: auto;
  margin: 0;
}

.asset-detail-shell .skill-detail-pills span {
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid var(--detail-border-strong);
  border-radius: 2px;
  background: var(--detail-surface-subtle);
  color: #b7b7bd;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.asset-detail-shell .skill-detail-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: detail-step;
}

.asset-detail-shell .skill-detail-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  color: var(--detail-copy);
  font-size: 14px;
  line-height: 1.65;
  counter-increment: detail-step;
}

.asset-detail-shell .skill-detail-steps li + li {
  border-top: 1px solid var(--detail-border);
}

.asset-detail-shell .skill-detail-steps li::before {
  content: counter(detail-step, decimal-leading-zero);
  color: var(--brand, #ff4d4d);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.9;
}

.skill-detail-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr);
  gap: 24px;
}

.skill-detail-meta-group {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.skill-detail-meta-group > small {
  color: var(--detail-muted);
  font-size: 11px;
  font-weight: 620;
}

.asset-detail-shell .skill-detail-meta-group:first-child .skill-detail-pills span:first-child {
  border-color: rgb(255 77 77 / 28%);
  background: rgb(255 77 77 / 7%);
  color: #e28b8d;
}

.asset-detail-shell .skill-detail-uploader {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 0;
}

.asset-detail-shell .skill-detail-avatar {
  position: relative;
  display: grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--detail-border-strong);
  border-radius: 2px;
  background: var(--detail-surface-subtle);
  color: var(--brand, #ff4d4d);
  font-size: 12px;
  font-weight: 720;
}

.asset-detail-shell .skill-detail-person {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--detail-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-detail-shell > .sheet-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 0;
  border-top: 1px solid var(--detail-border);
  background: #101012;
  box-shadow: none;
  backdrop-filter: none;
}

.asset-detail-shell > .sheet-actions > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.asset-detail-shell > .sheet-actions strong {
  color: var(--detail-text);
  font-size: 12px;
}

.asset-detail-shell > .sheet-actions small {
  overflow: hidden;
  color: var(--detail-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-detail-shell > .sheet-actions .button {
  min-height: var(--hux-control-height, 36px);
  flex: 0 0 auto;
}

.asset-detail-loading {
  overflow: hidden;
}

.asset-detail-loading .skill-detail-section {
  display: grid;
  gap: 12px;
}

.detail-skeleton-line,
.detail-skeleton-block {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: #1c1c20;
}

.detail-skeleton-line {
  width: 68%;
  height: 12px;
}

.detail-skeleton-line.short { width: 24%; }
.detail-skeleton-line.medium { width: 44%; }
.detail-skeleton-line.long { width: 84%; }

.detail-skeleton-block {
  position: relative;
  height: 44px;
}

.detail-skeleton-block.media {
  aspect-ratio: 16 / 10;
  height: auto;
}

.detail-skeleton-line::after,
.detail-skeleton-block::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 5%), transparent);
  transform: translateX(-100%);
  animation: detail-skeleton-sweep 1.1s ease-in-out infinite;
  content: "";
}

.detail-skeleton-line {
  position: relative;
}

@keyframes detail-skeleton-sweep {
  to { transform: translateX(100%); }
}

.asset-detail-error {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 16px;
  padding: 20px;
  border: 1px solid var(--detail-border);
  border-radius: 4px;
  background: var(--detail-surface);
}

.asset-detail-error > .ui-icon {
  width: 24px;
  height: 24px;
  color: var(--brand, #ff4d4d);
}

.asset-detail-error h3,
.asset-detail-error p {
  margin: 0;
}

.asset-detail-error h3 {
  color: var(--detail-text);
  font-size: 15px;
}

.asset-detail-error p {
  margin-top: 5px;
  color: var(--detail-copy);
  font-size: 12px;
  line-height: 1.55;
}

html[data-theme="light"] .sheet-backdrop {
  background: rgb(25 25 28 / 30%);
}

html[data-theme="light"] .asset-sheet {
  border-left-color: #d9d9de;
  background: #f4f4f5;
  box-shadow: -18px 0 50px rgb(24 24 27 / 13%);
}

html[data-theme="light"] .asset-detail-shell {
  --detail-surface: #ffffff;
  --detail-surface-subtle: #f5f5f6;
  --detail-border: #e1e1e5;
  --detail-border-strong: #d2d2d7;
  --detail-text: #202023;
  --detail-copy: #5d5d63;
  --detail-muted: #7d7d84;
  background: #f4f4f5;
  color: var(--detail-text);
}

html[data-theme="light"] .asset-detail-shell .skill-detail-hero,
html[data-theme="light"] .asset-detail-shell > .sheet-actions {
  border-color: var(--detail-border);
  background: #ffffff;
  color: var(--detail-text);
}

html[data-theme="light"] .asset-detail-shell .sheet-hero h2 {
  color: var(--detail-text);
}

html[data-theme="light"] .asset-detail-shell .sheet-badges .badge.level {
  color: #5f5f66 !important;
}

html[data-theme="light"] .asset-detail-shell .sheet-hero p,
html[data-theme="light"] .skill-detail-description,
html[data-theme="light"] .skill-detail-overview-grid p,
html[data-theme="light"] .skill-detail-prose,
html[data-theme="light"] .asset-detail-shell .skill-detail-steps li {
  color: var(--detail-copy);
}

html[data-theme="light"] .skill-detail-main {
  background: #f4f4f5;
}

html[data-theme="light"] .skill-detail-section,
html[data-theme="light"] .asset-detail-error {
  border-color: var(--detail-border);
  background: var(--detail-surface);
}

html[data-theme="light"] .asset-detail-shell .sheet-close-button,
html[data-theme="light"] .asset-detail-shell .skill-detail-copy {
  border-color: var(--detail-border-strong);
  background: transparent;
  color: #696970;
}

html[data-theme="light"] .asset-detail-shell .sheet-close-button:is(:hover, :focus-visible),
html[data-theme="light"] .asset-detail-shell .skill-detail-copy:is(:hover, :focus-visible) {
  border-color: #bcbcc2;
  background: #e7e7ea;
  color: #202023;
}

html[data-theme="light"] .asset-detail-shell .skill-detail-command,
html[data-theme="light"] .asset-detail-shell .skill-detail-resource.is-file {
  border-color: var(--detail-border-strong);
  background: var(--detail-surface-subtle);
  color: #29292d;
}

html[data-theme="light"] .asset-detail-shell .skill-detail-link {
  border-color: var(--detail-border);
  background: transparent;
  color: #55555b;
}

html[data-theme="light"] .asset-detail-shell .skill-detail-link:is(:hover, :focus-visible) {
  border-color: #c3c3c9;
  background: #ededf0;
  color: #202023;
}

html[data-theme="light"] .asset-detail-shell .skill-detail-pills span {
  border-color: var(--detail-border-strong);
  background: #f6f6f7;
  color: #5d5d64;
}

html[data-theme="light"] .asset-detail-shell .skill-detail-meta-group:first-child .skill-detail-pills span:first-child,
html[data-theme="light"] .asset-detail-shell .sheet-badges .badge.status {
  border-color: rgb(201 48 53 / 28%);
  background: rgb(223 63 67 / 7%);
  color: #a93338;
}

html[data-theme="light"] .asset-detail-shell .skill-detail-avatar {
  border-color: var(--detail-border-strong);
  background: #f1f1f3;
  color: var(--brand, #df3f43);
}

html[data-theme="light"] .asset-detail-shell .skill-detail-person,
html[data-theme="light"] .asset-detail-shell > .sheet-actions strong,
html[data-theme="light"] .skill-detail-section-heading h3,
html[data-theme="light"] .skill-detail-overview-grid h3,
html[data-theme="light"] .asset-detail-error h3 {
  color: var(--detail-text);
}

html[data-theme="light"] .asset-detail-shell .skill-detail-resource.is-image {
  border-color: var(--detail-border-strong);
  background: #f5f5f6;
}

html[data-theme="light"] .detail-skeleton-line,
html[data-theme="light"] .detail-skeleton-block {
  background: #e7e7ea;
}

html[data-theme="light"] .detail-skeleton-line::after,
html[data-theme="light"] .detail-skeleton-block::after {
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 68%), transparent);
}

@media (max-width: 760px) {
  .asset-sheet {
    right: 0;
    left: 0;
    width: 100%;
    border-left: 0;
  }

  .asset-detail-shell .skill-detail-hero {
    padding: 14px 16px 18px;
  }

  .asset-detail-shell .sheet-hero h2 {
    font-size: 25px;
  }

  .asset-detail-shell .sheet-hero p {
    font-size: 13px;
    line-height: 1.65;
  }

  .skill-detail-main {
    gap: 10px;
    padding: 10px;
  }

  .skill-detail-section {
    padding: 17px 16px;
  }

  .skill-detail-section-heading {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }

  .skill-detail-overview-grid,
  .skill-detail-meta-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .skill-detail-overview-grid article,
  .skill-detail-overview-grid article + article {
    padding: 0;
    border-left: 0;
  }

  .skill-detail-overview-grid article + article {
    padding-top: 18px;
    border-top: 1px solid var(--detail-border);
  }

  .asset-detail-shell .skill-detail-steps li {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
  }

  .asset-detail-shell > .sheet-actions {
    padding: 10px;
  }

  .asset-detail-shell > .sheet-actions > span {
    display: none;
  }

  .asset-detail-shell > .sheet-actions .button {
    width: 100%;
    justify-content: center;
  }

  .asset-detail-error {
    grid-template-columns: 28px minmax(0, 1fr);
    margin: 10px;
    padding: 18px 16px;
  }

  .asset-detail-error .button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .asset-sheet,
  .sheet-backdrop,
  .asset-detail-shell :is(a, button),
  .detail-skeleton-line::after,
  .detail-skeleton-block::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* case-document-v138.css */
.case-doc-frame {
  --case-doc-surface: #0d0d0f;
  --case-doc-panel: #121214;
  --case-doc-raised: #18181b;
  --case-doc-text: #eeeeef;
  --case-doc-muted: #929299;
  --case-doc-faint: #626268;
  --case-doc-rule: rgb(255 255 255 / 9%);
  --case-doc-rule-strong: rgb(255 255 255 / 15%);
  position: absolute;
  inset: 0;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 56px 2px minmax(0, 1fr);
  background: var(--case-doc-surface);
  color: var(--case-doc-text);
}

.case-doc-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: var(--case-doc-icon) center / contain no-repeat;
  -webkit-mask: var(--case-doc-icon) center / contain no-repeat;
}

.case-doc-bar {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(0, 1.2fr) minmax(220px, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 0 20px;
  border-bottom: 1px solid var(--case-doc-rule);
  background: rgb(13 13 15 / 94%);
  backdrop-filter: blur(18px) saturate(120%);
}

.case-doc-back,
.case-doc-actions > :is(button, a),
.case-doc-search button,
.case-doc-outline header button,
.case-doc-heading-link,
.case-doc-lightbox > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--case-doc-muted);
  font: inherit;
  text-decoration: none;
  transition: background-color 110ms ease, border-color 110ms ease, color 110ms ease;
}

.case-doc-back {
  justify-self: start;
  width: auto;
  gap: 8px;
  padding: 0 10px;
  color: var(--case-doc-text);
  font-size: 13px;
  font-weight: 650;
}

.case-doc-back:hover,
.case-doc-back:focus-visible,
.case-doc-actions > :is(button, a):hover,
.case-doc-actions > :is(button, a):focus-visible,
.case-doc-search button:hover,
.case-doc-search button:focus-visible,
.case-doc-outline header button:hover,
.case-doc-outline header button:focus-visible,
.case-doc-heading-link:hover,
.case-doc-heading-link:focus-visible {
  border-color: var(--case-doc-rule);
  background: var(--case-doc-raised);
  color: var(--case-doc-text);
}

.case-doc-titlebar {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-width: 0;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.case-doc-titlebar span {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.case-doc-titlebar strong {
  overflow: hidden;
  color: var(--case-doc-muted);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
}

.case-doc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.case-doc-actions .case-doc-edit {
  width: auto;
  gap: 7px;
  padding: 0 12px;
  border-color: var(--case-doc-rule-strong);
  color: var(--case-doc-text);
  font-size: 12px;
  font-weight: 680;
}

.case-doc-actions [data-case-outline-toggle] {
  display: none;
}

.case-doc-progress {
  position: relative;
  z-index: 13;
  overflow: hidden;
  background: var(--case-doc-rule);
}

.case-doc-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 80ms linear;
}

.case-doc-layout {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 264px;
  overflow: hidden;
}

.case-doc-scroll {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.case-doc-article {
  width: min(880px, calc(100% - 64px));
  margin: 0 auto;
  padding: 60px 0 96px;
}

.case-doc-hero {
  display: grid;
  gap: 18px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--case-doc-rule);
}

.case-doc-kicker,
.case-doc-section-heading > span,
.case-doc-outline header > span,
.case-doc-footer {
  color: var(--brand);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.case-doc-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--case-doc-text);
  font-size: clamp(34px, 4.1vw, 54px);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.case-doc-hero > p {
  max-width: 760px;
  margin: 0;
  color: var(--case-doc-muted);
  font-size: 17px;
  line-height: 1.75;
}

.case-doc-byline {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding-top: 6px;
}

.case-doc-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--case-doc-rule-strong);
  border-radius: 50%;
  background: var(--case-doc-raised);
  color: var(--brand);
  font-size: 12px;
  font-weight: 780;
}

.case-doc-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.case-doc-byline > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.case-doc-byline strong {
  color: var(--case-doc-text);
  font-size: 13px;
  font-weight: 680;
}

.case-doc-byline small {
  color: var(--case-doc-faint);
  font-size: 11px;
}

.case-doc-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.case-doc-platforms span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--case-doc-rule);
  border-radius: 5px;
  color: var(--case-doc-muted);
  font-size: 10px;
  font-weight: 650;
}

.case-doc-content {
  color: #cbcbcf;
  font-size: 17px;
  line-height: 1.88;
  overflow-wrap: anywhere;
}

.case-doc-content > :first-child {
  margin-top: 42px;
}

.case-doc-content :is(h2, h3, h4) {
  position: relative;
  scroll-margin-top: 34px;
  color: var(--case-doc-text);
  letter-spacing: -0.018em;
  line-height: 1.35;
}

.case-doc-content h2 {
  margin: 58px 0 18px;
  padding-top: 6px;
  font-size: 28px;
  font-weight: 740;
}

.case-doc-content h3 {
  margin: 38px 0 14px;
  font-size: 21px;
  font-weight: 720;
}

.case-doc-content h4 {
  margin: 28px 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.case-doc-heading-link {
  position: absolute;
  top: 50%;
  left: -42px;
  width: 30px;
  height: 30px;
  opacity: 0;
  transform: translateY(-50%);
}

.case-doc-content :is(h2, h3, h4):hover .case-doc-heading-link,
.case-doc-heading-link:focus-visible {
  opacity: 1;
}

.case-doc-content p {
  max-width: 76ch;
  margin: 0 0 20px;
}

.case-doc-content :is(strong, b) {
  color: var(--case-doc-text);
  font-weight: 700;
}

.case-doc-content a {
  color: #ff7474;
  text-decoration-color: rgb(255 116 116 / 36%);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.case-doc-content a:hover,
.case-doc-content a:focus-visible {
  color: #ff9696;
  text-decoration-color: currentColor;
}

.case-doc-content :not(pre) > code {
  padding: 2px 6px;
  border: 1px solid var(--case-doc-rule);
  border-radius: 4px;
  background: var(--case-doc-raised);
  color: #eeeeef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86em;
}

.case-doc-content :is(ul, ol) {
  display: grid;
  gap: 8px;
  margin: 18px 0 26px;
  padding-left: 25px;
}

.case-doc-content li {
  padding-left: 4px;
}

.case-doc-content li::marker {
  color: var(--case-doc-faint);
}

.case-doc-task-list {
  padding-left: 0 !important;
  list-style: none;
}

.case-doc-task-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 6px 0;
}

.case-doc-task-list button {
  display: grid;
  width: 20px;
  height: 20px;
  margin-top: 5px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--case-doc-rule-strong);
  border-radius: 4px;
  background: transparent;
  color: transparent;
}

.case-doc-task-list li.is-checked button {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.case-doc-task-list li.is-checked > span {
  color: var(--case-doc-faint);
  text-decoration: line-through;
}

.case-doc-task-list .case-doc-icon {
  width: 13px;
  height: 13px;
}

.case-doc-content blockquote,
.case-doc-callout {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid var(--case-doc-rule);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  background: var(--case-doc-panel);
}

.case-doc-content blockquote {
  color: #b8b8bd;
}

.case-doc-callout strong {
  display: block;
  margin-bottom: 5px;
  color: var(--brand) !important;
  font-size: 12px;
}

.case-doc-callout p {
  margin: 0;
}

.case-doc-content hr {
  height: 1px;
  margin: 46px 0;
  border: 0;
  background: var(--case-doc-rule);
}

.case-doc-code {
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid var(--case-doc-rule);
  border-radius: 7px;
  background: #09090b;
}

.case-doc-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 10px 0 15px;
  border-bottom: 1px solid var(--case-doc-rule);
  color: var(--case-doc-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.case-doc-code-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--case-doc-muted);
  font: inherit;
  text-transform: none;
}

.case-doc-code-bar button:hover,
.case-doc-code-bar button:focus-visible,
.case-doc-code-bar button[data-copied="true"] {
  background: var(--case-doc-raised);
  color: var(--case-doc-text);
}

.case-doc-code-bar .case-doc-icon {
  width: 14px;
  height: 14px;
}

.case-doc-code pre {
  max-width: 100%;
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  color: #d9d9dc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  tab-size: 2;
}

.case-doc-code code {
  white-space: pre;
}

.case-doc-table-wrap {
  max-width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--case-doc-rule);
  border-radius: 6px;
}

.case-doc-table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: #c9c9cd;
  font-size: 14px;
  line-height: 1.6;
}

.case-doc-table-wrap :is(th, td) {
  min-width: 120px;
  padding: 12px 14px;
  border-right: 1px solid var(--case-doc-rule);
  border-bottom: 1px solid var(--case-doc-rule);
  text-align: left;
  vertical-align: top;
}

.case-doc-table-wrap th {
  background: var(--case-doc-raised);
  color: var(--case-doc-text);
  font-weight: 680;
}

.case-doc-table-wrap tr:last-child td {
  border-bottom: 0;
}

.case-doc-table-wrap :is(th, td):last-child {
  border-right: 0;
}

.case-doc-media {
  margin: 32px 0;
}

.case-doc-media > button,
.case-doc-resource-image > button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--case-doc-rule);
  border-radius: 7px;
  background: #09090b;
}

.case-doc-media img,
.case-doc-resource-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  background: #09090b;
  object-fit: contain;
  transition: opacity 160ms ease;
}

.case-doc-media button:hover img,
.case-doc-media button:focus-visible img,
.case-doc-resource-image button:hover img,
.case-doc-resource-image button:focus-visible img {
  opacity: 0.9;
}

.case-doc-media figcaption {
  margin-top: 9px;
  color: var(--case-doc-faint);
  font-size: 12px;
  line-height: 1.6;
}

.case-doc-empty {
  display: grid;
  gap: 7px;
  margin-top: 42px;
  padding: 28px;
  border: 1px dashed var(--case-doc-rule-strong);
  border-radius: 7px;
  background: var(--case-doc-panel);
}

.case-doc-empty p {
  margin: 0;
  color: var(--case-doc-muted);
}

.case-doc-resources {
  margin-top: 58px;
  padding-top: 34px;
  border-top: 1px solid var(--case-doc-rule);
}

.case-doc-section-heading {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.case-doc-section-heading h2 {
  margin: 0;
  color: var(--case-doc-text);
  font-size: 22px;
  font-weight: 720;
}

.case-doc-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.case-doc-resource {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--case-doc-rule);
  border-radius: 7px;
  background: var(--case-doc-panel);
}

.case-doc-resource-image > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.case-doc-resource-image strong,
.case-doc-resource-file strong {
  overflow: hidden;
  color: var(--case-doc-text);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-doc-resource-image span {
  color: var(--case-doc-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
}

.case-doc-resource-file {
  display: grid;
  min-height: 78px;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: var(--case-doc-muted);
  text-decoration: none;
  transition: background-color 110ms ease, border-color 110ms ease;
}

.case-doc-resource-file:hover,
.case-doc-resource-file:focus-visible {
  border-color: var(--case-doc-rule-strong);
  background: var(--case-doc-raised);
}

.case-doc-resource-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--case-doc-rule);
  border-radius: 6px;
  color: var(--brand);
}

.case-doc-resource-file > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.case-doc-resource-file small {
  color: var(--case-doc-faint);
  font-size: 10px;
}

.case-doc-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 66px;
  padding-top: 20px;
  border-top: 1px solid var(--case-doc-rule);
  color: var(--case-doc-faint);
}

.case-doc-outline {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 48px auto minmax(0, 1fr) 44px;
  border-left: 1px solid var(--case-doc-rule);
  background: var(--case-doc-panel);
}

.case-doc-outline header,
.case-doc-outline footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid var(--case-doc-rule);
}

.case-doc-outline header button {
  display: none;
}

.case-doc-outline-title {
  display: grid;
  gap: 3px;
  padding: 18px;
  border-bottom: 1px solid var(--case-doc-rule);
}

.case-doc-outline-title strong {
  color: var(--case-doc-text);
  font-size: 14px;
  font-weight: 700;
}

.case-doc-outline-title span,
.case-doc-outline footer {
  color: var(--case-doc-faint);
  font-size: 10px;
}

.case-doc-outline nav {
  min-height: 0;
  padding: 8px;
  overflow-y: auto;
}

.case-doc-outline nav button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 38px;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding: 9px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--case-doc-muted);
  font: inherit;
  text-align: left;
  transition: background-color 100ms ease, color 100ms ease;
}

.cloud-document-draft .cloud-draft-fields {
  gap: 16px;
}

.cloud-document-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 46px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--border);
  background: #0f0f11;
  scrollbar-width: thin;
}

.cloud-document-toolbar button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #a1a1aa;
  font: inherit;
  font-size: 11px;
}

.cloud-document-toolbar button:hover,
.cloud-document-toolbar button:focus-visible {
  border-color: var(--border);
  background: #1c1c1f;
  color: #f4f4f5;
}

.cloud-doc-tool-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: var(--cloud-doc-tool) center / contain no-repeat;
  -webkit-mask: var(--cloud-doc-tool) center / contain no-repeat;
}

.cloud-document-count {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 8px;
  color: #71717a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.cloud-document-draft [data-cloud-markdown] {
  min-height: 440px;
  padding: 20px;
  resize: vertical;
  color: #dedee1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.8;
  tab-size: 2;
}

.cloud-draft-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-theme="light"] .cloud-document-toolbar {
  border-color: rgb(24 24 27 / 10%);
  background: #fafafa;
}

html[data-theme="light"] .cloud-document-toolbar button {
  color: #68686d;
}

html[data-theme="light"] .cloud-document-toolbar button:hover,
html[data-theme="light"] .cloud-document-toolbar button:focus-visible {
  border-color: rgb(24 24 27 / 10%);
  background: #eeeeef;
  color: #202023;
}

html[data-theme="light"] .cloud-document-draft [data-cloud-markdown] {
  border-color: rgb(24 24 27 / 12%);
  background: #ffffff;
  color: #2b2b2f;
}

.case-doc-outline nav button.level-3 {
  padding-left: 22px;
}

.case-doc-outline nav button:hover,
.case-doc-outline nav button:focus-visible {
  background: var(--case-doc-raised);
  color: var(--case-doc-text);
}

.case-doc-outline nav button.is-active {
  background: rgb(223 63 67 / 10%);
  color: var(--case-doc-text);
}

.case-doc-outline nav button.is-active::before {
  position: absolute;
  width: 2px;
  height: 20px;
  margin: 0 0 0 -10px;
  background: var(--brand);
  content: "";
}

.case-doc-outline nav button > span {
  color: var(--case-doc-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  line-height: 1.8;
}

.case-doc-outline nav button > strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
  text-overflow: ellipsis;
}

.case-doc-outline-empty {
  margin: 0;
  padding: 18px;
  color: var(--case-doc-faint);
  font-size: 11px;
}

.case-doc-outline footer {
  border-top: 1px solid var(--case-doc-rule);
  border-bottom: 0;
}

.case-doc-search {
  position: absolute;
  z-index: 30;
  top: 64px;
  left: 50%;
  display: grid;
  width: min(520px, calc(100% - 32px));
  min-height: 48px;
  grid-template-columns: 20px minmax(0, 1fr) auto 32px 32px 32px;
  align-items: center;
  gap: 6px;
  padding: 6px 7px 6px 14px;
  border: 1px solid var(--case-doc-rule-strong);
  border-radius: 8px;
  background: #1a1a1d;
  box-shadow: 0 18px 48px rgb(0 0 0 / 36%);
  transform: translateX(-50%);
}

.case-doc-search > .case-doc-icon {
  color: var(--case-doc-faint);
}

.case-doc-search input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--case-doc-text);
  font-size: 13px;
}

.case-doc-search input::placeholder {
  color: var(--case-doc-faint);
}

.case-doc-search [data-case-search-count] {
  min-width: 42px;
  color: var(--case-doc-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  text-align: right;
}

.case-doc-search button {
  width: 32px;
  height: 32px;
}

.case-doc-search [data-case-search-previous] .case-doc-icon {
  transform: rotate(180deg);
}

.case-doc-content mark[data-case-search-match] {
  border-radius: 2px;
  background: rgb(255 196 78 / 28%);
  color: inherit;
}

.case-doc-content mark.is-current {
  background: #ffc44e;
  color: #18181b;
}

.case-doc-lightbox {
  position: absolute;
  z-index: 60;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  padding: 52px 40px 30px;
  background: rgb(0 0 0 / 88%);
  backdrop-filter: blur(10px);
}

.case-doc-lightbox > button {
  position: absolute;
  top: 14px;
  right: 14px;
  border-color: rgb(255 255 255 / 16%);
  background: rgb(255 255 255 / 8%);
  color: #fff;
}

.case-doc-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.case-doc-lightbox p {
  margin: 14px 0 0;
  color: #b8b8bd;
  font-size: 12px;
}

.case-doc-loading {
  --case-doc-surface: #0d0d0f;
  --case-doc-text: #eeeeef;
  --case-doc-muted: #929299;
  --case-doc-rule: rgb(255 255 255 / 9%);
  position: absolute;
  inset: 0;
  display: grid;
  min-height: 0;
  grid-template-rows: 56px 2px minmax(0, 1fr);
  background: var(--case-doc-surface, #0d0d0f);
}

.case-doc-loading-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
}

.case-doc-loading-body {
  width: min(880px, calc(100% - 64px));
  margin: 0 auto;
  padding: 60px 0;
}

.case-doc-loading-lines {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.case-doc-loading-lines span {
  display: block;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #19191c 20%, #27272b 48%, #19191c 76%);
  background-size: 240% 100%;
  animation: case-doc-skeleton 1.2s ease-in-out infinite;
}

.case-doc-loading-lines span:first-child {
  width: 38%;
  height: 12px;
}

.case-doc-loading-lines span:nth-child(2) {
  width: 82%;
  height: 52px;
}

.case-doc-loading-lines span:nth-child(3) { width: 70%; }
.case-doc-loading-lines span:nth-child(4) { width: 92%; margin-top: 34px; }
.case-doc-loading-lines span:nth-child(5) { width: 86%; }
.case-doc-loading-lines span:nth-child(6) { width: 76%; }

@keyframes case-doc-skeleton {
  to { background-position: -240% 0; }
}

html[data-theme="light"] .case-doc-frame {
  --case-doc-surface: #f7f7f8;
  --case-doc-panel: #ffffff;
  --case-doc-raised: #f1f1f2;
  --case-doc-text: #202023;
  --case-doc-muted: #626268;
  --case-doc-faint: #8b8b91;
  --case-doc-rule: rgb(24 24 27 / 10%);
  --case-doc-rule-strong: rgb(24 24 27 / 16%);
}

html[data-theme="light"] .case-doc-bar {
  background: rgb(255 255 255 / 94%);
}

html[data-theme="light"] .case-doc-content {
  color: #454549;
}

html[data-theme="light"] .case-doc-content a {
  color: #c72f35;
}

html[data-theme="light"] .case-doc-code {
  background: #f5f5f6;
}

html[data-theme="light"] .case-doc-code pre {
  color: #333337;
}

html[data-theme="light"] .case-doc-search {
  background: #ffffff;
  box-shadow: 0 18px 48px rgb(24 24 27 / 14%);
}

html[data-theme="light"] .case-doc-media > button,
html[data-theme="light"] .case-doc-resource-image > button,
html[data-theme="light"] .case-doc-media img,
html[data-theme="light"] .case-doc-resource-image img {
  background: #f1f1f2;
}

html[data-theme="light"] .case-doc-loading {
  --case-doc-surface: #f7f7f8;
  --case-doc-text: #202023;
  --case-doc-muted: #626268;
  --case-doc-rule: rgb(24 24 27 / 10%);
}

html[data-theme="light"] .case-doc-loading-bar {
  border-color: rgb(24 24 27 / 10%);
}

html[data-theme="light"] .case-doc-loading-lines span {
  background: linear-gradient(90deg, #e7e7e9 20%, #f6f6f7 48%, #e7e7e9 76%);
  background-size: 240% 100%;
}

@media (max-width: 1080px) {
  .case-doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-doc-actions [data-case-outline-toggle] {
    display: inline-flex;
  }

  .case-doc-outline {
    position: absolute;
    z-index: 24;
    top: 58px;
    right: 0;
    bottom: 0;
    width: min(320px, calc(100% - 32px));
    border-top: 1px solid var(--case-doc-rule);
    box-shadow: -18px 0 42px rgb(0 0 0 / 24%);
    transform: translateX(102%);
    transition: transform 160ms ease;
  }

  .case-doc-outline.is-open {
    transform: translateX(0);
  }

  .case-doc-outline header button {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .case-doc-frame,
  .case-doc-loading {
    grid-template-rows: 52px 2px minmax(0, 1fr);
  }

  .case-doc-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 8px;
  }

  .case-doc-back {
    width: 36px;
    padding: 0;
  }

  .case-doc-back > span:last-child,
  .case-doc-titlebar span,
  .case-doc-actions [data-case-copy-link],
  .case-doc-actions .case-doc-edit > span:last-child {
    display: none;
  }

  .case-doc-titlebar {
    justify-content: flex-start;
  }

  .case-doc-titlebar strong {
    color: var(--case-doc-text);
  }

  .case-doc-actions {
    gap: 2px;
  }

  .case-doc-actions .case-doc-edit {
    width: 36px;
    padding: 0;
  }

  .case-doc-article {
    width: min(100% - 32px, 680px);
    padding: 38px 0 68px;
  }

  .case-doc-hero {
    gap: 14px;
    padding-bottom: 26px;
  }

  .case-doc-hero h1 {
    font-size: 34px;
  }

  .case-doc-hero > p,
  .case-doc-content {
    font-size: 16px;
  }

  .case-doc-byline {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .case-doc-platforms {
    width: 100%;
    margin: 8px 0 0 45px;
  }

  .case-doc-content > :first-child {
    margin-top: 34px;
  }

  .case-doc-content h2 {
    margin-top: 46px;
    font-size: 25px;
  }

  .case-doc-content h3 {
    margin-top: 32px;
    font-size: 20px;
  }

  .case-doc-heading-link {
    display: none;
  }

  .case-doc-resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-doc-search {
    top: 58px;
    width: calc(100% - 16px);
    grid-template-columns: 18px minmax(0, 1fr) auto 32px 32px;
    padding-left: 10px;
  }

  .case-doc-search [data-case-search-previous] {
    display: none;
  }

  .case-doc-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .case-doc-lightbox {
    padding: 52px 12px 20px;
  }

  .case-doc-loading-bar {
    padding: 0 8px;
  }

  .case-doc-loading-body {
    width: calc(100% - 32px);
    padding-top: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-doc-frame *,
  .case-doc-frame *::before,
  .case-doc-frame *::after,
  .case-doc-loading *,
  .case-doc-loading *::before,
  .case-doc-loading *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* p1-library-collaboration-v139.css */
/*
 * Library loading feedback v141
 * Keep the existing library fully legible during pagination and show replacement
 * skeletons in the first painted frame. The sweep only adds light, so loading
 * never dims the page or flashes a dark overlay.
 */
.asset-results-pane[data-library-busy="true"],
.asset-results-pane[data-library-mode="append"] .asset-grid,
.asset-results-pane[data-library-busy="true"] .skeleton-grid {
  opacity: 1;
  filter: none;
}

.asset-results-pane[data-library-mode="append"] .asset-grid,
.asset-results-pane[data-library-busy="true"] .skeleton-grid {
  transition: none;
}

.asset-results-pane[data-library-busy="true"] #subcategory-group.asset-subcategory-bar {
  opacity: 1;
  transform: none;
  animation: none;
}

.asset-results-pane[data-library-busy="true"] .skeleton-grid {
  animation: none;
}

.asset-results-pane[data-library-busy="true"] .skeleton-grid span {
  --library-skeleton-card: #18181b;
  --library-skeleton-media: #242427;
  --library-skeleton-line: #303035;
  --library-skeleton-line-soft: #28282c;
  --library-skeleton-accent: rgb(255 77 77 / 15%);
  --library-skeleton-control: #252529;
  --library-skeleton-sweep: rgb(255 255 255 / 7%);
  position: relative;
  min-height: clamp(220px, 26vw, 360px);
  overflow: hidden;
  border-color: #36363a;
  background-color: var(--library-skeleton-card);
  background-image:
    linear-gradient(var(--library-skeleton-media), var(--library-skeleton-media)),
    linear-gradient(var(--library-skeleton-line), var(--library-skeleton-line)),
    linear-gradient(var(--library-skeleton-line-soft), var(--library-skeleton-line-soft)),
    linear-gradient(var(--library-skeleton-accent), var(--library-skeleton-accent)),
    linear-gradient(var(--library-skeleton-control), var(--library-skeleton-control));
  background-position:
    0 0,
    left 18px top 64%,
    left 18px top 71%,
    left 18px bottom 18px,
    right 18px bottom 18px;
  background-repeat: no-repeat;
  background-size:
    100% 56.25%,
    62% 14px,
    42% 9px,
    106px 30px,
    36px 36px;
  box-shadow: none;
  animation: none;
}

.asset-results-pane[data-library-busy="true"] .skeleton-grid span::before {
  position: absolute;
  inset: 0 auto 0 -58%;
  width: 58%;
  background: linear-gradient(90deg, transparent, var(--library-skeleton-sweep), transparent);
  content: "";
  pointer-events: none;
  transform: translateX(0);
  animation: library-skeleton-sweep 1120ms cubic-bezier(.4, 0, .2, 1) infinite;
  will-change: transform;
}

html.app-booting.auth-workspace .asset-results-pane[data-library-busy="true"] .skeleton-grid span::before {
  animation: library-skeleton-sweep 1120ms cubic-bezier(.4, 0, .2, 1) infinite !important;
}

html.app-booting.auth-workspace .asset-results-pane[data-library-busy="true"] .skeleton-grid span:nth-child(2)::before { animation-delay: -280ms !important; }
html.app-booting.auth-workspace .asset-results-pane[data-library-busy="true"] .skeleton-grid span:nth-child(3)::before { animation-delay: -560ms !important; }
html.app-booting.auth-workspace .asset-results-pane[data-library-busy="true"] .skeleton-grid span:nth-child(4)::before { animation-delay: -840ms !important; }

.asset-results-pane[data-library-busy="true"] .skeleton-grid span:nth-child(2)::before { animation-delay: -280ms; }
.asset-results-pane[data-library-busy="true"] .skeleton-grid span:nth-child(3)::before { animation-delay: -560ms; }
.asset-results-pane[data-library-busy="true"] .skeleton-grid span:nth-child(4)::before { animation-delay: -840ms; }

.asset-load-more-button[aria-busy="true"] {
  position: relative;
  overflow: hidden;
  opacity: 1;
  filter: none;
  cursor: progress;
}

.asset-load-more-button[aria-busy="true"]::after {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44%;
  height: 2px;
  background: var(--brand, #ff4d4d);
  content: "";
  transform: translateX(-100%);
  animation: library-pagination-progress 820ms ease-in-out infinite;
  will-change: transform;
}

html[data-theme="light"] .asset-results-pane[data-library-busy="true"] .skeleton-grid span {
  --library-skeleton-card: #ffffff;
  --library-skeleton-media: #f0f1f3;
  --library-skeleton-line: #e0e2e6;
  --library-skeleton-line-soft: #eceef1;
  --library-skeleton-accent: rgb(239 68 68 / 10%);
  --library-skeleton-control: #eceef1;
  --library-skeleton-sweep: rgb(255 255 255 / 68%);
  border-color: #dedfe3;
}

@keyframes library-skeleton-sweep {
  to { transform: translateX(274%); }
}

@keyframes library-pagination-progress {
  to { transform: translateX(330%); }
}

@media (prefers-reduced-motion: reduce) {
  .asset-results-pane[data-library-busy="true"] .skeleton-grid span::before,
  .asset-load-more-button[aria-busy="true"]::after {
    animation: none !important;
  }

  .asset-results-pane[data-library-busy="true"] .skeleton-grid span::before {
    display: none;
  }
}

.asset-search-snippet {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--text-muted, #8d8d92);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.asset-search-snippet mark,
.skill-owner-copy strong mark {
  padding: 0 2px;
  color: inherit;
  background: color-mix(in srgb, var(--accent, #ef4444) 18%, transparent);
}

.asset-series-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 8px;
  color: var(--text-muted, #8d8d92);
  font: 600 10px/1.2 var(--font-mono, monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.asset-title-stack,
.asset-card-copy-stack {
  display: grid;
  min-width: 0;
}

.asset-card-copy-stack {
  min-height: 0;
  overflow: hidden;
}

.skill-owner-copy.has-search-match {
  grid-template-rows: auto 1fr;
  gap: 8px;
}

.skill-owner-copy.has-search-match .skill-card-summary {
  display: none !important;
}

.skill-owner-copy.has-search-match .asset-search-snippet {
  margin-top: 0;
}

.guest-catalog-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid var(--line, #303034);
  background: var(--surface, #151517);
}
.guest-catalog-notice[hidden] { display: none; }

.guest-catalog-notice strong,
.guest-catalog-notice p { margin: 0; }
.guest-catalog-notice p { margin-top: 4px; color: var(--text-muted, #8d8d92); font-size: 13px; }
.guest-catalog-notice button { min-height: 36px; }

.asset-results-pane[data-guest-compact="true"] .asset-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 320px));
  justify-content: start;
}

.case-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 34px;
  border: 1px solid var(--line, #303034);
  background: var(--line, #303034);
}

.case-profile-item { min-width: 0; padding: 16px 18px; background: var(--surface, #151517); }
.case-profile-item span { display: block; margin-bottom: 7px; color: var(--text-muted, #8d8d92); font: 600 10px/1.2 var(--font-mono, monospace); letter-spacing: .08em; }
.case-profile-item strong { display: block; font-size: 14px; line-height: 1.55; font-weight: 550; }
.case-profile-item.is-wide { grid-column: 1 / -1; }

.cloud-case-profile { border: 1px solid var(--line, #303034); }
.cloud-case-profile > summary { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.cloud-case-profile > summary::-webkit-details-marker { display: none; }
.cloud-case-profile > summary small { color: var(--text-muted, #8d8d92); }
.cloud-case-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; border-top: 1px solid var(--line, #303034); }
.cloud-case-profile-grid label { min-width: 0; }
.cloud-case-profile-grid .is-wide { grid-column: 1 / -1; }
.cloud-case-profile-grid input,
.cloud-case-profile-grid select,
.cloud-case-profile-grid textarea { width: 100%; margin-top: 7px; }

.case-comment-toggle { position: relative; }
.case-comment-count {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent, #ef4444);
  font: 700 9px/16px var(--font-mono, monospace);
  text-align: center;
}

.case-comment-panel {
  position: absolute;
  z-index: 8;
  top: 58px;
  right: 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(380px, calc(100vw - 28px));
  max-height: calc(100% - 76px);
  border: 1px solid var(--line, #303034);
  background: var(--surface-elevated, #18181b);
  box-shadow: 0 20px 60px rgb(0 0 0 / .18);
}
.case-comment-panel[hidden] { display: none; }
.case-comment-header { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px; border-bottom: 1px solid var(--line, #303034); }
.case-comment-list { overflow: auto; padding: 12px; }
.case-comment-empty { padding: 28px 12px; color: var(--text-muted, #8d8d92); text-align: center; }
.case-comment-item { margin-bottom: 10px; padding: 12px; border: 1px solid var(--line, #303034); background: var(--surface, #151517); }
.case-comment-item.is-resolved { opacity: .62; }
.case-comment-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.case-comment-quote { margin: 9px 0; padding-left: 9px; border-left: 2px solid var(--accent, #ef4444); color: var(--text-muted, #8d8d92); font-size: 12px; }
.case-comment-body { margin: 8px 0; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.case-comment-action { border: 0; color: var(--accent, #ef4444); background: transparent; cursor: pointer; }
.case-comment-compose { display: grid; gap: 8px; padding: 12px; border-top: 1px solid var(--line, #303034); }
.case-comment-compose textarea { min-height: 76px; resize: vertical; padding: 10px; border: 1px solid var(--line, #303034); color: inherit; background: var(--surface, #151517); font: inherit; }
.case-comment-compose-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.case-mention-picker { min-width: 0; max-width: 230px; }
.case-mention-picker select { width: 100%; min-height: 48px; padding: 5px 8px; border: 1px solid var(--line, #303034); color: inherit; background: var(--surface, #151517); font: inherit; }
[data-case-block-id] { transition: outline-color 80ms linear, background-color 80ms linear; }
[data-case-block-id].is-comment-target { outline: 1px solid color-mix(in srgb, var(--accent, #ef4444) 45%, transparent); outline-offset: 6px; background: color-mix(in srgb, var(--accent, #ef4444) 4%, transparent); }

[data-theme="light"] .guest-catalog-notice,
[data-theme="light"] .case-profile-item,
[data-theme="light"] .case-comment-item,
[data-theme="light"] .case-comment-compose textarea { background: #fff; }
[data-theme="light"] .case-mention-picker select { background: #fff; }
[data-theme="light"] .case-comment-panel { background: #fff; box-shadow: 0 20px 60px rgb(15 23 42 / .12); }

@media (max-width: 720px) {
  .guest-catalog-notice { grid-template-columns: 1fr; }
  .case-profile-grid { grid-template-columns: 1fr; }
  .case-profile-item.is-wide { grid-column: auto; }
  .cloud-case-profile-grid { grid-template-columns: 1fr; }
  .cloud-case-profile-grid .is-wide { grid-column: auto; }
  .case-comment-panel { inset: 58px 8px 8px; width: auto; max-height: none; }
}
