:root {
  --bg: #f3f6f8;
  --paper: #ffffff;
  --ink: #17212f;
  --muted: #687487;
  --line: #dfe5ea;
  --line-strong: #c6d1d9;
  --teal: #176b68;
  --teal-dark: #105653;
  --teal-soft: #e3f1ef;
  --blue: #315b7d;
  --blue-dark: #234663;
  --blue-soft: #e9f0f5;
  --warm: #a9553c;
  --warm-soft: #f7eae5;
  --shadow: 0 10px 26px rgba(31, 49, 65, 0.07);
  --content: 1420px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:not(:disabled),
a {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(23, 107, 104, 0.25);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: "DengXian", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-synthesis: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

.topbar {
  position: relative;
  top: auto;
  z-index: 30;
  min-height: 0;
  padding-top: 10px;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  min-height: 62px;
  margin: 0 auto;
  padding: 7px 12px 7px 18px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(255, 255, 255, .96);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(57, 65, 131, .10);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: transparent;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .92), transparent 27%),
    linear-gradient(145deg, #7467f3, #91d7ed);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, .5);
  font-size: 0;
  font-weight: 900;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  width: 4px;
  height: 13px;
  background: #fff;
  border-radius: 999px;
}

.brand-mark::before { margin-right: 3px; }
.brand-mark::after { margin-left: 3px; }

img.brand-mark {
  display: block;
  object-fit: contain;
  color: transparent;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 15px;
}

.brand-copy small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #4f5d6e;
  font-size: 13px;
}

.nav-links a {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  place-items: center;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-action {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  place-items: center;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid #d4e0e8;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.topbar .nav-action { display: none; }

main {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  justify-items: center;
  padding: 54px 0 30px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.hero h1 {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 24px;
  text-align: center;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.12;
}

.search-shell {
  width: min(820px, 100%);
  margin: 0 auto;
  justify-self: center;
  padding: 7px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 15px 34px rgba(35, 67, 82, 0.1);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.search-row input {
  width: 100%;
  height: 52px;
  min-width: 0;
  padding: 0 15px;
  color: var(--ink);
  background: #fff;
  border: 0;
  outline: 0;
  font-size: 16px;
}

.search-row input::placeholder,
.filter-group input::placeholder {
  color: #8b96a4;
}

.primary-button {
  min-width: 116px;
  min-height: 52px;
  padding: 0 18px;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 7px;
  font-weight: 900;
}

.primary-button:hover {
  background: var(--teal-dark);
}

.quick-row {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.quick-row > span {
  margin-right: 2px;
  color: var(--muted);
  font-size: 12px;
}

.quick-chip {
  min-height: 44px;
  padding: 9px 12px;
  color: #425f61;
  background: var(--teal-soft);
  border: 1px solid #cfe3e0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.quick-chip:hover {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.workflow-strip {
  margin: 10px 0 36px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.3;
}

.text-action {
  min-height: 44px;
  padding: 0;
  color: var(--teal);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 900;
}

.text-action:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tools-section {
  margin: 0 0 30px;
}

.tools-heading {
  margin-bottom: 16px;
}

.tools-heading h2 {
  font-size: 29px;
}

.count-badge {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid #d5e0e8;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.workspace {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr) 252px;
  gap: 14px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 84px;
  max-height: calc(100dvh - 100px);
  padding: 14px;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.guide-rail {
  position: sticky;
  top: 84px;
  max-height: calc(100dvh - 100px);
  padding: 0;
  overflow-y: auto;
}

.panel-label,
.filter-title,
.filter-group > label {
  display: block;
  margin: 0 3px 9px;
  color: #778495;
  font-size: 11px;
  font-weight: 900;
}

.category-list {
  display: grid;
  gap: 5px;
}

.category-button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 7px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: left;
}

.category-button:hover {
  background: #f3f6f7;
}

.category-button.active {
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-color: #cfe2df;
}

.category-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
}

.category-button.active .category-icon {
  color: #fff;
  background: var(--teal);
}

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

.category-copy strong,
.category-copy small {
  display: block;
}

.category-copy strong {
  font-size: 13px;
}

.category-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: #85909e;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-count {
  color: #85909e;
  font-size: 10px;
}

.filter-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.filter-group input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 12px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3px;
  background: #eef2f4;
  border-radius: 7px;
}

.filter-chip {
  min-width: 0;
  min-height: 44px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 11px;
}

.filter-chip.active {
  color: var(--teal-dark);
  background: #fff;
  box-shadow: 0 1px 4px rgba(31, 49, 65, 0.1);
  font-weight: 900;
}

.filter-checks {
  display: grid;
  gap: 5px;
}

.filter-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  color: #4f5c6c;
  font-size: 12px;
  cursor: pointer;
}

.filter-checks input {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
}

.tool-results {
  min-width: 0;
}

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 0 4px 8px;
}

.result-toolbar strong {
  font-size: 14px;
}

.result-toolbar span {
  margin-left: auto;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.tool-card {
  display: block;
  width: 100%;
  min-height: 236px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 7px 19px rgba(31, 49, 65, 0.05);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: #aebfc9;
  box-shadow: 0 14px 28px rgba(31, 49, 65, 0.09);
}

.tool-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.app-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 7px 14px rgba(24, 39, 52, 0.12);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.app-icon-chat {
  background: #176b68;
}

.app-icon-visual {
  background: #315b7d;
}

.app-icon-audio {
  background: #a9553c;
}

.app-icon-office {
  background: #496579;
}

.app-icon-devlocal {
  background: #263545;
}

.tool-name {
  min-width: 0;
}

.tool-name strong,
.tool-name small {
  display: block;
}

.tool-name strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-name small {
  margin-top: 3px;
  overflow: hidden;
  color: #7b8796;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score {
  flex: 0 0 auto;
  padding: 5px 7px;
  color: #814d3a;
  background: var(--warm-soft);
  border: 1px solid #ecd3c9;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
}

.tool-summary {
  min-height: 48px;
  margin: 14px 0 10px;
  overflow: hidden;
  color: #556273;
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 25px;
  margin-bottom: 12px;
}

.status-tag {
  padding: 4px 7px;
  color: #216d58;
  background: #e6f3ed;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}

.status-tag:nth-child(even) {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.fact {
  min-width: 0;
  padding: 8px;
  background: #f7f9fa;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  border-right: 0;
}

.fact b,
.fact span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fact b {
  margin-bottom: 3px;
  color: #8994a2;
  font-size: 9px;
}

.fact span {
  color: #445163;
  font-size: 10px;
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 260px;
  padding: 48px 24px;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  text-align: center;
}

.empty-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  place-items: center;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.empty-state h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.empty-state p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.clear-button {
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 7px;
  font-weight: 800;
}

.load-more-button {
  grid-column: 1 / -1;
  min-height: 48px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border: 1px solid #c8dedb;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
}

.load-more-button:hover {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.guide-rail {
  display: grid;
  gap: 10px;
}

.rail-heading h2 {
  margin-bottom: 2px;
  font-size: 19px;
}

.guide-grid {
  display: grid;
  gap: 9px;
}

.guide-card,
.report-card {
  display: block;
  padding: 13px;
  background: #f5f8f9;
  border: 1px solid #e2e8ec;
  border-radius: 7px;
}

.guide-card:hover,
.report-card:hover {
  background: #f0f5f6;
  border-color: #b7c8d1;
}

.guide-card span,
.report-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
}

.guide-card strong,
.guide-card small,
.report-card strong,
.report-card small {
  display: block;
}

.guide-card strong,
.report-card strong {
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.45;
}

.guide-card small,
.report-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.report-card {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.report-card:hover {
  color: #fff;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.report-card span,
.report-card small {
  color: #dce8ef;
}

.editorial-strip {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr;
  gap: 12px;
  margin: 30px 0 34px;
}

.editorial-item {
  min-height: 142px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(31, 49, 65, 0.05);
}

.editorial-item:hover {
  border-color: #aec0ca;
  box-shadow: var(--shadow);
}

.editorial-item span {
  display: block;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
}

.editorial-item h2,
.editorial-item h3 {
  margin-bottom: 8px;
  line-height: 1.4;
}

.editorial-item h2 {
  font-size: 24px;
}

.editorial-item h3 {
  font-size: 17px;
}

.editorial-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.editorial-featured {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.editorial-featured span,
.editorial-featured p {
  color: #dce8ef;
}

.community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
  padding: 24px 26px;
  background: #e5efef;
  border: 1px solid #cfe0df;
  border-radius: 8px;
}

.community h2 {
  margin-bottom: 6px;
  font-size: 23px;
}

.community p:last-child {
  margin-bottom: 0;
  color: #5c6a79;
  font-size: 13px;
}

.disabled-action {
  flex: 0 0 auto;
  min-width: 116px;
  min-height: 44px;
  padding: 0 16px;
  color: #7d8792;
  background: #d8e0e2;
  border: 1px solid #c8d1d4;
  border-radius: 7px;
  font-weight: 800;
  cursor: not-allowed;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: center;
}

.site-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #566675;
  font-size: 13px;
  font-weight: 700;
}

.site-footer-links a:hover {
  color: var(--teal-dark);
}

.footer-contact a {
  color: inherit;
  text-decoration: underline;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  background: transparent;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 26, 38, 0.42);
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(540px, 100%);
  height: 100dvh;
  padding: 68px 24px 32px;
  overflow-y: auto;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 45px rgba(22, 36, 48, 0.16);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 220ms ease;
}

.detail-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  background: #f1f4f6;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 25px;
  line-height: 1;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 18px;
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 50px;
}

.drawer-title h2 {
  margin-bottom: 0;
  font-size: 27px;
  line-height: 1.25;
}

.drawer-lead {
  margin: 18px 0;
  color: #536172;
  font-size: 14px;
  line-height: 1.8;
}

.drawer-section {
  margin-top: 22px;
}

.drawer-section h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.detail-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
}

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

.detail-row > span {
  color: #7b8795;
  font-size: 12px;
}

.detail-row strong {
  min-width: 0;
  color: #344253;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
  white-space: pre-line;
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.official-link,
.download-link {
  display: grid;
  min-height: 48px;
  padding: 0 16px;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.official-link {
  color: var(--teal-dark);
  background: #fff;
}

.download-link {
  color: #fff;
  background: var(--teal);
}

.official-link:hover,
.download-link:hover {
  color: #fff;
  background: var(--teal-dark);
}

.download-link-disabled,
.download-link-disabled:hover {
  color: #7b8795;
  background: #eef1f3;
  border-color: #d8dee3;
  cursor: not-allowed;
}

.download-safety-note {
  margin: 10px 0 0;
  color: #7b8795;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 480px) {
  .download-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: 202px minmax(0, 1fr);
  }

  .guide-rail {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rail-heading {
    grid-column: 1 / -1;
  }

  .guide-grid {
    display: contents;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 42px;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-panel,
  .guide-rail {
    position: static;
    width: 100%;
    max-height: none;
    min-width: 0;
    overflow: visible;
  }

  .category-list {
    display: flex;
    gap: 7px;
    margin: 0 -14px;
    padding: 0 14px 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .category-button {
    flex: 0 0 auto;
    grid-template-columns: 30px auto;
    width: auto;
    min-width: 126px;
  }

  .category-copy small,
  .category-count {
    display: none;
  }

  .filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.55fr);
    gap: 12px;
  }

  .filter-panel > .panel-label,
  .filter-panel > .category-list {
    grid-column: 1 / -1;
  }

  .filter-group {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .filter-checks {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .report-card {
    grid-column: 1 / -1;
  }

  .editorial-strip {
    grid-template-columns: 1fr 1fr;
  }

  .editorial-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .topbar-inner,
  main,
  .site-footer {
    width: min(100% - 24px, var(--content));
  }

  .topbar-inner {
    gap: 10px;
  }

  .brand-copy small {
    display: none;
  }

  .nav-action {
    padding: 0 10px;
  }

  .hero {
    padding: 34px 0 25px;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: 38px;
  }

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

  .primary-button {
    width: 100%;
  }

  .section-heading,
  .community,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .text-action {
    align-self: flex-start;
  }

  .tools-heading {
    flex-direction: row;
    align-items: flex-end;
  }

  .filter-panel {
    display: block;
  }

  .filter-group {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
  }

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

  .result-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 10px;
  }

  .result-toolbar span {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }

  .guide-rail,
  .editorial-strip {
    grid-template-columns: 1fr;
  }

  .editorial-featured,
  .report-card {
    grid-column: auto;
  }

  .community {
    padding: 20px;
  }

  .disabled-action {
    width: 100%;
  }

  .site-footer {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .site-footer p {
    text-align: left;
  }

  .detail-drawer {
    padding: 64px 16px 28px;
  }
}

@media (max-width: 390px) {
  body:not(.content-page) .nav-action {
    display: none;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .nav-action {
    font-size: 12px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .quick-row {
    justify-content: flex-start;
  }

  .quick-row > span {
    width: 100%;
    text-align: left;
  }

  .tools-heading h2 {
    font-size: 24px;
  }

  .tools-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .count-badge {
    padding: 7px 8px;
  }

  .fact {
    padding: 8px 6px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .tool-card:hover {
    transform: none;
  }
}

a.tool-name-link,
a.tool-name-link:visited {
  color: #5961b8;
  text-decoration: none;
}

a.tool-name-link:hover,
a.tool-name-link:focus-visible {
  color: #343b8f;
  text-decoration: none;
}

.download-safety-note {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 16px;
  color: #4f526c;
  background: #fff8e8;
  border: 1px solid #f1d99b;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.7;
}
.download-safety-note strong { color: #76531a; }
.download-safety-note p { margin: 0; }
.download-safety-note a { color: #6652c7; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.download-confirm-dialog { width: min(520px, calc(100% - 32px)); padding: 0; color: #171936; background: transparent; border: 0; }
.download-confirm-dialog::backdrop { background: rgba(17, 20, 50, .48); backdrop-filter: blur(4px); }
.download-confirm-card { display: grid; gap: 10px; padding: 28px; background: #fff; border: 1px solid #d9dce8; border-radius: 22px; box-shadow: 0 24px 70px rgba(17, 20, 50, .25); }
.download-confirm-card h2 { margin: 0; font-size: 24px; }
.download-confirm-card p { margin: 0; line-height: 1.75; }
.download-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.download-confirm-actions button { min-height: 42px; padding: 0 16px; color: #383b58; background: #f4f5fa; border: 1px solid #d9dce8; border-radius: 999px; cursor: pointer; font-weight: 800; }
.download-confirm-actions button.primary { color: white; background: #25215f; border-color: #25215f; }

.not-found-body { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; color: #171936; background: #f6f7fb; }
.not-found-header { padding: 24px max(24px, calc((100% - 1180px) / 2)); background: #fff; border-bottom: 1px solid #e0e2ec; }
.not-found-header .brand { display: inline-flex; align-items: center; gap: 10px; color: #171936; }
.not-found-header .brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; gap: 3px; background: #25215f; border-radius: 12px; }
.not-found-header .brand-mark span { width: 4px; height: 14px; background: #fff; border-radius: 999px; transform: rotate(-24deg); }
.not-found-header .brand-mark span + span { height: 20px; transform: rotate(24deg); }
.not-found-header .brand-copy { display: grid; gap: 2px; }
.not-found-header .brand-copy strong { font-size: 16px; }
.not-found-header .brand-copy small { color: #6c7186; font-size: 11px; }
.not-found-page { width: min(720px, calc(100% - 48px)); margin: auto; padding: 80px 0; text-align: center; }
.not-found-page h1 { margin: 8px 0 14px; font-size: clamp(36px, 7vw, 72px); letter-spacing: -.04em; }
.not-found-page > p:not(.eyebrow) { margin: 0 auto; color: #6c7186; line-height: 1.8; }
.not-found-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.not-found-links a { padding: 12px 18px; color: #25215f; background: #fff; border: 1px solid #d9dce8; border-radius: 999px; font-weight: 800; }
.not-found-links a:first-child { color: #fff; background: #25215f; border-color: #25215f; }
.not-found-links a:hover, .not-found-links a:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 33, 95, .12); }
.not-found-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px max(24px, calc((100% - 1180px) / 2)); color: #6c7186; background: #fff; border-top: 1px solid #e0e2ec; font-size: 12px; }
.not-found-footer a { color: #6652c7; font-weight: 700; }

@media (max-width: 640px) {
  .not-found-page { padding: 56px 0; }
  .not-found-links { display: grid; }
  .not-found-links a { text-align: center; }
  .not-found-footer { flex-direction: column; }
  .download-confirm-card { padding: 22px; }
  .download-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; }
}
