:root {
  --background: 220 25% 6%;
  --foreground: 220 10% 97%;
  --primary: 220 90% 56%;
  --secondary: 280 60% 60%;
  --accent: 170 70% 50%;
  --success: 142 71% 45%;
  --warning: 38 92% 50%;
  --danger: 0 72% 51%;
  --muted: 220 20% 14%;
  --muted-foreground: 220 12% 68%;
  --card: 220 23% 9%;
  --border: 220 20% 18%;
  --sidebar: #141e30;
  --sidebar-2: #121a2a;
  --radius: 0.75rem;
  --mm: #f6851b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: hsl(var(--background));
  background-image:
    linear-gradient(180deg, rgba(8, 12, 22, 0.88) 0%, rgba(8, 12, 22, 0.96) 100%),
    url("/assets/imagine/hero-hub.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: hsl(var(--foreground));
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  body { background-attachment: scroll; }
}
.hub-imagine-hero {
  width: 100%;
  min-height: 110px;
  border-radius: 14px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(120deg, rgba(8, 12, 22, 0.3), rgba(8, 12, 22, 0.75)),
    url("/assets/imagine/hero-hub.jpg") center / cover no-repeat;
}
a { color: hsl(var(--primary)); text-decoration: none; }
a:hover { text-decoration: underline; }
.font-display { font-family: "Space Grotesk", Inter, sans-serif; }
.text-gradient {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)), hsl(var(--accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* Layout shell */
.hub {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
@media (max-width: 960px) {
  .hub { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(280px, 88vw); z-index: 60; transform: translateX(-105%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 55; }
  .sidebar-backdrop.open { display: block; }
}

.sidebar {
  background: linear-gradient(135deg, var(--sidebar), var(--sidebar-2));
  border-right: 1px solid rgba(255,255,255,.07);
  padding: 1.1rem 0.85rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.65rem 1rem; text-decoration: none; color: inherit;
}
.sidebar-brand:hover { text-decoration: none; }
.logo {
  width: 2.35rem; height: 2.35rem; border-radius: 0.7rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  display: grid; place-items: center; font-weight: 700; color: #fff;
  font-family: "Space Grotesk", sans-serif; box-shadow: 0 0 20px rgba(99,179,237,.35);
}
.sidebar-brand strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 0.95rem; }
.sidebar-brand span { display: block; font-size: 0.68rem; color: hsl(var(--muted-foreground)); }
.nav-section {
  margin-top: 0.75rem; padding: 0 0.65rem 0.35rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: hsl(var(--muted-foreground));
}
.nav-link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 0.75rem; border-radius: 0.65rem;
  color: hsl(var(--muted-foreground)); font-size: 0.88rem; font-weight: 500;
  text-decoration: none; border: 1px solid transparent;
  transition: all .15s;
}
.nav-link:hover { color: #fff; background: rgba(99,179,237,.08); text-decoration: none; }
.nav-link.active {
  color: #fff; background: hsl(var(--primary) / 0.15);
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 0 20px rgba(59,130,246,.12);
}
.nav-link .ico { width: 1.25rem; text-align: center; opacity: .9; }
.sidebar-foot {
  margin-top: auto; padding: 0.85rem 0.65rem 0.25rem;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: 0.72rem; color: hsl(var(--muted-foreground)); line-height: 1.45;
}

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  backdrop-filter: blur(18px);
  background: hsl(var(--background) / 0.82);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}
.topbar h1 {
  font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.02em;
}
.topbar .crumbs { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.15rem; }
.topbar-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.menu-btn {
  display: none; border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  color: #fff; border-radius: 0.55rem; padding: 0.45rem 0.65rem; cursor: pointer;
}
@media (max-width: 960px) { .menu-btn { display: inline-flex; } }

.content { padding: 1.25rem 1.25rem 3rem; max-width: 1400px; width: 100%; margin: 0 auto; }
@media (min-width: 1024px) { .content { padding: 1.5rem 2rem 3.5rem; } }

/* UI primitives */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border-radius: 9999px; border: 1px solid hsl(var(--border) / 0.55);
  background: hsl(var(--card) / 0.55); color: hsl(var(--foreground));
  padding: 0.5rem 1rem; font: inherit; font-weight: 600; font-size: 0.82rem;
  cursor: pointer; transition: all .15s; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: hsl(var(--primary) / 0.45); background: hsl(var(--primary) / 0.08); text-decoration: none; color: inherit; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(220 90% 46%));
  border-color: transparent; color: #fff; box-shadow: 0 0 20px rgba(59,130,246,.22);
}
.btn-primary:hover { filter: brightness(1.06); color: #fff; }
.btn-mm {
  background: linear-gradient(135deg, #f6851b, #e2761b);
  border-color: transparent; color: #0b0c0f;
}
.btn-mm.connected {
  background: rgba(246,133,27,.12); border-color: rgba(246,133,27,.45);
  color: #ffd7a8; font-family: ui-monospace, Menlo, monospace; font-size: 0.75rem;
}
.btn-ghost { background: transparent; }
.wallet-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: hsl(var(--success)); box-shadow: 0 0 8px hsl(var(--success));
}

.glass {
  border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card) / 0.6);
  /* Default glass blur is OK on sparse chrome; skill grids kill it (see below). */
  backdrop-filter: blur(24px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.3);
}
/* P0: never blur hundreds of skill cards — freezes main thread on marketplace */
.skill-grid .glass,
.skill-grid .skill-card,
#ssr-inventory .glass,
#ssr-inventory .skill-card,
#grid .glass,
#grid .skill-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: hsl(var(--card) / 0.94);
}
.glass-hover { transition: transform .2s, border-color .2s, box-shadow .2s; }
.glass-hover:hover {
  transform: translateY(-2px);
  border-color: hsl(var(--primary) / 0.35);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.4), 0 0 24px rgba(99,179,237,.15);
}

.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem; border-radius: 9999px; font-size: 0.72rem; font-weight: 600;
}
.pill-live { background: hsl(var(--success) / 0.12); border: 1px solid hsl(var(--success) / 0.3); color: #86efac; }
.pill-info { background: hsl(var(--primary) / 0.12); border: 1px solid hsl(var(--primary) / 0.28); color: #93c5fd; }
.pill-warn { background: hsl(var(--warning) / 0.12); border: 1px solid hsl(var(--warning) / 0.3); color: #fcd34d; }

.tabs {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 0 0 1.25rem; padding: 0.35rem;
  border-radius: 0.9rem; border: 1px solid hsl(var(--border) / 0.45);
  background: hsl(var(--card) / 0.35);
}
.tab {
  border: 0; background: transparent; color: hsl(var(--muted-foreground));
  padding: 0.55rem 0.95rem; border-radius: 0.65rem; font: inherit; font-weight: 600;
  font-size: 0.82rem; cursor: pointer;
}
.tab.active, .tab:hover {
  background: hsl(var(--primary) / 0.15); color: #fff;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.stats-grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 1.25rem;
}
.stat-card { padding: 1.1rem 1.15rem; }
.stat-card .label { font-size: 0.72rem; color: hsl(var(--muted-foreground)); margin-bottom: 0.35rem; }
.stat-card .value {
  font-family: "Space Grotesk", sans-serif; font-size: 1.45rem; font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-card .sub { font-size: 0.72rem; color: hsl(var(--muted-foreground)); margin-top: 0.3rem; }

.panel { padding: 1.15rem 1.25rem; margin-bottom: 1rem; }
.panel h2 {
  font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; margin-bottom: 0.85rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap;
}
.panel h3 { font-family: "Space Grotesk", sans-serif; font-size: 0.95rem; margin-bottom: 0.65rem; }

.global-stats { padding: 0.35rem 1rem 0.5rem; }
.global-stat-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-bottom: 1px solid hsl(var(--border) / 0.45); padding: 0.7rem 0;
  font-size: 0.88rem;
}
.global-stat-item:last-child { border-bottom: 0; }
.global-stat-label { color: hsl(var(--muted-foreground)); }
.global-stat-value { font-weight: 600; font-family: ui-monospace, Menlo, monospace; font-size: 0.82rem; }

.bar-row { margin: 0.55rem 0 0.85rem; }
.bar-row .meta {
  display: flex; justify-content: space-between; font-size: 0.78rem;
  color: hsl(var(--muted-foreground)); margin-bottom: 0.3rem;
}
.bar {
  height: 8px; border-radius: 999px; background: hsl(var(--muted));
  overflow: hidden;
}
.bar > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
}

.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1.2fr 0.8fr; } }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

table.data {
  width: 100%; border-collapse: collapse; font-size: 0.82rem;
}
table.data th, table.data td {
  text-align: left; padding: 0.65rem 0.45rem;
  border-bottom: 1px solid hsl(var(--border) / 0.4);
}
table.data th { color: hsl(var(--muted-foreground)); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .05em; }
table.data td.mono { font-size: 0.75rem; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
  justify-content: space-between; margin-bottom: 1rem;
}
.filters { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip {
  border: 1px solid hsl(var(--border) / 0.55); background: transparent;
  color: hsl(var(--muted-foreground)); padding: 0.35rem 0.7rem; border-radius: 999px;
  font: inherit; font-size: 0.72rem; font-weight: 500; cursor: pointer;
}
.chip.active, .chip:hover {
  border-color: hsl(var(--primary) / 0.45); color: #fff; background: hsl(var(--primary) / 0.12);
}
.search {
  min-width: min(100%, 240px); flex: 1;
  border: 1px solid hsl(var(--border) / 0.55); background: hsl(var(--background));
  color: #fff; border-radius: 0.65rem; padding: 0.55rem 0.75rem;
  font: inherit; font-size: 0.85rem;
}

/* NFT */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.nft-card {
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card) / 0.6);
  backdrop-filter: blur(24px);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.35);
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.nft-card:hover { transform: translateY(-3px); border-color: hsl(var(--primary) / 0.4); }
.nft-media {
  aspect-ratio: 1; background: #0a101c; position: relative; overflow: hidden;
}
.nft-media img, .nft-media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.nft-badge {
  position: absolute; top: 0.65rem; left: 0.65rem;
  font-size: 0.65rem; font-weight: 700; padding: 0.25rem 0.5rem; border-radius: 999px;
  background: rgba(10,15,26,.75); border: 1px solid rgba(255,255,255,.12); color: #93c5fd;
}
.nft-owned {
  position: absolute; top: 0.65rem; right: 0.65rem;
  font-size: 0.65rem; font-weight: 700; padding: 0.25rem 0.5rem; border-radius: 999px;
  background: rgba(16,185,129,.2); border: 1px solid rgba(16,185,129,.45); color: #86efac;
}
.nft-info { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.nft-title {
  font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nft-sub { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.nft-actions {
  display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.5rem;
}
.nft-mint-btn {
  flex: 1; min-width: 100px;
  border: 0; border-radius: 0.65rem; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.78rem;
  padding: 0.55rem 0.7rem; color: #fff;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
}
.nft-mint-btn:hover { filter: brightness(1.08); }
.nft-send-btn {
  border-radius: 0.65rem; border: 1px solid hsl(var(--border));
  background: transparent; color: #cbd5e1; padding: 0.55rem 0.7rem;
  font: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer;
}

.collection-head {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end;
  justify-content: space-between; margin: 1.5rem 0 0.85rem;
}
.collection-head h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; }
.collection-head p { color: hsl(var(--muted-foreground)); font-size: 0.85rem; max-width: 48ch; }

/* Skill market cards in hub */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}
.skill-card {
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  border-color: rgba(148, 163, 184, 0.16) !important;
}
.skill-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.5), rgba(74,222,128,.4), transparent);
}
.skill-card .cat {
  font-size: 0.68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #7dd3fc;
}
.skill-card h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.skill-card h4 a { color: inherit; text-decoration: none; }
.skill-card h4 a:hover { color: #bfdbfe; }
.skill-card p {
  color: hsl(var(--muted-foreground));
  font-size: 0.86rem;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price {
  font-family: ui-monospace, Menlo, monospace;
  color: #4ade80;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tag {
  font-family: ui-monospace, Menlo, monospace; font-size: 0.64rem;
  border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground));
  padding: 0.12rem 0.4rem; border-radius: 6px;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  margin-top: auto;
}
.card-foot .btn-ghost,
.card-foot a.btn {
  border-color: rgba(74, 222, 128, 0.35);
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.12);
  font-weight: 700;
}
.card-foot .btn-ghost:hover,
.card-foot a.btn:hover {
  background: rgba(22, 163, 74, 0.22);
  border-color: rgba(74, 222, 128, 0.55);
  color: #ecfdf5;
  text-decoration: none;
}
.ssr-meta {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
}

/* Modal */
.modal-bg {
  position: fixed; inset: 0; z-index: 80; display: none; place-items: center;
  padding: 1rem; background: rgba(0,0,0,.8); backdrop-filter: blur(8px);
}
.modal-bg.open { display: grid; }
.modal {
  width: min(560px, 100%); max-height: min(92vh, 920px); overflow: auto;
  padding: 1.3rem; border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.5); background: hsl(var(--card) / 0.95);
  backdrop-filter: blur(20px); box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.modal h3 { font-family: "Space Grotesk", sans-serif; margin-bottom: 0.4rem; }
.modal .desc { color: hsl(var(--muted-foreground)); font-size: 0.88rem; line-height: 1.45; }
.wallet-status {
  margin-top: 0.75rem; padding: 0.65rem 0.8rem; border-radius: 0.7rem;
  border: 1px solid hsl(var(--border) / 0.5); background: hsl(var(--background) / 0.55);
  font-family: ui-monospace, Menlo, monospace; font-size: 0.72rem; color: hsl(var(--muted-foreground));
}
.wallet-status strong { color: #4ade80; }
.wallet-status .warn { color: #fbbf24; }
.modal pre {
  margin: 0.9rem 0; padding: 0.8rem; border-radius: 0.7rem; overflow: auto; max-height: 220px;
  background: hsl(var(--background)); border: 1px solid hsl(var(--border) / 0.5);
  font-family: ui-monospace, Menlo, monospace; font-size: 0.72rem; color: #cbd5e1; line-height: 1.45;
}
.modal label { display: block; font-size: 0.78rem; color: hsl(var(--muted-foreground)); margin-top: 0.5rem; }
.modal input {
  width: 100%; margin-top: 0.35rem; padding: 0.55rem 0.7rem; border-radius: 0.6rem;
  border: 1px solid hsl(var(--border)); background: hsl(var(--background)); color: #fff;
  font-family: ui-monospace, Menlo, monospace; font-size: 0.8rem;
}
.modal .row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem; }

.empty {
  padding: 2rem; text-align: center; color: hsl(var(--muted-foreground)); font-size: 0.9rem;
}

/* Skill detail (modal) */
.skill-detail-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.85rem; align-items: center;
  margin-bottom: 0.75rem;
}
.skill-detail-body {
  color: hsl(var(--foreground) / 0.92); font-size: 0.92rem; line-height: 1.55;
  margin-bottom: 0.9rem;
}
.skill-situations {
  margin: 0.5rem 0 0.85rem; padding: 0.85rem 1rem;
  border-radius: 0.75rem; border: 1px solid hsl(var(--border) / 0.55);
  background: hsl(var(--background) / 0.45);
}
.skill-situations-title {
  font-family: "Space Grotesk", Inter, sans-serif; font-size: 0.82rem;
  font-weight: 700; margin-bottom: 0.5rem; color: #93c5fd;
}
.skill-situations ul {
  margin: 0; padding-left: 1.1rem; color: hsl(var(--muted-foreground));
  font-size: 0.85rem; line-height: 1.5;
}
.skill-situations li { margin: 0.35rem 0; }
.skill-detail-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.5rem; }
.skill-detail-id { font-size: 0.72rem; color: hsl(var(--muted-foreground)); margin-top: 0.35rem; }
.skill-card { cursor: pointer; }
.skill-card:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
.badge-stub {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fcd34d;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  vertical-align: middle;
}
.badge-premium {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  vertical-align: middle;
}
.skill-card--stub {
  border-color: rgba(234, 179, 8, 0.25) !important;
  opacity: 0.92;
}
.stub-note {
  font-size: 0.75rem !important;
  color: #fcd34d !important;
  margin: 0 !important;
  flex: 0 !important;
}
.skill-card--highlight {
  border-color: rgba(59, 130, 246, 0.75) !important;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.45), 0 12px 40px rgba(59, 130, 246, 0.18);
  animation: skill-pulse 1.6s ease-in-out 2;
}
@keyframes skill-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.45), 0 12px 40px rgba(59, 130, 246, 0.12); }
  50% { box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.7), 0 16px 48px rgba(59, 130, 246, 0.28); }
}
.card.clickable { cursor: pointer; }
.card.clickable:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }

.chart-legend {
  display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.75rem;
  font-size: 0.72rem; color: hsl(var(--muted-foreground));
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 0.3rem; }
