/* CraftScope v0.8.3 — stable version filters, gallery ownership and file-jump entrance */
.versions-section { overflow-anchor: none; }

@keyframes fileJumpIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.drawer-jump-host .detail-jump-downloads:not(.is-hidden) {
  animation: fileJumpIn .28s cubic-bezier(.2,.78,.28,1) both;
}
.drawer-jump-host .detail-jump-downloads.is-hidden { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .drawer-jump-host .detail-jump-downloads:not(.is-hidden) { animation: none; }
}

:root {
  --cs-scroll-track: color-mix(in srgb, var(--surface-2) 74%, transparent);
  --cs-scroll-thumb: color-mix(in srgb, var(--text-faint) 78%, var(--surface-3));
  --cs-scroll-thumb-hover: color-mix(in srgb, var(--accent) 46%, var(--text-soft));
  --cs-scroll-thumb-active: color-mix(in srgb, var(--accent) 64%, var(--text-soft));
}

.gallery {
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}

html,
body {
  scrollbar-width: auto;
  scrollbar-color: var(--cs-scroll-thumb) var(--cs-scroll-track);
}

#drawerContent,
.filters,
.filters-scroll,
.select-popover,
.gallery,
.markdown pre,
.quick-row {
  scrollbar-width: thin;
  scrollbar-color: var(--cs-scroll-thumb) var(--cs-scroll-track);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

#drawerContent::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.filters::-webkit-scrollbar,
.filters-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.select-popover::-webkit-scrollbar,
.gallery::-webkit-scrollbar,
.markdown pre::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.quick-row::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
#drawerContent::-webkit-scrollbar-track,
.filters::-webkit-scrollbar-track,
.filters-scroll::-webkit-scrollbar-track,
.select-popover::-webkit-scrollbar-track,
.gallery::-webkit-scrollbar-track,
.markdown pre::-webkit-scrollbar-track,
.quick-row::-webkit-scrollbar-track {
  background: var(--cs-scroll-track);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
#drawerContent::-webkit-scrollbar-thumb,
.filters::-webkit-scrollbar-thumb,
.filters-scroll::-webkit-scrollbar-thumb,
.select-popover::-webkit-scrollbar-thumb,
.gallery::-webkit-scrollbar-thumb,
.markdown pre::-webkit-scrollbar-thumb,
.quick-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--cs-scroll-thumb);
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
#drawerContent::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
}

.filters::-webkit-scrollbar-thumb,
.filters-scroll::-webkit-scrollbar-thumb,
.select-popover::-webkit-scrollbar-thumb,
.gallery::-webkit-scrollbar-thumb,
.markdown pre::-webkit-scrollbar-thumb,
.quick-row::-webkit-scrollbar-thumb {
  border: 1px solid transparent;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
#drawerContent::-webkit-scrollbar-thumb:hover,
.filters::-webkit-scrollbar-thumb:hover,
.filters-scroll::-webkit-scrollbar-thumb:hover,
.select-popover::-webkit-scrollbar-thumb:hover,
.gallery::-webkit-scrollbar-thumb:hover,
.markdown pre::-webkit-scrollbar-thumb:hover,
.quick-row::-webkit-scrollbar-thumb:hover {
  background: var(--cs-scroll-thumb-hover);
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active,
#drawerContent::-webkit-scrollbar-thumb:active,
.filters::-webkit-scrollbar-thumb:active,
.filters-scroll::-webkit-scrollbar-thumb:active,
.select-popover::-webkit-scrollbar-thumb:active,
.gallery::-webkit-scrollbar-thumb:active,
.markdown pre::-webkit-scrollbar-thumb:active,
.quick-row::-webkit-scrollbar-thumb:active {
  background: var(--cs-scroll-thumb-active);
  background-clip: padding-box;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
#drawerContent::-webkit-scrollbar-corner,
.filters::-webkit-scrollbar-corner,
.filters-scroll::-webkit-scrollbar-corner,
.select-popover::-webkit-scrollbar-corner,
.gallery::-webkit-scrollbar-corner,
.markdown pre::-webkit-scrollbar-corner,
.quick-row::-webkit-scrollbar-corner {
  background: transparent;
}


.detail-hero:not(.server-detail-hero) { padding-top: 100px; }
.detail-download-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--positive) 58%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--positive) 15%, var(--surface));
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.detail-download-main:hover {
  border-color: color-mix(in srgb, var(--positive) 78%, var(--line));
  background: color-mix(in srgb, var(--positive) 22%, var(--surface));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--positive) 16%, transparent);
  transform: translateY(-1px);
}

.download-dialog-layer {
  position: absolute;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: color-mix(in srgb, var(--drawer-base) 70%, transparent);
  backdrop-filter: blur(8px);
}
.download-dialog-layer.hidden { display: none; }
.download-dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0,0,0,.42);
}
.download-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 20px;
}
.download-dialog-close:hover { background: var(--surface-2); color: var(--text); }
.download-dialog-kicker { margin-bottom: 5px; color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.download-dialog h3 { margin: 0; padding-right: 42px; color: var(--text); font-size: 20px; line-height: 1.2; }
.download-dialog > p { margin: 7px 0 19px; color: var(--text-faint); font-size: 11px; }
.download-dialog-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.download-dialog-fields label > span { display: block; margin: 0 0 6px; color: var(--text-faint); font-size: 9px; font-weight: 700; }
.download-dialog-file { min-height: 35px; margin-top: 13px; padding: 9px 10px; border: 1px solid var(--border-soft); border-radius: 9px; background: var(--surface); color: var(--text-faint); font-size: 9px; line-height: 1.45; }
.download-dialog-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 45px;
  margin-top: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 62%, var(--line));
  border-radius: 11px;
  background: var(--accent);
  color: #07110a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.download-dialog-confirm:hover { filter: brightness(1.04); }
.download-dialog-confirm:disabled { opacity: .42; cursor: default; filter: none; }

@media (max-width: 760px) {
  .detail-hero:not(.server-detail-hero) { padding-top: 92px; }
  .download-dialog-layer { padding: 16px; }
  .download-dialog { padding: 21px 17px 17px; }
  .download-dialog-fields { grid-template-columns: 1fr; }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.close-icon {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.drawer-close,
.lightbox-close,
.download-dialog-close { line-height: 0; font-size: 0; }

.drawer-source-links {
  position: fixed;
  top: 14px;
  left: 62px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.drawer-modrinth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text-soft);
  backdrop-filter: blur(12px);
  text-decoration: none;
  font-size: 9px;
  font-weight: 760;
  white-space: nowrap;
}
.drawer-modrinth:hover {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background: var(--surface-2);
  color: var(--text);
}

.detail-stats { align-items: end; }
.detail-stat-stack {
  display: grid;
  align-self: stretch;
  gap: 8px;
  min-width: 0;
}
.detail-stat-stack .detail-stat { min-width: 0; }

.version-file-search {
  position: relative;
  flex: 0 0 auto;
}
.version-file-search input {
  width: 148px;
  height: 28px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--field);
  color: var(--text);
  font: 650 9px/1 system-ui, sans-serif;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.version-file-search input::placeholder { color: var(--text-faint); }
.version-file-search input:focus {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  background: var(--surface);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 11%, transparent);
}

.markdown h4,
.markdown h5,
.markdown h6 {
  color: var(--text);
  line-height: 1.35;
  margin: 18px 0 8px;
  font-weight: 780;
}
.markdown h4 { font-size: 13px; }
.markdown h5 { font-size: 12px; }
.markdown h6 { font-size: 11px; }

.download-dialog { width: min(520px, 100%); }
.download-latest-file {
  display: grid;
  gap: 4px;
  min-height: 62px;
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border-soft));
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.download-latest-file > span {
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.download-latest-file strong {
  min-width: 0;
  color: var(--text);
  font: 720 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
.download-latest-file small {
  color: var(--text-faint);
  font-size: 9px;
  line-height: 1.35;
}
.download-latest-file.empty { border-color: var(--border-soft); background: var(--surface); }

.download-version-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 1px 7px;
}
.download-version-list-head strong { color: var(--text); font-size: 10px; }
.download-version-list-head span { color: var(--text-faint); font-size: 8px; }
.download-version-list {
  display: grid;
  gap: 6px;
  max-height: 246px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--cs-scroll-thumb) var(--cs-scroll-track);
}
.download-version-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 51px;
  padding: 8px 8px 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: var(--surface);
}
.download-version-copy { display: grid; gap: 3px; min-width: 0; }
.download-version-copy strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font: 700 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.download-version-copy span { color: var(--text-faint); font-size: 8px; line-height: 1.3; }
.download-version-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--positive) 45%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--positive) 9%, var(--surface));
  color: var(--text);
  text-decoration: none;
  font-size: 9px;
  font-weight: 760;
}
.download-version-action:hover { background: color-mix(in srgb, var(--positive) 17%, var(--surface)); }
.download-version-list::-webkit-scrollbar { width: 7px; height: 7px; }
.download-version-list::-webkit-scrollbar-track { background: var(--cs-scroll-track); border-radius: 999px; }
.download-version-list::-webkit-scrollbar-thumb { border: 1px solid transparent; border-radius: 999px; background: var(--cs-scroll-thumb); background-clip: padding-box; }
.download-version-list::-webkit-scrollbar-thumb:hover { background: var(--cs-scroll-thumb-hover); background-clip: padding-box; }

*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:single-button,
*::-webkit-scrollbar-button:vertical:decrement,
*::-webkit-scrollbar-button:vertical:increment,
*::-webkit-scrollbar-button:horizontal:decrement,
*::-webkit-scrollbar-button:horizontal:increment {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.drawer::after {
  content: "";
  position: absolute;
  z-index: 120;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 76% 24%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 38%),
    linear-gradient(105deg, transparent 16%, color-mix(in srgb, var(--accent) 18%, transparent) 48%, transparent 78%);
}
.drawer.download-success::after { animation: drawerDownloadSuccess 1.15s cubic-bezier(.2,.75,.25,1) both; }
@keyframes drawerDownloadSuccess {
  0% { opacity: 0; transform: translateX(-4%); }
  18% { opacity: 1; }
  58% { opacity: .62; }
  100% { opacity: 0; transform: translateX(4%); }
}

@media (max-width: 760px) {
  .drawer-source-links { top: 12px; left: 58px; }
  .drawer-modrinth { height: 38px; }
  .version-file-search input { width: 138px; }
  .download-version-list { max-height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer.download-success::after { animation-duration: .01ms; }
}



.detail-hero:not(.server-detail-hero) .detail-description {
  max-width: calc(75% - 8px);
}
.detail-stat-stack {
  position: relative;
}
.detail-stat-stack .detail-download-main {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 18px);
}
.detail-download-main {
  min-height: 44px;
  border-color: color-mix(in srgb, var(--positive) 82%, var(--line));
  background: var(--positive);
  color: #07110a;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--positive) 28%, transparent), inset 0 1px rgba(255,255,255,.22);
}
.detail-download-main:hover {
  border-color: color-mix(in srgb, var(--positive) 92%, #fff 8%);
  background: color-mix(in srgb, var(--positive) 90%, #fff 10%);
  color: #061008;
  box-shadow: 0 13px 34px color-mix(in srgb, var(--positive) 36%, transparent), inset 0 1px rgba(255,255,255,.28);
}
.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 {
  color: var(--text);
  line-height: 1.3;
  margin: 22px 0 9px;
}
.markdown h4 { font-size: 13px; }
.markdown h5 { font-size: 12px; }
.markdown h6 { font-size: 11px; color: var(--text-soft); }
.markdown hr {
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: var(--border-soft);
}
@media (max-width: 760px) {
  .detail-stat-stack .detail-download-main {
    position: static;
    margin-bottom: 8px;
  }
  .detail-hero:not(.server-detail-hero) .detail-description { max-width: 100%; }
}

.detail-hero:not(.server-detail-hero) {
  min-height: 365px;
}
.detail-hero-action-stack {
  display: grid;
  gap: 6px;
}
.detail-stat-stack .detail-hero-action-stack {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 18px);
}
.detail-stat-stack .detail-download-main {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
}
.detail-install-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .16s, background .16s, transform .16s, box-shadow .16s;
}
.detail-install-main:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--text-soft) 34%, var(--line));
  background: color-mix(in srgb, var(--surface-2) 86%, var(--text) 14%);
  color: var(--text);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.detail-install-main.loading {
  cursor: wait;
  background: var(--surface-2);
  color: var(--text-faint);
}

.install-guide-section {
  position: relative;
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 28px color-mix(in srgb, #000 8%, transparent);
  scroll-margin-top: 76px;
}
.install-guide-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 1px;
  background: var(--border-soft);
}
.install-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.install-guide-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.install-target-tags {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
.install-target-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
  color: color-mix(in srgb, var(--accent) 58%, var(--text));
  font-size: 10px;
  font-weight: 780;
  white-space: nowrap;
}
.install-guide-label {
  margin-bottom: 8px;
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.install-guide-requirements {
  margin-bottom: 15px;
}
.install-requirement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.install-requirement {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  max-width: 100%;
  min-height: 31px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.install-requirement strong {
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
}
.install-requirement span {
  color: var(--text-faint);
  font-size: 9px;
  line-height: 1.35;
}
.install-variant-list {
  display: grid;
  gap: 10px;
}
.install-variant {
  padding: 14px 15px;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface-2) 62%, var(--surface));
}
.install-variant-head {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 10px;
}
.install-variant-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.install-variant-requirements {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 10px;
  padding: 8px 9px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.install-variant-requirements > span {
  flex: 0 0 auto;
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 720;
  line-height: 1.65;
}
.install-variant-requirements > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.install-variant-requirements b {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-2));
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 740;
}
.install-variant ol {
  margin: 0;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}
.install-variant ol li {
  padding-left: 2px;
}
.install-variant ol li + li {
  margin-top: 5px;
}
.install-important {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, #e5b85d 32%, var(--border-soft));
  border-radius: 10px;
  background: color-mix(in srgb, #e5b85d 5%, var(--surface));
}
.install-important .install-guide-label {
  margin-bottom: 4px;
  color: color-mix(in srgb, #d9a94d 80%, var(--text));
}
.install-important ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.55;
}
.install-guide-loading,
.install-guide-error,
.install-guide-scan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  padding: 12px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface-2);
}
.install-guide-loading {
  justify-content: flex-start;
}
.install-guide-loading > div,
.install-guide-error > div,
.install-guide-scan > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.install-guide-loading strong,
.install-guide-error strong,
.install-guide-scan strong {
  color: var(--text);
  font-size: 11px;
}
.install-guide-loading small,
.install-guide-error small,
.install-guide-scan small {
  color: var(--text-faint);
  font-size: 9px;
  line-height: 1.45;
}
.install-guide-scan button,
.install-guide-error button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  color: var(--text);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.install-guide-scan button:hover,
.install-guide-error button:hover {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.install-guide-spinner {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border: 2px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: installGuideSpin .8s linear infinite;
}
@keyframes installGuideSpin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .detail-hero:not(.server-detail-hero) { min-height: 0; }
  .detail-stat-stack .detail-hero-action-stack {
    position: static;
    margin-bottom: 8px;
  }
  .detail-stat-stack .detail-download-main { margin-bottom: 0; }
  .install-guide-section { padding: 15px; }
  .install-guide-head { align-items: flex-start; }
  .install-guide-scan,
  .install-guide-error { align-items: stretch; flex-direction: column; }
  .install-guide-scan button,
  .install-guide-error button { width: 100%; }
  .install-variant-requirements { display: grid; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .install-guide-spinner { animation-duration: 1.8s; }
}


.detail-download-main {
  min-height: 56px;
  font-size: 15px;
  font-weight: 900;
  border-radius: 11px;
}
.detail-install-main {
  min-height: 33px;
  font-size: 10px;
}
.detail-hero:not(.server-detail-hero) { min-height: 375px; }

.detail-translate-top.can-translate {
  border-color: color-mix(in srgb, #6eaaff 42%, var(--line));
  background: color-mix(in srgb, #6eaaff 11%, var(--surface));
  color: color-mix(in srgb, #76b0ff 80%, var(--text));
}
.detail-translate-top.can-translate:hover {
  border-color: color-mix(in srgb, #79b4ff 65%, var(--line));
  background: color-mix(in srgb, #6eaaff 17%, var(--surface-2));
  color: color-mix(in srgb, #8cc0ff 84%, var(--text));
}
.detail-translate-top.translated {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text-soft);
}
.detail-translate-top.translating { opacity: .72; }

.drawer-jump-host .detail-jump-downloads {
  display: grid;
  place-items: center;
  min-width: 176px;
  min-height: 42px;
  padding: 0 16px;
  text-align: center;
}
.drawer-jump-host .detail-jump-downloads > b {
  font-size: 10px;
  font-weight: 820;
  color: var(--text);
}

@media (max-width: 760px) {
  .detail-download-main { min-height: 52px; font-size: 14px; }
  .detail-hero:not(.server-detail-hero) { min-height: 0; }
}

#drawerContent.nested-layer-in { animation: drawerLayerIn .24s cubic-bezier(.2,.75,.25,1); }
#drawerContent.nested-layer-back { animation: drawerLayerBack .22s cubic-bezier(.2,.75,.25,1); }
@keyframes drawerLayerIn { from { opacity:.38; transform:translateX(34px); } to { opacity:1; transform:translateX(0); } }
@keyframes drawerLayerBack { from { opacity:.5; transform:translateX(-24px); } to { opacity:1; transform:translateX(0); } }

.install-guide-section {
  padding: 20px;
  border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
  background: color-mix(in srgb, var(--surface) 96%, var(--accent) 4%);
  box-shadow: 0 12px 34px color-mix(in srgb, #000 9%, transparent);
  overflow: hidden;
}
.install-guide-section::before { top:-16px; background:var(--border-soft); }
.install-guide-head { align-items:center; margin-bottom:18px; }
.install-guide-head h3 { font-size:20px; font-weight:850; }
.install-target-tags { justify-content:flex-start; }
.install-target-tag { min-height:28px; padding:4px 10px; border-radius:8px; font-size:10px; font-weight:800; }
.install-guide-label { margin-bottom:8px; color:var(--text-faint); font-size:10px; font-weight:850; letter-spacing:.055em; }
.install-variant-list { gap:12px; }
.install-variant { padding:15px; border-radius:12px; background:color-mix(in srgb, var(--surface-2) 72%, var(--surface)); }
.install-variant-head { margin-bottom:12px; }
.install-variant-tags { gap:7px; }
.install-dependencies { margin:0 0 11px; }
.install-file-action-list { display:grid; gap:6px; }
.install-file-action {
  width:100%; min-height:44px; display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; padding:9px 11px;
  border:1px solid var(--line); border-radius:9px; background:var(--field); color:var(--text-soft); text-align:left;
  font:inherit; cursor:pointer; transition:border-color .16s, background .16s, transform .16s, box-shadow .16s;
}
.install-file-action:hover { transform:translateY(-1px); border-color:color-mix(in srgb, var(--accent) 48%, var(--line)); background:color-mix(in srgb, var(--accent) 8%, var(--surface-2)); box-shadow:0 7px 20px color-mix(in srgb, var(--accent) 9%, transparent); }
.install-file-action.project { margin-top:11px; border-color:color-mix(in srgb, var(--accent) 34%, var(--line)); background:color-mix(in srgb, var(--accent) 8%, var(--field)); }
.install-file-main { display:inline-flex; align-items:baseline; gap:5px; min-width:0; }
.install-file-main > span { color:var(--text-faint); font-size:12px; }
.install-file-main strong { color:var(--text); font-size:13px; font-weight:820; }
.install-file-destination { color:var(--text-soft); font-size:12px; }
.install-file-destination code { padding:2px 5px; border:1px solid var(--border-soft); border-radius:5px; background:var(--surface); color:color-mix(in srgb, var(--accent) 62%, var(--text)); font-size:11px; }
.install-file-action small { flex-basis:100%; color:var(--text-faint); font-size:10px; line-height:1.4; }
.install-extra-steps { margin:11px 0 0; }
.install-extra-steps ol { margin:0; padding-left:21px; color:var(--text-soft); font-size:13px; line-height:1.62; }
.install-extra-steps li + li { margin-top:5px; }
.install-important ul { font-size:12px; line-height:1.6; }

.install-guide-scan { justify-content:center; min-height:104px; padding:18px; border:1px dashed color-mix(in srgb, var(--accent) 24%, var(--line)); background:color-mix(in srgb, var(--accent) 3%, var(--surface-2)); }
.install-guide-scan > div { display:none; }
.install-guide-scan button,
.install-guide-error button { min-width:188px; min-height:42px; padding:0 18px; border-radius:10px; font-size:11px; font-weight:850; }
.install-guide-loading { min-height:118px; display:grid; place-items:center; align-content:center; gap:7px; padding:22px; border:0; background:transparent; text-align:center; }
.install-guide-loading strong { font-size:16px; font-weight:850; }
.install-guide-loading small { max-width:430px; font-size:11px; line-height:1.55; }
.install-guide-progress { position:absolute; left:0; right:0; top:0; height:3px; overflow:hidden; background:color-mix(in srgb, var(--accent) 8%, transparent); }
.install-guide-progress span { position:absolute; top:0; bottom:0; width:42%; background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 86%, #fff 14%), transparent); animation:installGuideSweep 1.25s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes installGuideSweep { from { left:-46%; } to { left:104%; } }

.version-tags-toggle { appearance:none; font-family:inherit; cursor:pointer; transition:border-color .14s, background .14s, color .14s; }
.version-tags-toggle:hover { border-color:color-mix(in srgb, var(--accent) 36%, var(--line)); background:color-mix(in srgb, var(--accent) 8%, var(--surface)); color:var(--text-soft); }
.version-tags-toggle.snapshot-count { color:color-mix(in srgb, #73aaff 62%, var(--text-faint)); }
.version-tags-toggle.preview-count { color:color-mix(in srgb, #d0a760 66%, var(--text-faint)); }

@media (max-width:760px) {
  .install-guide-section { padding:16px; }
  .install-guide-head { align-items:flex-start; flex-direction:column; gap:8px; }
  .install-file-action { align-items:flex-start; flex-direction:column; gap:4px; }
  .install-guide-scan { align-items:center; }
  .install-guide-scan button, .install-guide-error button { width:auto; }
}
@media (prefers-reduced-motion:reduce) {
  #drawerContent.nested-layer-in, #drawerContent.nested-layer-back, .install-guide-progress span { animation-duration:.01ms; animation-iteration-count:1; }
}

/* Installation guide: compact, neutral section aligned with the rest of the detail drawer. */
.install-guide-section {
  margin-top: 34px;
  padding: 18px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.install-guide-section::before {
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-soft);
}
.install-guide-head {
  min-height: 36px;
  margin: 0 0 14px;
  padding: 18px 0 0;
}
.install-guide-head h3 { font-size: 18px; }
.install-guide-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}
.install-target-tag {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text-soft);
}
.install-guide-collapse {
  appearance: none;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-faint);
  font: inherit;
  font-size: 10px;
  font-weight: 760;
  cursor: pointer;
}
.install-guide-collapse:hover {
  border-color: color-mix(in srgb, var(--text-faint) 36%, var(--line));
  color: var(--text-soft);
}
.install-guide-section.collapsed { padding-bottom: 1px; }
.install-guide-section.collapsed .install-guide-head { margin-bottom: 0; }

.install-guide-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 14px;
}
.install-guide-filters > label { min-width: 0; }
.install-guide-filters > label > span {
  display: block;
  margin: 0 0 6px;
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 760;
}
.install-guide-filters .select-wrap { min-height: 38px; }
.install-guide-filters select { min-height: 38px; }

.install-variant-list { gap: 10px; }
.install-variant {
  padding: 13px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: var(--surface-2);
}
.install-file-action-list { gap: 5px; }
.install-file-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 7px;
  min-height: 25px;
  padding: 1px 0;
  color: var(--text-soft);
}
.install-file-row.project { margin-top: 9px; }
.install-file-link {
  appearance: none;
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
.install-file-link span { color: var(--text-faint); font-size: 12px; }
.install-file-link strong {
  color: color-mix(in srgb, var(--accent) 66%, var(--text));
  font-size: 13px;
  font-weight: 820;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 30%, transparent);
  text-underline-offset: 3px;
  transition: color .14s, text-decoration-color .14s;
}
.install-file-link:hover strong {
  color: color-mix(in srgb, var(--accent) 86%, var(--text));
  text-decoration-color: currentColor;
}
.install-file-destination { font-size: 12px; }
.install-file-row > small {
  flex-basis: 100%;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.45;
}
.install-extra-steps ol { font-size: 13px; }
.install-guide-empty-filter {
  padding: 18px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-faint);
  text-align: center;
  font-size: 11px;
}

.install-guide-scan,
.install-guide-error {
  min-height: 92px;
  padding: 14px 0 2px;
  border: 0;
  background: transparent;
  justify-content: center;
}
.install-guide-scan button,
.install-guide-error button {
  min-width: 190px;
  min-height: 42px;
}
.install-guide-loading {
  min-height: 112px;
  width: 100%;
  margin: 0;
  padding: 18px 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.install-guide-loading strong,
.install-guide-loading small {
  width: 100%;
  text-align: center;
}
.install-guide-loading strong { font-size: 16px; }
.install-guide-loading small { max-width: 470px; font-size: 11px; }
.install-guide-progress {
  top: 1px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

@media (max-width: 760px) {
  .install-guide-section { padding: 14px 0 0; }
  .install-guide-head { padding-top: 16px; }
  .install-guide-head-actions { justify-content: flex-start; }
  .install-guide-filters { grid-template-columns: 1fr; }
  .install-file-row { align-items: flex-start; }
}

.install-guide-section {
  position: relative;
  margin-top: 28px;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid var(--border-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  scroll-margin-top: 108px;
}
.install-guide-section::before { content: none; }
.install-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 36px;
  margin: 0 0 14px;
  padding: 0;
}
.install-guide-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.install-guide-head-actions,
.install-target-tags {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}
.install-target-tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.install-guide-collapse {
  appearance: none;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-faint);
  font: inherit;
  font-size: 10px;
  font-weight: 760;
  cursor: pointer;
}
.install-guide-collapse:hover {
  border-color: color-mix(in srgb, var(--text-faint) 36%, var(--line));
  color: var(--text-soft);
}
.install-guide-section.collapsed { padding-bottom: 0; }
.install-guide-section.collapsed .install-guide-head { margin-bottom: 0; }
.install-guide-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 14px;
}
.install-guide-filters > label { min-width: 0; }
.install-guide-filters > label > span {
  display: block;
  margin: 0 0 6px;
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 760;
}
.install-guide-filters .select-wrap,
.install-guide-filters select { min-height: 38px; }
.install-variant-list {
  display: grid;
  gap: 10px;
}
.install-variant {
  padding: 13px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: var(--surface-2);
}
.install-variant-head {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 11px;
}
.install-variant-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.install-guide-label {
  margin-bottom: 7px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.install-dependencies { margin: 0 0 10px; }
.install-file-action-list { display: grid; gap: 5px; }
.install-file-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 7px;
  min-height: 27px;
  padding: 1px 0;
  color: var(--text-soft);
}
.install-file-row.project { margin-top: 9px; }
.install-file-link {
  appearance: none;
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
.install-file-link span { color: var(--text-faint); font-size: 12px; }
.install-file-link strong {
  color: color-mix(in srgb, var(--accent) 66%, var(--text));
  font-size: 13px;
  font-weight: 820;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 30%, transparent);
  text-underline-offset: 3px;
  transition: color .14s, text-decoration-color .14s;
}
.install-file-link:hover strong {
  color: color-mix(in srgb, var(--accent) 86%, var(--text));
  text-decoration-color: currentColor;
}
.install-file-destination { color: var(--text-soft); font-size: 12px; }
.install-file-destination code {
  padding: 2px 5px;
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  background: var(--surface);
  color: color-mix(in srgb, var(--accent) 62%, var(--text));
  font-size: 11px;
}
.install-file-row > small {
  flex-basis: 100%;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.45;
}
.install-extra-steps { margin: 10px 0 0; }
.install-extra-steps ol {
  margin: 0;
  padding-left: 21px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.62;
}
.install-extra-steps li + li { margin-top: 5px; }
.install-important {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, #e5b85d 32%, var(--border-soft));
  border-radius: 10px;
  background: color-mix(in srgb, #e5b85d 5%, var(--surface));
}
.install-important .install-guide-label {
  margin-bottom: 4px;
  color: color-mix(in srgb, #d9a94d 80%, var(--text));
}
.install-important ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}
.install-guide-empty-filter {
  padding: 18px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-faint);
  text-align: center;
  font-size: 11px;
}
.install-guide-scan,
.install-guide-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 14px 0 2px;
  border: 0;
  background: transparent;
}
.install-guide-scan button,
.install-guide-error button {
  min-width: 190px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.install-guide-scan button:hover,
.install-guide-error button:hover {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.install-guide-loading {
  min-height: 112px;
  width: 100%;
  margin: 0;
  padding: 18px 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  text-align: center;
}
.install-guide-loading strong,
.install-guide-loading small { width: 100%; text-align: center; }
.install-guide-loading strong { color: var(--text); font-size: 16px; font-weight: 850; }
.install-guide-loading small { max-width: 470px; color: var(--text-faint); font-size: 11px; line-height: 1.55; }
.install-guide-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: transparent;
}
.install-guide-progress span {
  position: absolute;
  inset-block: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 86%, #fff 14%), transparent);
  animation: installGuideSweep 1.25s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes installGuideSweep { from { left: -46%; } to { left: 104%; } }
@media (max-width: 760px) {
  .install-guide-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .install-guide-head-actions { justify-content: flex-start; }
  .install-guide-filters { grid-template-columns: 1fr; }
  .install-file-row { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .install-guide-progress span { animation-duration: .01ms; animation-iteration-count: 1; }
}

.install-guide-filters.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.install-version-tags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.install-sublist {
  padding-left: 22px;
}
.install-main-project {
  margin-top: 12px;
}
.install-destination-suffix {
  color: var(--text-faint);
}
@media (max-width: 760px) {
  .install-guide-filters.three { grid-template-columns: 1fr; }
  .install-sublist { padding-left: 14px; }
}

.select-popover.multi .select-option { padding-right: 10px; }
.select-popover.multi .select-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  opacity: 1;
  color: transparent;
  background: var(--field);
}
.select-popover.multi .select-option.selected .select-check {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  background: color-mix(in srgb, var(--accent) 16%, var(--field));
  color: var(--accent);
}
.custom-select-trigger.has-multiple .custom-select-value { color: var(--text); font-weight: 650; }
.shuffle-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.order-button.random { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); }
.install-sublist { padding-left: 20px; }
.install-extra-steps li strong { color: var(--text); font-weight: 780; }

