:root {
  --app-bg: #f4f6fa;
  --sidebar-bg: #101828;
  --sidebar-line: rgba(255, 255, 255, .08);
  --surface: #fff;
  --surface-subtle: #f8fafc;
  --text-strong: #111827;
  --text: #344054;
  --text-muted: #667085;
  --line: #e5e7eb;
  --radius: 8px;
  --page-gap: 16px;
  --content-width: 100%;
  color-scheme: light;
}

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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--app-bg);
  color: #1f2937;
  font-family: var(--el-font-family);
}

[v-cloak] {
  display: none;
}

.global-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  background: rgba(244, 246, 250, .58);
  backdrop-filter: blur(1px);
}

.global-loading-box {
  min-width: 132px;
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 18px 22px;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .14);
}

.global-loading-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: global-loading-spin .78s linear infinite;
}

.global-loading-text {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.global-loading-fade-enter-active,
.global-loading-fade-leave-active {
  transition: opacity .16s ease;
}

.global-loading-fade-enter-from,
.global-loading-fade-leave-to {
  opacity: 0;
}

@keyframes global-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.seo-prerender {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.seo-prerender h1,
.seo-prerender h2 {
  color: #111827;
}

.seo-prerender table {
  width: 100%;
  border-collapse: collapse;
}

.seo-prerender-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.seo-prerender-links li {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 0;
  border-bottom: 1px solid #e5e7eb;
}

.seo-prerender-links a {
  overflow: hidden;
  color: #2563eb;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-prerender-links span {
  color: #667085;
  font-size: 12px;
}

.seo-prerender th,
.seo-prerender td {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.seo-kicker {
  color: #409eff;
  font-weight: 700;
}

.static-detail-page {
  min-height: 100vh;
  background: var(--app-bg);
}

.static-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: var(--sidebar-bg);
  color: #fff;
}

.static-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 76px;
  padding: 0 18px;
  border-bottom: 1px solid var(--sidebar-line);
  color: #fff;
  text-decoration: none;
}

.static-brand > b {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #409eff;
  font-size: 20px;
}

.static-brand span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.static-brand small {
  color: #98a2b3;
}

.static-sidebar nav {
  display: grid;
  gap: 6px;
  padding: 16px 10px;
}

.static-sidebar nav a {
  padding: 12px 16px;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
}

.static-sidebar nav a.active {
  border-left: 3px solid #409eff;
  background: #1d3557;
  color: #fff;
}

.static-main {
  min-width: 0;
  margin-left: 236px;
}

.static-topbar {
  min-height: 76px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.static-topbar > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.static-topbar strong {
  font-size: 17px;
}

.static-topbar small,
.static-topbar a {
  color: #667085;
}

.static-topbar a {
  padding: 8px 14px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  text-decoration: none;
}

.static-content {
  display: grid;
  gap: 16px;
  padding: 20px 24px 40px;
}

.static-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.static-overview {
  padding: 20px 24px;
}

.static-overview h1 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.35;
  word-break: break-all;
}

.static-overview p {
  margin: 6px 0 0;
  color: #475467;
}

.static-overview .static-path {
  color: #667085;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.static-overview dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 14px 0 0;
}

.static-overview dl > div {
  display: flex;
  gap: 6px;
  padding: 0 18px;
  border-left: 1px solid #e5e7eb;
}

.static-overview dl > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.static-overview dt {
  color: #98a2b3;
}

.static-overview dd {
  margin: 0;
  font-weight: 700;
}

.static-card > header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.static-card h2 {
  margin: 0;
  color: #111827;
  font-size: 16px;
}

.static-card header p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 13px;
}

.static-table-wrap {
  overflow-x: auto;
  padding: 14px 18px 0;
}

.static-flashes table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.static-flashes th,
.static-flashes td {
  padding: 9px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.static-flashes th {
  background: #f8fafc;
  color: #667085;
}

.static-flashes tbody tr:nth-child(even) {
  background: #fafafa;
}

.static-flashes code {
  color: #1677d2;
  white-space: nowrap;
}

.static-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 18px 18px;
}

.static-pagination a,
.static-pagination span {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #dcdfe6;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #475467;
  text-decoration: none;
}

.static-pagination span {
  border-color: #409eff;
  background: #409eff;
  color: #fff;
}

.static-files pre {
  margin: 0;
  padding: 16px 20px 24px;
  color: #344054;
  font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.static-files-link {
  padding: 18px 20px;
}

@media (max-width: 760px) {
  .static-sidebar {
    position: static;
    width: 100%;
  }

  .static-sidebar nav {
    display: flex;
  }

  .static-main {
    margin-left: 0;
  }

  .static-content {
    padding: 12px;
  }

  .static-overview dl > div {
    margin: 4px 0;
  }
}

.shell {
  min-height: 100vh;
  background: var(--app-bg);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #0b1220;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 76px;
  padding: 0 18px;
  border-bottom: 1px solid var(--sidebar-line);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #409eff;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: #98a2b3;
}

.side-menu {
  flex: 1;
  border-right: 0;
  background: transparent;
  padding: 12px 10px;
}

.side-menu .el-menu-item {
  height: 44px;
  margin: 4px 0;
  border-radius: 8px;
  color: #cbd5e1;
}

.side-menu .el-menu-item:hover,
.side-menu .el-menu-item.is-active {
  background: rgba(64, 158, 255, .16);
  color: #fff;
}

.side-menu .el-menu-item.is-active {
  box-shadow: inset 3px 0 0 #409eff;
}

.site-footer {
  flex: 0 0 auto;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--sidebar-line);
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.6;
}

.footer-line,
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.footer-line {
  margin-bottom: 3px;
  color: #cbd5e1;
}

.footer-links a,
.wechat-text {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links a:hover,
.wechat-wrapper:hover .wechat-text {
  color: #fff;
}

.wechat-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: default;
}

.wechat-qr {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 30;
  width: 150px;
  height: 150px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .24);
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .16s ease, transform .16s ease;
}

.wechat-wrapper:hover .wechat-qr {
  opacity: 1;
  transform: translate(-50%, 0);
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 12px 24px;
  gap: 16px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--el-border-color-lighter);
  backdrop-filter: blur(14px);
}

.top-copy {
  min-width: 0;
}

.top-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
}

.top-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 2px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.subtitle-main,
.inline-stats {
  min-width: 0;
}

.inline-stats {
  color: #475467;
}

.inline-stats::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin-right: 10px;
  background: #d0d5dd;
  vertical-align: -2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content {
  padding: 20px 24px 32px;
}

.view {
  max-width: 1680px;
  margin: 0 auto;
}

.production-view {
  height: calc(100dvh - 118px);
  min-height: 620px;
  display: flex;
}

.production-view .tool-panel {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.production-view .tool-panel > .el-card__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.query-panel {
  margin-bottom: 16px;
  border-radius: 8px;
}

.query-panel > .el-card__body {
  padding: 20px 28px;
}

.tool-panel > .el-card__body {
  padding: 16px 20px 18px;
}

.production-breadcrumb {
  min-height: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: #667085;
  font-size: 13px;
}

.production-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.production-breadcrumb a:hover {
  text-decoration: underline;
}

.production-breadcrumb-separator {
  color: #c0c4cc;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.section-desc {
  margin-top: 3px;
  color: #667085;
  font-size: 13px;
}

.query-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #667085;
  font-size: 13px;
}

.quick-tags .el-tag {
  cursor: pointer;
}

.search-home {
  display: grid;
  gap: 16px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.stat-tile {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.stat-tile span {
  display: block;
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.stat-tile strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 24px;
  line-height: 1.15;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 16px;
}

.home-panel {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.home-panel-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid #e5e7eb;
}

.example-groups {
  display: grid;
  gap: 14px;
  padding: 14px 16px 16px;
}

.example-group {
  min-width: 0;
}

.example-title {
  margin-bottom: 8px;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.example-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.example-tags .el-tag {
  cursor: pointer;
}

.vendor-entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 16px 16px;
}

.vendor-entry {
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fbfcfe;
  color: #344054;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.vendor-entry:hover {
  border-color: #93c5fd;
  background: #f5f8ff;
}

.vendor-entry span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.vendor-entry small {
  flex: 0 0 auto;
  color: #98a2b3;
  font-size: 11px;
}

.fused-profile-card {
  margin: 0;
  border-radius: 8px;
}

.fused-profile-card > .el-card__body {
  padding: 0;
}

.fused-profile {
  display: flex;
  flex-direction: column;
}

.fused-profile-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 14px 10px;
}

.fused-chip-mark {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.fused-title-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-width: 0;
}

.fused-title {
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  word-break: break-all;
}

.fused-subtitle {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.fused-attributes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 8px;
  padding: 9px 12px 10px;
  border-top: 1px solid #e5e7eb;
  background: #fbfcfe;
}

.fused-attribute {
  min-width: 0;
  padding: 0 10px;
}

.fused-attribute:not(:nth-child(4n + 1)) {
  border-left: 1px solid #e5e7eb;
}

.fused-label {
  display: block;
  color: #667085;
  font-size: 11px;
  line-height: 1.4;
}

.fused-value {
  display: block;
  margin-top: 2px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, .78fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "main side";
  gap: 16px;
  height: calc(100vh - 254px);
  min-height: 0;
  align-items: stretch;
}

.result-layout:not(.has-side) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "main";
  height: auto;
}

.result-side-column {
  grid-area: side;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-layout .el-card,
.side-result,
.view > .el-card {
  border-radius: 8px;
}

.side-result {
  margin: 0;
}

.result-main-card {
  grid-area: main;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.result-main-card > .el-card__body {
  flex: 1;
  min-height: 0;
  padding: 14px 16px 16px;
}

.result-layout:not(.has-side) .result-main-card {
  height: auto;
}

.controller-result {
  min-width: 0;
}

.controller-pills {
  max-height: 104px;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-right: 2px;
}

.controller-pills .el-button {
  margin: 0;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12.5px;
}

.pill-count {
  margin-left: 5px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(64, 158, 255, .12);
  font-size: 11px;
  opacity: .78;
}

.controller-pills .el-button--primary .pill-count {
  background: rgba(255, 255, 255, .22);
}

.selected-controller-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  margin: 9px 0 8px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #f8fafc;
  color: #475467;
  font-size: 13px;
}

.selected-controller-bar b {
  color: #111827;
}

.selected-controller-bar span {
  color: #667085;
}

.controller-package-table {
  width: 100%;
}

.controller-package-mobile,
.tool-archive-mobile {
  display: none;
}

.controller-package-table .el-table__row {
  height: 40px;
}

.controller-package-table .el-table__cell {
  padding: 4px 0;
}

.controller-package-table .cell {
  line-height: 20px;
}

.controller-package-table .source-tag {
  display: inline-flex;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.result-profile-card {
  flex: 0 0 auto;
}

.result-profile-card .fused-profile-head {
  padding: 9px 12px 8px;
}

.result-profile-card .fused-attributes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 6px;
  padding: 7px 10px 8px;
}

.result-profile-card .fused-attribute:not(:nth-child(4n + 1)) {
  border-left: 0;
}

.result-profile-card .fused-attribute:nth-child(even) {
  border-left: 1px solid #e5e7eb;
}

.id-card {
  flex: 0 0 auto;
  height: max-content;
}

.name-card {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.name-card > .el-card__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 5px 14px 7px;
}

.id-card > .el-card__body {
  padding: 8px 14px 9px;
}

.side-result > .el-card__header {
  padding: 10px 14px;
}

.id-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 86px;
  overflow: auto;
}

.name-list {
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #344054;
}

.name-list > div {
  padding: 4px 0;
  border-bottom: 1px solid var(--el-border-color-lighter);
  word-break: break-all;
}

.file-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.file-line {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12.5px;
  line-height: 1.35;
}

.file-directory {
  color: #98a2b3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.file-line .file-name {
  color: #1f2937;
  font-size: inherit;
}

.file-name {
  color: #111827;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-all;
}

.file-path {
  color: #667085;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.35;
  word-break: break-all;
}

.source-tag {
  margin: 2px 4px 2px 0;
}

.filter-row {
  display: grid;
  grid-template-columns: 160px minmax(150px, 220px) minmax(200px, 1fr) 150px auto;
  gap: 10px;
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.tool-browser {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(112px, 135px) minmax(132px, 160px) minmax(112px, 130px) minmax(0, 1fr);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.tool-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e5e7eb;
  background: #f8fafc;
}

.tool-controller-pane {
  background: #fbfcfe;
}

.tool-type-pane {
  background: #fff;
}

.tool-pane-head,
.tool-archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 45px;
  padding: 8px 9px;
  border-bottom: 1px solid #e5e7eb;
  color: #475467;
  font-size: 11.5px;
  font-weight: 700;
}

.tool-pane-head strong {
  color: #98a2b3;
  font-size: 12px;
}

.folder-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 5px;
}

.tool-pane-empty {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 12px 11px;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.folder-item {
  width: 100%;
  min-height: 27px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.folder-item .el-icon {
  font-size: 14px;
}

.folder-item:hover {
  background: #eef4ff;
}

.folder-item.active {
  background: #2563eb;
  color: #fff;
}

.folder-item .el-icon {
  color: #eab308;
}

.folder-item.active .el-icon,
.folder-item.active small {
  color: rgba(255, 255, 255, .9);
}

.folder-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.35;
}

.folder-item small {
  color: #98a2b3;
  font-size: 10px;
}

.tool-archive-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.tool-archive-head {
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 57px;
  padding: 10px 14px;
}

.archive-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.tool-archive-table {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.tool-archive-table .el-table__cell {
  padding: 5px 0;
}

.tool-archive-table .cell {
  line-height: 20px;
}

.package-mobile-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.package-mobile-row:last-child {
  border-bottom: 0;
}

.package-mobile-file {
  min-width: 0;
}

.package-mobile-row > .el-button {
  align-self: start;
  margin: -4px -7px 0 0;
}

.package-mobile-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
}

.package-mobile-facts > div {
  min-width: 0;
}

.package-mobile-facts dt {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.package-mobile-facts dd {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto) 58px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 10px 8px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.archive-list-row:nth-child(even) {
  background: #fafafa;
}

.archive-list-row:hover {
  background: #f5f8ff;
}

.archive-file-main {
  min-width: 0;
}

.archive-file-meta {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  color: #667085;
  font-size: 11px;
  white-space: nowrap;
}

.archive-file-meta span {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pager {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

.mptool-detail-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-overview-card {
  border-radius: 8px;
  overflow: visible;
}

.detail-overview-card > .el-card__body {
  padding: 20px 24px;
  overflow: visible;
}

.detail-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.detail-title-block {
  min-width: 0;
}

.detail-file-title {
  color: #111827;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-all;
}

.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 15px;
}

.detail-meta > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 14px;
  border-left: 1px solid #e5e7eb;
}

.detail-meta > span:first-child {
  padding-left: 0;
  border-left: 0;
}

.detail-meta small {
  color: #98a2b3;
  font-size: 12px;
}

.detail-meta strong {
  color: #344054;
  font-size: 13px;
}

.detail-meta .detail-md5 {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.detail-meta-md5 {
  min-width: 260px;
}

.detail-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 30;
}

.download-wechat-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.download-wechat-card img {
  width: 150px;
  height: 150px;
  border-radius: 6px;
  object-fit: cover;
}

.download-notice-text::before {
  content: "收集不易，有偿下载。";
}

.wechat-download-popover {
  padding: 12px !important;
  z-index: 4000 !important;
}

.download-popover-wrapper {
  position: relative;
  display: inline-flex;
  z-index: 30;
}

.download-popover-wrapper .ssr-download-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 4000;
  width: 180px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
}

.download-popover-wrapper:hover .ssr-download-card {
  opacity: 1;
  transform: translateY(0);
}

/* 详情页：概览之后直接展示适配 Flash 和内容预览。 */
.detail-row {
  border-radius: 8px;
}

.detail-flash-card > .el-card__body,
.detail-preview-card > .el-card__body {
  padding: 14px 18px;
}

.detail-flash-body {
  max-height: 460px;
  overflow: auto;
}

.detail-flash-pager {
  justify-content: flex-end;
  padding-top: 12px;
}

.detail-tree-body {
  max-height: 560px;
  overflow: auto;
}

.archive-tree-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 12px;
}

.archive-tree-search {
  width: min(320px, 100%);
}

.archive-tree-actions {
  display: flex;
  flex: none;
  align-items: center;
}

.archive-tree-actions .el-button + .el-button {
  margin-left: 2px;
}

.archive-tree-panel {
  padding: 6px 10px;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  background: #fbfcfe;
  scrollbar-gutter: stable;
}

.archive-tree {
  min-width: max-content;
  background: transparent;
  --el-tree-node-hover-bg-color: #edf4ff;
}

.archive-tree .el-tree-node__content {
  position: relative;
  height: 24px;
  border-radius: 5px;
}

.archive-tree .el-tree-node:focus > .el-tree-node__content,
.archive-tree .el-tree-node.is-current > .el-tree-node__content {
  background: #e8f1ff;
}

.archive-tree .el-tree-node__expand-icon {
  margin-right: 1px;
  padding: 4px;
  color: #8492a6;
}

.archive-tree .el-tree-node__expand-icon.is-leaf {
  color: transparent;
}

.archive-tree .el-tree-node__children {
  position: relative;
}

.archive-tree .el-tree-node__children::before {
  position: absolute;
  top: 0;
  bottom: 12px;
  left: 7px;
  z-index: 0;
  width: 1px;
  background: #dfe5ed;
  content: "";
  pointer-events: none;
}

.archive-tree-node {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding-right: 8px;
}

.archive-tree-icon {
  flex: none;
  color: #7696c6;
  font-size: 14px;
}

.archive-tree-node.is-file .archive-tree-icon {
  color: #98a2b3;
  font-size: 13px;
}

.archive-tree-node.is-more .archive-tree-icon,
.archive-tree-node.is-more .archive-tree-label {
  color: #98a2b3;
}

.archive-tree-label {
  overflow: hidden;
  color: #344054;
  font: 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-tree-node.is-directory .archive-tree-label {
  color: #2f405c;
  font-weight: 600;
}

.archive-tree-count {
  flex: none;
  min-width: 24px;
  margin-left: auto;
  color: #98a2b3;
  font: 11px/1.4 ui-sans-serif, system-ui, sans-serif;
  text-align: right;
}

/* 服务端详情页复用主站外壳和详情卡片，仅替换 Vue 组件生成的内部 DOM。 */
.ssr-detail-page .ssr-shell {
  display: flex;
}

.ssr-detail-page .ssr-brand {
  color: #fff;
  text-decoration: none;
}

.ssr-detail-page .ssr-brand > span:last-child {
  min-width: 0;
}

.ssr-detail-page .brand-title,
.ssr-detail-page .brand-subtitle {
  display: block;
}

.ssr-side-menu {
  display: block;
}

.ssr-side-menu .el-menu-item {
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 14px;
  text-decoration: none;
}

.ssr-detail-page .ssr-main {
  flex: 1;
  min-width: 0;
  width: 0;
}

.ssr-return-button {
  color: #606266;
  text-decoration: none;
}

.ssr-detail-page .detail-file-title {
  margin: 0;
}

.ssr-detail-page .detail-flash-body {
  max-height: none;
  overflow: visible;
}

.ssr-detail-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid #ebeef5;
  border-radius: 4px;
}

.ssr-detail-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #344054;
  font-size: 13px;
}

.ssr-detail-table th,
.ssr-detail-table td {
  height: 40px;
  padding: 8px 12px;
  border-bottom: 1px solid #ebeef5;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ssr-detail-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #667085;
  font-weight: 600;
}

.ssr-detail-table th:nth-child(1) {
  width: 34%;
}

.ssr-detail-table th:nth-child(2) {
  width: 20%;
}

.ssr-detail-table th:nth-child(3) {
  width: 12%;
}

.ssr-detail-table th:nth-child(4) {
  width: 34%;
}

.ssr-detail-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.ssr-detail-table tbody tr:hover {
  background: #f5f8ff;
}

.ssr-detail-table code {
  padding: 2px 7px;
  border: 1px solid #a0cfff;
  border-radius: 4px;
  color: #409eff;
  font: inherit;
}

.ssr-detail-page .detail-flash-pager {
  padding: 12px 0 0;
}

.ssr-archive-tree {
  min-width: max-content;
  color: #344054;
  font: 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.ssr-tree-level {
  position: relative;
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
}

.ssr-archive-tree > .ssr-tree-level {
  padding-left: 0;
}

.ssr-tree-level .ssr-tree-level::before {
  position: absolute;
  top: 0;
  bottom: 12px;
  left: 7px;
  width: 1px;
  background: #dfe5ed;
  content: "";
}

.ssr-tree-item.is-filtered {
  display: none;
}

.ssr-tree-directory details,
.ssr-tree-directory summary {
  margin: 0;
}

.ssr-tree-directory summary,
.ssr-tree-file > span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.ssr-tree-directory summary {
  cursor: pointer;
  font-weight: 600;
  color: #2f405c;
}

.ssr-tree-directory summary:hover,
.ssr-tree-file > span:hover {
  background: #f5f8ff;
}

.ssr-tree-file > span {
  padding-left: 27px;
}

.ssr-tree-icon {
  display: inline-flex;
  flex: none;
  width: 14px;
  height: 14px;
  color: #7696c6;
}

.ssr-tree-icon svg {
  width: 100%;
  height: 100%;
}

.ssr-tree-file .ssr-tree-icon {
  color: #98a2b3;
}

.ssr-tree-label {
  overflow: hidden;
  max-width: min(760px, calc(100vw - 390px));
  text-overflow: ellipsis;
}

.ssr-tree-count {
  min-width: 24px;
  margin-left: auto;
  padding-left: 16px;
  color: #98a2b3;
  font: 11px/1.4 ui-sans-serif, system-ui, sans-serif;
  text-align: right;
}

.ssr-tree-empty-filter {
  display: none;
  margin: 24px 8px;
  color: #98a2b3;
  font-size: 13px;
  text-align: center;
}

.ssr-tree-empty-filter.is-visible {
  display: block;
}

.ssr-tree-toolbar .ssr-tree-search {
  box-sizing: border-box;
  width: min(320px, 100%);
  height: 32px;
  padding: 0 11px 0 34px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  outline: none;
  background: #fff;
  color: #303133;
  font: 13px/1.4 system-ui, sans-serif;
}

.ssr-tree-toolbar .ssr-tree-search:focus {
  border-color: #409eff;
}

.ssr-tree-search-wrap {
  position: relative;
  width: min(320px, 100%);
}

.ssr-tree-search-wrap::before {
  position: absolute;
  top: 7px;
  left: 10px;
  z-index: 1;
  width: 16px;
  height: 16px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath fill='%2398a2b3' d='m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

.ssr-tree-action {
  padding: 5px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #606266;
  cursor: pointer;
  font-size: 12px;
}

.ssr-tree-action:hover {
  background: #ecf5ff;
  color: #409eff;
}

.ssr-page-note,
.ssr-empty {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.seo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #667085;
  font-size: 13px;
}

.seo-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.seo-breadcrumb a:hover {
  text-decoration: underline;
}

.seo-breadcrumb i {
  color: #c0c4cc;
  font-style: normal;
}

.seo-breadcrumb span {
  overflow-wrap: anywhere;
}

.seo-breadcrumb + .mptool-detail-view {
  margin-top: 12px;
}

.seo-directory-content {
  display: grid;
  align-content: start;
  gap: 16px;
}

.seo-directory-intro {
  padding: 20px 22px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.seo-directory-intro h1 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.35;
}

.seo-directory-intro p {
  margin: 7px 0 0;
  color: #667085;
  font-size: 14px;
}

.seo-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.seo-directory-card {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
  border: 1px solid #dfe4ec;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.seo-directory-card:hover {
  border-color: #409eff;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .08);
}

.seo-directory-card strong {
  color: #111827;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.seo-directory-card span {
  color: #475467;
  font-size: 13px;
}

.seo-directory-card small {
  color: #98a2b3;
}

.seo-directory-list h2,
.seo-directory-table-card h2 {
  margin: 0;
}

.seo-directory-list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-directory-list li {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid #ebeef5;
}

.seo-directory-list li a {
  overflow: hidden;
  color: #2563eb;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-directory-list li span {
  color: #98a2b3;
  font-size: 12px;
}

.seo-directory-table-card > .el-card__body {
  padding: 0;
}

.seo-directory-table-wrap {
  overflow-x: auto;
}

.seo-directory-table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

.seo-directory-table-wrap th,
.seo-directory-table-wrap td {
  padding: 11px 14px;
  border-bottom: 1px solid #ebeef5;
  text-align: left;
}

.seo-directory-table-wrap th {
  background: #f8fafc;
  color: #667085;
  font-weight: 600;
}

.seo-directory-table-wrap th:nth-child(2),
.seo-directory-table-wrap td:nth-child(2),
.seo-directory-table-wrap th:nth-child(3),
.seo-directory-table-wrap td:nth-child(3),
.seo-directory-table-wrap th:nth-child(4),
.seo-directory-table-wrap td:nth-child(4) {
  width: 120px;
  white-space: nowrap;
}

.seo-directory-table-wrap td a {
  color: #2563eb;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.seo-directory-table-wrap td a:hover {
  text-decoration: underline;
}

.seo-action-link {
  color: #409eff;
  font-size: 14px;
  text-decoration: none;
}

.seo-action-link:hover {
  color: #337ecc;
}

.directory-recommendation-card h2 {
  margin: 0;
}

.directory-recommendation-card > .el-card__header {
  padding: 9px 14px;
}

.directory-recommendation-card > .el-card__body {
  padding: 10px 14px 12px;
}

.directory-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.directory-recommendation-link {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #344054;
  text-decoration: none;
}

.directory-recommendation-link:hover {
  border-color: #409eff;
  background: #f8fbff;
}

.directory-recommendation-link strong {
  overflow: hidden;
  color: #2563eb;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-recommendation-link span {
  color: #98a2b3;
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .directory-recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vendor-entry {
  text-decoration: none;
}

.seo-not-found {
  width: min(560px, calc(100% - 32px));
  margin: 12vh auto 0;
  padding: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.seo-not-found > strong {
  color: #409eff;
  font-size: 42px;
}

.seo-not-found h1 {
  margin: 8px 0;
  font-size: 22px;
}

.seo-not-found p {
  color: #667085;
}

.seo-not-found a {
  color: #2563eb;
}

@media (max-width: 760px) {
  .archive-tree-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .archive-tree-search,
  .ssr-tree-search-wrap,
  .ssr-tree-toolbar .ssr-tree-search {
    width: 100%;
  }

  .archive-tree-actions {
    justify-content: flex-end;
  }

  .ssr-tree-label {
    max-width: calc(100vw - 155px);
  }

  .ssr-detail-page .ssr-main {
    width: 100%;
  }

  .seo-directory-intro {
    padding: 16px;
  }

  .seo-directory-intro h1 {
    font-size: 19px;
  }

  .seo-directory-grid,
  .seo-directory-list ul {
    grid-template-columns: 1fr;
  }

  .directory-recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.placeholder-view {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}

.placeholder-panel {
  width: min(640px, 100%);
}

.placeholder-panel .el-card__body {
  padding: 42px 24px;
}

.dialog-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  word-break: break-all;
}

.dialog-subtitle {
  margin-top: 4px;
  color: #667085;
  font-size: 13px;
}

.archive-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-tabs {
  margin-top: 4px;
}

.tree-preview {
  margin: 0;
  padding: 14px 16px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--el-border-color-lighter);
  border-radius: 8px;
  background: #f8fafc;
  color: #344054;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.muted {
  color: #98a2b3;
}

.el-table {
  --el-table-header-bg-color: #f8fafc;
  --el-table-row-hover-bg-color: #f5f8ff;
}

.el-table th.el-table__cell {
  height: 38px;
  padding: 7px 0;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
}

.el-table td.el-table__cell {
  color: #475467;
  font-size: 12.5px;
}

.el-table .el-button.is-text {
  font-weight: 600;
}

.el-card {
  border-color: #e5e7eb;
}

@media (max-width: 1400px) {
  .result-layout,
  .result-layout.has-profile {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .result-side-column {
    display: contents;
  }

  .result-profile-card {
    order: 1;
  }

  .result-main-card {
    order: 2;
    height: auto;
  }

  .id-card {
    order: 3;
  }

  .name-card {
    order: 4;
    height: auto;
  }

  .controller-pills {
    max-height: 180px;
  }

  .name-list {
    max-height: 360px;
  }

  .result-profile-card .fused-attributes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .result-profile-card .fused-attribute:not(:nth-child(4n + 1)) {
    border-left: 1px solid var(--line);
  }

  .result-profile-card .fused-attribute:nth-child(4n + 1) {
    border-left: 0;
  }
}

@media (max-width: 1480px) and (min-width: 761px) {
  .production-view {
    height: auto;
    min-height: calc(100dvh - 118px);
  }

  .tool-browser {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(160px, 26vh) minmax(360px, 1fr);
  }

  .tool-pane {
    border-bottom: 1px solid var(--line);
  }

  .tool-type-pane {
    border-right: 0;
  }

  .tool-archive-pane {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1080px) {
  .sidebar {
    width: 208px !important;
  }

  .filter-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100% !important;
    height: auto;
  }

  .brand {
    height: 56px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .side-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 10px;
  }

  .side-menu .el-menu-item {
    flex: 0 0 auto;
    height: 38px;
    margin: 0;
    padding: 0 14px;
  }

  .site-footer {
    display: none;
  }

  .topbar {
    position: relative;
    min-height: 0;
    padding: 10px 16px;
    height: auto !important;
  }

  .content {
    padding: 12px;
  }

  .production-view {
    height: auto;
    min-height: 0;
    display: block;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .filter-row .el-button {
    width: 100%;
  }

  .tool-browser {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 180px auto;
    min-height: 0;
  }

  .tool-pane {
    height: 180px;
    border-bottom: 1px solid #e5e7eb;
  }

  .tool-type-pane {
    border-right: 0;
  }

  .tool-pane-head {
    min-height: 40px;
    padding: 7px 6px;
  }

  .tool-archive-pane {
    grid-column: 1 / -1;
  }

  .folder-list {
    height: auto;
    max-height: none;
  }

  .query-row {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .query-panel > .el-card__body,
  .tool-panel > .el-card__body {
    padding: 16px;
  }

  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-strip .stat-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .home-grid,
  .vendor-entry-list {
    grid-template-columns: 1fr;
  }

  .fused-profile-card > .el-card__body {
    padding: 0;
  }

  .fused-title-block {
    display: block;
  }

  .fused-subtitle {
    margin-top: 2px;
  }

  .fused-attributes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
    padding: 12px 10px 14px;
  }

  .fused-attribute {
    padding: 0 10px;
  }

  .fused-attribute:not(:nth-child(4n + 1)) {
    border-left: 0;
  }

  .fused-attribute:nth-child(even) {
    border-left: 1px solid #e5e7eb;
  }

  .result-profile-card .fused-attributes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-profile-card .fused-attribute:not(:nth-child(4n + 1)) {
    border-left: 0;
  }

  .result-profile-card .fused-attribute:nth-child(even) {
    border-left: 1px solid var(--line);
  }


  .archive-dialog {
    width: 94% !important;
  }

  .controller-package-table,
  .tool-archive-table {
    display: none;
  }

  .controller-package-mobile,
  .tool-archive-mobile {
    display: block;
  }

  .controller-package-mobile,
  .tool-archive-mobile {
    max-height: 520px;
    overflow: auto;
  }

  .selected-controller-bar {
    flex-wrap: wrap;
  }

  .detail-overview {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-actions {
    width: 100%;
  }

  .detail-actions .el-button,
  .detail-actions .download-popover-wrapper {
    flex: 1 1 0;
  }

  .detail-actions .download-popover-wrapper .el-button {
    width: 100%;
  }

  .detail-overview-card > .el-card__body {
    padding: 16px;
  }

  .detail-file-title {
    font-size: 17px;
  }

  .detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }

  .detail-meta > span {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 0;
    border-left: 0;
  }

  .detail-meta-md5 {
    grid-column: 1 / -1;
  }

  .detail-meta .detail-md5 {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .query-row {
    grid-template-columns: 1fr;
  }
}
