/* Hub page styles */

.hub-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px 28px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Header */
.hub-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.hub-header-left { display: flex; flex-direction: column; gap: 2px; }
.hub-title { font-size: 20px; font-weight: 700; color: var(--text); }
.hub-subtitle { font-size: 12px; color: var(--muted); }
.hub-header-right { display: flex; align-items: center; gap: 10px; }

.hub-range-seg {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
}
.hub-seg-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.hub-seg-btn:hover { color: var(--text); }
.hub-seg-btn.active {
  background: var(--panel-2);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.hub-viewall-btn {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.hub-viewall-btn:hover { background: var(--panel-2); }

/* Sections */
.hub-section { display: flex; flex-direction: column; gap: 10px; }
.hub-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Skills grid */
.hub-skills-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hub-skill-search {
  width: min(320px, 100%);
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  outline: none;
  padding: 0 10px;
}
.hub-skill-search::placeholder { color: var(--muted); }
.hub-skill-search:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 16%, transparent);
}
.hub-skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.hub-skills-grid.hub-skills-grid-all {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.hub-skill-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hub-skill-card:hover { border-color: var(--brand); }
.hub-skill-card.open { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.hub-skill-card-head {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  position: relative;
  min-height: 110px;
}
.hub-skill-icon,
.hub-modal-icon {
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--brand) 32%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 10%, var(--panel-2));
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hub-skill-icon svg,
.hub-modal-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hub-skill-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-skill-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hub-skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 1px;
}
.hub-skill-badge {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.2;
  color: var(--muted);
  background: var(--panel-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-skill-badge.lifecycle[data-value="active"] {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  color: var(--brand);
}
.hub-skill-badge.lifecycle[data-value="experimental"],
.hub-skill-badge.lifecycle[data-value="draft"] {
  border-color: #fdba74;
  color: #c2410c;
}
.hub-skill-badge.lifecycle[data-value="deprecated"],
.hub-skill-badge.lifecycle[data-value="archived"] {
  color: var(--muted);
  opacity: 0.78;
}
.hub-skill-badge.ownership {
  color: var(--text);
}
.hub-skill-preview {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-skill-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
  border-top: 1px solid transparent;
  padding: 0 14px;
}
.hub-skill-card.open .hub-skill-card-body {
  max-height: min(440px, 62vh);
  overflow-y: auto;
  scrollbar-gutter: stable;
  border-top-color: var(--line);
  padding: 10px 12px 12px;
}

.hub-skill-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 11px;
}
.hub-skill-meta-label { color: var(--muted); font-weight: 600; }
.hub-skill-meta-val { color: var(--text); }

.hub-skill-card-changes {
  border-top: 1px solid var(--line);
  margin-top: 7px;
  padding-top: 8px;
}
.hub-skill-card-changes-title,
.hub-modal-section-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.hub-skill-change-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hub-skill-change {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 8px;
  background: color-mix(in srgb, var(--panel-2) 70%, transparent);
  min-width: 0;
}
.hub-skill-change-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.hub-skill-change-type {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 750;
  color: var(--text);
}
.hub-skill-change-time {
  flex: 0 0 auto;
  font-size: 10px;
  color: var(--muted);
}
.hub-skill-change-reason,
.hub-skill-change-by,
.hub-skill-change-empty {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--muted);
}
.hub-skill-change-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.hub-skill-change-paths span {
  max-width: 100%;
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--muted);
  padding: 2px 5px;
  font-size: 9px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-skill-card-actions {
  position: sticky;
  bottom: -12px;
  display: flex;
  justify-content: flex-end;
  padding: 8px 0 0;
  margin-top: 8px;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--panel) 0%, transparent),
    var(--panel) 34%
  );
}
.hub-skill-view-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
}
.hub-skill-view-btn:hover { filter: brightness(1.05); }

/* Split */
.hub-split {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 18px;
  margin-top: 4px;
}
.hub-split-pane { display: flex; flex-direction: column; gap: 10px; }
.hub-split-divider { background: var(--line); width: 1px; }

/* Goals */
.hub-achievements-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
}
.hub-goal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}
.hub-goal-card[data-status="active"] { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.hub-goal-card[data-status="blocked"],
.hub-goal-card[data-status="failed"] { border-color: var(--red); }
.hub-goal-card-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.hub-goal-status { font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:0.04em; color:var(--muted); }
.hub-goal-turns { font-size:10px; color:var(--muted); white-space:nowrap; }
.hub-goal-title { font-size:12px; line-height:1.35; font-weight:750; color:var(--text); }
.hub-goal-meta { font-size:10px; color:var(--muted); display:flex; gap:8px; flex-wrap:wrap; }
.hub-goal-denial { font-size:10px; line-height:1.4; color:var(--red); max-height:42px; overflow:hidden; }
.hub-goal-summary { font-size:11px; line-height:1.45; color:var(--muted); max-height:64px; overflow:hidden; }

/* Heatmap pane */
.hub-pane-heatmap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.hub-pane-achievements {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.hub-heatmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hub-heatmap-nav { display: flex; align-items: center; gap: 8px; }
.hub-heatmap-arrow {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--text);
}
.hub-heatmap-arrow:hover { background: var(--bg-soft); color: var(--text); }
.hub-heatmap-label { font-size: 12px; font-weight: 600; color: var(--text); min-width: 110px; text-align: center; }

/* Daily bar chart (current week, 7 bars Sun→Sat) */
.hub-daily-bars {
  display: flex;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  height: 88px;
  padding: 4px 0 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.hub-daily-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  cursor: default;
}
.hub-daily-bar-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-height: 0;
}
.hub-daily-bar-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  padding: 4px 0 2px;
  letter-spacing: 0.04em;
}
.hub-daily-bar {
  width: 100%;
  background: var(--brand);
  border-radius: 2px 2px 0 0;
  min-height: 1px;
  transition: filter 0.15s;
}
.hub-daily-bar.empty {
  background: var(--line);
  opacity: 0.6;
  height: 4px !important;
  align-self: flex-end;
}
.hub-daily-col:hover .hub-daily-bar:not(.empty) { filter: brightness(1.1); }
.hub-daily-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.hub-daily-summary-left { display: flex; flex-direction: column; gap: 1px; }
.hub-daily-summary-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hub-daily-summary-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.hub-daily-summary-unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}
.hub-daily-summary-range {
  font-size: 11px;
  color: var(--muted);
}
.hub-daily-summary-total { font-size: 11px; color: var(--muted); }

/* Heatmap (calendar-style: rows = day-of-week, cols = weeks of month) */
.hub-heatmap-grid {
  padding: 14px 0 6px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}
.hub-heat-daylabels {
  display: grid;
  grid-template-rows: repeat(7, 28px);
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
}
.hub-heat-daylabel {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hub-heatmap-cells {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 28px);
  grid-auto-columns: 28px;
  gap: 5px;
}
.hub-heat-cell {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--line);
  cursor: default;
  transition: outline 0.1s, transform 0.1s;
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.hub-heat-cell:not(.hub-heat-empty):hover { transform: scale(1.08); }
.hub-heat-cell:hover { outline: 2px solid var(--brand); outline-offset: 1px; }
/* Brand-orange ramp (Prometheus flame): 0 = base, 1-5 = increasing intensity */
.hub-heat-cell[data-level="0"] { background: rgba(15,23,42,0.06); }
.hub-heat-cell[data-level="1"] { background: #fed7aa; }
.hub-heat-cell[data-level="2"] { background: #fdba74; }
.hub-heat-cell[data-level="3"] { background: #fb923c; }
.hub-heat-cell[data-level="4"] { background: #f97316; }
.hub-heat-cell[data-level="5"] { background: #c2410c; }
.hub-heat-empty { background: transparent !important; pointer-events: none; }
.hub-heat-empty:hover { outline: none; }

.hub-heatmap-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 10px;
  font-size: 10px;
  color: var(--muted);
}
.hub-legend-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  display: inline-block;
}
.hub-legend-cell[data-level="0"] { background: rgba(15,23,42,0.06); }
.hub-legend-cell[data-level="1"] { background: #fed7aa; }
.hub-legend-cell[data-level="2"] { background: #fdba74; }
.hub-legend-cell[data-level="3"] { background: #fb923c; }
.hub-legend-cell[data-level="4"] { background: #f97316; }
.hub-legend-cell[data-level="5"] { background: #c2410c; }
.hub-legend-text { padding: 0 4px; }

/* Empty */
.hub-empty {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* Stats card (Overview / Models) */
.hub-stats-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.hub-stats-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hub-stats-tabs {
  display: inline-flex;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
}
.hub-stats-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
}
.hub-stats-tab.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.hub-stats-range {
  display: inline-flex;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
}
.hub-stats-range-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.hub-stats-range-btn.active {
  background: var(--panel);
  color: var(--text);
}

.hub-stats-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.hub-stat-tile {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 60px;
}
.hub-stat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.hub-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  word-break: break-word;
}
.hub-stat-sub {
  font-size: 10px;
  color: var(--muted);
}

.hub-stats-footnote {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.hub-stats-models { display: flex; flex-direction: column; gap: 10px; }
.hub-models-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hub-models-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--text);
}
.hub-models-chip-name { font-weight: 700; }
.hub-models-chip-val { color: var(--muted); }

.hub-models-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.hub-models-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 70px 90px 70px minmax(120px, 2fr);
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 12px;
  border-top: 1px solid var(--line);
}
.hub-models-row:first-child { border-top: none; }
.hub-models-head {
  background: var(--panel-2);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.hub-models-name {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-models-num { text-align: right; font-variant-numeric: tabular-nums; }
.hub-models-bar-cell { display: flex; align-items: center; }
.hub-models-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--brand);
  min-width: 4px;
}

/* Skill Curator */
.hub-curator-section {
  margin-top: 4px;
  padding: 14px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.hub-curator-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.hub-curator-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.hub-curator-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hub-curator-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.hub-curator-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hub-curator-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hub-curator-card[data-status="pending"] {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
}
.hub-curator-card[data-status="quarantined"],
.hub-curator-card[data-risk="high"] {
  border-color: var(--red);
}
.hub-curator-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.hub-curator-title-wrap { min-width: 0; }
.hub-curator-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}
.hub-curator-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.hub-curator-badges,
.hub-curator-evidence,
.hub-curator-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.hub-curator-badges { justify-content: flex-end; flex-shrink: 0; }
.hub-curator-badge,
.hub-curator-evidence span {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-curator-card[data-status="pending"] .hub-curator-badge.status {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
}
.hub-curator-card[data-status="applied"] .hub-curator-badge.status {
  color: #15803d;
  border-color: #86efac;
}
.hub-curator-card[data-status="rejected"] .hub-curator-badge.status {
  color: var(--muted);
}
.hub-curator-card[data-status="quarantined"] .hub-curator-badge.status,
.hub-curator-card[data-risk="high"] .hub-curator-badge.risk {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 42%, var(--line));
}
.hub-curator-apply-preview {
  border: 1px solid color-mix(in srgb, #15803d 34%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, #15803d 8%, var(--panel));
  color: var(--text);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}
.hub-curator-lesson {
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}
.hub-curator-trigger,
.hub-curator-why {
  color: var(--text);
  font-size: 11px;
  line-height: 1.45;
}
.hub-curator-trigger {
  border-left: 3px solid var(--brand);
  padding-left: 9px;
}
.hub-curator-trigger span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.hub-curator-why { color: var(--muted); }
.hub-curator-reason {
  color: var(--text);
  font-size: 11px;
  line-height: 1.45;
  opacity: .78;
}
.hub-curator-path {
  align-self: flex-start;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--muted);
  padding: 5px 7px;
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hub-curator-path span {
  margin-right: 7px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hub-curator-details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.hub-curator-details summary {
  cursor: pointer;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}
.hub-curator-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.hub-curator-detail-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  padding: 7px;
}
.hub-curator-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hub-curator-detail-grid code {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-curator-findings {
  margin-top: 8px;
  color: var(--red);
  font-size: 11px;
  line-height: 1.4;
}
.hub-curator-content {
  margin: 8px 0 0;
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--text);
  padding: 10px;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}
:root[data-theme="dark"] .hub-curator-content {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.14);
}
.hub-curator-card-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.hub-curator-btn {
  border: none;
  border-radius: 7px;
  padding: 7px 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.hub-curator-btn:disabled { opacity: 0.55; cursor: wait; }
.hub-curator-btn.approve { background: #15803d; }
.hub-curator-btn.deny { background: #dc2626; }
.hub-curator-resolved {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .hub-stats-tiles { grid-template-columns: repeat(3, 1fr); }
  .hub-curator-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-curator-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hub-stats-tiles { grid-template-columns: repeat(2, 1fr); }
  .hub-models-row { grid-template-columns: minmax(0, 1fr) 60px 80px 60px; }
  .hub-models-bar-cell { display: none; }
  .hub-curator-header,
  .hub-curator-card-head { flex-direction: column; }
  .hub-curator-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-curator-badges,
  .hub-curator-card-actions,
  .hub-curator-actions { justify-content: flex-start; }
  .hub-curator-detail-grid { grid-template-columns: 1fr; }
}

/* Modal */
.hub-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.hub-modal-card {
  position: relative;
  background: var(--panel);
  border-radius: 12px;
  width: min(900px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
  overflow: hidden;
}
.hub-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.hub-modal-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--text); }
.hub-modal-version { font-size: 11px; color: var(--muted); font-weight: 500; }
.hub-modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0 6px;
}
.hub-modal-close:hover { color: var(--text); }

.hub-modal-body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
}
.hub-modal-skill-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.hub-modal-skill-meta-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--panel-2);
  min-width: 0;
}
.hub-modal-skill-meta-item span {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hub-modal-skill-meta-item strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text);
}
.hub-modal-change-panel {
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  padding-bottom: 14px;
}
.hub-modal-markdown {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.hub-modal-markdown h1,
.hub-modal-markdown h2,
.hub-modal-markdown h3 { margin-top: 16px; margin-bottom: 8px; }
.hub-modal-markdown pre {
  background: var(--bg-soft);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 12px;
}
.hub-modal-markdown code {
  background: var(--bg-soft);
  color: var(--text);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 12px;
}
.hub-modal-markdown pre code { background: transparent; padding: 0; }

@media (max-width: 760px) {
  .hub-modal-skill-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hub-skills-topbar {
    align-items: stretch;
    flex-direction: column;
  }
  .hub-skill-search { width: 100%; }
}
