:root {
  --bg: #fffaf6;
  --surface: #ffffff;
  --surface-2: #f7f4f1;
  --ink: #171514;
  --muted: #746e6a;
  --line: rgba(29, 24, 20, .1);
  --accent: #ff6b3d;
  --accent-dark: #e94d22;
  --purple: #7956e8;
  --shadow: 0 24px 70px rgba(52, 34, 20, .1);
  --radius: 24px;
}

:root[data-theme="dark"] {
  --bg: #151312;
  --surface: #1d1a18;
  --surface-2: #25211f;
  --ink: #f6f0ea;
  --muted: #aba29b;
  --line: rgba(255, 255, 255, .1);
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.site-header {
  width: min(1420px, calc(100% - 64px));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 54px;
  position: relative;
  z-index: 20;
}
.site-header.compact { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 33px; height: 33px; position: relative; display: inline-block; }
.brand-mark i { position: absolute; width: 17px; height: 17px; border-radius: 6px; transform: rotate(45deg); }
.brand-mark i:nth-child(1) { background: var(--accent); top: 1px; left: 1px; }
.brand-mark i:nth-child(2) { background: #ffd167; top: 1px; right: 1px; }
.brand-mark i:nth-child(3) { background: var(--purple); bottom: 1px; left: 8px; }
.top-nav { display: flex; gap: 34px; font-size: 14px; font-weight: 600; color: var(--muted); }
.top-nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-button, .view-actions button, .slider-controls button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 12px; cursor: pointer;
}
.icon-button { width: 42px; height: 42px; font-size: 19px; }
.submit-link { padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; }

.hero {
  width: min(1420px, calc(100% - 64px));
  min-height: 570px;
  margin: 12px auto 0;
  padding: 72px 72px 62px;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
  background:
    radial-gradient(circle at 40% 100%, rgba(255, 185, 151, .4), transparent 34%),
    linear-gradient(135deg, #fff3ea 0%, #f5efff 51%, #e9f2ff 100%);
  color: #171514;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image: linear-gradient(rgba(50,30,20,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(50,30,20,.08) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: linear-gradient(to right, black, transparent 72%);
}
.hero-copy { position: relative; z-index: 3; }
.hero-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; background: rgba(255,255,255,.7); border: 1px solid rgba(30,20,10,.08); border-radius: 999px; font-size: 12px; font-weight: 700; }
.hero-pill i { width: 7px; height: 7px; background: #52bb78; border-radius: 99px; box-shadow: 0 0 0 4px rgba(82,187,120,.15); }
.hero h1 { margin: 25px 0 20px; font-size: clamp(45px, 5.2vw, 74px); line-height: 1.08; letter-spacing: -.065em; font-weight: 800; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy > p { width: min(570px, 100%); margin: 0 0 31px; color: #6d625c; font-size: 17px; line-height: 1.8; }
.hero-search-wrap { width: min(600px, 100%); position: relative; }
.hero-search {
  height: 66px; padding: 0 15px 0 20px; display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.92); border: 1px solid rgba(40,20,10,.1); border-radius: 17px;
  box-shadow: 0 16px 45px rgba(78, 43, 25, .12);
}
.hero-search > span { font-size: 29px; transform: rotate(-15deg); }
.hero-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; color: #171514; }
kbd { padding: 5px 8px; border: 1px solid #ddd4ce; border-bottom-width: 2px; border-radius: 7px; color: #8f8580; font-family: inherit; font-size: 11px; }
.search-suggestions { display: none; position: absolute; top: 74px; inset-inline: 0; padding: 8px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); z-index: 20; }
.search-suggestions.visible { display: grid; }
.search-suggestions a { padding: 11px 13px; border-radius: 9px; font-size: 13px; }
.search-suggestions a:hover { background: var(--surface-2); }
.popular-searches { margin-top: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #8b7f78; font-size: 12px; }
.popular-searches button { padding: 5px 9px; background: rgba(255,255,255,.55); border: 1px solid rgba(30,20,10,.08); border-radius: 999px; cursor: pointer; }
.hero-visual { position: absolute; z-index: 2; width: 58%; height: 100%; right: 0; top: 0; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff3ea 0%, transparent 22%); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.floating-note { position: absolute; z-index: 4; padding: 13px 16px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.72); box-shadow: 0 16px 40px rgba(80,50,40,.13); backdrop-filter: blur(12px); border-radius: 15px; }
.floating-note span, .floating-note b, .floating-note small { display: block; }
.floating-note span { color: var(--accent); font-size: 17px; font-weight: 800; }
.floating-note b { font-size: 12px; margin-top: 3px; }
.floating-note small { color: #8d817a; margin-top: 3px; font-size: 10px; }
.note-one { right: 10%; top: 17%; }
.note-two { right: 31%; bottom: 12%; }
.note-two span { color: var(--purple); font-size: 25px; }

.category-strip {
  width: min(1420px, calc(100% - 64px)); margin: 28px auto 0; padding: 14px; display: flex; gap: 8px; overflow-x: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; scrollbar-width: none;
}
.category-chip { flex: none; padding: 11px 14px; border: 0; background: transparent; border-radius: 11px; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.category-chip span { margin-right: 7px; }
.category-chip b { margin-left: 7px; color: inherit; opacity: .55; font-weight: 500; }
.category-chip:hover, .category-chip.active { background: var(--ink); color: var(--bg); }

.featured-section, .discover-section, .related-section { width: min(1420px, calc(100% - 64px)); margin: 105px auto 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-kicker { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.section-heading h2, .detail-article h2 { margin: 8px 0 5px; font-size: clamp(29px, 3vw, 42px); letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.slider-controls, .view-actions { display: flex; gap: 8px; }
.slider-controls button, .view-actions button { width: 42px; height: 42px; font-size: 17px; }
.slider-controls button:hover, .view-actions button.active { background: var(--ink); color: var(--bg); }
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.featured-card { min-height: 350px; padding: 26px; border-radius: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; transition: transform .25s ease, box-shadow .25s ease; color: #171514; }
.featured-card::after { content: ""; position: absolute; width: 170px; height: 170px; border: 1px solid rgba(30,20,10,.1); border-radius: 50%; right: -72px; bottom: -70px; box-shadow: 0 0 0 23px rgba(255,255,255,.12), 0 0 0 49px rgba(255,255,255,.08); }
.featured-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.featured-1 { background: #f3eaff; }
.featured-2 { background: #e5f4ff; }
.featured-3 { background: #fff0e7; }
.featured-4 { background: #e6f7ed; }
.featured-number { align-self: flex-end; font-size: 11px; font-weight: 800; opacity: .45; }
.featured-icon { width: 62px; height: 62px; margin: 12px 0 42px; display: grid; place-items: center; border-radius: 19px; background: var(--tool-color); color: white; font-weight: 800; box-shadow: 0 12px 28px color-mix(in srgb, var(--tool-color), transparent 65%); }
.featured-label { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.featured-card h3 { margin: 7px 0; font-size: 23px; letter-spacing: -.03em; }
.featured-card p { margin: 0; color: #6e625c; font-size: 13px; line-height: 1.7; }
.featured-cta { margin-top: auto; font-size: 12px; font-weight: 800; }

.discover-section { margin-top: 120px; }
.discover-heading { margin-bottom: 23px; }
.filter-row { min-height: 58px; margin-bottom: 18px; padding: 9px 9px 9px 18px; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.filter-row > span { color: var(--muted); font-size: 12px; }
.small-search { margin-left: auto; min-width: 230px; padding: 0 12px; height: 39px; display: flex; align-items: center; gap: 7px; background: var(--surface-2); border-radius: 9px; }
.small-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.favorites-filter { height: 39px; padding: 0 13px; border: 1px solid var(--line); background: transparent; border-radius: 9px; cursor: pointer; font-size: 12px; }
.favorites-filter.active { background: var(--ink); color: var(--bg); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-card { min-width: 0; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tool-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent), transparent 50%); box-shadow: 0 16px 34px rgba(46,34,25,.08); }
.tool-card.hidden { display: none; }
.card-main { min-height: 151px; padding: 22px; display: grid; grid-template-columns: 54px 1fr 20px; gap: 16px; align-items: start; }
.tool-icon, .detail-icon, .mini-icon { display: grid; place-items: center; background: var(--tool-color); color: white; font-weight: 800; }
.logo-frame { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.logo-frame img { width: 100%; height: 100%; display: block; object-fit: contain; padding: 7px; background: #fff; }
.logo-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: var(--tool-color); color: #fff; }
.logo-fallback[hidden] { display: none; }
.detail-icon img { padding: 16px; }
.quick-icon img, .mini-icon img { padding: 5px; }
.tool-icon { width: 54px; height: 54px; border-radius: 15px; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.card-title-row { display: flex; align-items: center; gap: 8px; }
.card-title-row h3 { margin: 1px 0 6px; font-size: 16px; letter-spacing: -.02em; }
.price-badge { padding: 3px 6px; border-radius: 5px; background: rgba(69,181,111,.1); color: #38905a; font-size: 9px; font-weight: 800; }
.card-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card-meta { margin-top: 12px; display: flex; gap: 9px; color: var(--muted); font-size: 9px; }
.card-meta span:first-child { color: var(--accent); font-weight: 700; }
.card-arrow { color: var(--muted); font-size: 13px; }
.favorite-button { position: absolute; right: 17px; bottom: 14px; z-index: 2; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; }
.favorite-button.active { color: var(--accent); }
.tool-grid.list-view { grid-template-columns: 1fr; }
.tool-grid.list-view .card-main { min-height: 110px; }
.no-results { padding: 80px 20px; text-align: center; color: var(--muted); }
.no-results span { font-size: 38px; }
.no-results h3 { color: var(--ink); margin-bottom: 4px; }

.newsletter {
  width: min(1420px, calc(100% - 64px)); margin: 120px auto 0; padding: 52px 58px; display: flex; align-items: center; justify-content: space-between; gap: 50px;
  background: var(--ink); color: var(--bg); border-radius: 28px; position: relative; overflow: hidden;
}
.newsletter::after { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,61,.7), transparent 67%); right: 20%; top: -180px; }
.newsletter h2 { margin: 8px 0; font-size: 34px; letter-spacing: -.04em; }
.newsletter p { margin: 0; color: color-mix(in srgb, var(--bg), transparent 35%); font-size: 13px; }
.newsletter form { position: relative; z-index: 2; width: min(460px, 100%); }
.newsletter label { padding: 6px; display: flex; background: var(--bg); border-radius: 13px; }
.newsletter input { min-width: 0; flex: 1; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.newsletter button { padding: 12px 18px; border: 0; background: var(--accent); color: white; border-radius: 9px; font-weight: 700; cursor: pointer; }
.newsletter small { display: block; margin-top: 8px; opacity: .55; font-size: 10px; }
.site-footer { width: min(1420px, calc(100% - 64px)); min-height: 180px; margin: 45px auto 0; padding: 42px 0; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 70px; border-top: 1px solid var(--line); }
.footer-brand { font-size: 18px; }
.site-footer p, .copyright { color: var(--muted); font-size: 11px; }
.footer-links { display: flex; gap: 24px; color: var(--muted); font-size: 12px; }

.directory-hero {
  width: min(1420px, calc(100% - 64px));
  min-height: 390px;
  margin: 12px auto 0;
  padding: 58px 66px;
  display: grid;
  grid-template-columns: 56% 44%;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(74, 49, 35, .07);
  border-radius: 30px;
  background:
    radial-gradient(circle at 5% 100%, rgba(255, 107, 61, .13), transparent 32%),
    linear-gradient(125deg, #fff7f0 0%, #f8f1ff 56%, #eaf4ff 100%);
  color: #171514;
}
.directory-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: linear-gradient(rgba(50,30,20,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(50,30,20,.08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, black, transparent 74%);
}
.directory-hero-copy { position: relative; z-index: 4; }
.directory-hero h1 { margin: 20px 0 14px; font-size: clamp(43px, 5vw, 68px); line-height: 1.08; letter-spacing: -.065em; }
.directory-hero h1 em { color: var(--accent); font-style: normal; }
.directory-hero-copy > p { width: min(630px, 100%); margin: 0 0 25px; color: #6d625c; font-size: 15px; line-height: 1.8; }
.directory-search { height: 60px; }
.directory-hero-art { position: absolute; width: 49%; height: 100%; right: 0; top: 0; }
.directory-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f8f1ff 0%, transparent 25%); }
.directory-hero-art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.hero-stat {
  position: absolute;
  z-index: 4;
  min-width: 112px;
  padding: 14px 17px;
  display: grid;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 15px;
  box-shadow: 0 15px 38px rgba(71, 47, 34, .12);
  backdrop-filter: blur(12px);
}
.hero-stat strong { font-size: 22px; letter-spacing: -.04em; }
.hero-stat span { margin-top: 2px; color: #80736c; font-size: 10px; }
.stat-tools { top: 20%; right: 8%; }
.stat-categories { right: 31%; bottom: 14%; }

.quick-picks {
  width: min(1420px, calc(100% - 64px));
  margin: 19px auto 0;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 125px 1fr;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
}
.quick-picks-title { padding-left: 8px; display: grid; border-right: 1px solid var(--line); }
.quick-picks-title span { font-size: 12px; font-weight: 800; }
.quick-picks-title small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.quick-picks-track { min-width: 0; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.quick-picks-track a { flex: 0 0 auto; min-width: 145px; padding: 8px 11px; display: flex; align-items: center; gap: 9px; border-radius: 11px; }
.quick-picks-track a:hover { background: var(--surface-2); }
.quick-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: none; border-radius: 10px; background: var(--tool-color); color: #fff; font-size: 9px; font-weight: 800; }
.quick-picks-track a > span:last-child { display: grid; gap: 2px; }
.quick-picks-track strong { font-size: 11px; }
.quick-picks-track small { color: var(--muted); font-size: 8px; }

.directory-shell {
  width: min(1420px, calc(100% - 64px));
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.directory-sidebar {
  position: sticky;
  top: 18px;
  padding: 17px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.sidebar-heading { padding: 0 8px 11px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; }
.sidebar-heading b { min-width: 24px; padding: 3px 6px; border-radius: 99px; background: var(--surface-2); color: var(--muted); text-align: center; font-size: 9px; }
.directory-sidebar nav { display: grid; gap: 3px; }
.directory-sidebar nav a { min-height: 39px; padding: 0 9px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 7px; border-radius: 9px; color: var(--muted); font-size: 11px; font-weight: 600; }
.directory-sidebar nav a span { color: var(--accent); font-size: 12px; text-align: center; }
.directory-sidebar nav a em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.directory-sidebar nav a b { opacity: .55; font-size: 9px; }
.directory-sidebar nav a:hover, .directory-sidebar nav a.active { background: var(--ink); color: var(--bg); }
.directory-sidebar nav a.active span { color: #ffd167; }
.sidebar-tip { margin-top: 14px; padding: 13px; display: flex; gap: 9px; background: linear-gradient(135deg, rgba(255,107,61,.1), rgba(121,86,232,.1)); border-radius: 11px; }
.sidebar-tip span { color: var(--accent); }
.sidebar-tip p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.65; }

.directory-content { min-width: 0; scroll-margin-top: 20px; }
.directory-toolbar { min-height: 80px; display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.directory-toolbar h2 { margin: 6px 0 2px; font-size: 32px; letter-spacing: -.045em; }
.directory-toolbar p { margin: 0; color: var(--muted); font-size: 11px; }
.toolbar-actions { display: flex; gap: 8px; }
.toolbar-actions .small-search { min-width: 255px; margin-left: 0; border: 1px solid var(--line); }
.active-filter { margin-top: 17px; padding: 11px 13px; display: flex; justify-content: space-between; align-items: center; background: rgba(255,107,61,.08); border-radius: 10px; color: var(--accent); font-size: 11px; }
.active-filter button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 10px; }

.tool-category-section { padding-top: 39px; scroll-margin-top: 18px; }
.tool-category-section.group-hidden { display: none; }
.category-section-heading { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.category-title { display: flex; align-items: center; gap: 11px; }
.category-symbol { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); font-size: 13px; font-weight: 800; }
.category-title h3 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.category-title p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.section-expand { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 10px; }
.section-expand:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink), transparent 65%); }
.category-tool-grid { grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 10px; }
.category-tool-grid .tool-card.is-collapsed-item { display: none; }
.tool-category-section.expanded .tool-card.is-collapsed-item { display: block; }
.category-tool-grid .card-main { min-height: 112px; padding: 16px; grid-template-columns: 43px 1fr 15px; gap: 12px; }
.category-tool-grid .tool-icon { width: 43px; height: 43px; border-radius: 12px; font-size: 10px; }
.category-tool-grid .card-title-row h3 { margin-top: 0; font-size: 13px; }
.category-tool-grid .card-copy p { font-size: 10px; line-height: 1.55; }
.category-tool-grid .card-meta { margin-top: 8px; font-size: 8px; }
.category-tool-grid .favorite-button { right: 11px; bottom: 8px; font-size: 14px; }
.search-active .tool-card.is-collapsed-item { display: block; }
.search-active .tool-category-section:not(.group-hidden) { display: block; }

.category-index {
  width: min(1420px, calc(100% - 64px));
  margin: 105px auto 0;
  padding: 48px 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.category-index h2 { margin: 8px 0; font-size: 32px; letter-spacing: -.04em; }
.category-index p { max-width: 690px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.index-numbers { display: flex; gap: 12px; }
.index-numbers span { min-width: 100px; padding: 17px; display: grid; text-align: center; background: var(--surface-2); border-radius: 13px; }
.index-numbers strong { font-size: 23px; }
.index-numbers small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.newsletter-action { position: relative; z-index: 2; padding: 14px 18px; border-radius: 10px; background: var(--accent); color: white; font-size: 12px; font-weight: 800; }

.detail-page, .admin-page { width: min(1220px, calc(100% - 64px)); margin: 0 auto; }
.detail-breadcrumb { padding: 30px 0; display: flex; gap: 10px; color: var(--muted); font-size: 12px; }
.detail-breadcrumb b { opacity: .35; }
.tool-hero { padding: 50px; display: grid; grid-template-columns: 106px 1fr auto; align-items: center; gap: 30px; background: linear-gradient(125deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); border-radius: 27px; }
.detail-icon { width: 106px; height: 106px; border-radius: 28px; font-size: 24px; box-shadow: 0 22px 44px color-mix(in srgb, var(--tool-color), transparent 70%); }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 11px; font-weight: 700; }
.soft-badge { display: inline-block; padding: 5px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 9px; }
.tool-hero h1 { margin: 9px 0 8px; font-size: 44px; letter-spacing: -.05em; }
.tool-hero-copy > p { margin: 0; color: var(--muted); line-height: 1.7; }
.detail-tags { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 7px; }
.detail-tags span { padding: 6px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 10px; }
.primary-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 11px; font-weight: 700; cursor: pointer; }
.primary-button { padding: 14px 20px; background: var(--accent); color: white; box-shadow: 0 10px 24px rgba(255,107,61,.2); }
.primary-button:hover { background: var(--accent-dark); }
.secondary-button { padding: 11px 15px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.visit-button { min-width: 145px; gap: 7px; }
.detail-layout { margin-top: 28px; display: grid; grid-template-columns: 1fr 290px; gap: 26px; }
.detail-article, .detail-aside { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.detail-article { padding: 44px; }
.detail-article > p { color: var(--muted); line-height: 2; font-size: 15px; }
.feature-note { margin-top: 34px; padding: 22px; background: var(--surface-2); border-radius: 14px; }
.feature-note p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.detail-aside { padding: 22px; align-self: start; }
.detail-aside > div { padding: 14px 4px; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); font-size: 11px; }
.detail-aside span { color: var(--muted); }
.status-live { color: #45a467; }
.favorite-detail { width: 100%; margin-top: 17px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); cursor: pointer; }
.favorite-detail.active { border-color: var(--accent); color: var(--accent); }
.related-section { width: 100%; margin-top: 75px; }
.related-section .section-heading > a { color: var(--accent); font-size: 12px; font-weight: 700; }
.empty-page { min-height: 65vh; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-page > span { color: var(--accent); font-size: 70px; font-weight: 800; opacity: .4; }
.empty-page h1 { margin: 10px 0 4px; }
.empty-page p { color: var(--muted); margin-bottom: 25px; }

.admin-login-page { min-height: 72vh; display: grid; place-items: center; padding: 40px 20px; }
.login-card { width: min(440px, 100%); padding: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.login-card h1 { margin: 8px 0; font-size: 37px; letter-spacing: -.05em; }
.login-card > p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.stack-form, .tool-form { display: grid; gap: 15px; margin-top: 25px; }
.stack-form label, .tool-form label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 600; }
.stack-form input, .tool-form input, .tool-form textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: var(--surface-2); color: var(--ink);
}
.stack-form input:focus, .tool-form input:focus, .tool-form textarea:focus { border-color: var(--accent); }
.text-link { display: inline-block; margin-top: 20px; color: var(--muted); font-size: 11px; }
.admin-topbar { padding: 42px 0 25px; display: flex; justify-content: space-between; align-items: end; }
.admin-topbar h1 { margin: 6px 0 0; font-size: 39px; letter-spacing: -.05em; }
.form-message { margin: 0 0 15px; padding: 12px 15px; border-radius: 10px; font-size: 12px; }
.form-message.success { background: rgba(69,164,103,.12); color: #388254; }
.form-message.error { background: rgba(220,67,54,.12); color: #c0473a; }
.admin-layout { display: grid; grid-template-columns: 1fr 1.12fr; gap: 24px; align-items: start; }
.admin-list, .admin-form-card { padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.admin-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-section-title h2 { margin: 0; font-size: 18px; }
.admin-section-title span, .admin-section-title a { color: var(--muted); font-size: 11px; }
.admin-tools { max-height: 680px; overflow-y: auto; }
.admin-tool-row { padding: 12px 3px; display: grid; grid-template-columns: 38px 1fr auto auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.mini-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 9px; }
.admin-tool-row div { display: grid; gap: 3px; }
.admin-tool-row strong { font-size: 12px; }
.admin-tool-row div span { color: var(--muted); font-size: 9px; }
.admin-tool-row a, .admin-tool-row button { border: 0; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.admin-tool-row button { color: #c85b4d; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.compact-fields { grid-template-columns: 1fr 100px 1fr 1fr; align-items: end; }
.compact-fields input[type="color"] { height: 42px; padding: 4px; }
.tool-form .check-label { display: flex; flex-direction: row; align-items: center; height: 42px; }
.tool-form .check-label input { width: auto; }

/* Public directory sections span the viewport with only readable inner padding. */
.site-header,
.directory-hero,
.quick-picks,
.directory-shell,
.category-index,
.newsletter,
.site-footer {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.site-header { padding-inline: 24px; }
.directory-hero {
  margin-top: 0;
  padding-inline: clamp(28px, 4vw, 76px);
  border-inline: 0;
  border-radius: 0;
}
.quick-picks {
  margin-top: 0;
  padding-inline: 24px;
  border-inline: 0;
  border-radius: 0;
}
.directory-shell { padding-inline: 18px; }
.category-index,
.newsletter {
  border-inline: 0;
  border-radius: 0;
  padding-inline: clamp(28px, 4vw, 68px);
}
.site-footer { padding-inline: 24px; }

/* Larger directory layout inspired by a dense desktop navigation library. */
.site-header {
  height: 92px;
  gap: 64px;
}
.brand { font-size: 25px; }
.brand-mark { width: 38px; height: 38px; }
.top-nav { gap: 38px; font-size: 16px; }
.submit-link { padding: 14px 20px; font-size: 14px; }

.directory-hero {
  min-height: 370px;
  padding-block: 56px;
  display: flex;
  justify-content: center;
  text-align: center;
}
.directory-hero-copy { width: min(920px, 100%); }
.directory-hero h1 { margin: 20px 0 16px; font-size: clamp(54px, 5.4vw, 82px); }
.directory-hero-copy > p {
  width: min(760px, 100%);
  margin: 0 auto 28px;
  font-size: 17px;
}
.directory-hero .hero-pill { font-size: 14px; }
.hero-search-wrap { width: min(760px, 100%); margin-inline: auto; }
.search-engine-tabs {
  margin: 0 auto 10px;
  padding: 4px;
  width: max-content;
  display: flex;
  gap: 4px;
  border: 1px solid rgba(30,20,10,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.68);
}
.search-engine-tabs button {
  min-width: 72px;
  padding: 8px 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #756b65;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.search-engine-tabs button.active { background: #171514; color: #fff; }
.directory-search { height: 72px; text-align: left; border-radius: 19px; }
.directory-search input { font-size: 17px; }
.directory-search #hero-search-submit {
  min-width: 78px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}
.hero-search-wrap .search-suggestions { top: 127px; text-align: left; }
.popular-searches { justify-content: center; font-size: 14px; }
.popular-searches button { padding: 7px 12px; }
.directory-hero-art { display: none; }

.quick-picks { min-height: 78px; padding-block: 14px; }
.quick-picks-title { padding-left: 10px; }
.quick-picks-title span { font-size: 15px; }
.quick-picks-title small { font-size: 11px; }
.quick-picks-track a { min-width: 175px; padding: 10px 13px; }
.quick-icon { width: 42px; height: 42px; }
.quick-picks-track strong { font-size: 14px; }
.quick-picks-track small { font-size: 10px; }
.recent-tools {
  width: 100%;
  min-height: 78px;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 125px 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface), var(--purple) 3%);
}
.recent-tools[hidden] { display: none; }
.recent-tools-track { min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.recent-tools-track a { min-width: 170px; padding: 9px 11px; display: flex; align-items: center; gap: 10px; border-radius: 11px; }
.recent-tools-track a:hover { background: var(--surface); }
.recent-icon { width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; flex: none; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 10px; font-weight: 800; }
.recent-icon img { width: 100%; height: 100%; padding: 6px; object-fit: contain; }
.recent-tools-track a > span:last-child { min-width: 0; display: grid; gap: 2px; }
.recent-tools-track strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.recent-tools-track small { color: var(--muted); font-size: 10px; }

.directory-shell {
  margin-top: 28px;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 25px;
}
.directory-sidebar { top: 12px; padding: 20px 12px; border-radius: 16px; }
.sidebar-heading { padding: 0 11px 14px; font-size: 16px; }
.sidebar-heading b { min-width: 30px; padding: 5px 8px; font-size: 11px; }
.directory-sidebar nav { gap: 5px; }
.directory-sidebar nav a {
  min-height: 49px;
  padding: 0 12px;
  grid-template-columns: 28px 1fr auto;
  gap: 9px;
  border-radius: 10px;
  font-size: 14px;
}
.directory-sidebar nav a span { font-size: 15px; }
.directory-sidebar nav a b { font-size: 11px; }
.sidebar-tip { padding: 16px; }
.sidebar-tip p { font-size: 11px; }

.directory-toolbar { min-height: 98px; align-items: center; }
.directory-toolbar h2 { margin: 7px 0 3px; font-size: 42px; }
.directory-toolbar p { font-size: 13px; }
.toolbar-actions .small-search { min-width: 320px; min-height: 48px; }
.favorites-filter { min-height: 48px; font-size: 13px; }
.random-tool-button {
  min-height: 48px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.random-tool-button:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent), transparent 55%); }
.active-filter { padding: 14px 16px; font-size: 13px; }
.active-filter button { font-size: 12px; }
.tool-category-section { padding-top: 44px; }
.category-section-heading { margin-bottom: 18px; }
.category-symbol { width: 46px; height: 46px; font-size: 16px; }
.category-title h3 { font-size: 23px; }
.category-title p { font-size: 11px; }
.section-expand { padding: 10px 14px; font-size: 12px; }
.category-tool-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.category-tool-grid .card-main {
  min-height: 132px;
  padding: 19px;
  grid-template-columns: 50px 1fr 18px;
  gap: 14px;
}
.category-tool-grid .tool-icon { width: 50px; height: 50px; border-radius: 13px; }
.category-tool-grid .card-title-row h3 { font-size: 15px; }
.category-tool-grid .card-copy p { font-size: 12px; line-height: 1.6; }
.category-tool-grid .card-meta { margin-top: 10px; font-size: 9px; }
.category-tool-grid .favorite-button { right: 13px; bottom: 10px; font-size: 16px; }
.hot-badge {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255,107,61,.1);
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
}

/* Rich detail pages use original summaries and each tool's own brand artwork. */
.detail-page { width: min(1380px, calc(100% - 48px)); }
.detail-breadcrumb { padding: 30px 4px; font-size: 14px; }
.tool-hero {
  padding: 52px;
  grid-template-columns: 118px 1fr auto;
  gap: 34px;
  border-radius: 24px;
}
.detail-icon { width: 118px; height: 118px; border-radius: 25px; }
.eyebrow { flex-wrap: wrap; font-size: 13px; }
.soft-badge { font-size: 11px; }
.tool-hero h1 { font-size: 52px; }
.tool-hero-copy > p { max-width: 760px; font-size: 17px; }
.detail-tags span { padding: 7px 10px; font-size: 11px; }
.visit-button { min-width: 170px; min-height: 52px; }
.tool-hero-actions { display: grid; gap: 10px; }
.tool-hero-actions .primary-button,
.tool-hero-actions .secondary-button { min-width: 178px; min-height: 52px; gap: 8px; }
.app-download-button { background: var(--surface); }
.detail-layout { margin-top: 30px; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; }
.detail-article { padding: 46px; }
.detail-aside { position: sticky; top: 20px; padding: 25px; }
.aside-title { padding: 0 4px 16px; font-size: 18px; font-weight: 800; }
.detail-aside > div:not(.aside-title) { padding: 16px 4px; font-size: 13px; }
.detail-aside > div strong { max-width: 180px; overflow-wrap: anywhere; text-align: right; }
.aside-visit { width: 100%; margin-top: 20px; }
.detail-disclaimer { margin: 17px 3px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.tool-preview {
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 75% 18%, color-mix(in srgb, var(--preview-color), white 58%), transparent 34%),
    linear-gradient(145deg, #f9f7ff, #fff7f1 60%, #f0f8ff);
}
.preview-bar {
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(30, 24, 20, .08);
  background: rgba(255,255,255,.74);
}
.preview-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff8b72; }
.preview-bar i:nth-child(2) { background: #ffd061; }
.preview-bar i:nth-child(3) { background: #67c98b; }
.preview-bar span { margin-left: 10px; color: #81766f; font-size: 12px; }
.preview-canvas {
  min-height: 472px;
  padding: 70px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}
.preview-orbit {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid color-mix(in srgb, var(--preview-color), transparent 72%);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px color-mix(in srgb, var(--preview-color), transparent 94%),
    0 0 0 115px color-mix(in srgb, var(--preview-color), transparent 97%);
}
.preview-logo {
  width: 112px;
  height: 112px;
  z-index: 1;
  border-radius: 26px;
  box-shadow: 0 22px 55px color-mix(in srgb, var(--preview-color), transparent 72%);
}
.preview-logo img { padding: 18px; }
.preview-category {
  z-index: 1;
  margin-top: 24px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: var(--preview-color);
  font-size: 12px;
  font-weight: 800;
}
.preview-canvas h2 { z-index: 1; margin: 14px 0 8px; font-size: 38px; letter-spacing: -.04em; }
.preview-canvas p { z-index: 1; max-width: 620px; margin: 0; color: #716863; font-size: 15px; line-height: 1.9; }
.detail-copy-section { padding: 54px 2px 4px; }
.detail-copy-section h2 { margin: 9px 0 18px; font-size: 31px; letter-spacing: -.035em; }
.detail-copy-section > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 2; }
.feature-list { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; list-style: none; }
.feature-list li { min-height: 125px; padding: 21px; display: flex; gap: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
.feature-list span { color: var(--accent); font-size: 12px; font-weight: 800; }
.feature-list p { margin: 0; font-size: 14px; line-height: 1.75; }
.scene-list { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; }
.scene-list li { padding: 16px 18px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.scene-list span { color: #45a467; font-weight: 800; }
.detail-advice { margin-top: 48px; padding: 30px; border-radius: 17px; background: linear-gradient(135deg, rgba(255,107,61,.08), rgba(121,86,232,.08)); }
.detail-advice h2 { margin-top: 8px; }
body.modal-open { overflow: hidden; }
.app-download-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.app-download-modal[hidden] { display: none; }
.app-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 15, 13, .58);
  backdrop-filter: blur(8px);
  cursor: default;
}
.app-modal-card {
  width: min(590px, 100%);
  max-height: calc(100vh - 40px);
  padding: 30px;
  position: relative;
  z-index: 1;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(15, 10, 8, .3);
}
.app-modal-close {
  width: 38px;
  height: 38px;
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
}
.app-modal-heading { padding-right: 45px; display: flex; align-items: center; gap: 17px; }
.app-modal-heading .detail-icon { width: 66px; height: 66px; flex: none; border-radius: 17px; box-shadow: none; }
.app-modal-heading .detail-icon img { padding: 10px; }
.app-modal-heading h2 { margin: 5px 0 0; font-size: 27px; letter-spacing: -.04em; }
.app-availability-note {
  margin: 22px 0;
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.app-store-section + .app-store-section { margin-top: 23px; }
.app-platform-title { margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.app-platform-title span { font-size: 15px; font-weight: 800; }
.app-platform-title small { color: var(--muted); font-size: 10px; }
.app-store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.app-store-link {
  min-height: 76px;
  padding: 13px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.app-store-link:hover { border-color: color-mix(in srgb, var(--accent), transparent 50%); transform: translateY(-1px); }
.store-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
.yingyongbao .store-mark { background: linear-gradient(135deg, #12b76a, #43d98b); }
.google-play .store-mark { background: linear-gradient(135deg, #4285f4, #34a853); }
.app-store .store-mark { background: linear-gradient(135deg, #252525, #565656); }
.app-store-link > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.app-store-link strong { font-size: 13px; }
.app-store-link small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.app-store-link b { color: var(--muted); font-size: 13px; }
.app-safety-note { margin: 20px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; text-align: center; }
.back-to-top {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 12px 30px rgba(30,20,10,.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: .2s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 62% 38%; padding: 60px 45px; }
  .hero-visual { width: 54%; opacity: .68; }
  .featured-grid { grid-template-columns: repeat(4, minmax(260px, 1fr)); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .category-tool-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .directory-shell { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .directory-hero { padding-inline: 35px; }
  .tool-hero { grid-template-columns: 96px 1fr; }
  .detail-icon { width: 96px; height: 96px; }
  .tool-hero-actions { grid-column: 1 / -1; display: flex; justify-self: start; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 285px; }
  .admin-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero, .category-strip, .featured-section, .discover-section, .detail-page, .admin-page { width: min(100% - 24px, 1420px); }
  .site-header, .directory-hero, .quick-picks, .directory-shell, .category-index, .newsletter, .site-footer { width: 100%; }
  .site-header {
    height: 64px;
    padding: env(safe-area-inset-top) max(13px, env(safe-area-inset-right)) 0 max(13px, env(safe-area-inset-left));
    gap: 10px;
  }
  .top-nav { display: none; }
  .header-actions { gap: 7px; }
  .icon-button { width: 40px; height: 40px; }
  .submit-link { min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; font-size: 11px; }
  .brand { font-size: 18px; }
  .hero { min-height: 560px; padding: 38px 20px 32px; display: block; }
  .hero-copy { z-index: 5; }
  .hero h1 { margin: 21px 0 16px; font-size: 38px; line-height: 1.12; letter-spacing: -.055em; }
  .hero-copy > p { margin-bottom: 22px; font-size: 14px; line-height: 1.75; }
  .hero-visual { width: 100%; height: 43%; top: auto; bottom: 0; opacity: .54; }
  .hero-visual::after { background: linear-gradient(180deg, #fff3ea 0%, transparent 40%); }
  .floating-note { display: none; }
  .directory-hero { min-height: 510px; margin-top: 0; padding: 35px 17px 30px; display: flex; border-radius: 0; }
  .directory-hero h1 { max-width: 350px; margin: 16px auto 13px; font-size: 39px; line-height: 1.12; }
  .directory-hero-copy > p { max-width: 350px; margin-inline: auto; font-size: 13px; line-height: 1.75; }
  .directory-hero .hero-pill { font-size: 12px; }
  .directory-search { height: 56px; }
  .directory-search kbd { display: none; }
  .search-engine-tabs button { min-width: 66px; padding-inline: 10px; }
  .directory-search #hero-search-submit { min-width: 62px; height: 40px; padding: 0 10px; }
  .hero-search-wrap .search-suggestions { top: 111px; }
  .popular-searches {
    margin-inline: -2px;
    padding: 0 2px 4px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    font-size: 12px;
  }
  .popular-searches > span,
  .popular-searches button { flex: none; }
  .hero-stat { display: none; }
  .quick-picks { grid-template-columns: 1fr; padding: 10px 12px; border-radius: 0; }
  .quick-picks-title { display: none; }
  .quick-picks-track { scroll-snap-type: x proximity; overscroll-behavior-inline: contain; }
  .quick-picks-track a { min-width: 142px; padding-inline: 8px; scroll-snap-align: start; }
  .recent-tools { padding: 10px 12px; grid-template-columns: 1fr; }
  .recent-tools .quick-picks-title { display: none; }
  .recent-tools-track a { min-width: 145px; }
  .directory-shell { display: block; margin-top: 18px; padding-inline: 0; }
  .directory-sidebar {
    position: sticky;
    top: 0;
    z-index: 15;
    margin: 0;
    padding: 8px 12px;
    border-inline: 0;
    border-radius: 0;
    box-shadow: 0 8px 22px rgba(40, 28, 20, .07);
  }
  .directory-sidebar .sidebar-heading, .sidebar-tip { display: none; }
  .directory-sidebar nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 12px;
    scrollbar-width: none;
  }
  .directory-sidebar nav a { flex: none; min-height: 42px; padding: 0 13px; display: flex; font-size: 13px; scroll-snap-align: center; }
  .directory-sidebar nav a span { display: none; }
  .directory-sidebar nav a b { margin-left: 3px; }
  .directory-content { padding: 22px 11px 0; }
  .directory-toolbar { display: block; }
  .directory-toolbar h2 { font-size: 30px; }
  .toolbar-actions { width: 100%; margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .toolbar-actions .small-search { min-width: 0; min-height: 48px; grid-column: 1 / -1; }
  .random-tool-button,
  .favorites-filter { min-height: 46px; width: 100%; justify-content: center; padding-inline: 10px; font-size: 12px; }
  .active-filter[hidden],
  .recent-tools[hidden],
  .no-results[hidden] { display: none !important; }
  .active-filter { margin-top: 12px; min-height: 46px; }
  .active-filter button { min-height: 36px; padding-inline: 5px; }
  .tool-category-section { padding-top: 32px; }
  .category-section-heading { align-items: flex-end; }
  .category-title { gap: 8px; }
  .category-symbol { width: 34px; height: 34px; }
  .category-title h3 { font-size: 18px; }
  .section-expand { min-height: 38px; padding: 7px 9px; }
  .tool-grid.category-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .category-tool-grid .card-main {
    min-height: 128px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .category-tool-grid .tool-icon { width: 42px; height: 42px; flex: none; }
  .category-tool-grid .card-copy { width: 100%; min-width: 0; }
  .category-tool-grid .card-title-row h3 { max-width: calc(100% - 22px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
  .category-tool-grid .card-copy p,
  .category-tool-grid .card-arrow,
  .category-tool-grid .price-badge { display: none; }
  .category-tool-grid .card-meta { margin-top: 4px; display: flex; font-size: 9px; }
  .category-tool-grid .card-meta span:last-child { display: none; }
  .category-tool-grid .favorite-button {
    width: 40px;
    height: 40px;
    top: 4px;
    right: 4px;
    bottom: auto;
    display: grid;
    place-items: center;
  }
  .category-tool-grid .tool-card:active { transform: scale(.985); }
  .category-index { margin-top: 64px; padding: 32px 18px; display: block; border-radius: 0; }
  .index-numbers { margin-top: 25px; }
  .index-numbers span { min-width: 0; flex: 1; padding: 13px 8px; }
  .category-strip { margin-top: 15px; }
  .featured-section, .discover-section { margin-top: 78px; }
  .section-heading { align-items: start; }
  .tool-grid:not(.category-tool-grid) { grid-template-columns: 1fr; }
  .filter-row { flex-wrap: wrap; }
  .small-search { order: 3; width: 100%; margin-left: 0; }
  .toolbar-actions .small-search { order: -1; }
  .newsletter { margin-top: 70px; padding: 36px 18px; display: block; border-radius: 0; }
  .newsletter form { margin-top: 25px; }
  .newsletter label { flex-direction: column; }
  .newsletter input { min-height: 44px; }
  .site-footer { padding-inline: 18px; grid-template-columns: 1fr; gap: 22px; }
  .detail-page { width: min(100% - 16px, 1380px); }
  .detail-breadcrumb { padding: 17px 2px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 11px; }
  .tool-hero { padding: 21px; grid-template-columns: 68px 1fr; gap: 15px; border-radius: 22px; }
  .detail-icon { width: 68px; height: 68px; border-radius: 18px; }
  .tool-hero h1 { font-size: 31px; }
  .tool-hero-copy > p { font-size: 14px; }
  .detail-tags { margin-top: 11px; }
  .tool-hero-actions { grid-column: 1 / -1; width: 100%; display: grid; }
  .tool-hero-actions .primary-button,
  .tool-hero-actions .secondary-button { width: 100%; min-height: 50px; }
  .detail-layout { margin-top: 16px; grid-template-columns: 1fr; gap: 16px; }
  .detail-article { padding: 14px; border-radius: 18px; }
  .detail-aside { position: static; padding: 21px; }
  .tool-preview { min-height: 292px; border-radius: 15px; }
  .preview-bar { min-height: 38px; padding-inline: 12px; }
  .preview-canvas { min-height: 252px; padding: 30px 17px; }
  .preview-orbit { width: 205px; height: 205px; }
  .preview-logo { width: 72px; height: 72px; border-radius: 18px; }
  .preview-logo img { padding: 13px; }
  .preview-canvas h2 { font-size: 26px; }
  .preview-canvas p { font-size: 13px; line-height: 1.75; }
  .detail-copy-section { padding-top: 34px; }
  .detail-copy-section h2 { font-size: 24px; }
  .detail-copy-section > p { font-size: 14px; }
  .feature-list, .scene-list { grid-template-columns: 1fr; }
  .feature-list li { min-height: 0; }
  .detail-advice { margin-top: 38px; padding: 22px; }
  .app-download-modal { padding: 10px 10px max(10px, env(safe-area-inset-bottom)); align-items: end; }
  .app-modal-card {
    width: 100%;
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top)));
    padding: 22px 17px max(18px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 22px 22px 12px 12px;
  }
  .app-modal-heading { gap: 13px; }
  .app-modal-heading .detail-icon { width: 56px; height: 56px; border-radius: 14px; }
  .app-modal-heading h2 { font-size: 22px; }
  .app-store-grid { grid-template-columns: 1fr; }
  .app-store-link { min-height: 72px; }
  .related-grid { grid-template-columns: 1fr; }
  .admin-topbar { padding-top: 30px; }
  .admin-list, .admin-form-card, .login-card { padding: 20px; }
  .field-row, .compact-fields { grid-template-columns: 1fr; }
  .back-to-top { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
}

@media (max-width: 370px) {
  .brand-mark { width: 29px; height: 29px; }
  .brand { gap: 8px; font-size: 16px; }
  .submit-link { display: none; }
  .directory-hero h1 { font-size: 35px; }
  .tool-grid.category-tool-grid { gap: 7px; }
  .category-tool-grid .card-main { min-height: 123px; padding: 10px; }
  .category-tool-grid .card-title-row h3 { font-size: 12px; }
}
