:root {
  --dsh-ink: #10161a;
  --dsh-muted: #5f6b72;
  --dsh-line: #d5dde0;
  --dsh-soft: #edf2f3;
  --dsh-paper: #ffffff;
  --dsh-canvas: #f4f7f8;
  --dsh-cyan: #007f91;
  --dsh-cyan-dark: #005b68;
  --dsh-coral: #e24b34;
  --dsh-lime: #dff36b;
  --dsh-yellow: #f6cb4b;
  --dsh-blue: #2e63e8;
  --dsh-shadow: 0 18px 45px rgba(16, 22, 26, 0.1);
}

.dsh-index-page,
.dsh-index-page * {
  box-sizing: border-box;
}

.dsh-index-page {
  width: 100%;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--dsh-canvas);
  color: var(--dsh-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
}

.dsh-index-page button,
.dsh-index-page input,
.dsh-index-page select {
  font: inherit;
  letter-spacing: 0;
}

.dsh-index-page button,
.dsh-index-page a {
  -webkit-tap-highlight-color: transparent;
}

.dsh-index-page button:focus-visible,
.dsh-index-page a:focus-visible,
.dsh-index-page input:focus-visible,
.dsh-index-page select:focus-visible {
  outline: 3px solid rgba(46, 99, 232, 0.35);
  outline-offset: 2px;
}

.dsh-index-page a {
  color: inherit;
}

.dsh-index-page [hidden] {
  display: none !important;
}

.dsh-skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--dsh-paper);
  border: 2px solid var(--dsh-ink);
}

.dsh-skip-link:focus {
  transform: translateY(0);
}

.dsh-header.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 64px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-bottom: 1px solid #243138;
  background: #0d1519;
  color: #f7fafb;
  box-shadow: none;
}

.dsh-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.dsh-wordmark-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 32px;
  border: 1px solid #5bd3e0;
  color: #79e5ee;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1;
}

.dsh-header nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.dsh-header nav a {
  color: #b9c5ca;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.dsh-header nav a:hover {
  color: #fff;
}

.dsh-official-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #3f5058;
  color: #f8fafb;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.dsh-official-link:hover {
  border-color: #79e5ee;
  color: #79e5ee;
}

.dsh-command-deck {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 28px;
}

.dsh-title-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}

.dsh-kicker {
  margin: 0 0 10px;
  color: var(--dsh-cyan-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.dsh-title-block h1 {
  max-width: 900px;
  margin: 0;
  color: var(--dsh-ink);
  font-size: clamp(38px, 6vw, 74px);
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: 0;
}

.dsh-lede {
  max-width: 800px;
  margin: 22px 0 0;
  color: #46535a;
  font-size: 18px;
  line-height: 1.65;
}

.dsh-release-signal {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 225px;
  padding: 13px 15px;
  border: 1px solid #c6d1d4;
  background: var(--dsh-paper);
}

.dsh-release-signal div {
  display: grid;
  gap: 1px;
}

.dsh-release-signal strong {
  font-size: 13px;
}

.dsh-release-signal small {
  color: var(--dsh-muted);
  font-size: 11px;
}

.dsh-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dsh-coral);
  box-shadow: 0 0 0 4px rgba(226, 75, 52, 0.13);
}

.dsh-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 42px;
  border-top: 1px solid var(--dsh-line);
  border-bottom: 1px solid var(--dsh-line);
}

.dsh-metrics > div {
  display: grid;
  gap: 3px;
  min-height: 94px;
  align-content: center;
  padding: 16px 22px;
  border-right: 1px solid var(--dsh-line);
}

.dsh-metrics > div:first-child {
  background: var(--dsh-lime);
}

.dsh-metrics > div:last-child {
  border-right: 0;
}

.dsh-metrics strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 25px;
  line-height: 1;
}

.dsh-metrics span {
  color: #49575d;
  font-size: 12px;
  font-weight: 650;
}

.dsh-search-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 210px auto auto;
  gap: 10px;
  align-items: stretch;
  margin-top: 24px;
}

.dsh-search-field,
.dsh-select-field {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 12px 8px;
  border: 1px solid #b7c3c7;
  background: var(--dsh-paper);
}

.dsh-search-field > span,
.dsh-select-field > span {
  color: var(--dsh-muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.dsh-search-field input,
.dsh-select-field select {
  width: 100%;
  min-height: 26px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--dsh-ink);
  font-size: 15px;
  font-weight: 650;
}

.dsh-search-field kbd {
  position: absolute;
  right: 12px;
  bottom: 11px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid #c8d1d4;
  background: #eef2f3;
  color: #68747a;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.dsh-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(52px, 1fr));
  border: 1px solid #b7c3c7;
  background: var(--dsh-paper);
}

.dsh-segmented button,
.dsh-favorites-filter {
  min-height: 54px;
  border: 0;
  background: transparent;
  color: #58646a;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.dsh-segmented button + button {
  border-left: 1px solid #d5dde0;
}

.dsh-segmented button.active {
  background: var(--dsh-ink);
  color: #fff;
}

.dsh-favorites-filter {
  min-width: 105px;
  border: 1px solid #b7c3c7;
  background: var(--dsh-paper);
}

.dsh-favorites-filter[aria-pressed="true"] {
  border-color: #9f7b00;
  background: #fff3b9;
  color: #624c00;
}

.dsh-category-strip {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 2px 0 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.dsh-category-strip button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 39px;
  padding: 7px 10px 7px 12px;
  border: 1px solid #c5d0d3;
  background: #fff;
  color: #354248;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.dsh-category-strip button strong {
  display: grid;
  place-items: center;
  min-width: 25px;
  min-height: 22px;
  padding: 0 5px;
  background: var(--dsh-soft);
  color: #5c686e;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.dsh-category-strip button.active {
  border-color: var(--dsh-ink);
  background: var(--dsh-ink);
  color: #fff;
}

.dsh-category-strip button.active strong {
  background: var(--dsh-lime);
  color: var(--dsh-ink);
}

.dsh-directory-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  width: min(1480px, calc(100% - 48px));
  margin: 8px auto 0;
  border: 1px solid #c8d2d5;
  background: var(--dsh-paper);
}

.dsh-source-rail {
  align-self: start;
  position: sticky;
  top: 78px;
  display: grid;
  gap: 0;
  padding: 6px 16px 20px;
  border-right: 1px solid var(--dsh-line);
}

.dsh-source-rail > div {
  display: grid;
  gap: 5px;
  padding: 18px 0;
  border-bottom: 1px solid #e0e6e8;
}

.dsh-source-rail strong {
  font-size: 16px;
}

.dsh-source-rail span,
.dsh-source-rail a {
  color: #5c686e;
  font-size: 12px;
}

.dsh-source-rail a:hover {
  color: var(--dsh-cyan-dark);
}

.dsh-rail-label {
  margin: 0 0 4px;
  color: #839097;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.dsh-method-button {
  margin-top: 18px;
  padding: 10px;
  border: 1px solid var(--dsh-ink);
  background: transparent;
  color: var(--dsh-ink);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.dsh-method-button:hover {
  background: var(--dsh-ink);
  color: #fff;
}

.dsh-leaderboard {
  min-width: 0;
}

.dsh-board-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  min-height: 112px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--dsh-line);
}

.dsh-board-heading h2,
.dsh-evidence-band h2,
.dsh-safety-band h2,
.dsh-contribute-band h2,
.dsh-dialog h2 {
  margin: 0;
  color: var(--dsh-ink);
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: 0;
}

.dsh-board-heading > p {
  margin: 0 0 2px;
  color: var(--dsh-muted);
  font-size: 12px;
}

.dsh-board-heading button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dsh-cyan-dark);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.dsh-table-head,
.dsh-plugin-row {
  display: grid;
  grid-template-columns: 52px minmax(250px, 1fr) 136px 94px 74px 98px minmax(280px, auto);
  gap: 12px;
  align-items: center;
}

.dsh-table-head {
  min-height: 41px;
  padding: 0 18px;
  border-bottom: 1px solid var(--dsh-line);
  background: #eef3f4;
  color: #68767c;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.dsh-plugin-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dsh-plugin-row {
  min-height: 112px;
  padding: 16px 18px;
  border-bottom: 1px solid #e0e6e8;
  background: #fff;
}

.dsh-plugin-row:hover {
  background: #fbfdfd;
}

.dsh-plugin-row.is-highlighted {
  background: #f2fbd0;
  box-shadow: inset 4px 0 0 #a5c61a;
}

.dsh-rank {
  color: #78858b;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 750;
}

.dsh-plugin-row:nth-child(-n + 3) .dsh-rank {
  color: #8c5f00;
  font-size: 14px;
}

.dsh-plugin-identity {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
  min-width: 0;
  align-items: start;
}

.dsh-plugin-identity img {
  width: 44px;
  height: 44px;
  border: 1px solid #d6dfe1;
  border-radius: 6px;
  background: #edf2f3;
  object-fit: cover;
}

.dsh-plugin-identity > div {
  min-width: 0;
}

.dsh-name-button {
  display: inline-block;
  max-width: 100%;
  padding: 0;
  overflow-wrap: anywhere;
  border: 0;
  background: transparent;
  color: var(--dsh-ink);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.dsh-name-button:hover {
  color: var(--dsh-cyan-dark);
  text-decoration: underline;
}

.dsh-owner {
  display: block;
  margin-top: 1px;
  color: #7b878d;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.dsh-plugin-identity p {
  display: -webkit-box;
  max-width: 680px;
  margin: 6px 0 0;
  overflow: hidden;
  color: #5b676d;
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dsh-category-link {
  justify-self: start;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 7px;
  overflow-wrap: anywhere;
  border: 1px solid #c8d3d6;
  background: #f5f8f9;
  color: #506067;
  font-size: 10px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.dsh-category-link:hover {
  border-color: var(--dsh-cyan);
  color: var(--dsh-cyan-dark);
}

.dsh-stars,
.dsh-added {
  color: #56636a;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.dsh-score {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  color: var(--dsh-ink);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.dsh-score strong {
  font-size: 18px;
}

.dsh-score small {
  color: #8a969b;
  font-size: 9px;
}

.dsh-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.dsh-icon-button,
.dsh-action-button {
  min-height: 34px;
  border: 1px solid #bcc8cc;
  background: #fff;
  color: #28343a;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.dsh-icon-button {
  flex: 0 0 34px;
  width: 34px;
  padding: 0;
  color: #8a6d00;
  font-size: 18px;
}

.dsh-icon-button[aria-pressed="true"] {
  border-color: #bea01e;
  background: #fff2a8;
  color: #6f5600;
}

.dsh-action-button {
  padding: 7px 9px;
  border-color: var(--dsh-ink);
  background: var(--dsh-ink);
  color: #fff;
}

.dsh-action-secondary {
  border-color: #bcc8cc;
  background: #fff;
  color: #28343a;
}

.dsh-icon-button:hover,
.dsh-action-secondary:hover {
  border-color: var(--dsh-cyan);
}

.dsh-action-button:not(.dsh-action-secondary):hover {
  background: var(--dsh-cyan-dark);
}

.dsh-compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid #bcc8cc;
  color: #4d5a61;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.dsh-compare-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--dsh-cyan);
}

.dsh-list-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 82px;
  padding: 18px;
  background: #f8fafb;
}

.dsh-load-more {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--dsh-ink);
  background: #fff;
  color: var(--dsh-ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.dsh-load-more:hover {
  background: var(--dsh-ink);
  color: #fff;
}

.dsh-list-footer span,
.dsh-noscript {
  color: #6f7b80;
  font-size: 11px;
}

.dsh-evidence-band,
.dsh-safety-band,
.dsh-contribute-band {
  width: min(1480px, calc(100% - 48px));
  margin: 36px auto 0;
}

.dsh-evidence-band {
  padding: 34px;
  border: 1px solid var(--dsh-line);
  background: #fff;
}

.dsh-method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
  border-top: 1px solid var(--dsh-line);
  border-left: 1px solid var(--dsh-line);
}

.dsh-method-grid article {
  min-height: 190px;
  padding: 22px;
  border-right: 1px solid var(--dsh-line);
  border-bottom: 1px solid var(--dsh-line);
}

.dsh-method-grid article:nth-child(1) {
  background: #e4f7f9;
}

.dsh-method-grid article:nth-child(2) {
  background: #fff5c9;
}

.dsh-method-grid article:nth-child(3) {
  background: #eef0ff;
}

.dsh-method-grid article:nth-child(4) {
  background: #f2fbd0;
}

.dsh-method-grid article > strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 31px;
}

.dsh-method-grid h3 {
  margin: 18px 0 7px;
  font-size: 14px;
}

.dsh-method-grid p,
.dsh-method-note {
  margin: 0;
  color: #556269;
  font-size: 12px;
  line-height: 1.6;
}

.dsh-method-note {
  margin-top: 18px;
}

.dsh-safety-band {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 28px 32px;
  border: 2px solid #bf3f2d;
  background: #fff0ec;
}

.dsh-warning-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--dsh-coral);
  color: var(--dsh-coral);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 28px;
  font-weight: 850;
}

.dsh-safety-band p:not(.dsh-kicker),
.dsh-contribute-band p:not(.dsh-kicker) {
  max-width: 900px;
  margin: 10px 0 0;
  color: #5d4a46;
  font-size: 13px;
  line-height: 1.65;
}

.dsh-safety-band > a {
  padding: 11px 13px;
  border: 1px solid #7d2e22;
  color: #7d2e22;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.dsh-contribute-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 38px 34px;
  background: #0d1519;
  color: #fff;
}

.dsh-contribute-band h2 {
  color: #fff;
}

.dsh-contribute-band p:not(.dsh-kicker) {
  color: #c2cdd1;
}

.dsh-contribute-band .dsh-kicker {
  color: #79e5ee;
}

.dsh-contribute-band code {
  color: var(--dsh-lime);
}

.dsh-contribute-actions {
  display: flex;
  gap: 8px;
}

.dsh-contribute-actions a {
  padding: 11px 13px;
  border: 1px solid #60727a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.dsh-contribute-actions a:first-child {
  border-color: var(--dsh-lime);
  background: var(--dsh-lime);
  color: var(--dsh-ink);
}

.dsh-compare-tray {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  width: min(560px, calc(100% - 44px));
  padding: 12px;
  border: 1px solid #28383f;
  background: #0d1519;
  color: #fff;
  box-shadow: var(--dsh-shadow);
}

.dsh-compare-tray > div {
  display: grid;
  min-width: 0;
}

.dsh-compare-tray strong {
  font-size: 11px;
}

.dsh-compare-tray span {
  overflow: hidden;
  color: #aebcc1;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dsh-compare-tray button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #60727a;
  background: transparent;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.dsh-compare-tray .dsh-compare-open {
  border-color: var(--dsh-lime);
  background: var(--dsh-lime);
  color: var(--dsh-ink);
}

.dsh-compare-tray button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dsh-dialog {
  width: min(820px, calc(100% - 30px));
  max-height: min(86vh, 880px);
  padding: 0;
  overflow: auto;
  border: 1px solid #27343a;
  border-radius: 0;
  background: #fff;
  color: var(--dsh-ink);
  box-shadow: var(--dsh-shadow);
}

.dsh-dialog::backdrop {
  background: rgba(6, 12, 15, 0.72);
}

.dsh-dialog-close {
  position: sticky;
  z-index: 2;
  top: 12px;
  float: right;
  width: 38px;
  height: 38px;
  margin: 12px 12px 0 0;
  border: 1px solid #9ba9ae;
  background: #fff;
  color: var(--dsh-ink);
  font-size: 23px;
  cursor: pointer;
}

.dsh-dialog-body {
  padding: 34px;
}

.dsh-dialog-identity {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.dsh-dialog-identity img {
  width: 62px;
  height: 62px;
  border: 1px solid var(--dsh-line);
  border-radius: 7px;
}

.dsh-dialog-identity h2 {
  overflow-wrap: anywhere;
}

.dsh-dialog-identity p,
.dsh-dialog-description,
.dsh-dialog-note {
  margin: 5px 0 0;
  color: var(--dsh-muted);
  font-size: 12px;
}

.dsh-dialog-description {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
}

.dsh-dialog-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
  border-top: 1px solid var(--dsh-line);
  border-left: 1px solid var(--dsh-line);
}

.dsh-dialog-stats div {
  display: grid;
  gap: 2px;
  min-height: 78px;
  align-content: center;
  padding: 12px;
  border-right: 1px solid var(--dsh-line);
  border-bottom: 1px solid var(--dsh-line);
}

.dsh-dialog-stats strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 16px;
}

.dsh-dialog-stats span {
  color: var(--dsh-muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.dsh-install-block {
  margin-top: 22px;
  padding: 16px;
  background: #10191d;
  color: #e9f2f4;
}

.dsh-install-block span {
  display: block;
  color: #91a2a9;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.dsh-install-block code {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--dsh-lime);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.dsh-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dsh-dialog-actions button,
.dsh-dialog-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--dsh-ink);
  background: #fff;
  color: var(--dsh-ink);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.dsh-dialog-actions button:first-child {
  background: var(--dsh-ink);
  color: #fff;
}

.dsh-score-bars {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.dsh-score-row {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
  font-size: 10px;
}

.dsh-score-track {
  height: 7px;
  background: #e0e7e9;
}

.dsh-score-track span {
  display: block;
  height: 100%;
  background: var(--dsh-cyan);
}

.dsh-compare-grid {
  display: grid;
  grid-template-columns: 130px repeat(var(--compare-columns, 2), minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid var(--dsh-line);
  border-left: 1px solid var(--dsh-line);
}

.dsh-compare-grid > div {
  min-width: 0;
  padding: 12px;
  overflow-wrap: anywhere;
  border-right: 1px solid var(--dsh-line);
  border-bottom: 1px solid var(--dsh-line);
  font-size: 11px;
}

.dsh-compare-grid .label {
  background: #eef3f4;
  color: #647177;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.dsh-method-dialog {
  padding: 34px;
}

.dsh-method-dialog p:not(.dsh-kicker) {
  color: var(--dsh-muted);
  line-height: 1.7;
}

.dsh-toast {
  position: fixed;
  z-index: 150;
  left: 50%;
  bottom: 24px;
  max-width: min(520px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 11px 15px;
  border: 1px solid #5b7078;
  background: #0d1519;
  color: #fff;
  box-shadow: var(--dsh-shadow);
  font-size: 11px;
  font-weight: 700;
}

.dsh-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  width: min(1480px, calc(100% - 48px));
  margin: 38px auto 0;
  padding: 28px 0 34px;
  border-top: 1px solid #ccd6d9;
  color: #657279;
  font-size: 11px;
}

.dsh-footer > div {
  display: grid;
}

.dsh-footer strong {
  color: var(--dsh-ink);
}

.dsh-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.dsh-footer a:hover {
  color: var(--dsh-cyan-dark);
}

.dsh-index-page .cookie-banner {
  position: fixed;
  z-index: 120;
  right: 20px;
  bottom: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(520px, calc(100% - 40px));
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #34474f;
  background: #0d1519;
  color: #fff;
  box-shadow: var(--dsh-shadow);
}

.dsh-index-page .cookie-banner p {
  margin: 0;
  font-size: 11px;
}

.dsh-index-page .cookie-banner > div {
  display: flex;
  gap: 6px;
}

.dsh-index-page .cookie-banner button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #6e8189;
  background: transparent;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.dsh-index-page .cookie-banner [data-cookie-accept] {
  border-color: var(--dsh-lime);
  background: var(--dsh-lime);
  color: var(--dsh-ink);
}

@media (max-width: 1180px) {
  .dsh-header nav {
    display: none;
  }

  .dsh-header.site-header {
    grid-template-columns: 1fr auto;
  }

  .dsh-search-workbench {
    grid-template-columns: minmax(280px, 1fr) 190px auto;
  }

  .dsh-favorites-filter {
    grid-column: 1 / -1;
    min-height: 42px;
  }

  .dsh-directory-shell {
    grid-template-columns: 1fr;
  }

  .dsh-source-rail {
    position: static;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--dsh-line);
  }

  .dsh-source-rail > div {
    padding-right: 16px;
    border-right: 1px solid var(--dsh-line);
    border-bottom: 0;
  }

  .dsh-method-button {
    margin: 14px 0;
  }

  .dsh-table-head,
  .dsh-plugin-row {
    grid-template-columns: 46px minmax(230px, 1fr) 125px 84px 68px 86px minmax(250px, auto);
    gap: 9px;
  }

  .dsh-row-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .dsh-command-deck,
  .dsh-directory-shell,
  .dsh-evidence-band,
  .dsh-safety-band,
  .dsh-contribute-band,
  .dsh-footer {
    width: min(100% - 28px, 760px);
  }

  .dsh-title-block {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .dsh-release-signal {
    width: 100%;
  }

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

  .dsh-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .dsh-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--dsh-line);
  }

  .dsh-search-workbench {
    grid-template-columns: 1fr 180px;
  }

  .dsh-segmented {
    grid-column: 1 / 2;
  }

  .dsh-favorites-filter {
    grid-column: 2 / 3;
  }

  .dsh-source-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .dsh-source-rail > div:nth-child(2) {
    border-right: 0;
  }

  .dsh-table-head {
    display: none;
  }

  .dsh-plugin-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--dsh-line);
  }

  .dsh-plugin-row {
    grid-template-columns: 40px minmax(0, 1fr) 78px;
    grid-template-areas:
      "rank identity identity"
      ". category category"
      ". stars score"
      ". added added"
      ". actions actions";
    gap: 10px;
    align-content: start;
    min-height: 310px;
    border-bottom: 0;
  }

  .dsh-rank { grid-area: rank; }
  .dsh-plugin-identity { grid-area: identity; }
  .dsh-category-link { grid-area: category; }
  .dsh-stars { grid-area: stars; }
  .dsh-score { grid-area: score; justify-self: end; }
  .dsh-added { grid-area: added; }
  .dsh-row-actions { grid-area: actions; justify-content: flex-start; margin-top: auto; }

  .dsh-plugin-identity p {
    -webkit-line-clamp: 3;
  }

  .dsh-method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dsh-safety-band {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .dsh-safety-band > a {
    grid-column: 2;
    justify-self: start;
  }

  .dsh-contribute-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .dsh-header.site-header {
    min-height: 58px;
    padding: 0 14px;
  }

  .dsh-wordmark-mark {
    width: 38px;
    height: 29px;
  }

  .dsh-wordmark > span:last-child {
    font-size: 13px;
  }

  .dsh-official-link {
    padding: 7px 9px;
    font-size: 10px;
  }

  .dsh-command-deck {
    padding-top: 34px;
  }

  .dsh-title-block h1 {
    font-size: 39px;
    line-height: 1.02;
  }

  .dsh-lede {
    margin-top: 16px;
    font-size: 15px;
  }

  .dsh-metrics > div {
    min-height: 80px;
    padding: 13px;
  }

  .dsh-metrics strong {
    font-size: 20px;
  }

  .dsh-search-workbench {
    grid-template-columns: 1fr;
  }

  .dsh-select-field,
  .dsh-segmented,
  .dsh-favorites-filter {
    grid-column: 1;
  }

  .dsh-segmented button,
  .dsh-favorites-filter {
    min-height: 43px;
  }

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

  .dsh-source-rail > div {
    border-right: 0;
    border-bottom: 1px solid var(--dsh-line);
  }

  .dsh-board-heading {
    display: grid;
    min-height: 0;
    padding: 18px 14px;
  }

  .dsh-board-heading h2,
  .dsh-evidence-band h2,
  .dsh-safety-band h2,
  .dsh-contribute-band h2,
  .dsh-dialog h2 {
    font-size: 23px;
  }

  .dsh-plugin-list {
    grid-template-columns: 1fr;
  }

  .dsh-plugin-row {
    min-height: 288px;
    padding: 15px 13px;
  }

  .dsh-compare-toggle span {
    display: none;
  }

  .dsh-method-grid {
    grid-template-columns: 1fr;
  }

  .dsh-method-grid article {
    min-height: 155px;
  }

  .dsh-evidence-band {
    padding: 24px 18px;
  }

  .dsh-safety-band {
    grid-template-columns: 1fr;
    padding: 23px 19px;
  }

  .dsh-safety-band > a {
    grid-column: 1;
  }

  .dsh-contribute-band {
    padding: 28px 20px;
  }

  .dsh-contribute-actions {
    display: grid;
  }

  .dsh-compare-tray {
    right: 12px;
    bottom: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    width: calc(100% - 24px);
  }

  .dsh-compare-tray > div {
    grid-column: 1 / -1;
  }

  .dsh-dialog-body,
  .dsh-method-dialog {
    padding: 24px 17px;
  }

  .dsh-dialog-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dsh-score-row {
    grid-template-columns: 110px minmax(0, 1fr) 32px;
  }

  .dsh-compare-grid {
    grid-template-columns: 90px repeat(var(--compare-columns, 2), minmax(150px, 1fr));
    overflow-x: auto;
  }

  .dsh-index-page .cookie-banner {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dsh-index-page *,
  .dsh-index-page *::before,
  .dsh-index-page *::after {
    scroll-behavior: auto !important;
  }
}
