﻿:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5d6b7b;
  --line: #d8dee7;
  --panel: #ffffff;
  --soft: #f4f7fa;
  --green: #167c62;
  --blue: #315fbd;
  --gold: #a46a14;
  --red: #b23b4a;
  --shadow: 0 18px 48px rgba(23, 32, 42, 0.12);
}

/* Global top navigation: replaces the old side-tab model on every page. */
body.home,
body.detail {
  padding-left: 0;
}

.site-header.figma-home-header,
body.home .site-header.figma-home-header,
body.detail .site-header.figma-home-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(360px, 1fr) minmax(160px, 240px);
  align-items: center;
  min-height: 64px;
  padding: 0 max(32px, calc((100vw - 1160px) / 2));
  gap: 18px;
  background: rgba(248, 250, 252, 0.96);
  border-top: 2px solid #2388ff;
  border-right: 0;
  border-bottom: 1px solid #dfe4ea;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.site-header.figma-home-header .brand,
body.home .site-header.figma-home-header .brand,
body.detail .site-header.figma-home-header .brand {
  gap: 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-header.figma-home-header .brand-mark,
body.home .site-header.figma-home-header .brand-mark,
body.detail .site-header.figma-home-header .brand-mark {
  display: none;
}

.site-header.figma-home-header .figma-home-nav,
body.home .site-header.figma-home-header .figma-home-nav,
body.detail .site-header.figma-home-header .figma-home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 44px);
  color: #475467;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.site-header.figma-home-header .figma-home-nav a,
body.home .site-header.figma-home-header .figma-home-nav a,
body.detail .site-header.figma-home-header .figma-home-nav a {
  position: relative;
  color: #475467;
  white-space: nowrap;
}

.site-header.figma-home-header .figma-home-nav a::after,
body.home .site-header.figma-home-header .figma-home-nav a::after,
body.detail .site-header.figma-home-header .figma-home-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -22px;
  left: 0;
  height: 3px;
  background: transparent;
  border-radius: 999px;
}

.site-header.figma-home-header .figma-home-nav a.is-active,
body.home .site-header.figma-home-header .figma-home-nav a.is-active,
body.detail .site-header.figma-home-header .figma-home-nav a.is-active {
  color: #0f172a;
  font-weight: 700;
}

.site-header.figma-home-header .figma-home-nav a.is-active::after,
body.home .site-header.figma-home-header .figma-home-nav a.is-active::after,
body.detail .site-header.figma-home-header .figma-home-nav a.is-active::after {
  background: #0f172a;
}

.global-search,
body.home .global-search,
body.detail .global-search {
  position: relative;
  justify-self: end;
  display: grid;
  grid-template-columns: 1fr 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: width 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.global-search:focus-within {
  width: min(320px, 34vw);
  background: #fff;
  border-color: #dfe4ea;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.global-search input {
  min-width: 0;
  width: 100%;
  height: 42px;
  padding: 0 4px 0 16px;
  color: #0f172a;
  background: transparent;
  border: 0;
  outline: 0;
  opacity: 0;
  font-size: 14px;
  line-height: 20px;
  font-family: inherit;
}

.global-search:focus-within input {
  opacity: 1;
}

.global-search input::placeholder {
  color: #667085;
}

.global-search .header-icon-search {
  position: relative;
  width: 44px;
  height: 42px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.global-search .header-icon-search::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid #0f172a;
  border-radius: 50%;
}

.global-search .header-icon-search::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 26px;
  width: 8px;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
  transform: rotate(45deg);
  transform-origin: left center;
}

@media (max-width: 820px) {
  .site-header.figma-home-header,
  body.home .site-header.figma-home-header,
  body.detail .site-header.figma-home-header {
    grid-template-columns: 1fr auto;
    min-height: 72px;
    padding: 10px 18px;
  }

  .site-header.figma-home-header .figma-home-nav,
  body.home .site-header.figma-home-header .figma-home-nav,
  body.detail .site-header.figma-home-header .figma-home-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 13px;
  }

  .site-header.figma-home-header .figma-home-nav a::after,
  body.home .site-header.figma-home-header .figma-home-nav a::after,
  body.detail .site-header.figma-home-header .figma-home-nav a::after {
    bottom: -7px;
  }

  .global-search:focus-within {
    width: min(250px, 62vw);
  }
}

/* Figma reference homepage theme. */
body.home {
  padding: 0;
  color: #0f172a;
  background: #f4f6f8;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body.home .figma-home-header,
body.home .site-header.figma-home-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 170px 1fr 82px;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 0 max(32px, calc((100vw - 1160px) / 2));
  gap: 20px;
  background: rgba(248, 250, 252, 0.92);
  border-top: 2px solid #2388ff;
  border-right: 0;
  border-bottom: 1px solid #dfe4ea;
  box-shadow: none;
  backdrop-filter: blur(14px);
}

body.home .figma-home-header .brand {
  gap: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
}

body.home .figma-home-header .brand-mark {
  display: none;
}

body.home .figma-home-nav,
body.home .figma-home-header .nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  color: #475467;
  font-size: 12px;
  font-weight: 650;
}

body.home .figma-home-nav a,
body.home .figma-home-header .nav a {
  position: relative;
  color: #475467;
  white-space: nowrap;
}

body.home .figma-home-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 3px;
  background: transparent;
  border-radius: 999px;
}

body.home .figma-home-nav a.is-active {
  color: #0f172a;
  font-weight: 850;
}

body.home .figma-home-nav a.is-active::after {
  background: #0f172a;
}

body.home .header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

body.home .header-icon {
  position: relative;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #0f172a;
  background: transparent;
  border: 0;
}

body.home .header-icon-sun::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow:
    0 -7px 0 -3px currentColor,
    0 7px 0 -3px currentColor,
    7px 0 0 -3px currentColor,
    -7px 0 0 -3px currentColor,
    5px 5px 0 -3px currentColor,
    -5px -5px 0 -3px currentColor,
    5px -5px 0 -3px currentColor,
    -5px 5px 0 -3px currentColor;
}

body.home .header-icon-search::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}

body.home .header-icon-search::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 6px;
  height: 1.7px;
  background: currentColor;
  border-radius: 999px;
  transform: rotate(45deg);
  transform-origin: left center;
}

body.home main {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0;
}

body.home .search-hero {
  display: grid;
  justify-items: center;
  padding: 68px 0 64px;
}

body.home .search-hero::before {
  display: none;
}

body.home .search-hero h1 {
  display: block;
  max-width: none;
  margin: 0 0 26px;
  color: #0f172a;
  font-size: clamp(36px, 4.1vw, 48px);
  line-height: 1.04;
  font-weight: 880;
  letter-spacing: 0;
  text-align: center;
}

body.home .search-panel {
  width: min(690px, 100%);
}

body.home .search-hero .search-row {
  min-height: 66px;
  grid-template-columns: 1fr 46px;
  background: #fff;
  border: 0;
  border-radius: 11px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

body.home .search-hero input {
  min-height: 66px;
  padding-left: 60px;
  color: #0f172a;
  background: transparent;
  font-size: 14px;
}

body.home .search-hero input::placeholder {
  color: #737c8b;
}

body.home .search-hero .search-row::before {
  left: 25px;
  width: 13px;
  height: 13px;
  border: 1.8px solid #667085;
}

body.home .search-hero .search-row::after {
  left: 36px;
  width: 8px;
  height: 1.8px;
  background: #667085;
}

body.home .search-hero .category-tabs {
  display: none;
}

body.home .directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
  margin: 0 0 72px;
}

body.home .top-directory,
body.home .latest-sidebar {
  margin: 0;
}

body.home .top-directory .section-heading,
body.home .latest-sidebar .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin: 0 0 22px;
}

body.home .top-directory .section-heading::after {
  content: "View all";
  color: #0f172a;
  font-size: 11px;
  font-weight: 850;
}

body.home .top-directory h2,
body.home .latest-sidebar h2 {
  margin: 0;
  color: #0f172a;
  font-size: 30px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

body.home .latest-sidebar h2 {
  font-size: 20px;
}

body.home .top-directory .quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

body.home .top-directory .quick-card {
  display: grid;
  min-height: 136px;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.045);
}

body.home .top-directory .quick-card:nth-child(n + 7) {
  display: none;
}

body.home .top-directory .quick-card:hover,
body.home .latest-item:hover {
  transform: translateY(-1px);
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.075);
}

body.home .top-directory .tool-icon,
body.home .mini-icon {
  background: linear-gradient(135deg, #51a7ff, #4757ff);
  border: 0;
  box-shadow: 0 12px 20px rgba(44, 115, 255, 0.22);
}

body.home .top-directory .quick-card:nth-child(2) .tool-icon {
  background: linear-gradient(135deg, #ff7a3d, #ef3e2f);
}

body.home .top-directory .quick-card:nth-child(3) .tool-icon {
  background: linear-gradient(135deg, #35d4a7, #009b78);
}

body.home .top-directory .quick-card:nth-child(4) .tool-icon {
  background: linear-gradient(135deg, #c55cff, #8f3df6);
}

body.home .top-directory .quick-card:nth-child(5) .tool-icon {
  background: linear-gradient(135deg, #ffbd3f, #ff7a1a);
}

body.home .top-directory .quick-card:nth-child(6) .tool-icon {
  background: linear-gradient(135deg, #47c4ff, #2472ff);
}

body.home .top-directory .tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

body.home .top-directory .tool-icon svg {
  width: 27px;
  height: 27px;
}

body.home .top-directory .tool-icon .functional-icon {
  --icon-ink: #ffffff;
  --icon-fill: transparent;
  --icon-fill-2: transparent;
  --icon-fill-3: transparent;
  --icon-accent: #ffffff;
}

body.home .top-directory .tool-icon .icon-fill,
body.home .top-directory .tool-icon .icon-fill-2,
body.home .top-directory .tool-icon .icon-fill-3 {
  fill: none;
}

body.home .top-directory .quick-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

body.home .top-directory .quick-card small {
  order: 0;
  display: inline-flex;
  align-items: center;
  margin: 0 0 4px;
  color: #667085;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.home .top-directory .quick-card small::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 6px;
  background: #2f80ff;
  border-radius: 50%;
}

body.home .top-directory .quick-card strong {
  order: 1;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.04;
  font-weight: 850;
}

body.home .top-directory .quick-card em {
  order: 2;
  margin-top: 8px;
  color: #475467;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

body.home .latest-sidebar .latest-list {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
}

body.home .latest-item {
  display: flex;
  min-height: 42px;
  gap: 9px;
  padding: 0 12px;
  color: #334155;
  background: #eef1f4;
  border: 0;
  border-radius: 2px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 650;
}

body.home .latest-item .mini-icon {
  width: 18px;
  height: 18px;
  color: #667085;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body.home .latest-item .mini-icon svg {
  width: 17px;
  height: 17px;
}

body.home .latest-item .functional-icon {
  --icon-ink: #667085;
  --icon-fill: transparent;
  --icon-fill-2: transparent;
  --icon-fill-3: transparent;
  --icon-accent: #667085;
}

body.home .latest-item .icon-fill,
body.home .latest-item .icon-fill-2,
body.home .latest-item .icon-fill-3 {
  fill: none;
}

body.home .bundle-card {
  position: relative;
  display: flex;
  min-height: 372px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 28px 24px 24px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(9, 21, 34, 0.16), rgba(9, 21, 34, 0.94)),
    radial-gradient(circle at 72% 20%, rgba(147, 164, 181, 0.65), transparent 24%),
    linear-gradient(135deg, #0b1724, #142637 55%, #07111b);
  border-radius: 9px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

body.home .bundle-card::before {
  content: "";
  position: absolute;
  top: 52px;
  right: 34px;
  width: 112px;
  height: 150px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(255, 255, 255, 0.14) 14px 15px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  transform: rotate(8deg);
}

body.home .bundle-card span {
  z-index: 1;
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.home .bundle-card strong {
  z-index: 1;
  max-width: 230px;
  font-size: 31px;
  line-height: 1.02;
  font-weight: 850;
}

body.home .bundle-card small {
  z-index: 1;
  margin: 12px 0 22px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  line-height: 1.45;
}

body.home .bundle-card em {
  z-index: 1;
  display: grid;
  min-height: 44px;
  place-items: center;
  color: #0f172a;
  background: #fff;
  border-radius: 5px;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

body.home .accuracy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 70px;
  align-items: center;
  max-width: none;
  margin: 0 0 64px;
  padding: 38px 0;
  background: transparent;
  border: 1px solid #dfe4ea;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

body.home .accuracy-copy h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 31px;
  line-height: 1.08;
  font-weight: 850;
}

body.home .accuracy-copy p {
  max-width: 450px;
  margin: 0;
  padding: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.65;
}

body.home .accuracy-stats {
  display: flex;
  gap: 42px;
  margin-top: 30px;
}

body.home .accuracy-stats span {
  display: grid;
  gap: 4px;
}

body.home .accuracy-stats strong {
  color: #0f172a;
  font-size: 40px;
  line-height: 0.9;
  font-weight: 880;
}

body.home .accuracy-stats small {
  color: #475467;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.home .accuracy-visual {
  min-height: 254px;
  background:
    linear-gradient(180deg, rgba(0, 212, 255, 0.12), rgba(0, 0, 0, 0.45)),
    radial-gradient(circle at 52% 64%, rgba(72, 235, 255, 0.68), transparent 16%),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(37, 234, 255, 0.16) 39px 41px),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(37, 234, 255, 0.13) 35px 37px),
    linear-gradient(135deg, #06202a, #07131c 48%, #062d38);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(89, 230, 255, 0.24), 0 18px 32px rgba(15, 23, 42, 0.16);
}

body.home .directory-band,
body.home .workspace,
body.home .content-grid {
  display: none;
}

body.home .figma-home-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, 0.6fr) minmax(160px, 0.6fr);
  width: 100%;
  gap: 80px;
  margin: 0;
  padding: 48px max(32px, calc((100vw - 1160px) / 2)) 84px;
  color: #0f172a;
  background: #eef1f4;
  border: 0;
}

body.home .figma-home-footer strong {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 850;
}

body.home .figma-home-footer p {
  max-width: 310px;
  margin: 0 0 18px;
  color: #475467;
  font-size: 11px;
  line-height: 1.55;
}

body.home .figma-home-footer span {
  display: block;
  margin-bottom: 14px;
  color: #667085;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.home .figma-home-footer a {
  display: block;
  margin-bottom: 11px;
  color: #334155;
  font-size: 11px;
}

body.home .footer-socials {
  display: flex;
  gap: 18px;
}

body.home .footer-socials span {
  position: relative;
  width: 18px;
  height: 18px;
  margin: 0;
  background: #111827;
  border-radius: 50%;
}

body.home .footer-socials span:last-child {
  border-radius: 3px;
}

@media (max-width: 860px) {
  body.home .figma-home-header,
  body.home .site-header.figma-home-header {
    grid-template-columns: 1fr auto;
    width: 100%;
    min-height: auto;
    padding: 14px 18px 10px;
  }

  body.home .figma-home-nav {
    grid-column: 1 / -1;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  body.home .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  body.home main {
    width: min(100% - 32px, 620px);
  }

  body.home .search-hero {
    padding: 44px 0 42px;
  }

  body.home .search-hero h1 {
    font-size: 38px;
  }

  body.home .directory-layout,
  body.home .accuracy-section,
  body.home .figma-home-footer {
    grid-template-columns: 1fr;
  }

  body.home .top-directory .quick-grid {
    grid-template-columns: 1fr;
  }

  body.home .latest-sidebar {
    display: grid;
    gap: 18px;
  }

  body.home .bundle-card {
    min-height: 310px;
  }

  body.home .accuracy-section {
    gap: 24px;
  }

  body.home .accuracy-visual {
    min-height: 220px;
  }

body.home .figma-home-footer {
    gap: 28px;
    padding: 42px 24px 64px;
  }
}

/* Search suggestions and homepage density fixes. */
.has-search-suggestions {
  position: relative;
}

.global-search.has-search-suggestions,
body.home .global-search.has-search-suggestions,
body.detail .global-search.has-search-suggestions {
  overflow: visible;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  display: none;
  width: min(420px, 86vw);
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #dce3ec;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.search-row .search-suggestions {
  right: auto;
  left: 0;
  width: 100%;
}

.search-suggestions.is-open {
  display: grid;
  gap: 4px;
}

.search-suggestion {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 7px 9px;
  text-align: left;
  color: #172033;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.search-suggestion:hover,
.search-suggestion:focus-visible {
  background: #f1f5f9;
  outline: 0;
}

.search-suggestion .mini-icon {
  width: 32px;
  height: 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #8bd8ff, #8d7cf4 58%, #f46fa8);
  border: 0;
  border-radius: 9px;
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.18);
}

.search-suggestion .mini-icon svg {
  width: 21px;
  height: 21px;
}

.search-suggestion .functional-icon {
  --icon-ink: #ffffff;
  --icon-fill: transparent;
  --icon-fill-2: transparent;
  --icon-fill-3: transparent;
  --icon-accent: #ffffff;
}

.search-suggestion .icon-fill,
.search-suggestion .icon-fill-2,
.search-suggestion .icon-fill-3 {
  fill: none;
}

.search-suggestion strong,
.search-suggestion small {
  display: block;
}

.search-suggestion strong {
  overflow: hidden;
  color: #172033;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.search-suggestion-empty {
  padding: 14px 12px;
  color: #64748b;
  font-size: 14px;
}

body.home .top-directory .quick-card:nth-child(n + 7) {
  display: grid;
}

body.home .latest-sidebar {
  align-self: start;
}

body.home .latest-sidebar .latest-list {
  gap: 10px;
  margin-bottom: 32px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #dfe6ef;
  border-radius: 10px;
}

body.home .latest-item {
  min-height: 50px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 0 13px;
  background: #edf2f7;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 760;
}

body.home .latest-item .mini-icon {
  width: 28px;
  height: 28px;
}

body.home .latest-item .mini-icon svg {
  width: 20px;
  height: 20px;
}

/* Final sidebar ad alignment. */
body.home .directory-layout {
  align-items: stretch;
}

body.home .latest-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

body.home .bundle-card.ad-card {
  min-height: 282px;
  margin-top: auto;
  padding: 24px;
  background:
    radial-gradient(circle at 78% 12%, rgba(139, 216, 255, 0.32), transparent 30%),
    linear-gradient(145deg, #172033, #26364a 58%, #101827);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

body.home .bundle-card.ad-card::before {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04));
}

body.home .bundle-card.ad-card::after {
  content: "AD";
  position: absolute;
  right: 41px;
  top: 45px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

body.home .bundle-card.ad-card span {
  background: rgba(255, 255, 255, 0.14);
}

body.home .bundle-card.ad-card strong {
  max-width: 190px;
}

body.home .bundle-card.ad-card em {
  pointer-events: none;
}

/* Keep short detail pages grounded so the footer sits near the viewport bottom. */
body.detail {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.detail main {
  flex: 1 0 auto;
}

body.detail .site-footer {
  margin-top: auto;
  flex-shrink: 0;
}

/* Keep short detail pages grounded so the footer sits near the viewport bottom. */
body.detail {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.detail main {
  flex: 1 0 auto;
}

body.detail .site-footer {
  margin-top: auto;
  flex-shrink: 0;
}

/* Final homepage search and layout override. */
.global-search.has-search-suggestions,
body.home .global-search.has-search-suggestions,
body.detail .global-search.has-search-suggestions {
  overflow: visible;
}

body.home .top-directory .quick-card:nth-child(n + 7) {
  display: grid;
}

body.home .latest-sidebar .latest-list {
  gap: 10px;
  margin-bottom: 32px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #dfe6ef;
  border-radius: 10px;
}

body.home .latest-item {
  min-height: 50px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 0 13px;
  background: #edf2f7;
  border-radius: 8px;
  color: #26364a;
  font-size: 14px;
  font-weight: 760;
}

body.home .latest-item .mini-icon {
  width: 28px;
  height: 28px;
}

body.home .latest-item .mini-icon svg {
  width: 20px;
  height: 20px;
}

/* Sumdock homepage parity pass. */
body.home {
  --home-primary: #091426;
  --home-surface: #f7f9fb;
  --home-surface-low: #f2f4f6;
  --home-surface-card: #ffffff;
  --home-outline: #c5c6cd;
  --home-muted: #45474c;
  --home-soft-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin: 0;
  color: #191c1e;
  background: var(--home-surface);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.home .figma-home-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 64px;
  width: 100%;
  gap: 48px;
  padding: 0 max(32px, calc((100vw - 1200px) / 2));
  background: rgba(247, 249, 251, 0.8);
  border: 0;
  border-bottom: 1px solid rgba(197, 198, 205, 0.3);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

body.home .figma-home-header .brand {
  color: var(--home-primary);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
}

body.home .figma-home-header .brand-mark {
  display: none;
}

body.home .figma-home-nav,
body.home .figma-home-header .nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  padding: 0;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

body.home .figma-home-nav a,
body.home .figma-home-header .nav a {
  position: relative;
  color: var(--home-muted);
  text-decoration: none;
  white-space: nowrap;
}

body.home .figma-home-nav a::after,
body.home .figma-home-header .nav a::after {
  display: none;
}

body.home .figma-home-nav a.is-active,
body.home .figma-home-header .nav a.is-active {
  padding-bottom: 4px;
  color: var(--home-primary);
  border-bottom: 2px solid var(--home-primary);
  font-weight: 600;
}

body.home .header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.home .header-icon {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--home-muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

body.home .header-icon:hover {
  background: var(--home-surface-low);
}

body.home .header-icon:active {
  transform: scale(0.95);
}

body.home .header-icon-sun::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 -8px 0 -4px currentColor, 0 8px 0 -4px currentColor, 8px 0 0 -4px currentColor, -8px 0 0 -4px currentColor, 6px 6px 0 -4px currentColor, -6px -6px 0 -4px currentColor, 6px -6px 0 -4px currentColor, -6px 6px 0 -4px currentColor;
}

body.home .header-icon-search::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

body.home .header-icon-search::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 8px;
  height: 1.8px;
  background: currentColor;
  border-radius: 999px;
  transform: rotate(45deg);
  transform-origin: left center;
}

body.home main {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0;
}

body.home .search-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 0;
  text-align: center;
}

body.home .search-hero h1 {
  margin: 0 0 24px;
  color: var(--home-primary);
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
}

body.home .search-panel {
  width: min(672px, 100%);
}

body.home .search-hero .search-row {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 64px;
  background: var(--home-surface-card);
  border: 0;
  border-radius: 12px;
  box-shadow: var(--home-soft-shadow);
}

body.home .search-hero .search-row::before {
  left: 24px;
  width: 18px;
  height: 18px;
  border: 2px solid #75777d;
}

body.home .search-hero .search-row::after {
  left: 39px;
  width: 9px;
  height: 2px;
  background: #75777d;
}

body.home .search-hero input {
  min-height: 64px;
  padding: 0 24px 0 56px;
  color: #191c1e;
  background: transparent;
  font-size: 18px;
  line-height: 1.6;
}

body.home .search-hero input::placeholder {
  color: #75777d;
}

body.home .search-hero .icon-button,
body.home .search-hero .category-tabs {
  display: none;
}

body.home .directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
  margin: 24px 0 64px;
}

body.home .top-directory .section-heading,
body.home .latest-sidebar .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 24px;
}

body.home .top-directory .section-heading::after {
  content: "View all";
  color: var(--home-primary);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

body.home .top-directory h2,
body.home .latest-sidebar h2 {
  margin: 0;
  color: var(--home-primary);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
}

body.home .latest-sidebar h2 {
  font-size: 24px;
  line-height: 1.3;
}

body.home .top-directory .quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.home .top-directory .quick-card {
  display: flex;
  min-height: 126px;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  color: inherit;
  background: var(--home-surface-card);
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 12px;
  box-shadow: var(--home-soft-shadow);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.home .top-directory .quick-card:nth-child(n + 7) {
  display: none;
}

body.home .top-directory .quick-card:hover {
  border-left-color: var(--home-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: none;
}

body.home .top-directory .tool-icon {
  position: relative;
  display: grid;
  width: 56px;
  min-width: 56px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #3b82f6, #4f46e5);
  border: 0;
  border-radius: 20%;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.home .top-directory .tool-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  backdrop-filter: blur(4px);
}

body.home .top-directory .quick-card:nth-child(2) .tool-icon {
  background: linear-gradient(135deg, #fb923c, #dc2626);
}

body.home .top-directory .quick-card:nth-child(3) .tool-icon {
  background: linear-gradient(135deg, #34d399, #0d9488);
}

body.home .top-directory .quick-card:nth-child(4) .tool-icon {
  background: linear-gradient(135deg, #a855f7, #c026d3);
}

body.home .top-directory .quick-card:nth-child(5) .tool-icon {
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

body.home .top-directory .quick-card:nth-child(6) .tool-icon {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}

body.home .top-directory .tool-icon svg {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
}

body.home .top-directory .tool-icon .functional-icon {
  --icon-ink: #ffffff;
  --icon-fill: transparent;
  --icon-fill-2: transparent;
  --icon-fill-3: transparent;
  --icon-accent: #ffffff;
}

body.home .top-directory .tool-icon .icon-fill,
body.home .top-directory .tool-icon .icon-fill-2,
body.home .top-directory .tool-icon .icon-fill-3 {
  fill: none;
}

body.home .top-directory .quick-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

body.home .top-directory .quick-card small {
  order: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  color: #75777d;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.home .top-directory .quick-card small::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #3b82f6;
  border-radius: 50%;
}

body.home .top-directory .quick-card:nth-child(2) small::before { background: #f97316; }
body.home .top-directory .quick-card:nth-child(3) small::before { background: #10b981; }
body.home .top-directory .quick-card:nth-child(4) small::before { background: #a855f7; }
body.home .top-directory .quick-card:nth-child(5) small::before { background: #f59e0b; }
body.home .top-directory .quick-card:nth-child(6) small::before { background: #0ea5e9; }

body.home .top-directory .quick-card strong {
  order: 1;
  color: var(--home-primary);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
}

body.home .top-directory .quick-card em {
  order: 2;
  margin-top: 4px;
  color: var(--home-muted);
  font-size: 16px;
  font-style: normal;
  line-height: 1.5;
}

body.home .latest-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

body.home .latest-sidebar .latest-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

body.home .latest-item {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--home-muted);
  background: var(--home-surface-low);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none;
}

body.home .latest-item:hover {
  color: var(--home-primary);
  background: #eceef0;
  box-shadow: none;
  transform: none;
}

body.home .latest-item .mini-icon {
  width: 24px;
  min-width: 24px;
  height: 24px;
  color: #75777d;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.home .latest-item .mini-icon svg {
  width: 22px;
  height: 22px;
}

body.home .latest-item .functional-icon {
  --icon-ink: currentColor;
  --icon-fill: transparent;
  --icon-fill-2: transparent;
  --icon-fill-3: transparent;
  --icon-accent: currentColor;
}

body.home .latest-item .icon-fill,
body.home .latest-item .icon-fill-2,
body.home .latest-item .icon-fill-3 {
  fill: none;
}

body.home .bundle-card {
  position: relative;
  display: flex;
  min-height: 390px;
  aspect-ratio: 4 / 5;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  color: #ffffff;
  background: var(--home-primary);
  border-radius: 12px;
  box-shadow: var(--home-soft-shadow);
  text-decoration: none;
}

body.home .bundle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(9, 20, 38, 0.08), rgba(9, 20, 38, 0.72));
}

body.home .bundle-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: transform 0.7s ease;
}

body.home .bundle-card:hover img {
  transform: scale(1.1);
}

body.home .bundle-card span,
body.home .bundle-card strong,
body.home .bundle-card small,
body.home .bundle-card em {
  position: relative;
  z-index: 2;
}

body.home .bundle-card span {
  width: fit-content;
  margin-bottom: 12px;
  padding: 4px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

body.home .bundle-card strong {
  max-width: 260px;
  color: #ffffff;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
}

body.home .bundle-card small {
  max-width: 260px;
  margin: 8px 0 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.5;
}

body.home .bundle-card em {
  display: grid;
  min-height: 48px;
  place-items: center;
  color: var(--home-primary);
  background: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
}

body.home .accuracy-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
  margin: 64px 0 0;
  padding: 40px 0;
  background: transparent;
  border: 1px solid rgba(197, 198, 205, 0.3);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

body.home .accuracy-copy h2 {
  margin: 0 0 12px;
  color: var(--home-primary);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
}

body.home .accuracy-copy p {
  max-width: 576px;
  margin: 0 0 24px;
  color: var(--home-muted);
  font-size: 18px;
  line-height: 1.6;
}

body.home .accuracy-stats {
  display: flex;
  gap: 40px;
  margin: 0;
}

body.home .accuracy-stats span {
  display: grid;
  gap: 4px;
}

body.home .accuracy-stats strong {
  color: var(--home-primary);
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
}

body.home .accuracy-stats small {
  color: #75777d;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.home .accuracy-visual {
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: transparent;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

body.home .accuracy-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home .directory-band,
body.home .workspace,
body.home .content-grid {
  display: none;
}

body.home .figma-home-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(160px, 0.45fr));
  width: 100%;
  gap: 24px;
  margin: 64px 0 0;
  padding: 40px max(32px, calc((100vw - 1200px) / 2));
  color: #191c1e;
  background: var(--home-surface-low);
  border: 0;
}

body.home .figma-home-footer strong {
  display: block;
  margin-bottom: 12px;
  color: var(--home-primary);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
}

body.home .figma-home-footer p {
  max-width: 384px;
  margin: 0 0 24px;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.4;
}

body.home .figma-home-footer span {
  display: block;
  margin-bottom: 12px;
  color: #75777d;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.home .figma-home-footer a {
  display: block;
  margin-bottom: 12px;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

body.home .footer-socials {
  display: flex;
  gap: 16px;
}

body.home .footer-socials span {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0;
  background: #eceef0;
  border-radius: 999px;
}

body.home .footer-socials span::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 2px solid var(--home-primary);
  border-radius: inherit;
}

body.home .footer-socials span:last-child {
  border-radius: 999px;
}

body.home .footer-socials span:last-child::before {
  border-radius: 3px;
}

@media (max-width: 900px) {
  body.home .figma-home-header {
    grid-template-columns: 1fr auto;
    gap: 12px 18px;
    min-height: auto;
    padding: 12px 18px;
  }

  body.home .figma-home-nav,
  body.home .figma-home-header .nav {
    grid-column: 1 / -1;
    order: 3;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 14px;
  }

  body.home main {
    width: min(100% - 32px, 620px);
  }

  body.home .search-hero {
    padding: 44px 0;
  }

  body.home .search-hero h1 {
    font-size: 40px;
  }

  body.home .directory-layout,
  body.home .accuracy-section,
  body.home .figma-home-footer {
    grid-template-columns: 1fr;
  }

  body.home .top-directory .quick-grid {
    grid-template-columns: 1fr;
  }

  body.home .latest-sidebar {
    gap: 24px;
  }

  body.home .bundle-card {
    min-height: 320px;
  }

  body.home .accuracy-section {
    gap: 24px;
  }

  body.home .accuracy-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  body.home .figma-home-footer {
    padding: 40px 24px;
  }
}

/* Sumdock brand and generated category-card icon system. */
.site-header.figma-home-header .brand,
body.home .figma-home-header .brand,
body.detail .site-header.figma-home-header .brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-header.figma-home-header .brand-mark,
body.home .figma-home-header .brand-mark,
body.detail .site-header.figma-home-header .brand-mark,
.brand-mark {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)),
    conic-gradient(from 220deg, #2563eb, #14b8a6, #f59e0b, #f97316, #8b5cf6, #2563eb);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 20px rgba(37, 99, 235, 0.18);
}

.site-header.figma-home-header .brand-mark::before,
body.home .figma-home-header .brand-mark::before,
body.detail .site-header.figma-home-header .brand-mark::before,
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.92) 48% 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(255, 255, 255, 0.92) 48% 52%, transparent 53%);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  transform: perspective(60px) rotateX(12deg) rotateZ(-8deg);
}

.site-header.figma-home-header .brand-mark::after,
body.home .figma-home-header .brand-mark::after,
body.detail .site-header.figma-home-header .brand-mark::after,
.brand-mark::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 3px;
  box-shadow: -11px 0 0 rgba(255, 255, 255, 0.72), 0 -11px 0 rgba(255, 255, 255, 0.72);
}

body.detail .category-page .quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.detail .category-page .quick-card {
  display: flex;
  min-height: 118px;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 14px;
  background: #ffffff;
  border: 1px solid #d8dee7;
  border-radius: 8px;
}

body.detail .category-page .quick-card:hover {
  border-color: rgba(9, 20, 38, 0.18);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.generated-tool-icon {
  position: relative;
  display: grid;
  width: 46px;
  min-width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--icon-bg), color-mix(in srgb, var(--icon-bg) 62%, #111827));
  border-radius: 20%;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3), 0 8px 16px color-mix(in srgb, var(--icon-bg) 28%, transparent);
}

.generated-tool-icon svg {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.generated-tool-icon svg circle,
.generated-tool-icon svg rect,
.generated-tool-icon svg ellipse,
.generated-tool-icon svg path {
  vector-effect: non-scaling-stroke;
}

body.detail .category-page .quick-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

body.detail .category-page .quick-card strong {
  display: block;
  margin: 0;
  color: #1d2430;
  font-size: 15px;
  line-height: 1.25;
}

body.detail .category-page .quick-card small {
  display: block;
  margin: 0;
  color: #414b5a;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  body.detail .category-page .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body.detail .category-page .quick-grid {
    grid-template-columns: 1fr;
  }
}

/* Final global top navigation override. */
body.home,
body.detail {
  padding-left: 0;
}

.site-header.figma-home-header,
body.home .site-header.figma-home-header,
body.detail .site-header.figma-home-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(360px, 1fr) minmax(160px, 240px);
  align-items: center;
  min-height: 64px;
  padding: 0 max(32px, calc((100vw - 1160px) / 2));
  gap: 18px;
  background: rgba(248, 250, 252, 0.96);
  border-top: 2px solid #2388ff;
  border-right: 0;
  border-bottom: 1px solid #dfe4ea;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.site-header.figma-home-header .brand,
body.home .site-header.figma-home-header .brand,
body.detail .site-header.figma-home-header .brand {
  gap: 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-header.figma-home-header .brand-mark,
body.home .site-header.figma-home-header .brand-mark,
body.detail .site-header.figma-home-header .brand-mark {
  display: none;
}

.site-header.figma-home-header .figma-home-nav,
body.home .site-header.figma-home-header .figma-home-nav,
body.detail .site-header.figma-home-header .figma-home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 44px);
  color: #475467;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.site-header.figma-home-header .figma-home-nav a,
body.home .site-header.figma-home-header .figma-home-nav a,
body.detail .site-header.figma-home-header .figma-home-nav a {
  position: relative;
  color: #475467;
  white-space: nowrap;
}

.site-header.figma-home-header .figma-home-nav a::after,
body.home .site-header.figma-home-header .figma-home-nav a::after,
body.detail .site-header.figma-home-header .figma-home-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -22px;
  left: 0;
  height: 3px;
  background: transparent;
  border-radius: 999px;
}

.site-header.figma-home-header .figma-home-nav a.is-active,
body.home .site-header.figma-home-header .figma-home-nav a.is-active,
body.detail .site-header.figma-home-header .figma-home-nav a.is-active {
  color: #0f172a;
  font-weight: 700;
}

.site-header.figma-home-header .figma-home-nav a.is-active::after,
body.home .site-header.figma-home-header .figma-home-nav a.is-active::after,
body.detail .site-header.figma-home-header .figma-home-nav a.is-active::after {
  background: #0f172a;
}

.global-search,
body.home .global-search,
body.detail .global-search {
  position: relative;
  justify-self: end;
  display: grid;
  grid-template-columns: 1fr 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: width 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.global-search:focus-within {
  width: min(320px, 34vw);
  background: #fff;
  border-color: #dfe4ea;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.global-search input {
  min-width: 0;
  width: 100%;
  height: 42px;
  padding: 0 4px 0 16px;
  color: #0f172a;
  background: transparent;
  border: 0;
  outline: 0;
  opacity: 0;
  font-size: 14px;
  line-height: 20px;
  font-family: inherit;
}

.global-search:focus-within input {
  opacity: 1;
}

.global-search input::placeholder {
  color: #667085;
}

.global-search .header-icon-search {
  position: relative;
  width: 44px;
  height: 42px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.global-search .header-icon-search::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid #0f172a;
  border-radius: 50%;
}

.global-search .header-icon-search::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 26px;
  width: 8px;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
  transform: rotate(45deg);
  transform-origin: left center;
}

@media (max-width: 820px) {
  .site-header.figma-home-header,
  body.home .site-header.figma-home-header,
  body.detail .site-header.figma-home-header {
    grid-template-columns: 1fr auto;
    min-height: 72px;
    padding: 10px 18px;
  }

  .site-header.figma-home-header .figma-home-nav,
  body.home .site-header.figma-home-header .figma-home-nav,
  body.detail .site-header.figma-home-header .figma-home-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 13px;
  }

  .site-header.figma-home-header .figma-home-nav a::after,
  body.home .site-header.figma-home-header .figma-home-nav a::after,
  body.detail .site-header.figma-home-header .figma-home-nav a::after {
    bottom: -7px;
  }

  .global-search:focus-within {
    width: min(250px, 62vw);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f4f4f4;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

main {
  width: min(1170px, calc(100% - 32px));
  margin: 0 auto;
}

.search-hero {
  padding: 46px 0 34px;
}

.search-hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.search-hero .search-panel {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.search-hero .search-row {
  position: relative;
  grid-template-columns: 1fr 46px;
  min-height: 58px;
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.search-hero input {
  min-height: 58px;
  padding-left: 56px;
  background:
    linear-gradient(transparent, transparent),
    #fff;
  border: 0;
  border-radius: 6px 0 0 6px;
  font-size: 20px;
}

.search-hero .search-row::before {
  content: "鈱?;
  position: absolute;
  margin: 15px 0 0 18px;
  color: #444;
  font-size: 26px;
  line-height: 1;
  z-index: 1;
}

.search-hero .icon-button {
  min-height: 58px;
  background: transparent;
  border-radius: 0 6px 6px 0;
  font-size: 0;
}

.search-hero .icon-button::before {
  content: "x";
  font-size: 18px;
}

.search-hero .category-tabs {
  margin-top: 18px;
  justify-content: center;
}

.search-hero .tab {
  min-height: 38px;
  padding: 8px 15px;
  color: #111;
  background: #fff;
  border: 1px solid #dddddd;
}

.search-hero .tab.is-active,
.search-hero .tab:hover {
  color: #fff;
  background: #5d68a7;
  border-color: #5d68a7;
}

.directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
  margin-bottom: 34px;
}

.top-directory,
.latest-sidebar,
.about-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.top-directory h2,
.latest-sidebar h2 {
  margin: 0 0 24px;
  font-size: 22px;
}

.top-directory .quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.top-directory .quick-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  background: #fff;
  border: 1px solid #dddddd;
  border-radius: 4px;
  box-shadow: none;
}

.top-directory .quick-card:hover,
.latest-item:hover {
  border-color: #bbc2e8;
  box-shadow: 0 2px 8px rgba(93, 104, 167, 0.14);
}

.quick-copy {
  display: grid;
  gap: 2px;
}

.top-directory .quick-card strong {
  font-size: 17px;
  font-weight: 500;
}

.top-directory .quick-card small {
  color: #2d3445;
  font-size: 14px;
}

.latest-sidebar .latest-list {
  display: grid;
  gap: 5px;
  max-height: none;
  overflow: visible;
}

.latest-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 17px;
}

.mini-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: #5d68a7;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}

.about-panel {
  max-width: 840px;
  margin-bottom: 32px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
}

.about-title {
  padding: 14px 18px;
  color: #fff;
  background: #6670ad;
}

.about-title h2 {
  margin: 0;
  font-size: 27px;
}

.about-title span {
  font-size: 14px;
}

.about-panel p {
  margin: 0;
  padding: 24px 18px;
  color: #222;
  font-size: 19px;
  line-height: 1.65;
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr) 220px;
  gap: 22px;
  align-items: stretch;
  padding: 34px 0 22px;
}

.tool-intro,
.search-panel,
.ad-slot,
.calculator-area,
.tool-list,
.directory-band,
.content-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tool-intro {
  padding: 26px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.tool-intro p:last-child,
.content-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.search-panel {
  padding: 22px;
}

.search-panel label,
.field label {
  display: block;
  margin-bottom: 8px;
  color: #324052;
  font-size: 13px;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid #cfd7e2;
  border-radius: 6px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(49, 95, 189, 0.15);
}

.icon-button,
.secondary-button,
.primary-button,
.tab {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.icon-button {
  color: var(--muted);
  background: #edf1f6;
  font-size: 22px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tab {
  padding: 8px 12px;
  color: #385066;
  background: #eef3f8;
}

.tab.is-active {
  color: #fff;
  background: var(--green);
}

.ad-slot {
  display: grid;
  place-content: center;
  min-height: 180px;
  padding: 18px;
  color: #526171;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    #fffdf7;
  background-size: 18px 18px;
}

.ad-slot span {
  font-size: 12px;
  text-transform: uppercase;
}

.directory-band {
  margin-bottom: 22px;
  padding: 20px;
}

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

.quick-card,
.category-block {
  min-width: 0;
  padding: 14px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-card {
  display: grid;
  gap: 8px;
}

.quick-card span,
.category-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-card strong,
.category-block h3 {
  font-size: 15px;
}

.quick-card:hover,
.category-block:hover {
  border-color: var(--green);
}

.category-block h3 {
  margin-bottom: 10px;
}

.category-block p {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-links a,
.mini-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  color: #234050;
  background: #eef3f8;
  border: 1px solid #d7e0eb;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.inline-links a:hover,
.mini-link:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

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

.tool-list,
.calculator-area {
  padding: 20px;
}

.cards {
  display: grid;
  gap: 10px;
}

.tool-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.tool-card:hover,
.tool-card.is-active {
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(22, 124, 98, 0.16);
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.tool-icon svg,
.mini-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.tool-card:nth-child(3n) .tool-icon {
  background: var(--gold);
}

.tool-card:nth-child(4n) .tool-icon {
  background: var(--red);
}

.tool-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 700;
}

.calculator-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.tool-subtitle {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
}

.action-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.secondary-button,
.primary-button,
.primary-link {
  padding: 9px 13px;
  font-weight: 700;
}

.secondary-button {
  color: var(--blue);
  background: #eef4ff;
  border-color: #c8d8ff;
}

.primary-button {
  color: #fff;
  background: var(--green);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #fff;
  background: var(--green);
  border-radius: 6px;
}

.tool-app-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tool-app-note span {
  padding: 4px 8px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tool-app-note small {
  color: var(--muted);
}

.calculator-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0;
}

.field.full {
  grid-column: 1 / -1;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
}

.preset-row:empty {
  display: none;
}

.preset-row button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--blue);
  background: #eef4ff;
  border: 1px solid #c8d8ff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.result-panel {
  padding: 18px;
  color: #123127;
  background: #eefaf5;
  border: 1px solid #bce7d8;
  border-radius: 8px;
}

output {
  display: block;
  white-space: pre-wrap;
  font-size: 18px;
  font-weight: 800;
}

.guide-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) 1fr;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.guide-panel ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.latest-list {
  max-height: 190px;
  overflow: auto;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 0 40px;
}

.content-grid article {
  padding: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 54px);
  color: var(--muted);
  background: #17202a;
}

@media (max-width: 980px) {
  .tool-shell,
  .workspace,
  .guide-panel,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .ad-slot {
    min-height: 110px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .calculator-header {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  main {
    width: min(100% - 20px, 1180px);
  }

  .tool-intro,
  .search-panel,
  .tool-list,
  .calculator-area,
  .content-grid article {
    padding: 16px;
  }

  .calculator-panel {
    grid-template-columns: 1fr;
  }

  .quick-grid,
  .category-directory,
  .tool-app-note {
    grid-template-columns: 1fr;
  }
}

/* Homepage override: match the directory-first Sumdock layout more closely. */
.search-hero .search-row::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 18px;
  width: 15px;
  height: 15px;
  border: 2px solid #555;
  border-radius: 50%;
}

.search-hero .search-row::after {
  content: "";
  position: absolute;
  top: 31px;
  left: 32px;
  width: 8px;
  height: 2px;
  background: #555;
  transform: rotate(45deg);
  transform-origin: left center;
}

body.home .search-hero .category-tabs,
body.home .workspace,
body.home #categories,
body.home .content-grid,
body.home .site-footer {
  display: none;
}

.site-header {
  position: static;
  justify-content: flex-start;
  gap: 42px;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid #d8d8d8;
  backdrop-filter: none;
}

.brand {
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: #5d68a7;
  font-size: 14px;
}

.nav {
  gap: 28px;
  color: #222;
  font-size: 14px;
}

.nav a {
  color: #222;
}

main {
  width: min(1140px, calc(100% - 36px));
}

.search-hero {
  padding: 46px 0 22px;
}

.directory-layout {
  margin-bottom: 26px;
}

.top-directory h2,
.latest-sidebar h2 {
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 700;
}

.top-directory .quick-card strong {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

.top-directory .quick-card small,
.latest-item {
  font-size: 13px;
}

.top-directory .quick-card small {
  font-weight: 700;
  text-transform: uppercase;
}

.about-panel {
  max-width: 820px;
}

.about-panel p {
  font-size: 16px;
}

body.detail {
  color: #202430;
  background: #f4f4f4;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.detail .site-header {
  position: static;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid #d8d8d8;
  backdrop-filter: none;
}

body.detail .brand-mark {
  background: #5d68a7;
}

body.detail main {
  width: min(1140px, calc(100% - 36px));
  padding-top: 18px;
}

.detail-hero {
  grid-template-columns: minmax(240px, 0.8fr) minmax(420px, 1.2fr) 220px;
}

.tool-page-app {
  min-width: 0;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 0 0 38px;
}

.content-card {
  padding: 22px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
}

.content-card p:last-child,
.content-card ul:last-child {
  margin-bottom: 0;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
}

.info-table th,
.info-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
}

.info-table th {
  background: #eef0f7;
}

.info-table tr:last-child td {
  border-bottom: 0;
}

.qr-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: center;
}

.qr-card h2 {
  grid-column: 1 / -1;
}

.qr-box {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, #202430 10px, transparent 10px) 0 0 / 24px 24px,
    linear-gradient(#202430 10px, transparent 10px) 0 0 / 24px 24px,
    #fff;
  border: 10px solid #fff;
  box-shadow: inset 0 0 0 1px #202430, 0 0 0 1px #d9d9d9;
  font-weight: 800;
}

.references-list {
  padding-left: 20px;
}

@media (max-width: 980px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .qr-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .directory-layout {
    grid-template-columns: 1fr;
  }

  .latest-sidebar {
    max-width: 100%;
  }
}

/* Visual refinement pass for the directory homepage. */
body {
  color: #202430;
  background:
    radial-gradient(circle at top center, rgba(110, 124, 195, 0.08), transparent 28%),
    linear-gradient(180deg, #f8f9fc 0%, #f2f4f8 100%);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.site-header {
  gap: 56px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(134, 146, 181, 0.22);
  box-shadow: 0 8px 24px rgba(37, 47, 78, 0.06);
}

.brand {
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, #6d79bf, #4a5fab);
  box-shadow: 0 10px 18px rgba(74, 95, 171, 0.24);
}

.nav {
  gap: 30px;
  font-size: 15px;
}

.nav a {
  position: relative;
  color: #30384d;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: #6874b6;
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 140ms ease, transform 140ms ease;
}

.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

main {
  width: min(1220px, calc(100% - 48px));
}

.search-hero {
  padding: 42px 0 28px;
}

.search-hero .search-row {
  min-height: 64px;
  border: 1px solid rgba(127, 140, 177, 0.22);
  border-radius: 14px;
  box-shadow:
    0 16px 30px rgba(34, 45, 81, 0.06),
    0 2px 4px rgba(34, 45, 81, 0.04);
}

.search-hero input {
  min-height: 64px;
  padding-left: 60px;
  color: #202430;
  font-size: 18px;
}

.search-hero input::placeholder {
  color: #7a8298;
}

.search-hero .icon-button::before {
  color: #7a8298;
  font-size: 20px;
}

.search-hero .search-row::before {
  border-color: #7a8298;
}

.search-hero .search-row::after {
  background: #7a8298;
}

.directory-layout {
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 36px;
  margin-bottom: 34px;
}

.top-directory h2,
.latest-sidebar h2 {
  margin-bottom: 20px;
  color: #202430;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.top-directory .quick-grid {
  gap: 16px;
}

.top-directory .quick-card {
  min-height: 96px;
  gap: 16px;
  padding: 18px 18px 18px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(129, 141, 176, 0.22);
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(36, 45, 78, 0.04);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease;
}

.top-directory .quick-card:hover,
.latest-item:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 111, 181, 0.34);
  box-shadow: 0 16px 30px rgba(58, 74, 132, 0.1);
}

.tool-icon,
.mini-icon {
  color: #13212b;
  background: #f8faf9;
  border: 1px solid rgba(24, 38, 48, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.top-directory .tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quick-copy {
  gap: 4px;
}

.top-directory .quick-card strong {
  color: #283149;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  text-transform: none;
}

.top-directory .quick-card small {
  color: #5d6782;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.latest-sidebar .latest-list {
  gap: 8px;
}

.latest-item {
  min-height: 48px;
  gap: 10px;
  padding: 7px 12px 7px 10px;
  color: #283149;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(129, 141, 176, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(36, 45, 78, 0.03);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.about-panel {
  overflow: hidden;
  max-width: 820px;
  border: 1px solid rgba(129, 141, 176, 0.18);
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(36, 45, 78, 0.06);
}

.about-title {
  padding: 18px 20px 16px;
  background: linear-gradient(135deg, #707bbc, #5f6cae);
}

.about-title h2 {
  margin-bottom: 4px;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.about-title span {
  opacity: 0.88;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-panel p {
  padding: 20px;
  color: #3e465a;
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .site-header {
    gap: 22px;
    padding: 14px 18px;
  }

  .nav {
    gap: 18px;
    font-size: 14px;
  }

  main {
    width: min(100% - 24px, 1220px);
  }
}

/* Minimal demand-led homepage theme. */
body.home {
  color: #171a22;
  background:
    linear-gradient(180deg, #fbfbfa 0%, #f4f5f2 100%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body.home .site-header {
  gap: 44px;
  padding: 18px max(28px, calc((100vw - 1220px) / 2));
  background: rgba(251, 251, 250, 0.92);
  border-bottom: 1px solid #e2e0d8;
  box-shadow: none;
}

body.home .brand {
  gap: 11px;
  color: #171a22;
  font-size: 18px;
  font-weight: 760;
}

body.home .brand-mark,
body.detail .brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  color: transparent;
  background: transparent;
  border: 1.5px solid #191b20;
  border-radius: 50%;
  box-shadow: none;
}

body.home .brand-mark::before,
body.detail .brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px solid #191b20;
  border-radius: 4px;
  transform: rotate(45deg);
}

body.home .brand-mark::after,
body.detail .brand-mark::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: 3px;
  width: 12px;
  height: 1.5px;
  background: #191b20;
  transform: rotate(45deg);
  transform-origin: left center;
}

body.home .nav {
  gap: 26px;
  font-size: 14px;
}

body.home .nav a {
  color: #4f5562;
}

body.home .nav a::after {
  bottom: -8px;
  height: 1px;
  background: #191b20;
}

body.home main {
  width: min(1220px, calc(100% - 48px));
}

body.home .search-hero {
  padding: 34px 0 24px;
}

body.home .search-hero .search-row {
  min-height: 62px;
  background: #fff;
  border: 1px solid #dedbd2;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(23, 26, 34, 0.06);
}

body.home .search-hero input {
  min-height: 62px;
  padding-left: 58px;
  color: #171a22;
  background: transparent;
  font-size: 17px;
}

body.home .search-hero input::placeholder {
  color: #707681;
}

body.home .search-hero .search-row::before {
  top: 21px;
  left: 21px;
  width: 13px;
  height: 13px;
  border-color: #171a22;
}

body.home .search-hero .search-row::after {
  top: 35px;
  left: 34px;
  width: 9px;
  height: 1.5px;
  background: #171a22;
}

body.home .search-hero .icon-button {
  color: #707681;
  background: transparent;
}

body.home .search-hero .icon-button::before {
  color: #707681;
  font-size: 18px;
}

body.home .directory-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
}

body.home .top-directory h2,
body.home .latest-sidebar h2 {
  margin-bottom: 18px;
  color: #171a22;
  font-size: 17px;
  font-weight: 760;
}

body.home .top-directory .quick-grid {
  gap: 12px;
}

body.home .top-directory .quick-card,
body.home .latest-item {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dedbd2;
  border-radius: 8px;
  box-shadow: none;
}

body.home .top-directory .quick-card {
  min-height: 86px;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  padding: 16px;
}

body.home .top-directory .quick-card:hover,
body.home .latest-item:hover {
  transform: translateY(-1px);
  border-color: #171a22;
  box-shadow: 0 12px 22px rgba(23, 26, 34, 0.06);
}

body.home .tool-icon,
body.home .mini-icon {
  position: relative;
  display: grid;
  place-items: center;
  color: #13212b;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 244, 243, 0.9));
  border: 1px solid rgba(24, 38, 48, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(27, 43, 52, 0.06);
}

body.home .top-directory .tool-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
}

body.home .mini-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

body.home .tool-icon svg,
body.home .mini-icon svg,
.tool-card .tool-icon svg,
.latest-item .mini-icon svg {
  width: 28px;
  height: 28px;
  overflow: visible;
  fill: none;
  stroke: none;
}

.functional-icon {
  --icon-ink: #142033;
  --icon-fill: #dff4ff;
  --icon-fill-2: #e9edff;
  --icon-fill-3: #ffe7b7;
  --icon-accent: #00a7e8;
  --icon-white: #ffffff;
}

.functional-icon .icon-ink,
.functional-icon .icon-fill,
.functional-icon .icon-fill-2,
.functional-icon .icon-fill-3,
.functional-icon .icon-accent-fill,
.functional-icon .icon-white {
  stroke: var(--icon-ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.functional-icon .icon-fill {
  fill: var(--icon-fill);
}

.functional-icon .icon-fill-2 {
  fill: var(--icon-fill-2);
}

.functional-icon .icon-fill-3 {
  fill: var(--icon-fill-3);
}

.functional-icon .icon-accent,
.functional-icon .icon-ink {
  fill: none;
}

.functional-icon .icon-accent {
  stroke: var(--icon-accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.functional-icon .icon-accent-fill {
  fill: var(--icon-accent);
}

.functional-icon .icon-white {
  fill: none;
  stroke: var(--icon-white);
  stroke-width: 2.2;
}

body.home .mini-icon svg {
  width: 23px;
  height: 23px;
}

body.home [data-icon],
.tool-card [data-icon],
.latest-item [data-icon] {
  color: #142033;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94) 45%, rgba(235, 241, 245, 0.9));
  border: 1px solid rgba(20, 32, 51, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 22px rgba(20, 32, 51, 0.08);
}

[data-icon*="finance"] .functional-icon,
[data-icon="home-finance"] .functional-icon,
[data-icon="card-finance"] .functional-icon,
[data-icon="growth"] .functional-icon,
[data-icon="receipt"] .functional-icon,
[data-icon="cart"] .functional-icon {
  --icon-fill: #e8f4ff;
  --icon-fill-2: #fff0c8;
  --icon-fill-3: #c8f2df;
  --icon-accent: #16a3ff;
}

[data-icon="heart"] .functional-icon,
[data-icon="scale"] .functional-icon,
[data-icon="flame"] .functional-icon,
[data-icon="body"] .functional-icon,
[data-icon="tape"] .functional-icon,
[data-icon="water"] .functional-icon,
[data-icon="weight-down"] .functional-icon,
[data-icon="weight-up"] .functional-icon {
  --icon-fill: #e6fff4;
  --icon-fill-2: #dff0ff;
  --icon-fill-3: #ffe1ea;
  --icon-accent: #10b981;
}

[data-icon="percent"] .functional-icon,
[data-icon="tag"] .functional-icon,
[data-icon="fraction"] .functional-icon,
[data-icon="chart"] .functional-icon {
  --icon-fill: #fff0c8;
  --icon-fill-2: #e6f3ff;
  --icon-fill-3: #e8ddff;
  --icon-accent: #f59e0b;
}

[data-icon*="calendar"] .functional-icon,
[data-icon="clock"] .functional-icon {
  --icon-fill: #eef2ff;
  --icon-fill-2: #cffafe;
  --icon-fill-3: #fff0c8;
  --icon-accent: #6366f1;
}

[data-icon="temperature"] .functional-icon,
[data-icon="ruler"] .functional-icon,
[data-icon="gauge"] .functional-icon,
[data-icon="area"] .functional-icon,
[data-icon="volume"] .functional-icon,
[data-icon="database"] .functional-icon,
[data-icon="transfer"] .functional-icon {
  --icon-fill: #e1f7ff;
  --icon-fill-2: #d8f7e9;
  --icon-fill-3: #fff0c8;
  --icon-accent: #06b6d4;
}

[data-icon="bolt"] .functional-icon,
[data-icon="current"] .functional-icon,
[data-icon="resistor"] .functional-icon,
[data-icon="capacitor"] .functional-icon,
[data-icon="circuit"] .functional-icon,
[data-icon="battery"] .functional-icon,
[data-icon="plug"] .functional-icon {
  --icon-fill: #fff4c7;
  --icon-fill-2: #dff7ff;
  --icon-fill-3: #ffe0e0;
  --icon-accent: #00a7e8;
}

[data-icon="aspect"] .functional-icon,
[data-icon="pixels"] .functional-icon,
[data-icon="screen"] .functional-icon,
[data-icon="tv-distance"] .functional-icon,
[data-icon="tv-mount"] .functional-icon {
  --icon-fill: #e7f0ff;
  --icon-fill-2: #d9fff0;
  --icon-fill-3: #f0e7ff;
  --icon-accent: #3b82f6;
}

[data-icon="hash"] .functional-icon,
[data-icon="vault"] .functional-icon,
[data-icon="code"] .functional-icon,
[data-icon="link"] .functional-icon,
[data-icon="json"] .functional-icon,
[data-icon="text"] .functional-icon,
[data-icon="book"] .functional-icon,
[data-icon="ai"] .functional-icon {
  --icon-fill: #e9edff;
  --icon-fill-2: #dcfce7;
  --icon-fill-3: #ffe5f1;
  --icon-accent: #8b5cf6;
}

body.home .top-directory .quick-card strong {
  color: #171a22;
  font-size: 15px;
  font-weight: 700;
}

body.home .top-directory .quick-card small {
  color: #676d78;
  font-size: 11px;
  letter-spacing: 0.06em;
}

body.home .latest-sidebar .latest-list {
  gap: 8px;
}

body.home .latest-item {
  min-height: 46px;
  padding: 8px 12px 8px 10px;
  color: #252a35;
  font-size: 13px;
}

body.home .about-panel {
  overflow: hidden;
  max-width: 820px;
  background: #fff;
  border: 1px solid #dedbd2;
  border-radius: 10px;
  box-shadow: 0 18px 34px rgba(23, 26, 34, 0.05);
}

body.home .about-title {
  color: #171a22;
  background: #f2efe7;
}

body.home .about-title h2 {
  font-size: 18px;
}

body.home .about-title span {
  color: #676d78;
}

body.home .about-panel p {
  color: #3f4550;
}

/* Final search alignment fix. */
.search-hero .search-row::before,
body.home .search-hero .search-row::before {
  top: 50%;
  left: 24px;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 2px solid #171a22;
  border-radius: 50%;
  transform: translateY(-50%);
}

.search-hero .search-row::after,
body.home .search-hero .search-row::after {
  top: 50%;
  left: 36px;
  width: 8px;
  height: 2px;
  margin: 0;
  background: #171a22;
  border-radius: 999px;
  transform: translateY(5px) rotate(45deg);
  transform-origin: left center;
}

.search-hero input,
body.home .search-hero input {
  padding-left: 64px;
}

/* App-store style side navigation. */
@media (min-width: 861px) {
  body.home,
  body.detail {
    padding-left: 286px;
  }

  .site-header.side-rail,
  body.home .site-header.side-rail,
  body.detail .site-header.side-rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 286px;
    padding: 44px 40px 28px;
    gap: 54px;
    background: rgba(248, 249, 251, 0.96);
    border-right: 1px solid #e4e7ec;
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: blur(18px);
  }

  .site-header.side-rail .brand,
  body.home .site-header.side-rail .brand,
  body.detail .site-header.side-rail .brand {
    gap: 14px;
    color: #202532;
    font-size: 17px;
    font-weight: 760;
  }

  .site-header.side-rail .brand-mark,
  body.home .site-header.side-rail .brand-mark,
  body.detail .site-header.side-rail .brand-mark {
    width: 34px;
    height: 34px;
    color: #fff;
    background: linear-gradient(180deg, #0a91ff, #006bd6);
    border: 0;
    border-radius: 9px;
    box-shadow: 0 10px 18px rgba(0, 107, 214, 0.26);
  }

  .site-header.side-rail .brand-mark::before,
  body.home .site-header.side-rail .brand-mark::before,
  body.detail .site-header.side-rail .brand-mark::before {
    inset: 8px;
    border: 2px solid #fff;
    border-radius: 3px;
    transform: none;
  }

  .site-header.side-rail .brand-mark::after,
  body.home .site-header.side-rail .brand-mark::after,
  body.detail .site-header.side-rail .brand-mark::after {
    right: 9px;
    bottom: 9px;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: -6px 0 0 #fff, 0 -6px 0 #fff, -6px -6px 0 #fff;
    transform: none;
  }

  .site-header.side-rail .side-tabs,
  body.home .site-header.side-rail .side-tabs,
  body.detail .site-header.side-rail .side-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #7a818e;
    font-size: 17px;
    font-weight: 650;
  }

  .site-header.side-rail .side-tabs a,
  body.home .site-header.side-rail .side-tabs a,
  body.detail .site-header.side-rail .side-tabs a {
    position: relative;
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    color: #7a818e;
    border-radius: 13px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }

  .site-header.side-rail .side-tabs a::after,
  body.home .site-header.side-rail .side-tabs a::after,
  body.detail .site-header.side-rail .side-tabs a::after {
    display: none;
  }

  .site-header.side-rail .side-tabs a:hover {
    color: #202532;
    background: rgba(238, 240, 243, 0.72);
  }

  .site-header.side-rail .side-tabs a.is-active,
  body.home .site-header.side-rail .side-tabs a.is-active,
  body.detail .site-header.side-rail .side-tabs a.is-active {
    color: #202532;
    background: #eef0f2;
  }

  .side-tab-icon {
    position: relative;
    width: 22px;
    height: 22px;
    color: currentColor;
  }

  .side-tab-icon::before,
  .side-tab-icon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
  }

  .side-tabs a.is-active .side-tab-icon,
  .side-tabs a:hover .side-tab-icon {
    color: #0073e6;
  }

  .side-tab-discover::before {
    left: 4px;
    top: 2px;
    width: 14px;
    height: 14px;
    background: currentColor;
    clip-path: polygon(50% 0, 62% 34%, 98% 36%, 69% 57%, 79% 92%, 50% 72%, 21% 92%, 31% 57%, 2% 36%, 38% 34%);
  }

  .side-tab-discover::after {
    left: 7px;
    top: 5px;
    width: 8px;
    height: 8px;
    background: #f8f9fb;
    clip-path: polygon(50% 0, 62% 34%, 98% 36%, 69% 57%, 79% 92%, 50% 72%, 21% 92%, 31% 57%, 2% 36%, 38% 34%);
  }

  .side-tab-categories::before {
    inset: 3px;
    background:
      linear-gradient(currentColor, currentColor) 0 0 / 7px 7px no-repeat,
      linear-gradient(currentColor, currentColor) 11px 0 / 7px 7px no-repeat,
      linear-gradient(currentColor, currentColor) 0 11px / 7px 7px no-repeat,
      linear-gradient(currentColor, currentColor) 11px 11px / 7px 7px no-repeat;
    border-radius: 2px;
  }

  .side-tab-categories::after {
    inset: 5px;
    background:
      linear-gradient(#f8f9fb, #f8f9fb) 0 0 / 3px 3px no-repeat,
      linear-gradient(#f8f9fb, #f8f9fb) 11px 0 / 3px 3px no-repeat,
      linear-gradient(#f8f9fb, #f8f9fb) 0 11px / 3px 3px no-repeat,
      linear-gradient(#f8f9fb, #f8f9fb) 11px 11px / 3px 3px no-repeat;
  }

  .side-tab-chart::before {
    left: 3px;
    top: 12px;
    width: 15px;
    height: 2.5px;
    background: currentColor;
    border-radius: 999px;
    transform: rotate(-42deg);
    transform-origin: left center;
  }

  .side-tab-chart::after {
    right: 3px;
    top: 4px;
    width: 7px;
    height: 7px;
    border-top: 2.5px solid currentColor;
    border-right: 2.5px solid currentColor;
  }

  .side-tab-updates::before {
    inset: 4px;
    border: 2.4px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
  }

  .side-tab-updates::after {
    right: 3px;
    top: 4px;
    width: 7px;
    height: 7px;
    border-top: 2.4px solid currentColor;
    border-right: 2.4px solid currentColor;
    transform: rotate(15deg);
  }

  body.home main,
  body.detail main {
    width: min(1120px, calc(100% - 56px));
  }
}

@media (max-width: 860px) {
  .site-header.side-rail,
  body.home .site-header.side-rail,
  body.detail .site-header.side-rail {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 16px;
  }

  .site-header.side-rail .side-tabs,
  body.home .site-header.side-rail .side-tabs,
  body.detail .site-header.side-rail .side-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-header.side-rail .side-tabs a,
  body.home .site-header.side-rail .side-tabs a,
  body.detail .site-header.side-rail .side-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
  }

  .site-header.side-rail .side-tabs a.is-active,
  body.home .site-header.side-rail .side-tabs a.is-active,
  body.detail .site-header.side-rail .side-tabs a.is-active {
    background: #eef0f2;
  }

  .side-tab-icon {
    display: none;
  }
}

/* Mobile-first homepage redesign. */
@media (max-width: 860px) {
  html {
    scroll-padding-top: 112px;
  }

  body.home {
    overflow-x: hidden;
    min-width: 0;
    padding: 0 0 86px;
    color: #111827;
    background:
      radial-gradient(circle at 18% -8%, rgba(0, 124, 255, 0.18), transparent 34%),
      linear-gradient(180deg, #f7f9fc 0%, #eef2f6 100%);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
  }

  body.home .site-header.side-rail {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: max(12px, env(safe-area-inset-top)) 16px 10px;
    background: rgba(247, 249, 252, 0.9);
    border-bottom: 1px solid rgba(209, 216, 226, 0.82);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
    backdrop-filter: blur(18px);
  }

  body.home .site-header.side-rail .brand {
    justify-content: flex-start;
    gap: 11px;
    width: fit-content;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
  }

  body.home .site-header.side-rail .brand-mark {
    width: 32px;
    height: 32px;
    color: #fff;
    background: linear-gradient(180deg, #0a91ff, #006bd6);
    border: 0;
    border-radius: 9px;
    box-shadow: 0 10px 18px rgba(0, 107, 214, 0.22);
  }

  body.home .site-header.side-rail .brand-mark::before {
    inset: 8px;
    border: 2px solid #fff;
    border-radius: 3px;
    transform: none;
  }

  body.home .site-header.side-rail .brand-mark::after {
    right: 8px;
    bottom: 8px;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: -6px 0 0 #fff, 0 -6px 0 #fff, -6px -6px 0 #fff;
    transform: none;
  }

  body.home .site-header.side-rail .side-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    padding: 0;
    color: #687386;
    font-size: 12px;
    font-weight: 750;
  }

  body.home .site-header.side-rail .side-tabs a {
    display: flex;
    justify-content: center;
    min-width: 0;
    min-height: 36px;
    padding: 0 6px;
    color: #687386;
    background: transparent;
    border-radius: 999px;
    white-space: nowrap;
  }

  body.home .site-header.side-rail .side-tabs a.is-active {
    color: #0b63ce;
    background: #e8f1ff;
  }

  body.home .site-header.side-rail .side-tabs a::after {
    display: none;
  }

  body.home main {
    width: 100%;
    margin: 0;
    padding: 0 16px;
  }

  body.home .search-hero {
    position: relative;
    padding: 22px 0 16px;
  }

  body.home .search-hero::before {
    content: "Fast, private calculator tools";
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    color: #075bb8;
    background: rgba(232, 241, 255, 0.92);
    border: 1px solid rgba(10, 145, 255, 0.14);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
  }

  body.home .search-hero h1 {
    display: block;
    max-width: 310px;
    margin: 0 0 16px;
    color: #111827;
    font-size: 32px;
    line-height: 1.04;
    font-weight: 850;
    letter-spacing: 0;
  }

  body.home .search-panel {
    width: 100%;
  }

  body.home .search-hero .search-row {
    grid-template-columns: 1fr 44px;
    min-height: 54px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(207, 215, 226, 0.92);
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.09);
  }

  body.home .search-hero input {
    min-height: 54px;
    padding-right: 6px;
    padding-left: 54px;
    color: #111827;
    font-size: 16px;
  }

  body.home .search-hero input::placeholder {
    color: #7a8494;
  }

  body.home .search-hero .search-row::before {
    left: 20px;
    width: 13px;
    height: 13px;
    border-color: #111827;
    border-width: 2px;
  }

  body.home .search-hero .search-row::after {
    left: 31px;
    width: 8px;
    height: 2px;
    background: #111827;
  }

  body.home .search-hero .icon-button {
    width: 42px;
    min-height: 54px;
    color: #6b7280;
    background: transparent;
  }

  body.home .search-hero .category-tabs,
  body.home #categories,
  body.home .site-footer {
    display: block;
  }

  body.home .search-hero .category-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px;
    overflow-x: auto;
    margin: 14px -16px 0;
    padding: 0 16px 4px;
    scrollbar-width: none;
  }

  body.home .search-hero .category-tabs::-webkit-scrollbar,
  body.home .latest-sidebar .latest-list::-webkit-scrollbar {
    display: none;
  }

  body.home .tab {
    min-height: 36px;
    padding: 0 14px;
    color: #667085;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(207, 215, 226, 0.78);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
  }

  body.home .tab.is-active {
    color: #fff;
    background: #111827;
    border-color: #111827;
  }

  body.home .directory-layout {
    display: block;
    margin: 0;
  }

  body.home .section-heading {
    margin: 0 0 12px;
  }

  body.home .top-directory,
  body.home .latest-sidebar,
  body.home .directory-band,
  body.home .about-panel {
    margin: 0 0 22px;
  }

  body.home .top-directory h2,
  body.home .latest-sidebar h2,
  body.home .directory-band h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 850;
    line-height: 1.2;
  }

  body.home .section-heading .eyebrow {
    margin-bottom: 4px;
    color: #0b63ce;
    font-size: 11px;
  }

  body.home .top-directory .quick-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.home .top-directory .quick-card {
    min-height: 82px;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(210, 218, 228, 0.92);
    border-radius: 20px;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.06);
  }

  body.home .top-directory .quick-card:nth-child(n + 7) {
    display: none;
  }

  body.home .top-directory .tool-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  body.home .top-directory .tool-icon svg {
    width: 31px;
    height: 31px;
  }

  body.home .top-directory .quick-card strong {
    color: #111827;
    font-size: 16px;
    font-weight: 820;
    line-height: 1.18;
  }

  body.home .top-directory .quick-card small {
    margin-top: 5px;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
  }

  body.home .latest-sidebar {
    max-width: none;
  }

  body.home .latest-sidebar .latest-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 78%);
    gap: 10px;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px 6px;
    scroll-snap-type: x mandatory;
  }

  body.home .latest-item {
    scroll-snap-align: start;
    min-height: 58px;
    padding: 10px 12px;
    color: #111827;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(210, 218, 228, 0.92);
    border-radius: 18px;
    font-size: 14px;
    font-weight: 760;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
  }

  body.home .mini-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  body.home .mini-icon svg {
    width: 25px;
    height: 25px;
  }

  body.home .directory-band {
    padding: 0;
    background: transparent;
  }

  body.home .category-directory {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.home .category-block {
    padding: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(210, 218, 228, 0.92);
    border-radius: 20px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
  }

  body.home .category-block:nth-child(n + 5) {
    display: none;
  }

  body.home .category-block > span {
    color: #0b63ce;
    font-size: 11px;
    font-weight: 850;
  }

  body.home .category-block h3 {
    margin: 6px 0 6px;
    color: #111827;
    font-size: 17px;
    font-weight: 850;
  }

  body.home .category-block p {
    margin: 0 0 12px;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
  }

  body.home .category-block .inline-links {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px 2px;
  }

  body.home .category-block .inline-links a {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 7px 10px;
    color: #344054;
    background: #f3f6fa;
    border: 1px solid rgba(210, 218, 228, 0.82);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
  }

  body.home .about-panel {
    overflow: hidden;
    background: #111827;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.18);
  }

  body.home .about-title {
    padding: 18px 18px 0;
    color: #fff;
    background: transparent;
  }

  body.home .about-title h2 {
    color: #fff;
    font-size: 19px;
    font-weight: 850;
  }

  body.home .about-title span {
    color: #9cc8ff;
    font-size: 11px;
    font-weight: 850;
  }

  body.home .about-panel p {
    padding: 14px 18px 18px;
    color: #d8dee8;
    font-size: 14px;
    line-height: 1.65;
  }

  body.home .workspace,
  body.home .content-grid {
    display: none;
  }

  body.home .site-footer {
    width: auto;
    margin: 4px 16px 0;
    padding: 18px 0 0;
    color: #667085;
    background: transparent;
    border: 0;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  body.home main {
    padding: 0 12px;
  }

  body.home .search-hero h1 {
    font-size: 29px;
  }

  body.home .site-header.side-rail .side-tabs {
    gap: 5px;
    font-size: 11px;
  }

  body.home .site-header.side-rail .side-tabs a {
    padding: 0 5px;
  }
}

/* Desktop homepage: wide-screen layout with the same mobile-first content hierarchy. */
@media (min-width: 861px) {
  body.home {
    overflow-x: hidden;
    padding: 0 0 72px 286px;
    color: #111827;
    background:
      radial-gradient(circle at 38% -120px, rgba(0, 124, 255, 0.14), transparent 34%),
      linear-gradient(180deg, #f7f9fc 0%, #eef2f6 100%);
  }

  body.home .site-header.side-rail {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 286px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 54px;
    padding: 44px 40px 28px;
    background: rgba(247, 249, 252, 0.9);
    border-right: 1px solid rgba(209, 216, 226, 0.92);
    border-bottom: 0;
    box-shadow: none;
  }

  body.home .site-header.side-rail .brand {
    gap: 14px;
    font-size: 17px;
  }

  body.home .site-header.side-rail .side-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 17px;
  }

  body.home .site-header.side-rail .side-tabs a {
    display: grid;
    grid-template-columns: 26px 1fr;
    justify-content: stretch;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 13px;
  }

  body.home .site-header.side-rail .side-tabs a.is-active {
    color: #202532;
    background: #eef0f2;
  }

  body.home .site-header.side-rail .side-tab-icon {
    display: block;
  }

  body.home main {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    padding: 0;
  }

  body.home .search-hero {
    padding: 42px 0 28px;
  }

  body.home .search-hero::before {
    content: "Fast, private calculator tools";
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    color: #075bb8;
    background: rgba(232, 241, 255, 0.92);
    border: 1px solid rgba(10, 145, 255, 0.14);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
  }

  body.home .search-hero h1 {
    display: block;
    max-width: 620px;
    margin: 0 0 22px;
    color: #111827;
    font-size: 46px;
    line-height: 1.02;
    font-weight: 850;
  }

  body.home .search-hero .search-row {
    max-width: 760px;
    min-height: 62px;
    border-radius: 20px;
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.08);
  }

  body.home .search-hero input {
    min-height: 62px;
    padding-left: 64px;
    font-size: 17px;
  }

  body.home .search-hero .category-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 10px;
    overflow-x: auto;
    max-width: 100%;
    margin-top: 16px;
    padding-bottom: 4px;
  }

  body.home .directory-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
    margin: 0 0 28px;
  }

  body.home .top-directory,
  body.home .latest-sidebar,
  body.home .directory-band,
  body.home .about-panel {
    margin-bottom: 28px;
  }

  body.home .top-directory h2,
  body.home .latest-sidebar h2,
  body.home .directory-band h2 {
    color: #111827;
    font-size: 22px;
    font-weight: 850;
  }

  body.home .top-directory .quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.home .top-directory .quick-card {
    display: grid;
    min-height: 92px;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(210, 218, 228, 0.92);
    border-radius: 20px;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.055);
  }

  body.home .top-directory .quick-card:nth-child(n + 7),
  body.home .category-block:nth-child(n + 5) {
    display: grid;
  }

  body.home .latest-sidebar .latest-list {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: initial;
    gap: 10px;
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  body.home .search-hero .category-tabs,
  body.home #categories,
  body.home .site-footer {
    display: block;
  }

  body.home .category-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.home .category-block {
    display: block;
    padding: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(210, 218, 228, 0.92);
    border-radius: 20px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
  }

  body.home .about-panel {
    max-width: none;
  }

  body.home .workspace,
  body.home .content-grid {
    display: none;
  }
}

/* Final Figma homepage override. Keep this block last for homepage fidelity. */
body.detail {
  padding-left: 0;
}

body.detail .site-header.figma-home-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(360px, 1fr) minmax(160px, 240px);
  align-items: center;
  min-height: 64px;
  padding: 0 max(32px, calc((100vw - 1160px) / 2));
  gap: 18px;
  background: rgba(248, 250, 252, 0.96);
  border-top: 2px solid #2388ff;
  border-right: 0;
  border-bottom: 1px solid #dfe4ea;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

body.detail .site-header.figma-home-header .brand {
  gap: 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

body.detail .site-header.figma-home-header .brand-mark {
  display: none;
}

body.detail .site-header.figma-home-header .figma-home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 44px);
  color: #475467;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

body.detail .site-header.figma-home-header .figma-home-nav a {
  position: relative;
  color: #475467;
  white-space: nowrap;
}

body.detail .site-header.figma-home-header .figma-home-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -22px;
  left: 0;
  height: 3px;
  background: transparent;
  border-radius: 999px;
}

body.detail .site-header.figma-home-header .figma-home-nav a.is-active {
  color: #0f172a;
  font-weight: 700;
}

body.detail .site-header.figma-home-header .figma-home-nav a.is-active::after {
  background: #0f172a;
}

body.home {
  padding: 0;
  color: #0f172a;
  background: #f4f6f8;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body.home .figma-home-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(360px, 1fr) minmax(160px, 240px);
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 0 max(32px, calc((100vw - 1160px) / 2));
  gap: 20px;
  background: rgba(248, 250, 252, 0.94);
  border-top: 2px solid #2388ff;
  border-right: 0;
  border-bottom: 1px solid #dfe4ea;
  box-shadow: none;
  backdrop-filter: blur(14px);
}

body.home .figma-home-header .brand {
  gap: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 850;
}

body.home .figma-home-header .brand-mark {
  display: none;
}

body.home .figma-home-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #475467;
  justify-content: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

body.home .figma-home-nav a {
  position: relative;
  color: #475467;
  white-space: nowrap;
}

body.home .figma-home-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -22px;
  left: 0;
  height: 3px;
  background: transparent;
  border-radius: 999px;
}

body.home .figma-home-nav a.is-active {
  color: #0f172a;
  font-weight: 850;
}

body.home .figma-home-nav a.is-active::after {
  background: #0f172a;
}

body.home .header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

body.home .header-icon {
  position: relative;
  width: 18px;
  height: 18px;
  background: transparent;
  border: 0;
}

body.home .header-icon-sun::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid #0f172a;
  border-radius: 50%;
  box-shadow: 0 -7px 0 -4px #0f172a, 0 7px 0 -4px #0f172a, 7px 0 0 -4px #0f172a, -7px 0 0 -4px #0f172a;
}

body.home .header-icon-search::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 9px;
  height: 9px;
  border: 1.7px solid #0f172a;
  border-radius: 50%;
}

body.home .header-icon-search::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 3px;
  width: 6px;
  height: 1.7px;
  background: #0f172a;
  border-radius: 999px;
  transform: rotate(45deg);
}

body.home main {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0;
}

body.home .search-hero {
  display: grid;
  justify-items: center;
  padding: 68px 0 64px;
}

body.home .search-hero::before,
body.home .search-hero .category-tabs {
  display: none;
}

body.home .search-hero h1 {
  max-width: none;
  margin: 0 0 26px;
  color: #0f172a;
  font-size: clamp(36px, 4.1vw, 48px);
  line-height: 1.04;
  font-weight: 880;
  text-align: center;
}

body.home .search-panel {
  width: min(690px, 100%);
}

body.home .search-hero .search-row {
  min-height: 66px;
  grid-template-columns: 1fr 46px;
  background: #fff;
  border: 0;
  border-radius: 11px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

body.home .search-hero input {
  min-height: 66px;
  padding-left: 60px;
  color: #0f172a;
  font-size: 14px;
}

body.home .search-hero input::placeholder {
  color: #737c8b;
}

body.home .search-hero .search-row::before {
  left: 25px;
  width: 13px;
  height: 13px;
  border: 1.8px solid #667085;
}

body.home .search-hero .search-row::after {
  left: 36px;
  width: 8px;
  height: 1.8px;
  background: #667085;
}

body.home .directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
  margin: 0 0 72px;
}

body.home .top-directory .section-heading,
body.home .latest-sidebar .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin: 0 0 22px;
}

body.home .top-directory .section-heading::after {
  content: "View all";
  color: #0f172a;
  font-size: 11px;
  font-weight: 850;
}

body.home .top-directory h2 {
  font-size: 30px;
}

body.home .latest-sidebar h2 {
  font-size: 20px;
}

body.home .top-directory h2,
body.home .latest-sidebar h2 {
  margin: 0;
  color: #0f172a;
  line-height: 1;
  font-weight: 850;
}

body.home .top-directory .quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

body.home .top-directory .quick-card {
  display: grid;
  min-height: 136px;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.045);
}

body.home .top-directory .quick-card:nth-child(n + 7) {
  display: none;
}

body.home .top-directory .tool-icon {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #51a7ff, #4757ff);
  box-shadow: 0 12px 20px rgba(44, 115, 255, 0.22);
}

body.home .top-directory .quick-card:nth-child(2) .tool-icon { background: linear-gradient(135deg, #ff7a3d, #ef3e2f); }
body.home .top-directory .quick-card:nth-child(3) .tool-icon { background: linear-gradient(135deg, #35d4a7, #009b78); }
body.home .top-directory .quick-card:nth-child(4) .tool-icon { background: linear-gradient(135deg, #c55cff, #8f3df6); }
body.home .top-directory .quick-card:nth-child(5) .tool-icon { background: linear-gradient(135deg, #ffbd3f, #ff7a1a); }
body.home .top-directory .quick-card:nth-child(6) .tool-icon { background: linear-gradient(135deg, #47c4ff, #2472ff); }

body.home .top-directory .tool-icon svg {
  width: 27px;
  height: 27px;
}

body.home .top-directory .tool-icon .functional-icon {
  --icon-ink: #fff;
  --icon-fill: transparent;
  --icon-fill-2: transparent;
  --icon-fill-3: transparent;
  --icon-accent: #fff;
}

body.home .top-directory .tool-icon .icon-fill,
body.home .top-directory .tool-icon .icon-fill-2,
body.home .top-directory .tool-icon .icon-fill-3 {
  fill: none;
}

body.home .top-directory .quick-copy {
  display: flex;
  flex-direction: column;
}

body.home .top-directory .quick-card small {
  order: 0;
  margin: 0 0 4px;
  color: #667085;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.home .top-directory .quick-card small::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  background: #2f80ff;
  border-radius: 50%;
  vertical-align: 1px;
}

body.home .top-directory .quick-card strong {
  order: 1;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.04;
  font-weight: 850;
}

body.home .top-directory .quick-card em {
  order: 2;
  margin-top: 8px;
  color: #475467;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

body.home .latest-sidebar .latest-list {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
}

body.home .latest-item {
  min-height: 42px;
  padding: 0 12px;
  color: #334155;
  background: #eef1f4;
  border: 0;
  border-radius: 2px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 650;
}

body.home .latest-item .mini-icon {
  width: 18px;
  height: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.home .latest-item .mini-icon svg {
  width: 17px;
  height: 17px;
}

body.home .latest-item .functional-icon {
  --icon-ink: #667085;
  --icon-fill: transparent;
  --icon-fill-2: transparent;
  --icon-fill-3: transparent;
  --icon-accent: #667085;
}

body.home .latest-item .icon-fill,
body.home .latest-item .icon-fill-2,
body.home .latest-item .icon-fill-3 {
  fill: none;
}

body.home .bundle-card {
  position: relative;
  display: flex;
  min-height: 372px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 28px 24px 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(9, 21, 34, 0.08), rgba(9, 21, 34, 0.94)), radial-gradient(circle at 72% 20%, rgba(147, 164, 181, 0.65), transparent 24%), linear-gradient(135deg, #0b1724, #142637 55%, #07111b);
  border-radius: 9px;
}

body.home .bundle-card span {
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.home .bundle-card strong {
  max-width: 230px;
  font-size: 31px;
  line-height: 1.02;
  font-weight: 850;
}

body.home .bundle-card small {
  margin: 12px 0 22px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  line-height: 1.45;
}

body.home .bundle-card em {
  display: grid;
  min-height: 44px;
  place-items: center;
  color: #0f172a;
  background: #fff;
  border-radius: 5px;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

body.home .accuracy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 70px;
  align-items: center;
  max-width: none;
  margin: 0 0 64px;
  padding: 38px 0;
  background: transparent;
  border: 1px solid #dfe4ea;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

body.home .accuracy-copy h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 31px;
  font-weight: 850;
}

body.home .accuracy-copy p {
  max-width: 450px;
  margin: 0;
  padding: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.65;
}

body.home .accuracy-stats {
  display: flex;
  gap: 42px;
  margin-top: 30px;
}

body.home .accuracy-stats strong {
  color: #0f172a;
  font-size: 40px;
  line-height: 0.9;
  font-weight: 880;
}

body.home .accuracy-stats small {
  display: block;
  color: #475467;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.home .accuracy-visual {
  min-height: 254px;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.12), rgba(0, 0, 0, 0.45)), radial-gradient(circle at 52% 64%, rgba(72, 235, 255, 0.68), transparent 16%), repeating-linear-gradient(90deg, transparent 0 38px, rgba(37, 234, 255, 0.16) 39px 41px), repeating-linear-gradient(0deg, transparent 0 34px, rgba(37, 234, 255, 0.13) 35px 37px), linear-gradient(135deg, #06202a, #07131c 48%, #062d38);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(89, 230, 255, 0.24), 0 18px 32px rgba(15, 23, 42, 0.16);
}

body.home .directory-band,
body.home .workspace,
body.home .content-grid {
  display: none;
}

body.home .figma-home-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, 0.6fr) minmax(160px, 0.6fr);
  gap: 80px;
  width: 100%;
  margin: 0;
  padding: 48px max(32px, calc((100vw - 1160px) / 2)) 84px;
  color: #0f172a;
  background: #eef1f4;
  border: 0;
}

body.home .figma-home-footer strong {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
}

body.home .figma-home-footer p {
  max-width: 310px;
  margin: 0 0 18px;
  color: #475467;
  font-size: 11px;
  line-height: 1.55;
}

body.home .figma-home-footer span {
  display: block;
  margin-bottom: 14px;
  color: #667085;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.home .figma-home-footer a {
  display: block;
  margin-bottom: 11px;
  color: #334155;
  font-size: 11px;
}

body.home .footer-socials {
  display: flex;
  gap: 18px;
}

body.home .footer-socials span {
  width: 18px;
  height: 18px;
  margin: 0;
  background: #111827;
  border-radius: 50%;
}

body.home .footer-socials span:last-child {
  border-radius: 3px;
}

@media (max-width: 860px) {
  body.home .figma-home-header {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 14px 18px 10px;
  }

  body.home .figma-home-nav {
    grid-column: 1 / -1;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  body.home .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  body.home main {
    width: min(100% - 32px, 620px);
  }

  body.home .search-hero {
    padding: 44px 0 42px;
  }

  body.home .search-hero h1 {
    font-size: 38px;
  }

  body.home .directory-layout,
  body.home .accuracy-section,
  body.home .figma-home-footer {
    grid-template-columns: 1fr;
  }

  body.home .top-directory .quick-grid {
    grid-template-columns: 1fr;
  }

  body.home .bundle-card {
    min-height: 310px;
  }

  body.home .accuracy-section {
    gap: 24px;
  }

  body.home .accuracy-visual {
    min-height: 220px;
  }

  body.home .figma-home-footer {
    gap: 28px;
    padding: 42px 24px 64px;
  }
}

/* Final icon override: keep generated category icons in the reference gradient style. */
.generated-tool-icon,
body.detail .category-page .generated-tool-icon,
body.home .generated-tool-icon {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  min-width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 36%),
    linear-gradient(135deg, var(--icon-bg), var(--icon-bg-2, color-mix(in srgb, var(--icon-bg) 68%, #111827)));
  border: 0;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 12px 22px color-mix(in srgb, var(--icon-bg) 28%, transparent);
}

.generated-tool-icon svg,
body.detail .category-page .generated-tool-icon svg,
body.home .generated-tool-icon svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Final brand, search, and footer polish. */
.site-header.figma-home-header .brand,
body.home .figma-home-header .brand,
body.detail .site-header.figma-home-header .brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #172033;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-logo,
.site-header.figma-home-header .brand-logo,
body.home .figma-home-header .brand-logo,
body.detail .site-header.figma-home-header .brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.global-search,
body.home .global-search,
body.detail .global-search {
  justify-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  transition: width 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.global-search:hover,
.global-search:focus-within,
body.home .global-search:hover,
body.home .global-search:focus-within,
body.detail .global-search:hover,
body.detail .global-search:focus-within {
  width: min(300px, 28vw);
  border-color: #d6dee9;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.global-search input,
body.home .global-search input,
body.detail .global-search input {
  min-width: 0;
  height: 40px;
  padding: 0 4px 0 15px;
  color: #172033;
  background: transparent;
  border: 0;
  outline: 0;
  opacity: 0;
  font: inherit;
  font-size: 14px;
  transition: opacity 0.12s ease;
}

.global-search:hover input,
.global-search:focus-within input,
body.home .global-search:hover input,
body.home .global-search:focus-within input,
body.detail .global-search:hover input,
body.detail .global-search:focus-within input {
  opacity: 1;
}

.global-search .header-icon-search,
body.home .global-search .header-icon-search,
body.detail .global-search .header-icon-search {
  position: relative;
  width: 42px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.global-search .header-icon-search::before,
body.home .global-search .header-icon-search::before,
body.detail .global-search .header-icon-search::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 11px;
  width: 13px;
  height: 13px;
  border: 2px solid #172033;
  border-radius: 50%;
  box-shadow: none;
}

.global-search .header-icon-search::after,
body.home .global-search .header-icon-search::after,
body.detail .global-search .header-icon-search::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 25px;
  width: 8px;
  height: 2px;
  background: #172033;
  border-radius: 999px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.site-footer,
body.detail .site-footer {
  min-height: 42px;
  padding: 12px max(32px, calc((100vw - 1160px) / 2));
  color: #64748b;
  background: #f8fafc;
  border-top: 1px solid #e5eaf1;
}

@media (max-width: 860px) {
  .global-search:hover,
  .global-search:focus-within,
  body.home .global-search:hover,
  body.home .global-search:focus-within,
  body.detail .global-search:hover,
  body.detail .global-search:focus-within {
    width: min(250px, 56vw);
  }

  .brand-logo,
  .site-header.figma-home-header .brand-logo,
  body.home .figma-home-header .brand-logo,
  body.detail .site-header.figma-home-header .brand-logo {
    width: 32px;
    height: 32px;
  }
}

/* Final homepage search and layout override. */
.global-search.has-search-suggestions,
body.home .global-search.has-search-suggestions,
body.detail .global-search.has-search-suggestions {
  overflow: visible;
}

body.home .top-directory .quick-card:nth-child(n + 7) {
  display: grid;
}

body.home .latest-sidebar .latest-list {
  gap: 10px;
  margin-bottom: 32px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #dfe6ef;
  border-radius: 10px;
}

body.home .latest-item {
  min-height: 50px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 0 13px;
  background: #edf2f7;
  border-radius: 8px;
  color: #26364a;
  font-size: 14px;
  font-weight: 760;
}

body.home .latest-item .mini-icon {
  width: 28px;
  height: 28px;
}

body.home .latest-item .mini-icon svg {
  width: 20px;
  height: 20px;
}
