/* DeepSeek Harness Community Registry — original stylesheet */
:root {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --warm: #f5f2ef;
  --ink: #181411;
  --fg: #181411;
  --fg-2: #4e4e4e;
  --muted: #777169;
  --line: #e5e5e5;
  --line-soft: rgba(0, 0, 0, 0.05);
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue-soft: rgba(37, 99, 235, 0.08);
  --blue-ring: rgba(37, 99, 235, 0.14);
  --sky: #60a5fa;
  --cream: #f5f2ef;
  --ok: #16a34a;
  --warn: #eab308;
  --warn-ink: #854d0e;
  --danger: #dc2626;
  --font-ui: "Inter", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1200px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --pill: 9999px;
  --shadow: rgba(0, 0, 0, 0.06) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 1px 2px, rgba(0, 0, 0, 0.04) 0 2px 4px;
  --shadow-ink: rgba(0, 0, 0, 0.4) 0 0 1px, rgba(0, 0, 0, 0.04) 0 4px 4px;
  --focus: 0 0 0 3px rgba(147, 197, 253, 0.5);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.6 var(--font-ui);
  letter-spacing: 0.14px;
}

::selection { background: var(--blue-soft); }

img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
a { color: inherit; }

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

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 9px 14px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--cream);
  font: 500 13px var(--font-ui); text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* —— topbar —— */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in { display: flex; align-items: center; gap: 26px; height: 60px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--fg); flex: none;
}
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px;
  box-shadow: var(--shadow); flex: none;
}
.brand-word { display: grid; gap: 2px; font-family: var(--font-mono); line-height: 1; }
.brand-word strong { font-size: 12px; font-weight: 500; letter-spacing: 0.015em; }
.brand-word em {
  color: var(--muted); font-size: 9px; font-style: normal; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.brand:hover .brand-word em { color: var(--blue); }

.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a {
  font: 500 14px/1 var(--font-ui);
  color: var(--muted); text-decoration: none;
  padding: 8px 10px; border-radius: var(--r-sm);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav a::before { content: "["; color: var(--line); font-family: var(--font-mono); }
.nav a::after { content: "]"; color: var(--line); font-family: var(--font-mono); }
.nav a:hover { color: var(--blue); }
.nav a.on { color: var(--fg); }
.nav a.on::before, .nav a.on::after { color: var(--blue); }

.topbar-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.cli-tag {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-2);
  padding: 5px 12px; border-radius: var(--pill); background: var(--warm);
}
.cli-tag::before { content: "● "; color: var(--ok); font-size: 9px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 0;
  padding: 2px; border-radius: var(--pill); background: var(--warm);
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font: 500 12px/1 var(--font-mono);
  padding: 5px 10px; border-radius: var(--pill);
}
.lang-toggle button:hover { color: var(--fg); }
.lang-toggle button.on {
  background: var(--bg); color: var(--fg); box-shadow: var(--shadow);
}


/* —— buttons / pills —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 14px/1 var(--font-ui); letter-spacing: 0.02em;
  padding: 10px 18px; border-radius: var(--pill); cursor: pointer;
  border: 0; background: var(--bg); color: var(--fg);
  box-shadow: var(--shadow-ink); text-decoration: none; white-space: nowrap;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: var(--warm); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-primary { background: #000; color: #fff; box-shadow: none; }
.btn-primary:hover { background: #1a1a1a; }
.btn.is-disabled, .btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.38; pointer-events: none;
}

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font: 500 11px/1 var(--font-mono); letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: var(--pill);
  background: var(--surface); color: var(--fg-2);
}
.pill-source { box-shadow: var(--shadow); }
.pill-manifest { background: var(--blue-soft); color: var(--blue); box-shadow: 0 0 0 1px var(--blue-ring); }
.pill-unchecked, .pill-pending { background: #eab3081a; color: var(--warn-ink); box-shadow: 0 0 0 1px #eab3082e; }
.pill-danger { color: var(--danger); background: #dc262614; }
.pill-ok { color: var(--ok); background: #16a34a14; }

/* —— page head —— */
.page-head { padding: 48px 0 0; }
.eyebrow {
  font: 500 12px/1 var(--font-mono); letter-spacing: 0.1em; color: var(--muted);
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.eyebrow::before { content: ">"; color: var(--blue); }
.page-title { font-size: clamp(34px, 4.6vw, 48px); text-wrap: balance; max-width: 24ch; }
.page-title .caret {
  display: inline-block; width: 0.5em; height: 0.92em;
  background: var(--blue); vertical-align: -0.06em; margin-left: 6px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.page-sub {
  margin-top: 14px; color: var(--fg-2); font-size: 16px;
  letter-spacing: 0.16px; max-width: 68ch; text-wrap: pretty;
}

.discovery-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: stretch; gap: 12px; margin-top: 24px;
}
.searchbar {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border-radius: var(--pill);
  box-shadow: var(--shadow); padding: 0 20px; min-height: 50px;
}
.searchbar:focus-within { box-shadow: var(--shadow), var(--focus); }
.searchbar svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.searchbar input {
  flex: 1; border: 0; outline: 0; background: none;
  font: 14px var(--font-mono); color: var(--fg);
}
.searchbar input::placeholder { color: var(--muted); }
.kbd {
  font: 500 11px/1 var(--font-mono); color: var(--muted);
  border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; padding: 4px 7px; background: var(--bg);
}

.termline {
  min-width: 0; display: flex; align-items: center; gap: 10px;
  font: 13px var(--font-mono); color: #a39a92;
  background: var(--ink); border: 1px solid rgba(245, 242, 239, 0.12);
  border-radius: 18px; padding: 13px 18px; box-shadow: var(--shadow-ink);
}
.termline .tl-prompt { color: var(--sky); user-select: none; }
.termline #typer { color: var(--cream); }
.termline .caret {
  width: 8px; height: 15px; background: var(--sky);
  animation: blink 1.1s steps(1) infinite;
}

.intent-row {
  display: flex; align-items: center; gap: 7px;
  margin-top: 12px; overflow-x: auto; scrollbar-width: thin;
}
.intent-row > span {
  color: var(--muted); font: 500 10px var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase; flex: none;
}
.intent-row button {
  flex: none; padding: 5px 10px; border: 1px solid var(--line);
  border-radius: var(--pill); background: var(--bg); color: var(--fg-2);
  font: 12px var(--font-ui); cursor: pointer;
}
.intent-row button:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

.statstrip { display: flex; gap: 0; margin-top: 26px; border-top: 1px solid var(--line-soft); }
.statstrip .ss { padding: 15px 36px 0 0; margin-right: 36px; border-right: 1px solid var(--line-soft); }
.statstrip .ss:last-child { border-right: 0; }
.ss b {
  display: block; font: 300 30px/1.15 var(--font-display);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.ss span { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

/* —— toolbar —— */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 26px 0 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font: 500 13px/1 var(--font-ui); letter-spacing: 0.02em;
  padding: 8px 15px; border-radius: var(--pill); cursor: pointer;
  border: 0; background: var(--surface); color: var(--fg-2);
  transition: all 0.15s var(--ease);
}
.chip:hover { color: var(--fg); background: var(--warm); }
.chip.on { background: #000; color: #fff; }
.chip-count { margin-left: 3px; color: var(--muted); font: 500 10px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.chip.on .chip-count { color: rgba(255, 255, 255, 0.66); }
.toolbar-r { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sel {
  font: 500 13px var(--font-ui); color: var(--fg); border: 0;
  background: var(--surface); border-radius: var(--pill);
  padding: 8px 14px; cursor: pointer;
}

.section-label {
  display: flex; align-items: baseline; gap: 16px;
  margin: 38px 0 18px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.section-label h2 { font-size: 32px; }
.section-label h2::before { content: "## "; color: var(--blue); font-family: var(--font-mono); font-weight: 400; font-size: 0.7em; }
.section-label .sl-note { font: 400 11px/1 var(--font-mono); color: var(--muted); letter-spacing: 0.06em; }

/* —— plugin rows —— */
.pavatar {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font: 500 16px var(--font-mono);
  color: #fff; background: #000; position: relative; overflow: hidden;
}
.pavatar.lg { width: 58px; height: 58px; font-size: 24px; border-radius: 16px; }
.pavatar img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.18s var(--ease), transform 0.24s var(--ease);
}
.pavatar.has-image img { opacity: 1; }
.pavatar.has-image { background: var(--surface); box-shadow: var(--shadow); }
.prow:hover .pavatar img { transform: scale(1.04); }

.plist { border-top: 1px solid var(--line-soft); }
.prow {
  display: grid;
  grid-template-columns: 48px 40px minmax(0, 1fr) 92px 82px 116px;
  align-items: center; gap: 16px;
  padding: 16px 12px; border-bottom: 1px solid var(--line-soft);
  border-radius: var(--r-sm); transition: background 0.15s var(--ease);
}
.prow:hover { background: var(--surface); }
.prow-pending { background: linear-gradient(90deg, rgba(234, 179, 8, 0.055), transparent 38%); }
.prow-idx { font: 400 12px var(--font-mono); color: var(--muted); }
.prow-main { min-width: 0; }
.prow-name a {
  font: 500 14px var(--font-mono); color: var(--fg); text-decoration: none;
  letter-spacing: -0.01em;
}
.prow-name a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prow-desc {
  font-size: 13px; color: var(--fg-2); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prow-signals {
  display: flex; align-items: center; gap: 7px; min-height: 17px;
  margin-top: 5px; overflow: hidden; white-space: nowrap;
}
.prow-topic {
  max-width: 140px; overflow: hidden; text-overflow: ellipsis;
  color: var(--fg-2); font: 500 10px/1 var(--font-mono);
}
.prow-updated {
  margin-left: auto; color: var(--muted);
  font: 400 10px/1 var(--font-mono); font-variant-numeric: tabular-nums;
}
.prow-stars, .prow-forks {
  display: grid; grid-template-columns: 14px auto; align-items: center;
  column-gap: 6px; font: 500 13px var(--font-mono);
  font-variant-numeric: tabular-nums; color: var(--fg);
}
.prow-stars svg { width: 13px; height: 13px; color: var(--warn); }
.prow-forks svg { width: 13px; height: 13px; color: var(--muted); }
.prow-stars small, .prow-forks small {
  grid-column: 2; display: block; font: 400 9px var(--font-mono);
  color: var(--muted); letter-spacing: 0.06em;
}
.prow-empty { padding: 64px 0; text-align: center; color: var(--muted); font-size: 13px; }
.load-more-wrap { display: flex; justify-content: center; padding: 28px 0 0; }
.load-more-wrap[hidden] { display: none; }

/* —— detail —— */
.crumb {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 13px var(--font-ui); color: var(--muted);
  text-decoration: none; margin-top: 44px;
}
.crumb:hover { color: var(--blue); }
.crumb svg { width: 14px; height: 14px; }

.detail-head { display: flex; gap: 22px; align-items: flex-start; margin-top: 24px; }
.detail-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-title h1 { font: 300 40px var(--font-display); letter-spacing: -0.02em; }
.detail-owner { margin-top: 6px; color: var(--muted); font: 12px var(--font-mono); }
.detail-desc { margin-top: 12px; color: var(--fg-2); font-size: 15px; max-width: 60ch; }
.detail-cta { margin-left: auto; display: flex; gap: 10px; flex: none; }

.evidence-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 28px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--line);
}
.evidence-grid > div { min-width: 0; padding: 14px 18px; background: var(--bg); }
.evidence-grid span {
  display: block; color: var(--muted); font: 10px var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.evidence-grid strong { display: block; margin-top: 5px; font-size: 13px; font-weight: 500; }

.installbox {
  margin-top: 28px; background: var(--ink);
  border: 1px solid rgba(245, 242, 239, 0.12); border-radius: 18px;
  padding: 18px 22px; display: flex; align-items: center; gap: 14px;
  font: 13.5px var(--font-mono); color: var(--cream); box-shadow: var(--shadow-ink);
}
.installbox .dollar { color: var(--sky); user-select: none; }
.installbox code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; }
.installbox .copy {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid rgba(245, 242, 239, 0.12);
  color: #a39a92; font: 500 12px var(--font-mono);
  padding: 7px 14px; border-radius: var(--pill); cursor: pointer;
}
.installbox .copy:hover { border-color: var(--sky); color: var(--sky); }
.install-note { margin-top: 14px; font-size: 12px; color: var(--muted); }

.detail-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px; margin-top: 40px; align-items: start;
}
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); }
.tab {
  font: 500 14px var(--font-ui); color: var(--muted);
  padding: 11px 16px; border: 0; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.on { color: var(--fg); border-bottom-color: var(--blue); }
.tabpane { padding: 28px 2px; }
.readme h3 { font-size: 22px; margin: 28px 0 12px; }
.readme h3::before { content: "### "; color: var(--blue); font-family: var(--font-mono); font-weight: 400; font-size: 0.72em; }
.readme h3:first-child { margin-top: 0; }
.readme p { color: var(--fg-2); font-size: 14.5px; margin-bottom: 12px; max-width: 70ch; }
.decision-list {
  max-width: 70ch; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface); list-style: none;
}
.decision-list li { margin-bottom: 8px; padding-left: 18px; position: relative; color: var(--fg-2); }
.decision-list li::before { content: "›"; position: absolute; left: 0; color: var(--blue); }
.decision-list li:last-child { margin-bottom: 0; }

.evidence-card {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 12px 0 30px; padding: 18px;
  border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface);
}
.evidence-card b { font-size: 14px; }
.evidence-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.evidence-mark {
  display: grid; place-items: center; width: 25px; height: 25px;
  border-radius: 50%; background: var(--blue-soft); color: var(--blue);
  font: 600 13px var(--font-mono); flex: none;
}

.topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip {
  padding: 6px 10px; border-radius: var(--pill); background: var(--surface);
  color: var(--fg-2); font: 11px var(--font-mono); box-shadow: var(--shadow);
}

.related-section { margin-top: 36px; }
.related-list { display: grid; gap: 8px; }
.related-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--fg); text-decoration: none;
}
.related-item:hover { border-color: var(--blue); background: var(--blue-soft); }
.related-item span { min-width: 0; display: grid; }
.related-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px var(--font-mono); }
.related-item small { margin-top: 3px; color: var(--muted); font: 10px var(--font-mono); }
.related-item strong { flex: none; color: var(--fg-2); font: 500 11px var(--font-mono); }

.side-card {
  background: var(--bg); border-radius: var(--r-md);
  box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px;
}
.side-card h4 {
  font: 500 11px var(--font-mono); letter-spacing: 0.1em; color: var(--muted);
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft);
}
.side-card h4::before { content: "// "; color: var(--blue); }
.metric-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric-pair div { padding: 14px; background: var(--surface); border-radius: 12px; }
.metric-pair b { display: block; color: var(--fg); font: 500 23px var(--font-mono); }
.metric-pair span {
  display: block; margin-top: 4px; color: var(--muted);
  font: 10px var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
}
.kv {
  display: flex; justify-content: space-between; font-size: 13px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); gap: 12px;
}
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { font-family: var(--font-mono); font-size: 12px; color: var(--fg); text-align: right; }
.kv .v a { color: var(--fg); text-decoration: none; }
.kv .v a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.detail-report { display: inline-flex; color: var(--muted); font-size: 12px; text-underline-offset: 3px; }
.detail-report:hover { color: var(--blue); }

.empty-state { padding: 80px 0 40px; text-align: center; }
.empty-state h1 { font-size: 36px; margin-bottom: 12px; }
.empty-state p { color: var(--fg-2); margin-bottom: 22px; }

/* —— modal —— */
html.modal-open, html.modal-open body { overflow: hidden; }
.install-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  margin: auto; padding: 0; border: 0; border-radius: 24px;
  background: var(--bg); color: var(--fg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22); overflow: auto;
}
.install-dialog::backdrop { background: rgba(24, 20, 17, 0.48); backdrop-filter: blur(5px); }
.install-dialog[open] { animation: dialog-in 0.22s var(--ease) both; }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.install-dialog-card { padding: 30px; }
.install-dialog-head { display: flex; align-items: flex-start; gap: 20px; }
.install-dialog-kicker {
  display: block; margin-bottom: 8px; color: var(--blue);
  font: 500 10px/1 var(--font-mono); letter-spacing: 0.12em;
}
.install-dialog-head h2 { font-size: 30px; overflow-wrap: anywhere; }
.install-dialog-close {
  width: 38px; height: 38px; margin-left: auto; flex: none;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--surface); color: var(--fg-2); font: 300 25px/1 var(--font-ui); cursor: pointer;
}
.install-dialog-close:hover { background: var(--warm); color: var(--fg); }
.install-dialog-intro { margin-top: 14px; color: var(--fg-2); font-size: 14px; max-width: 62ch; }
.install-steps { display: grid; gap: 2px; margin-top: 22px; list-style: none; }
.install-steps li {
  display: grid; grid-template-columns: 36px 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.install-steps li > span { color: var(--blue); font: 500 11px/1.7 var(--font-mono); }
.install-steps b { display: block; font-size: 14px; font-weight: 500; }
.install-steps p { margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.install-dialog-command {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  margin-top: 20px; padding: 15px 16px; border-radius: 14px;
  background: var(--ink); color: var(--cream); font: 12.5px var(--font-mono);
}
.install-dialog-command span { color: var(--sky); user-select: none; }
.install-dialog-command code { min-width: 0; overflow-x: auto; white-space: nowrap; }
.install-dialog-copy { width: 100%; justify-content: center; margin-top: 12px; min-height: 44px; }
.install-dialog-status { min-height: 18px; margin-top: 9px; text-align: center; color: var(--muted); font-size: 11.5px; }
.install-dialog-safety { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #eab30817; }
.install-dialog-safety b { color: var(--warn-ink); font-size: 12px; }
.install-dialog-safety p { margin-top: 4px; color: var(--fg-2); font-size: 12px; line-height: 1.55; }

/* —— publish —— */
.stepper {
  display: flex; margin: 44px 0 40px; border-radius: var(--r-md);
  background: var(--bg); box-shadow: var(--shadow); overflow: hidden; list-style: none;
}
.step {
  flex: 1; padding: 18px 22px; display: flex; gap: 12px;
  align-items: center; border-right: 1px solid var(--line-soft);
}
.step:last-child { border-right: 0; }
.step-n {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font: 500 12px var(--font-mono);
  background: var(--surface); color: var(--muted);
}
.step.on { background: var(--warm); }
.step.on .step-n { background: var(--blue); color: #fff; }
.step-copy { display: flex; min-width: 0; flex-direction: column; }
.step-t { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; }
.step-d { display: block; font: 12px/1.4 var(--font-mono); color: var(--muted); margin-top: 3px; }

.pub-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 24px; align-items: start;
}
.panel {
  background: var(--bg); border-radius: var(--r-md);
  box-shadow: var(--shadow); padding: 24px 26px;
}
.panel h3, .panel-title { font-size: 22px; }
.panel h3::before, .panel-title::before {
  content: "## "; color: var(--blue); font-family: var(--font-mono); font-weight: 400; font-size: 0.68em;
}
.panel .psub { font: 11px var(--font-mono); color: var(--muted); margin: 8px 0 22px; }

.github-route {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px; align-items: center; margin: -8px -10px 28px;
  padding: 16px; border-radius: 15px; background: var(--ink); color: var(--cream);
}
.github-route-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid rgba(245, 242, 239, 0.12); border-radius: 50%;
  color: var(--sky); font: 500 11px var(--font-mono);
}
.github-route strong { display: block; font-size: 13px; font-weight: 500; }
.github-route p { margin-top: 3px; color: #a39a92; font-size: 11.5px; line-height: 1.45; }
.github-route a { color: var(--cream); font: 500 11px var(--font-mono); text-decoration: none; white-space: nowrap; }
.github-route a:hover { color: var(--sky); }

.field { display: block; }
.field-label { display: block; font: 500 13px var(--font-ui); margin-bottom: 9px; }
.field-label::before { content: "> "; color: var(--blue); font-family: var(--font-mono); font-weight: 400; }
.field input {
  width: 100%; font: 13.5px var(--font-mono); color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 15px; background: var(--bg); outline: 0;
}
.field input:focus { border-color: transparent; box-shadow: var(--focus); }
.field-help { margin-top: 7px; color: var(--muted); font: 11px var(--font-mono); }
.repo-check-button { margin-top: 12px; width: 100%; background: var(--surface); box-shadow: none; }
.repo-check-button:hover { background: var(--warm); }

.check-list { margin-top: 22px; list-style: none; }
.check-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; font-size: 13px; color: var(--muted);
  border-bottom: 1px dashed var(--line);
}
.check-row:last-child { border: 0; }
.check-ic {
  width: 18px; height: 18px; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; flex: none; font-size: 10px;
}
.check-row.ok { color: var(--fg); }
.check-row.ok .check-ic { background: var(--ok); color: #fff; }
.check-row.fail { color: var(--danger); }
.check-row.fail .check-ic { background: #dc26261a; color: var(--danger); }
.check-row.warn .check-ic { background: #eab30821; color: var(--warn-ink); }
.check-state { margin-left: auto; font: 10px var(--font-mono); white-space: nowrap; }
.form-hint { margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.submission-actions { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.github-submit { min-height: 50px; width: 100%; font-size: 15px; }
.submission-actions p { margin-top: 10px; color: var(--muted); font-size: 11.5px; text-align: center; }
.publish-list { margin: 8px 0 26px; padding-left: 22px; color: var(--fg-2); font-size: 13.5px; line-height: 1.75; }
.publish-guide-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.publish-guide-links > a:not(.btn) { color: var(--muted); font-size: 12px; text-underline-offset: 3px; }
.publish-guide-links > a:not(.btn):hover { color: var(--blue); }

.codeblock {
  background: var(--ink); border: 1px solid rgba(245, 242, 239, 0.12);
  color: var(--cream); font: 13px/1.85 var(--font-mono);
  border-radius: 18px; padding: 18px 22px; overflow-x: auto;
  margin: 14px 0 18px; box-shadow: var(--shadow-ink);
}
.codeblock .k { color: var(--sky); }

/* —— dashboard —— */
.kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 40px; border-radius: var(--r-md); background: var(--bg);
  box-shadow: var(--shadow); overflow: hidden;
}
.kpi { padding: 24px 26px; border-right: 1px solid var(--line-soft); }
.kpi:last-child { border-right: 0; }
.kpi .kl { font: 500 11px var(--font-mono); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.kpi .kv2 {
  font: 300 38px/1.15 var(--font-display); letter-spacing: -0.02em;
  margin-top: 12px; font-variant-numeric: tabular-nums;
}
.kpi .kd { font: 11px var(--font-mono); margin-top: 10px; color: var(--muted); }
.dash-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px; margin-top: 16px;
}
.hbar-row {
  display: grid; grid-template-columns: 88px 1fr 60px;
  align-items: center; gap: 14px; padding: 9px 0; font-size: 13px;
}
.hbar-track { height: 8px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.hbar-fill { height: 100%; background: rgba(0, 0, 0, 0.16); border-radius: 999px; }
.hbar-row:first-of-type .hbar-fill { background: var(--blue); }
.hbar-n { font: 11.5px var(--font-mono); color: var(--fg-2); text-align: right; font-variant-numeric: tabular-nums; }
.registry-updated { margin-top: 24px; color: var(--muted); font: 11px var(--font-mono); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font: 500 11px var(--font-mono); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  padding: 0 10px 12px 0; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line-soft); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tbl .nm { font-family: var(--font-mono); font-weight: 500; color: var(--fg); text-decoration: none; }
.tbl .nm:hover { color: var(--blue); }
.tbl a.nm { text-decoration: none; }

/* —— policy —— */
.policy-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 220px;
  gap: 72px; align-items: start; margin-top: 56px;
}
.policy-stack { min-width: 0; }
.policy-content { min-width: 0; border-top: 1px solid var(--line); }
.policy-section {
  display: grid; grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px; padding: 38px 0; border-bottom: 1px solid var(--line);
  scroll-margin-top: 88px;
}
.policy-index { padding-top: 5px; color: var(--blue); font: 500 11px var(--font-mono); }
.policy-section h2 { font-size: 28px; }
.policy-section p { max-width: 72ch; margin-top: 14px; color: var(--fg-2); font-size: 14.5px; }
.policy-section .policy-lead { margin-top: 10px; color: var(--muted); }
.policy-section code { font-family: var(--font-mono); font-size: 0.9em; }
.policy-section .codeblock { margin: 20px 0 0; }
.policy-requirements {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin-top: 24px; list-style: none; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.policy-requirements li { min-width: 0; padding: 18px; background: var(--bg); }
.policy-requirements strong { display: block; font-weight: 500; }
.policy-requirements strong::before { content: "✓ "; color: var(--ok); font-family: var(--font-mono); }
.policy-requirements span { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.policy-statuses { margin-top: 20px; }
.policy-statuses > div {
  display: grid; grid-template-columns: 168px minmax(0, 1fr);
  gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.policy-statuses > div:last-child { border-bottom: 0; }
.policy-statuses dd { color: var(--fg-2); font-size: 13.5px; }
.policy-aside {
  position: sticky; top: 92px; display: flex; flex-direction: column;
  align-items: flex-start; gap: 4px; padding-left: 20px; border-left: 1px solid var(--line);
}
.policy-aside-label { margin-bottom: 8px; color: var(--muted); font: 500 10px var(--font-mono); letter-spacing: 0.1em; }
.policy-aside > a:not(.btn) { color: var(--muted); text-decoration: none; padding: 5px 0; font-size: 12px; }
.policy-aside > a:not(.btn):hover, .policy-aside > a.active { color: var(--blue); }
.policy-aside .btn { margin-top: 16px; }

/* —— index FAQ —— */
.faq { margin-top: 8px; }
.faq-list { max-width: 72ch; }
.faq-list > div {
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--line-soft);
}
.faq-list dt {
  font: 500 15px/1.4 var(--font-ui);
  color: var(--fg);
  margin-bottom: 6px;
}
.faq-list dd { font-size: 13px; color: var(--fg-2); line-height: 1.65; }

/* —— footer / toast —— */
.footer { border-top: 1px solid var(--line-soft); margin-top: 110px; padding: 32px 0 48px; }
.footer-in { display: flex; align-items: center; gap: 22px; font: 13px var(--font-ui); color: var(--muted); flex-wrap: wrap; }
.footer-in a { color: var(--muted); text-decoration: none; }
.footer-in a:hover { color: var(--blue); }
.footer-in .fr { margin-left: auto; font: 11px var(--font-mono); letter-spacing: 0.04em; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--cream);
  font: 500 13px var(--font-mono); padding: 10px 16px; border-radius: var(--pill);
  box-shadow: var(--shadow-ink); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.rise { animation: rise 0.45s var(--ease) both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.1s; }
.rise-3 { animation-delay: 0.15s; }
.rise-4 { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .page-title .caret, .termline .caret { animation: none !important; }
}

@media (max-width: 960px) {
  .discovery-row { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 40px minmax(0, 1fr) 92px 108px; }
  .prow-idx, .prow-forks { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(1), .kpi:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .detail-grid, .pub-grid, .dash-grid, .policy-layout { grid-template-columns: 1fr; }
  .policy-aside { position: static; }
  .detail-cta { margin-left: 0; }
  .detail-head { flex-direction: column; align-items: stretch; }
  .stepper { flex-direction: column; }
  .step { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .step:last-child { border-bottom: 0; }
  .topbar-in { height: auto; min-height: 60px; flex-wrap: wrap; gap: 8px 18px; padding: 10px 0 8px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .nav a { flex: 0 0 auto; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .page-head { padding-top: 34px; }
  .page-title { max-width: 100%; font-size: clamp(30px, 9vw, 36px); }
  .statstrip { display: grid; grid-template-columns: 1fr 1fr; }
  .statstrip .ss { margin: 0; padding: 13px 8px 13px 0; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .statstrip .ss:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line-soft); }
  .statstrip .ss:nth-last-child(-n+2) { border-bottom: 0; }
  .kpis { grid-template-columns: 1fr; }
  .kpi { border-right: 0 !important; border-bottom: 1px solid var(--line-soft); }
  .kpi:last-child { border-bottom: 0; }
  .chips { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .chips .chip { flex: 0 0 auto; white-space: nowrap; }
  .toolbar-r { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .toolbar-r .sel { width: 100%; }
  .toolbar-r #source, .toolbar-r #sort { grid-column: 1 / -1; }
  .cli-tag { display: none; }
  .prow { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding-left: 0; padding-right: 0; }
  .prow-stars, .prow-act { display: none; }
  .prow-desc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .detail-title h1 { font-size: 34px; }
  .detail-cta { width: 100%; }
  .detail-cta .btn { flex: 1; justify-content: center; }
  .evidence-grid { grid-template-columns: 1fr; }
  .installbox { flex-wrap: wrap; }
  .installbox .copy { width: 100%; justify-content: center; }
  .policy-section { grid-template-columns: 34px minmax(0, 1fr); }
  .policy-requirements { grid-template-columns: 1fr; }
  .policy-statuses > div { grid-template-columns: 1fr; gap: 8px; }
  .github-route { grid-template-columns: 36px minmax(0, 1fr); }
  .github-route a { grid-column: 2; white-space: normal; }
  .footer-in .fr { margin-left: 0; width: 100%; }
}
