:root {
  --bg: #f5f6f8;
  --bg-elevated: #ffffff;
  --bg-subtle: #eceef1;
  --ink: #15171a;
  --ink-soft: #5d626a;
  --ink-faint: #8d929a;
  --line: #dde0e5;
  --accent: #f45b37;
  --accent-dark: #d94524;
  --accent-soft: #fff0eb;
  --green: #168769;
  --blue: #3977d9;
  --yellow: #f2bc45;
  --radius: 14px;
  --radius-small: 9px;
  --shadow: 0 18px 55px rgba(29, 36, 48, 0.08);
  --header-height: 74px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #111315;
  --bg-elevated: #191c1f;
  --bg-subtle: #22262a;
  --ink: #f6f7f8;
  --ink-soft: #b0b5bc;
  --ink-faint: #787f88;
  --line: #2e3339;
  --accent: #ff6945;
  --accent-dark: #ff8264;
  --accent-soft: #34211d;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.logo-shell { position: relative; display: inline-grid; place-items: center; overflow: hidden; flex: 0 0 auto; background: var(--bg-subtle); color: var(--ink-soft); font-size: 12px; font-weight: 850; }
.logo-shell > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.feature-logo { width: 40px; height: 40px; border-radius: 11px; color: #15171a; }
.feature-logo > img { padding: 3px; }
.radar-logo { width: 32px; height: 32px; border-radius: 9px; }
.radar-logo > img { padding: 3px; }
.shortcut-logo { width: 36px; height: 36px; border-radius: 10px; }
.shortcut-logo > img { padding: 4px; }
.suggestion-logo { width: 28px; height: 28px; border-radius: 8px; }
.suggestion-logo > img { padding: 3px; }
.ranking-logo { width: 31px; height: 31px; border-radius: 8px; }
.ranking-logo > img { padding: 3px; }
.model-logo { width: 32px; height: 32px; border-radius: 9px; }
.model-logo > img { padding: 4px; }
.command-logo { width: 34px; height: 34px; border-radius: 9px; }
.command-logo > img { padding: 3px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg-elevated);
  border-radius: var(--radius-small);
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }
.shell { width: min(1420px, calc(100% - 48px)); margin-inline: auto; }
.section-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.section-heading { margin-bottom: 28px; }
.section-heading h2, .dock-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.split-heading > p { max-width: 480px; margin: 0 0 4px; color: var(--ink-soft); line-height: 1.8; }
.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}
.text-button:hover { color: var(--accent); }
.primary-button, .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.primary-button { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.primary-button:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.primary-button:active, .ghost-button:active, .icon-button:active { transform: translateY(1px); }
.ghost-button { border: 1px solid var(--line); background: var(--bg-elevated); }
.ghost-button:hover { border-color: var(--ink-faint); transform: translateY(-1px); }
.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-elevated);
  cursor: pointer;
}
.icon-button:hover { border-color: var(--ink-faint); }

.top-ticker { background: var(--ink); color: var(--bg-elevated); font-size: 13px; }
[data-theme="dark"] .top-ticker { background: #050607; color: #fff; }
.ticker-inner { height: 36px; display: flex; align-items: center; gap: 14px; overflow: hidden; }
.ticker-label { display: inline-flex; gap: 6px; align-items: center; color: #ffb8a7; font-weight: 800; white-space: nowrap; }
.ticker-label::after { content: ""; width: 1px; height: 12px; margin-left: 7px; background: rgba(255,255,255,0.25); }
.ticker-track { position: relative; flex: 1; height: 100%; overflow: hidden; }
.ticker-item { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transform: translateY(12px); transition: 0.45s ease; }
.ticker-item.active { opacity: 1; transform: translateY(0); }
.ticker-more { color: #fff; font-size: 12px; white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px rgba(20,22,26,0.05); }
.header-inner { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { position: relative; width: 38px; height: 38px; border-radius: 11px; background: var(--ink); overflow: hidden; transform: rotate(-2deg); }
.brand-mark::before, .brand-mark::after, .brand-mark span::before, .brand-mark span::after { content: ""; position: absolute; background: var(--bg-elevated); border-radius: 999px; }
.brand-mark::before { width: 18px; height: 4px; left: 9px; top: 9px; transform: rotate(-28deg); }
.brand-mark::after { width: 13px; height: 4px; right: 7px; bottom: 9px; transform: rotate(-28deg); }
.brand-mark span::before { width: 4px; height: 16px; left: 11px; top: 12px; transform: rotate(-28deg); }
.brand-mark span::after { width: 5px; height: 5px; right: 7px; top: 7px; background: var(--accent); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 18px; letter-spacing: -0.04em; }
.brand-copy small { margin-top: 5px; color: var(--ink-faint); font-size: 8px; letter-spacing: 0.13em; font-weight: 800; }
.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav a { position: relative; color: var(--ink-soft); font-size: 14px; font-weight: 650; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--ink); }
.desktop-nav a.active::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.mobile-menu-button { display: none; }
.mobile-nav { display: none; }

.hero-section { position: relative; overflow: hidden; padding: 76px 0 26px; }
.hero-noise { position: absolute; inset: 0; pointer-events: none; opacity: 0.38; background-image: radial-gradient(circle at 14% 8%, rgba(244,91,55,0.11), transparent 25%), radial-gradient(circle at 82% 8%, rgba(42,50,60,0.08), transparent 22%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(390px, 0.65fr); gap: clamp(50px, 7vw, 110px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 24px; padding: 7px 11px; background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 16%, transparent); }
.hero-copy h1 { max-width: 850px; margin: 0; font-size: clamp(48px, 6.6vw, 91px); line-height: 0.99; letter-spacing: -0.072em; font-weight: 780; }
.hero-copy > p { max-width: 660px; margin: 28px 0 30px; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.hero-search { max-width: 760px; border: 1px solid var(--line); border-radius: 17px; background: var(--bg-elevated); box-shadow: var(--shadow); }
.search-mode-row { display: flex; gap: 24px; padding: 13px 20px 0; }
.search-mode { position: relative; border: 0; padding: 0 0 11px; background: transparent; color: var(--ink-faint); font-size: 12px; font-weight: 700; cursor: pointer; }
.search-mode.active { color: var(--ink); }
.search-mode.active::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--accent); }
.search-input-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 14px 15px 14px 20px; border-top: 1px solid var(--line); }
.search-input-row > i { color: var(--ink-faint); font-size: 21px; }
.search-input-row input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.search-input-row input::placeholder { color: var(--ink-faint); }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 3px 7px; background: var(--bg-subtle); color: var(--ink-faint); font-size: 10px; font-family: inherit; }
.search-input-row button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; }
.search-suggestions { display: none; border-top: 1px solid var(--line); padding: 8px; }
.search-suggestions.open { display: block; }
.suggestion-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.suggestion-item:hover { background: var(--bg-subtle); }
.suggestion-item img { width: 28px; height: 28px; border-radius: 8px; }
.suggestion-item small { margin-left: auto; color: var(--ink-faint); }
.popular-searches { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 17px; color: var(--ink-faint); font-size: 12px; }
.popular-searches button { border: 0; padding: 0; background: transparent; color: var(--ink-soft); cursor: pointer; }
.popular-searches button:hover { color: var(--accent); }

.hero-radar { border: 1px solid var(--line); border-radius: 20px; padding: 23px; background: var(--bg-elevated); box-shadow: var(--shadow); transform: rotate(1deg); }
.radar-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.radar-head h2 { margin: 0; font-size: 25px; letter-spacing: -0.04em; }
.date-chip { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-faint); font-size: 10px; }
.radar-feature { margin-top: 22px; padding: 18px; border-radius: 13px; background: var(--ink); color: var(--bg-elevated); }
[data-theme="dark"] .radar-feature { background: #050607; color: #fff; }
.feature-badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; }
.feature-tool { display: flex; align-items: center; gap: 13px; margin: 17px 0 10px; }
.feature-tool img { width: 40px; height: 40px; border-radius: 11px; background: #fff; }
.feature-tool strong { display: block; font-size: 18px; }
.feature-tool span { color: rgba(255,255,255,0.55); font-size: 11px; }
.radar-feature h3 { margin: 0 0 7px; font-size: 18px; }
.radar-feature p { margin: 0; color: rgba(255,255,255,0.65); font-size: 12px; line-height: 1.65; }
.radar-list { margin: 8px 0; }
.radar-item { display: flex; align-items: center; gap: 11px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.radar-item:last-child { border-bottom: 0; }
.radar-item img { width: 32px; height: 32px; border-radius: 9px; background: #fff; }
.radar-item strong { display: block; font-size: 13px; }
.radar-item small { color: var(--ink-faint); font-size: 10px; }
.radar-item span { margin-left: auto; color: var(--accent); font-size: 10px; font-weight: 750; }
.wide-link { width: 100%; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 700; }
.wide-link:hover { border-color: var(--ink-faint); }
.trust-row { position: relative; display: grid; grid-template-columns: repeat(3, 150px) 1fr; align-items: center; gap: 26px; margin-top: 74px; padding: 24px 0; border-top: 1px solid var(--line); }
.trust-row > div:not(.trust-note) { display: flex; align-items: baseline; gap: 8px; }
.trust-row strong { font-size: 25px; letter-spacing: -0.04em; }
.trust-row span { color: var(--ink-faint); font-size: 12px; }
.trust-note { justify-self: end; display: flex; align-items: center; gap: 8px; }
.trust-note i { color: var(--green); font-size: 18px; }

.quick-dock { margin-top: 54px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-elevated); }
.dock-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.dock-head h2 { font-size: 26px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.shortcut-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; padding: 15px 8px 12px; border: 1px solid transparent; border-radius: 12px; background: var(--bg); cursor: pointer; }
.shortcut-item:hover { border-color: var(--line); transform: translateY(-1px); }
.shortcut-item img, .shortcut-fallback { width: 36px; height: 36px; border-radius: 10px; background: #fff; }
.shortcut-fallback { display: grid; place-items: center; background: var(--ink); color: var(--bg-elevated); font-weight: 800; }
.shortcut-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 650; }
.shortcut-remove { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; display: none; border: 0; border-radius: 50%; background: var(--bg-elevated); cursor: pointer; }
.shortcut-item:hover .shortcut-remove { display: grid; place-items: center; }

.task-section { padding: 124px 0 115px; }
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.task-card { position: relative; min-height: 174px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--bg-elevated); cursor: pointer; transition: transform 0.22s, box-shadow 0.22s; }
.task-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.task-card i:first-child { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--bg-subtle); font-size: 21px; }
.task-card h3 { margin: 22px 0 6px; font-size: 18px; letter-spacing: -0.02em; }
.task-card p { margin: 0; color: var(--ink-faint); font-size: 12px; }
.task-arrow { position: absolute; top: 23px; right: 23px; color: var(--ink-faint); }
.task-card.orange { background: var(--accent); color: #fff; border-color: var(--accent); }
.task-card.orange p, .task-card.orange .task-arrow { color: rgba(255,255,255,0.75); }
.task-card.orange i:first-child { background: rgba(255,255,255,0.18); }
.task-card.ink { background: var(--ink); color: var(--bg-elevated); border-color: var(--ink); }
.task-card.ink p, .task-card.ink .task-arrow { color: color-mix(in srgb, var(--bg-elevated) 62%, transparent); }
.task-card.ink i:first-child { background: color-mix(in srgb, var(--bg-elevated) 10%, transparent); }

.directory-section { padding: 94px 0 120px; background: var(--bg-elevated); border-block: 1px solid var(--line); }
.directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.directory-actions { display: flex; gap: 9px; }
.directory-toolbar { display: grid; grid-template-columns: minmax(230px, 0.75fr) minmax(500px, 2fr) auto; gap: 14px; align-items: center; margin: 30px 0; padding: 11px; border: 1px solid var(--line); border-radius: 15px; background: var(--bg); }
.toolbar-search { display: flex; align-items: center; gap: 8px; padding: 0 11px; }
.toolbar-search i { color: var(--ink-faint); }
.toolbar-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.toolbar-filters { display: flex; gap: 4px; overflow-x: auto; }
.toolbar-filters button { min-height: 34px; border: 0; border-radius: 999px; padding: 0 13px; background: transparent; color: var(--ink-soft); font-size: 12px; cursor: pointer; white-space: nowrap; }
.toolbar-filters button.active { background: var(--ink); color: var(--bg-elevated); }
.sort-select { display: flex; align-items: center; gap: 7px; color: var(--ink-faint); font-size: 11px; }
.sort-select select { border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 700; }
.directory-layout { display: grid; grid-template-columns: 196px minmax(0,1fr) 276px; gap: 30px; align-items: start; }
.sidebar-sticky { position: sticky; top: 106px; }
.sidebar-title { display: flex; justify-content: space-between; margin-bottom: 11px; padding: 0 10px; font-size: 12px; font-weight: 800; }
.sidebar-title span { color: var(--ink-faint); }
#categoryNav { display: flex; flex-direction: column; gap: 3px; }
.category-button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 42px; border: 0; border-radius: 10px; padding: 0 11px; background: transparent; color: var(--ink-soft); text-align: left; cursor: pointer; }
.category-button i { width: 20px; color: var(--ink-faint); font-size: 17px; }
.category-button span:last-child { margin-left: auto; color: var(--ink-faint); font-size: 10px; }
.category-button:hover { background: var(--bg); color: var(--ink); }
.category-button.active { background: var(--accent-soft); color: var(--accent); font-weight: 750; }
.category-button.active i { color: var(--accent); }
.sidebar-callout { margin-top: 22px; padding: 17px; border-radius: 13px; background: var(--ink); color: var(--bg-elevated); }
.sidebar-callout > i { color: var(--accent); font-size: 22px; }
.sidebar-callout strong { display: block; margin-top: 15px; font-size: 13px; }
.sidebar-callout p { margin: 5px 0 15px; color: color-mix(in srgb, var(--bg-elevated) 62%, transparent); font-size: 11px; line-height: 1.55; }
.sidebar-callout button { border: 0; padding: 0; background: transparent; color: var(--bg-elevated); font-size: 11px; font-weight: 750; text-decoration: underline; cursor: pointer; }
.results-summary { display: flex; align-items: center; justify-content: space-between; margin: 3px 0 15px; }
.results-summary strong, .results-summary span { display: block; }
.results-summary strong { font-size: 18px; }
.results-summary > div span { margin-top: 4px; color: var(--ink-faint); font-size: 11px; }
.update-time { color: var(--ink-faint); font-size: 10px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.tool-card { position: relative; min-width: 0; display: flex; flex-direction: column; min-height: 230px; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--bg-elevated); cursor: pointer; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.tool-card:hover { border-color: color-mix(in srgb, var(--accent) 44%, var(--line)); transform: translateY(-2px); box-shadow: 0 15px 35px rgba(24,28,36,0.07); }
.tool-card-head { display: flex; align-items: center; gap: 12px; }
.tool-logo { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--line); border-radius: 12px; padding: 5px; background: #fff; object-fit: contain; }
.tool-logo > img { padding: 5px; }
.tool-title { min-width: 0; }
.tool-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.tool-title small { display: flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--ink-faint); font-size: 10px; }
.verified { color: var(--blue); }
.favorite-button { width: 34px; height: 34px; flex: 0 0 34px; margin-left: auto; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink-faint); cursor: pointer; }
.favorite-button.active { background: #fff7df; color: #c38a0b; }
.tool-card > p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; min-height: 60px; margin: 17px 0; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tool-tags span { padding: 5px 7px; border-radius: 6px; background: var(--bg); color: var(--ink-faint); font-size: 9px; }
.tool-meta { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 15px; }
.price-tag { color: var(--green); font-size: 10px; font-weight: 750; }
.price-tag.paid { color: var(--accent); }
.region-tag { color: var(--ink-faint); font-size: 10px; }
.tool-score { margin-left: auto; font-size: 10px; font-weight: 800; }
.tool-score i { color: #d99b14; }
.new-badge { position: absolute; top: 11px; left: -5px; padding: 3px 6px; border-radius: 4px 6px 6px 2px; background: var(--accent); color: #fff; font-size: 8px; font-weight: 800; }
.new-badge::after { content: ""; position: absolute; left: 0; bottom: -4px; border-top: 4px solid var(--accent-dark); border-left: 4px solid transparent; }
.empty-state { padding: 80px 20px; text-align: center; }
.empty-state i { font-size: 42px; color: var(--ink-faint); }
.empty-state h3 { margin: 16px 0 6px; }
.empty-state p { margin: 0 0 20px; color: var(--ink-faint); }
.load-more { width: 100%; min-height: 46px; margin-top: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; font-weight: 700; }
.load-more:hover { border-color: var(--ink-faint); }
.rail-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--bg); }
.rail-card + .rail-card { margin-top: 15px; }
.rail-card-head { display: flex; justify-content: space-between; }
.rail-card-head h3 { margin: 0; font-size: 20px; }
.rail-card-head > i { color: var(--accent); font-size: 25px; }
.ranking-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; margin: 16px 0 8px; padding: 3px; border-radius: 8px; background: var(--bg-subtle); }
.ranking-tabs button { border: 0; border-radius: 6px; padding: 6px; background: transparent; color: var(--ink-faint); font-size: 10px; cursor: pointer; }
.ranking-tabs button.active { background: var(--bg-elevated); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.ranking-list { margin: 0; padding: 0; list-style: none; }
.ranking-item { display: grid; grid-template-columns: 20px 31px 1fr auto; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ranking-item:last-child { border-bottom: 0; }
.ranking-number { color: var(--ink-faint); font-size: 11px; font-weight: 800; }
.ranking-item:nth-child(-n+3) .ranking-number { color: var(--accent); font-size: 14px; }
.ranking-item img { width: 31px; height: 31px; border-radius: 8px; padding: 3px; background: #fff; }
.ranking-item strong { display: block; font-size: 11px; }
.ranking-item small { color: var(--ink-faint); font-size: 9px; }
.trend-up { color: var(--green); font-size: 9px; }
.brief-card { background: var(--accent); color: #fff; border-color: var(--accent); }
.brief-card .section-kicker { color: #ffd7cc; }
.brief-card h3 { margin: 0; font-size: 23px; }
.brief-card p { color: rgba(255,255,255,0.78); font-size: 12px; line-height: 1.65; }
.brief-card form { display: grid; grid-template-columns: 1fr 37px; gap: 6px; margin: 16px 0 9px; padding: 5px; border-radius: 999px; background: #fff; }
.brief-card input { min-width: 0; border: 0; outline: 0; padding-left: 9px; color: #161719; background: transparent; font-size: 11px; }
.brief-card form button { width: 37px; height: 37px; border: 0; border-radius: 50%; background: #17191c; color: #fff; cursor: pointer; }
.brief-card small { color: rgba(255,255,255,0.65); font-size: 9px; }

.insight-section { padding: 125px 0; }
.heading-links { display: flex; flex-wrap: wrap; gap: 9px; }
.heading-links button, .heading-links a { border: 0; border-bottom: 1px solid transparent; padding: 5px 0; background: transparent; color: var(--ink-faint); font-size: 12px; cursor: pointer; }
.heading-links button.active, .heading-links a.active { border-color: var(--accent); color: var(--ink); }
.editorial-grid { display: grid; grid-template-columns: 1.3fr 0.85fr 0.85fr; grid-template-rows: repeat(2, 220px); gap: 13px; }
.article-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--bg-elevated); cursor: pointer; }
.article-card:first-child { grid-row: 1 / 3; background: var(--ink); color: var(--bg-elevated); }
.article-card:nth-child(2) { grid-column: 2 / 4; }
.article-card::before { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -100px; border-radius: 50%; background: var(--accent-soft); opacity: 0.75; }
.article-card:first-child::before { width: 420px; height: 420px; right: -190px; top: -160px; background: var(--accent); opacity: 0.9; }
.article-card > * { position: relative; }
.article-card-link { height: 100%; display: flex; flex-direction: column; color: inherit; }
.article-card-link .article-meta { margin-top: auto; }
.article-type { display: inline-flex; align-self: flex-start; margin-bottom: auto; padding: 5px 8px; border-radius: 999px; background: var(--bg); color: var(--ink-soft); font-size: 9px; font-weight: 750; }
.article-card:first-child .article-type { background: rgba(255,255,255,0.14); color: #fff; }
.article-card h3 { max-width: 560px; margin: 20px 0 8px; font-size: 19px; line-height: 1.35; letter-spacing: -0.025em; }
.article-card:first-child h3 { font-size: clamp(28px,3vw,43px); line-height: 1.12; }
.article-card p { max-width: 550px; margin: 0 0 15px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.article-card:first-child p { color: color-mix(in srgb, var(--bg-elevated) 62%, transparent); font-size: 13px; }
.article-meta { display: flex; justify-content: space-between; color: var(--ink-faint); font-size: 10px; }

.prompt-section { padding: 110px 0; background: var(--ink); color: var(--bg-elevated); }
[data-theme="dark"] .prompt-section { background: #050607; color: #fff; }
.prompt-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 100px; align-items: center; }
.prompt-intro h2 { margin: 0; font-size: clamp(38px,4.4vw,63px); line-height: 1.04; letter-spacing: -0.06em; }
.prompt-intro p { max-width: 520px; margin: 25px 0; color: rgba(255,255,255,0.62); line-height: 1.8; }
.prompt-stack { display: grid; gap: 10px; }
.prompt-card { position: relative; padding: 21px; border: 1px solid rgba(255,255,255,0.13); border-radius: 14px; background: rgba(255,255,255,0.065); transition: transform 0.2s, border-color 0.2s; }
.prompt-card:hover { transform: translateX(-5px); border-color: rgba(255,255,255,0.28); }
.prompt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.prompt-card-head span { color: #ffad99; font-size: 10px; }
.copy-prompt { border: 0; background: transparent; color: rgba(255,255,255,0.58); cursor: pointer; }
.copy-prompt:hover { color: #fff; }
.prompt-card h3 { margin: 11px 0 8px; font-size: 15px; }
.prompt-card p { margin: 0; color: rgba(255,255,255,0.55); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; line-height: 1.65; }

.compare-section { padding: 125px 0; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-elevated); }
.compare-wrap table { width: 100%; min-width: 880px; border-collapse: collapse; }
.compare-wrap th, .compare-wrap td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }
.compare-wrap tr:last-child td { border-bottom: 0; }
.compare-wrap th { background: var(--bg); color: var(--ink-faint); font-size: 10px; letter-spacing: 0.04em; }
.model-cell { display: flex; align-items: center; gap: 10px; }
.model-cell img { width: 32px; height: 32px; border-radius: 9px; padding: 4px; background: #fff; }
.rating-dots { display: flex; gap: 3px; }
.rating-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.rating-dots i.filled { background: var(--accent); }
.compare-link { border: 0; background: transparent; color: var(--accent); cursor: pointer; font-weight: 750; }

.academy-section { padding: 110px 0; background: var(--bg-elevated); border-block: 1px solid var(--line); }
.academy-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(310px,0.55fr); gap: 46px; align-items: start; }
.compact-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.compact-heading h2 { font-size: 38px; }
.course-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.course-card { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--bg); cursor: pointer; }
.course-card:hover { border-color: var(--ink-faint); }
.course-card > i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-elevated); color: var(--accent); font-size: 21px; }
.course-card small { color: var(--accent); font-size: 9px; font-weight: 750; }
.course-card h3 { margin: 5px 0; font-size: 13px; }
.course-card span { color: var(--ink-faint); font-size: 9px; }
.course-card .ri-arrow-right-line { width: auto; height: auto; background: transparent; color: var(--ink-faint); font-size: 15px; }
.knowledge-panel { padding: 27px; border-radius: 16px; background: var(--accent-soft); }
.knowledge-panel h3 { margin: 0; font-size: 23px; }
.wiki-term { display: flex; align-items: baseline; gap: 10px; margin: 40px 0 12px; }
.wiki-term span { font-size: 54px; font-weight: 800; letter-spacing: -0.06em; }
.wiki-term small { color: var(--ink-faint); }
.knowledge-panel > p { color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.wiki-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; }
.wiki-links button, .wiki-links a { border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line)); border-radius: 999px; padding: 7px 10px; background: color-mix(in srgb, var(--bg-elevated) 72%, transparent); color: var(--ink-soft); font-size: 10px; cursor: pointer; }

.library-section { padding: 125px 0; }
.book-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.book-card { min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 21px; background: var(--bg-elevated); cursor: pointer; transition: transform 0.2s; }
.book-card:hover { transform: translateY(-4px); }
.book-cover { position: relative; height: 150px; overflow: hidden; border-radius: 10px; padding: 18px; background: var(--ink); color: var(--bg-elevated); }
.book-cover::after { content: "AI"; position: absolute; right: -4px; bottom: -26px; font-size: 96px; font-weight: 900; opacity: 0.12; }
.book-cover.orange { background: var(--accent); color: #fff; }
.book-cover.blue { background: #2e609f; color: #fff; }
.book-cover.green { background: #1c654f; color: #fff; }
.book-cover span { font-size: 9px; letter-spacing: 0.1em; }
.book-cover strong { display: block; max-width: 180px; margin-top: 38px; font-size: 19px; line-height: 1.1; }
.book-card h3 { margin: 19px 0 6px; font-size: 14px; }
.book-card p { margin: 0; color: var(--ink-faint); font-size: 10px; }

.submit-cta { min-height: 310px; display: flex; align-items: center; justify-content: space-between; gap: 50px; margin-bottom: 110px; padding: 55px; border-radius: 20px; background: var(--ink); color: var(--bg-elevated); }
[data-theme="dark"] .submit-cta { background: #050607; color: #fff; }
.submit-cta h2 { margin: 0; font-size: clamp(35px,4vw,57px); line-height: 1.08; letter-spacing: -0.055em; }
.cta-actions { display: flex; gap: 10px; }
.primary-button.light { background: #fff; border-color: #fff; color: #15171a; }
.ghost-button.on-dark { background: transparent; border-color: rgba(255,255,255,0.23); color: #fff; }

.site-footer { padding: 70px 0 20px; border-top: 1px solid var(--line); background: var(--bg-elevated); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4,1fr); gap: 58px; }
.footer-brand p { max-width: 360px; color: var(--ink-soft); font-size: 12px; line-height: 1.75; }
.footer-grid h3 { margin: 3px 0 18px; font-size: 12px; }
.footer-grid > div:not(.footer-brand) a, .footer-grid > div:not(.footer-brand) button { display: block; margin: 12px 0; border: 0; padding: 0; background: transparent; color: var(--ink-faint); font-size: 11px; text-align: left; cursor: pointer; }
.footer-grid a:hover, .footer-grid button:hover { color: var(--accent) !important; }
.social-row { display: flex; gap: 7px; margin-top: 20px; }
.social-row a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 10px; }
.back-top { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-elevated); box-shadow: var(--shadow); opacity: 0; pointer-events: none; cursor: pointer; transform: translateY(10px); transition: 0.2s; }
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; max-width: calc(100% - 40px); padding: 12px 17px; border-radius: 999px; background: var(--ink); color: var(--bg-elevated); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: 0.22s; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 199; background: rgba(9,11,14,0.42); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.tool-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 200; width: min(510px,100%); overflow-y: auto; padding: 34px; background: var(--bg-elevated); box-shadow: -20px 0 60px rgba(0,0,0,0.16); transform: translateX(102%); transition: transform 0.3s cubic-bezier(.2,.8,.2,1); }
.tool-drawer.open { transform: translateX(0); }
.drawer-close { position: sticky; top: 0; z-index: 2; float: right; }
.drawer-hero { padding-top: 68px; }
.drawer-logo { width: 74px; height: 74px; border: 1px solid var(--line); border-radius: 18px; padding: 9px; background: #fff; }
.drawer-logo > img { padding: 9px; }
.drawer-title-row { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.drawer-title-row h2 { margin: 0; font-size: 36px; letter-spacing: -0.05em; }
.drawer-title-row i { color: var(--blue); }
.drawer-category { display: inline-flex; margin-top: 10px; padding: 5px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 750; }
.drawer-summary { margin: 22px 0; color: var(--ink-soft); line-height: 1.75; }
.drawer-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.drawer-actions a { min-height: 48px; }
.drawer-section { margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--line); }
.drawer-section h3 { margin: 0 0 15px; font-size: 14px; }
.drawer-feature-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.drawer-feature-list li { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 12px; }
.drawer-feature-list i { color: var(--green); }
.drawer-meta-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.drawer-meta-grid div { padding: 14px; border-radius: 10px; background: var(--bg); }
.drawer-meta-grid small, .drawer-meta-grid strong { display: block; }
.drawer-meta-grid small { color: var(--ink-faint); font-size: 9px; }
.drawer-meta-grid strong { margin-top: 6px; font-size: 12px; }

.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(9,11,14,0.55); backdrop-filter: blur(5px); }
.modal-card { position: relative; width: min(560px,100%); max-height: calc(100dvh - 40px); overflow-y: auto; border-radius: 18px; padding: 34px; background: var(--bg-elevated); box-shadow: 0 30px 90px rgba(0,0,0,0.24); transform: translateY(15px) scale(0.985); transition: transform 0.22s; }
.modal.open .modal-card { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 18px; right: 18px; }
.modal-card h2 { margin: 0; font-size: 32px; letter-spacing: -0.045em; }
.modal-card > p { margin: 10px 0 24px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.stack-form { display: grid; gap: 15px; }
.stack-form label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.stack-form input, .stack-form select, .stack-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; outline: 0; background: var(--bg); color: var(--ink); font-size: 12px; }
.stack-form textarea { min-height: 90px; resize: vertical; }
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.login-card { width: min(430px,100%); text-align: center; }
.login-mark { margin: 0 auto 18px; }
.login-card .stack-form { margin-top: 24px; text-align: left; }
.login-card > small { display: block; margin-top: 16px; color: var(--ink-faint); font-size: 9px; }
.code-field { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.code-field button { border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--bg-elevated); cursor: pointer; font-size: 10px; }
.small-modal { width: min(440px,100%); }
.category-modal-card { width: min(920px,100%); }
.category-map { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin-top: 28px; }
.map-group { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); }
.map-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; }
.map-group h3 i { color: var(--accent); }
.map-items { display: flex; flex-wrap: wrap; gap: 6px; }
.map-items button, .map-items a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px; background: var(--bg-elevated); color: var(--ink-soft); font-size: 9px; cursor: pointer; }
.map-items button:hover, .map-items a:hover { border-color: var(--accent); color: var(--accent); }

.command-palette { position: fixed; inset: 0; z-index: 350; display: grid; align-items: start; justify-items: center; padding: 13vh 20px 20px; opacity: 0; pointer-events: none; transition: opacity 0.18s; }
.command-palette.open { opacity: 1; pointer-events: auto; }
.command-backdrop { position: absolute; inset: 0; background: rgba(9,11,14,0.58); backdrop-filter: blur(4px); }
.command-panel { position: relative; width: min(660px,100%); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-elevated); box-shadow: 0 30px 90px rgba(0,0,0,0.3); }
.command-input { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.command-input i { color: var(--ink-faint); font-size: 20px; }
.command-input input { border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.command-results { max-height: 430px; overflow-y: auto; padding: 8px; }
.command-group-label { padding: 9px 10px 6px; color: var(--ink-faint); font-size: 9px; font-weight: 800; letter-spacing: 0.08em; }
.command-item { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; border: 0; border-radius: 10px; padding: 10px; background: transparent; text-align: left; cursor: pointer; }
.command-item:hover, .command-item.active { background: var(--bg); }
.command-item img { width: 34px; height: 34px; border-radius: 9px; padding: 3px; background: #fff; }
.command-item strong { display: block; font-size: 12px; }
.command-item span { color: var(--ink-faint); font-size: 10px; }
.command-item > small { color: var(--ink-faint); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1220px) {
  .desktop-nav { gap: 17px; }
  .desktop-nav a { font-size: 12px; }
  .directory-layout { grid-template-columns: 175px minmax(0,1fr); }
  .ranking-rail { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 15px; }
  .ranking-rail .rail-card + .rail-card { margin-top: 0; }
  .ranking-list { display: grid; grid-template-columns: repeat(2,1fr); column-gap: 22px; }
  .shortcut-grid { grid-template-columns: repeat(6,1fr); }
}

@media (max-width: 980px) {
  .shell { width: min(100% - 32px, 820px); }
  .desktop-nav, .desktop-only { display: none; }
  .mobile-menu-button { display: inline-grid; }
  .mobile-nav.open { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; padding: 10px 16px 18px; border-top: 1px solid var(--line); background: var(--bg-elevated); }
  .mobile-nav a, .mobile-nav button { border: 0; border-radius: 9px; padding: 12px; background: var(--bg); color: var(--ink-soft); text-align: left; font-size: 12px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 760px; }
  .hero-radar { max-width: 620px; transform: none; }
  .trust-row { grid-template-columns: repeat(3,1fr); }
  .trust-note { grid-column: 1/-1; justify-self: start; }
  .shortcut-grid { grid-template-columns: repeat(4,1fr); }
  .task-grid { grid-template-columns: repeat(2,1fr); }
  .directory-toolbar { grid-template-columns: 1fr; }
  .sort-select { padding: 0 11px 5px; }
  .directory-layout { grid-template-columns: 1fr; }
  .category-sidebar { overflow-x: auto; }
  .sidebar-sticky { position: static; min-width: max-content; }
  .sidebar-title, .sidebar-callout { display: none; }
  #categoryNav { flex-direction: row; padding-bottom: 8px; }
  .category-button { width: auto; min-width: auto; border: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
  .category-button span:last-child { margin-left: 5px; }
  .ranking-rail { grid-column: auto; }
  .prompt-layout { grid-template-columns: 1fr; gap: 50px; }
  .academy-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 2fr repeat(2,1fr); }
  .footer-brand { grid-row: span 2; }
}

@media (max-width: 700px) {
  :root { --header-height: 64px; }
  .shell { width: min(100% - 24px, 620px); }
  .ticker-more { display: none; }
  .hero-section { padding-top: 52px; }
  .hero-copy h1 { font-size: clamp(44px,14vw,63px); line-height: 1.01; }
  .hero-copy > p { font-size: 15px; }
  .search-input-row { grid-template-columns: auto 1fr auto; }
  .search-input-row kbd { display: none; }
  .trust-row { grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 46px; }
  .trust-row > div:not(.trust-note) { flex-direction: column; gap: 2px; }
  .quick-dock { margin-top: 28px; padding: 20px; }
  .dock-head { align-items: start; }
  .dock-head .text-button { font-size: 0; }
  .dock-head .text-button i { font-size: 21px; }
  .shortcut-grid { grid-template-columns: repeat(4,1fr); gap: 7px; }
  .shortcut-item { padding-inline: 4px; }
  .task-section, .insight-section, .compare-section, .library-section { padding-block: 84px; }
  .split-heading, .directory-heading { align-items: start; flex-direction: column; gap: 18px; }
  .task-grid, .tool-grid, .course-grid { grid-template-columns: 1fr; }
  .directory-section { padding-block: 76px; }
  .directory-actions { width: 100%; }
  .directory-actions .ghost-button { flex: 1; padding-inline: 11px; }
  .toolbar-filters { padding-bottom: 3px; }
  .ranking-rail { grid-template-columns: 1fr; }
  .ranking-rail .rail-card + .rail-card { margin-top: 0; }
  .ranking-list { grid-template-columns: 1fr; }
  .editorial-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .article-card, .article-card:first-child, .article-card:nth-child(2) { grid-column: auto; grid-row: auto; min-height: 240px; }
  .article-card:first-child { min-height: 390px; }
  .prompt-section { padding-block: 84px; }
  .prompt-intro h2 { font-size: 42px; }
  .book-grid { grid-template-columns: 1fr; }
  .submit-cta { align-items: flex-start; flex-direction: column; margin-bottom: 70px; padding: 34px 25px; }
  .cta-actions { width: 100%; flex-direction: column; }
  .category-map { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2,1fr); gap: 35px; }
  .footer-brand { grid-column: 1/-1; grid-row: auto; }
  .footer-bottom { flex-direction: column; }
  .tool-drawer { padding: 24px; }
}

@media (max-width: 430px) {
  .brand-copy small { display: none; }
  .shortcut-grid { grid-template-columns: repeat(3,1fr); }
  .search-mode-row { gap: 17px; }
  .hero-search { border-radius: 14px; }
  .hero-radar { padding: 18px; }
  .modal-card { padding: 28px 21px; }
  .directory-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
