:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --text: #111827;
  --text-secondary: #374151;
  --muted: #5b6472;
  --subtle: #eef1f5;
  --border: #dce2ea;
  --border-strong: #c7d0dc;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-border: #93b4f6;
  --brand-gold: #a66f18;
  --brand-gold-soft: #fff8e6;
  --ok: #087a60;
  --ok-soft: #f1faf5;
  --ok-border: #bbdfcc;
  --danger: #b42318;
  --danger-soft: #fff3f2;
  --danger-border: #f2b8b5;
  --warn-bg: #fff7ed;
  --warn-border: #fed7aa;
  --warn-text: #9a3412;
  --focus-ring: rgba(37, 99, 235, 0.26);
  --shadow-tool: 0 18px 44px rgba(15, 23, 42, 0.08);
  --shadow-raised: 0 10px 24px rgba(15, 23, 42, 0.07);
  --font-page-title: 42px;
  --font-section-title: 26px;
  --font-card-title: 17px;
  --motion-fast: 150ms;
  --page-gutter: max(16px, calc((100% - 1080px) / 2));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  letter-spacing: 0;
}

.site-header,
.site-footer {
  background: var(--surface);
  border-color: var(--border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid var(--border);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark svg {
  display: block;
  width: 42px;
  height: 42px;
  overflow: visible;
}

.mark-aura {
  fill: rgba(201, 151, 62, 0.34);
  filter: blur(2px);
  animation: goldBreath 3.4s ease-in-out infinite;
}

.gold-mark-bg {
  stroke: rgba(255, 239, 181, 0.82);
  stroke-width: 1.1;
}

.gold-mark-path {
  fill: none;
  stroke: #fff7d6;
  stroke-width: 3.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gold-mark-dot {
  fill: #fff2b8;
  stroke: #5d3d14;
  stroke-width: 1.1;
}

.dot-b {
  animation: goldDot 3.4s ease-in-out infinite;
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand-text span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

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

.nav a:hover,
.footer-links a:hover,
.inline-link {
  color: var(--accent);
}

.nav a,
.footer-links a,
.inline-link {
  border-radius: 3px;
}

.site-footer {
  margin-top: 56px;
  padding: 28px var(--page-gutter);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.footer-brand .brand-mark svg {
  width: 34px;
  height: 34px;
}

.footer-brand .brand-text strong {
  font-size: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}

.footer-icp {
  margin: 14px 0 0;
  font-size: 13px;
}

.footer-icp a:hover {
  color: var(--accent);
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 70px 0 42px;
  text-align: center;
}

.search-hero {
  padding-top: 58px;
  padding-bottom: 38px;
}

.hero-kicker {
  margin-bottom: 10px;
  color: var(--brand-gold);
  font-size: 14px;
  font-weight: 750;
}

.hero h1 {
  margin: 0;
  font-size: var(--font-page-title);
  line-height: 1.16;
  letter-spacing: 0;
}

.hero p {
  width: min(720px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-actions.compact-actions {
  justify-content: flex-start;
  margin-top: 16px;
}

.ai-chat {
  width: min(840px, 100%);
  margin: 26px auto 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-tool);
  text-align: left;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.ai-chat-form input {
  min-width: 0;
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.ai-chat-form input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.ai-chat-form .button {
  min-width: 112px;
  min-height: 54px;
  font-size: 16px;
}

.ai-chat-form .button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.query-examples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 8px 4px;
  color: var(--muted);
  font-size: 13px;
}

.example-query {
  padding: 5px 9px;
  border: 0;
  border-radius: 5px;
  background: var(--subtle);
  color: #465267;
  font: inherit;
  cursor: pointer;
}

.example-query:hover {
  background: #e2e8f2;
  color: var(--text);
}

.example-query:focus-visible,
.hero-secondary a:focus-visible {
  outline-color: var(--focus-ring);
}

.ai-chat-result {
  margin-top: 8px;
  padding: 0 8px 4px;
  color: var(--muted);
  font-size: 14px;
}

.search-progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.search-progress::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  animation: searchPulse 1.2s ease-in-out infinite;
}

.hero-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  color: #536174;
  font-size: 13px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  content: "";
}

.hero-secondary {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}

.hero-secondary a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-answer {
  padding: 14px;
  border: 1px solid #dbeafe;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #f8fbff;
  color: #172033;
}

.chat-answer.source-local-cache,
.chat-answer.source-local-entry {
  border-left-color: var(--ok);
}

.chat-answer.source-local-infer,
.chat-answer.source-deepseek {
  border-left-color: var(--brand-gold);
}

.chat-answer.source-no-match {
  border-left-color: #64748b;
}

.chat-answer.error {
  border-color: var(--danger-border);
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.chat-result-status {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.status-chip.collected {
  border-color: var(--ok-border);
  background: var(--ok-soft);
  color: #166534;
}

.status-chip.review,
.status-chip.needs-info {
  border-color: #ead6ac;
  background: #fff9eb;
  color: #8a4b0f;
}

.chat-result-heading {
  max-width: 720px;
}

.chat-answer-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.chat-answer h3 {
  margin: 4px 0 6px;
  font-size: 18px;
}

.chat-answer p {
  margin: 0;
  color: #38506f;
}

.chat-result-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #dce5f0;
}

.chat-result-section h4,
.chat-missing h4 {
  margin: 0;
  color: #334155;
  font-size: 13px;
}

.chat-answer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 12px 0 0;
}

.chat-answer-meta div {
  display: grid;
  gap: 2px;
}

.chat-answer-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.chat-answer-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.chat-source-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.chat-source-row > div {
  display: grid;
  gap: 3px;
}

.chat-source-row span,
.chat-source-row small {
  color: var(--muted);
  font-size: 12px;
}

.chat-source-row strong {
  color: var(--text);
  font-size: 14px;
}

.chat-missing {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid #d89b32;
  background: #fff9eb;
}

.chat-missing ul {
  display: grid;
  gap: 8px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.chat-missing li {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
}

.chat-missing li strong {
  color: #713f12;
  font-size: 13px;
}

.chat-missing li span,
.chat-service-note {
  color: #71552b;
  font-size: 13px;
}

.chat-answer .chat-service-note {
  margin-top: 12px;
  padding: 9px 11px;
  background: #f1f5f9;
  color: #475569;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease, color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.button:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

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

.button.primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.section {
  padding: 28px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section h2 {
  margin: 0;
  font-size: var(--font-section-title);
  line-height: 1.25;
}

.section-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.entry-card,
.article-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.card,
.article-card {
  display: block;
  padding: 18px;
}

.card,
.entry-card,
.article-card {
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.card:hover,
.article-card:hover,
.entry-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-raised);
}

.card h3,
.entry-card h3 {
  margin: 0;
  font-size: var(--font-card-title);
  line-height: 1.35;
}

.card p,
.entry-card p,
.article-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card span {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}

.entry-card {
  padding: 18px;
}

.entry-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.entry-card-actions .feedback-trigger {
  font-size: 13px;
}

.meta-list {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.meta-row strong {
  color: var(--text);
}

.entry-check-text {
  color: var(--warn-text);
}

.entry-check-text.healthy {
  color: var(--ok);
}

.entry-check-text.unchecked {
  color: var(--muted);
}

.recent-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.recent-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

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

.recent-scroll {
  display: grid;
  grid-auto-columns: minmax(230px, 280px);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
}

.recent-card {
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  scroll-snap-align: start;
}

.recent-logo {
  display: grid;
  width: 100%;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-subtle);
}

.recent-logo img {
  max-width: 96px;
  max-height: 26px;
  object-fit: contain;
}

.recent-card strong {
  font-size: 16px;
}

.recent-card span {
  color: var(--muted);
  font-size: 13px;
}

.muted {
  color: var(--muted);
}

.trust-band {
  margin-top: 32px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.notice {
  padding: 18px 22px 4px;
}

.notice:first-child {
  padding-left: 0;
}

.notice + .notice {
  border-left: 1px solid var(--border);
}

.notice h3 {
  margin: 0;
  font-size: 17px;
}

.notice p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.trust-band h2,
.related h2 {
  margin: 0;
  font-size: var(--font-section-title);
  line-height: 1.25;
}

.article-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 34px;
}

.breadcrumb {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.article-shell {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 20px 0 0;
}

.article-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-category {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 750;
}

.article-header h1 {
  margin: 0;
  font-size: var(--font-page-title);
  line-height: 1.18;
}

.article-header p {
  margin: 14px 0 0;
  color: var(--muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.article-body {
  margin-top: 26px;
}

.article-body h2 {
  margin-top: 32px;
  font-size: 24px;
}

.article-body h3 {
  margin-top: 24px;
  font-size: 18px;
}

.article-body p,
.article-body li {
  color: var(--text-secondary);
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
}

.related {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.warning-box {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--warn-border);
  border-radius: 8px;
  background: var(--warn-bg);
  color: var(--warn-text);
}

.problems-page {
  padding-bottom: 52px;
}

.problems-hero {
  padding-top: 42px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}

.problems-hero h1 {
  max-width: 760px;
  margin: 10px 0 0;
  font-size: var(--font-page-title);
  line-height: 1.18;
}

.problems-hero > p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.problem-search-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: min(720px, 100%);
  min-height: 52px;
  margin-top: 24px;
  padding: 0 14px 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.problem-search-wrap:focus-within {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.problem-search-wrap input {
  min-width: 0;
  height: 50px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  outline: none;
}

.problem-featured-section {
  padding-top: 38px;
}

.problem-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(150px, auto));
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.problem-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 0 20px 26px;
}

.problem-feature.lead {
  grid-row: 1 / 3;
  justify-content: center;
  padding: 34px 34px 34px 0;
  border-right: 1px solid var(--border);
}

.problem-feature:not(.lead):last-child {
  border-top: 1px solid var(--border);
}

.problem-feature > span,
.problem-row-meta span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.problem-feature h3 {
  margin: 9px 0 0;
  font-size: 20px;
  line-height: 1.4;
}

.problem-feature.lead h3 {
  font-size: 29px;
  line-height: 1.3;
}

.problem-feature p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.problem-feature b {
  margin-top: 16px;
  color: var(--accent);
  font-size: 13px;
}

.problem-feature:hover h3,
.problem-row > a:hover h3 {
  color: var(--accent-strong);
}

.problems-directory {
  padding-top: 42px;
}

.problem-filter-bar {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
  align-items: end;
  gap: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-strong);
}

.problem-filter-bar h2,
.problems-sidebar h2 {
  margin: 0;
  font-size: var(--font-section-title);
}

.problem-filter-bar .filter-row {
  justify-content: flex-end;
  margin-top: 0;
}

.problems-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  margin-top: 8px;
}

.problem-list {
  border-top: 0;
}

.problem-row {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.problem-row-meta {
  display: flex;
  gap: 12px;
}

.problem-row-meta span + span {
  color: var(--muted);
  font-weight: 600;
}

.problem-row h3 {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.42;
}

.problem-row > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.problem-row-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.problem-row-foot a {
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
}

.problem-empty {
  padding: 42px 0;
  border-bottom: 1px solid var(--border);
}

.problem-empty p {
  margin: 8px 0 0;
  color: var(--muted);
}

.problems-sidebar {
  align-self: start;
  position: sticky;
  top: 24px;
  padding-top: 24px;
}

.problems-sidebar nav {
  margin-top: 14px;
  border-top: 1px solid var(--border-strong);
}

.problems-sidebar nav a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.problems-sidebar nav span {
  color: var(--muted);
  font-size: 12px;
}

.problems-sidebar nav strong {
  font-size: 14px;
  line-height: 1.45;
}

.problems-sidebar nav a:hover strong {
  color: var(--accent-strong);
}

.sidebar-official-link {
  display: block;
  margin-top: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.home-knowledge-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.home-knowledge-list a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 5px 12px;
  padding: 20px 22px;
}

.home-knowledge-list a:first-child {
  padding-left: 0;
}

.home-knowledge-list a + a {
  border-left: 1px solid var(--border);
}

.home-knowledge-list span {
  grid-row: 1 / 3;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.home-knowledge-list strong {
  font-size: 16px;
}

.home-knowledge-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.home-knowledge-list a:hover strong {
  color: var(--accent-strong);
}

.knowledge-page {
  padding-bottom: 54px;
}

.knowledge-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.6fr);
  gap: 64px;
  padding-top: 42px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--border);
}

.knowledge-hero h1 {
  max-width: 760px;
  margin: 10px 0 0;
  font-size: var(--font-page-title);
  line-height: 1.18;
}

.knowledge-hero-copy > p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.knowledge-search-wrap {
  width: 100%;
}

.knowledge-path {
  align-self: end;
  padding: 4px 0 4px 24px;
  border-left: 1px solid var(--border-strong);
}

.knowledge-path ol {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.knowledge-path li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.knowledge-path li > span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.knowledge-path strong {
  font-size: 14px;
}

.knowledge-path p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.knowledge-start {
  padding-top: 38px;
}

.knowledge-start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.knowledge-start-grid a {
  padding: 22px 24px 24px;
}

.knowledge-start-grid a:first-child {
  padding-left: 0;
}

.knowledge-start-grid a + a {
  border-left: 1px solid var(--border);
}

.knowledge-start-grid span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.knowledge-start-grid h3 {
  margin: 9px 0 0;
  font-size: 19px;
  line-height: 1.4;
}

.knowledge-start-grid p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.knowledge-start-grid a:hover h3 {
  color: var(--accent-strong);
}

.knowledge-library {
  padding-top: 46px;
}

.knowledge-library-head {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: end;
  gap: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-strong);
}

.knowledge-library-head h2 {
  margin-top: 6px;
}

.knowledge-library-head .filter-row {
  justify-content: flex-end;
  margin: 0;
}

.knowledge-results {
  display: grid;
}

.knowledge-chapter {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 36px;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--border-strong);
}

.knowledge-chapter > header {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-content: start;
  gap: 10px;
}

.knowledge-chapter > header > span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.knowledge-chapter > header h3 {
  margin: 0;
  font-size: 18px;
}

.knowledge-chapter > header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.knowledge-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 190px;
  padding: 4px 0 22px;
  border-bottom: 1px solid var(--border);
}

.knowledge-card > div {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.knowledge-card > div span {
  color: var(--accent-strong);
  font-weight: 750;
}

.knowledge-card > div b {
  font-weight: 500;
}

.knowledge-card h3 {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.42;
}

.knowledge-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.knowledge-card > strong {
  margin-top: auto;
  padding-top: 14px;
  color: var(--accent);
  font-size: 13px;
}

.knowledge-card:hover h3 {
  color: var(--accent-strong);
}

.chat-answer.error p {
  color: var(--danger);
}

.legal-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 10px;
}

.legal-page h1 {
  font-size: var(--font-page-title);
  line-height: 1.16;
}

.legal-page section {
  margin-top: 26px;
}

.brand-detail-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 12px;
}

.brand-breadcrumb {
  margin-bottom: 18px;
}

.brand-detail-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 12px 0 38px;
  border-bottom: 1px solid var(--border);
}

.brand-detail-logo {
  display: grid;
  min-height: 184px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.brand-detail-logo img {
  max-width: 168px;
  max-height: 82px;
  object-fit: contain;
}

.brand-detail-hero h1 {
  margin: 9px 0 0;
  font-size: var(--font-page-title);
  line-height: 1.12;
}

.brand-detail-hero p {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--muted);
}

.brand-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.brand-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.brand-hero-meta div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.brand-hero-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.brand-hero-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.panel-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.brand-detail-page .panel-label {
  color: var(--brand-gold);
}

.brand-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 54px;
  padding: 42px 0;
  border-bottom: 1px solid var(--border);
}

.brand-advice h2,
.brand-content-section h2,
.brand-process h2 {
  margin: 7px 0 0;
  font-size: var(--font-section-title);
  line-height: 1.25;
}

.brand-advice p {
  max-width: 700px;
  margin: 15px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.brand-quick-facts {
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.brand-quick-facts div {
  display: grid;
  gap: 5px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}

.brand-quick-facts div:first-child {
  padding-top: 0;
  border-top: 0;
}

.brand-quick-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.brand-quick-facts strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.brand-content-section {
  padding: 38px 0;
  border-bottom: 1px solid var(--border);
}

.brand-reading-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  margin-top: 16px;
}

.brand-reading-columns p {
  margin: 0;
  color: #445166;
  line-height: 1.8;
}

.brand-process {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 52px;
  margin: 0 -24px;
  padding: 38px 24px;
  border-bottom: 1px solid #dbe3ec;
  background: var(--surface-subtle);
}

.brand-process p {
  margin: 10px 0 0;
  color: var(--muted);
}

.brand-step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: brand-step;
}

.brand-step-list li {
  position: relative;
  min-height: 46px;
  padding: 11px 0 11px 46px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.55;
  counter-increment: brand-step;
}

.brand-step-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.brand-step-list li::before {
  position: absolute;
  top: 9px;
  left: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  content: counter(brand-step);
  font-size: 12px;
  font-weight: 800;
}

.brand-step-list li:first-child::before {
  top: -2px;
}

.brand-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
}

.brand-guide-list a {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 17px 34px 17px 0;
  border-top: 1px solid var(--border);
}

.brand-guide-list a:hover strong {
  color: var(--accent);
}

.brand-guide-list strong {
  color: var(--text);
  font-size: 16px;
}

.brand-guide-list span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.brand-guide-list b {
  position: absolute;
  top: 18px;
  right: 4px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
}

.brand-category-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
}

.brand-category-links a {
  display: grid;
  gap: 5px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.brand-category-links a:hover strong {
  color: var(--accent);
}

.brand-category-links strong {
  font-size: 16px;
}

.brand-category-links span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.brand-related-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.category-page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 10px;
}

.category-hero {
  padding: 12px 0 38px;
  border-bottom: 1px solid var(--border);
}

.category-label {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.category-hero h1 {
  max-width: 820px;
  margin: 8px 0 0;
  font-size: var(--font-page-title);
  line-height: 1.16;
}

.category-hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.category-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.category-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.category-section:last-child {
  border-bottom: 0;
}

.category-section h2 {
  margin: 0;
  font-size: var(--font-section-title);
  line-height: 1.25;
}

.brand-wall.category-brand-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.category-issue {
  min-height: 190px;
}

.category-guide {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.category-guide h2 {
  margin-top: 7px;
}

.category-steps {
  counter-reset: category-step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-steps li {
  position: relative;
  min-height: 54px;
  padding: 14px 0 14px 50px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  counter-increment: category-step;
}

.category-steps li:first-child {
  border-top: 0;
  padding-top: 4px;
}

.category-steps li::before {
  position: absolute;
  top: 11px;
  left: 0;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  content: counter(category-step);
  font-size: 13px;
  font-weight: 750;
}

.category-steps li:first-child::before {
  top: 1px;
}

.directory-hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: end;
  padding: 48px 0 20px;
}

.directory-hero h1 {
  margin: 0;
  font-size: var(--font-page-title);
  line-height: 1.14;
}

.directory-hero p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
}

.directory-search {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.directory-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.directory-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 12px;
  font: inherit;
  outline: none;
}

.directory-search input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.brands-page {
  padding-bottom: 54px;
}

.brands-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
  padding-top: 42px;
  padding-bottom: 34px;
}

.brands-hero h1 {
  max-width: 760px;
  margin: 10px 0 0;
  font-size: var(--font-page-title);
  line-height: 1.18;
}

.brands-hero-copy > p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.brands-summary {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.brands-summary strong {
  color: var(--text-secondary);
  font-size: 17px;
}

.brands-search {
  display: grid;
  gap: 8px;
}

.brands-search label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
}

.brands-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.brands-search input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.brands-filter-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.brands-toolbar {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brands-toolbar h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.brands-toolbar p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.brands-category-nav {
  justify-content: flex-end;
  margin-top: 0;
}

.brands-results-section {
  padding-top: 34px;
}

.brands-directory-groups {
  display: grid;
  gap: 38px;
}

.brands-group {
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.brands-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.brands-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.brands-group-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.brands-group-head span {
  color: var(--muted);
  font-size: 13px;
}

.section .brand-wall.brands-directory-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.brands-directory-grid .brand-tile {
  grid-template-rows: 62px minmax(58px, auto);
  min-width: 0;
  height: 100%;
  min-height: 148px;
  padding: 13px;
}

.brands-directory-grid .brand-logo-surface {
  min-width: 0;
  min-height: 62px;
}

.brands-directory-grid .brand-tile-body {
  grid-template-rows: minmax(22px, auto) minmax(34px, auto);
  align-content: start;
  min-width: 0;
}

.brands-directory-grid .brand-tile-body strong,
.brands-directory-grid .brand-tile-body span {
  overflow-wrap: anywhere;
}

.brands-empty {
  display: grid;
  gap: 4px;
}

.brands-empty strong {
  color: var(--text-secondary);
}

.news-page {
  padding-bottom: 56px;
}

.news-hero {
  padding-top: 42px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}

.news-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
  margin-top: 10px;
}

.news-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: var(--font-page-title);
  line-height: 1.18;
}

.news-hero p {
  max-width: 740px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.news-search-wrap {
  display: grid;
  gap: 8px;
}

.news-search-wrap label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
}

.news-search-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.news-search-wrap input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.news-featured-section {
  padding-top: 34px;
}

.news-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 14px;
}

.news-featured-grid .news-card.lead {
  grid-row: span 2;
  grid-template-columns: 1fr;
}

.news-featured-grid .news-card.lead .news-card-visual {
  min-height: 142px;
}

.news-filter-band {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.news-filter-toolbar {
  padding-top: 18px;
  padding-bottom: 18px;
}

.news-filter-toolbar .filter-row {
  margin-top: 0;
}

.news-library-section {
  padding-top: 32px;
}

.news-list,
.brand-news-list,
.news-related-grid {
  display: grid;
  gap: 14px;
}

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

.news-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-width: 0;
  min-height: 166px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color var(--motion-fast) ease, transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.news-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-raised);
}

.news-card-visual {
  display: grid;
  min-width: 0;
  min-height: 100%;
  place-items: center;
  border-right: 1px solid var(--border);
  background: var(--surface-subtle);
}

.news-card-visual img {
  display: block;
  width: min(92px, 76%);
  max-height: 42px;
  object-fit: contain;
}

.news-card-visual.category {
  align-content: center;
  gap: 5px;
  background: #172033;
  color: #fff;
}

.news-card-visual.category strong {
  color: #f8d56b;
  font-size: 24px;
  line-height: 1;
}

.news-card-visual.category span {
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
}

.news-card-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 16px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.news-card-meta b {
  color: var(--accent-strong);
  font-weight: 700;
}

.news-card-copy > strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card-summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card-source {
  color: var(--muted);
  font-size: 12px;
}

.brand-news-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-article-page {
  padding-bottom: 64px;
}

.news-article-page > .article-breadcrumb,
.news-article-shell {
  width: min(900px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.news-article-page > .article-breadcrumb {
  padding-top: 42px;
}

.news-article-shell {
  max-width: 900px;
  padding: 34px 0 0;
}

.news-article-header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.news-article-header h1 {
  margin: 12px 0 0;
  font-size: 38px;
  line-height: 1.28;
}

.news-article-header > p {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.8;
}

.news-article-body {
  padding-top: 28px;
}

.news-article-body section + section {
  margin-top: 28px;
}

.news-article-body h2,
.news-related h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
}

.news-article-body section p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.85;
}

.news-source-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.news-source-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.news-source-box strong {
  display: block;
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 17px;
}

.news-source-box p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.news-related {
  margin-top: 40px;
}

.news-related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.compact-section {
  padding-top: 18px;
  padding-bottom: 18px;
}

.directory-results-section {
  padding-top: 22px;
}

.result-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.result-tools > span {
  padding: 6px 10px;
  border-radius: 5px;
  background: var(--subtle);
}

.text-button {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.load-more-row {
  display: flex;
  justify-content: center;
  min-height: 42px;
  margin-top: 20px;
}

.directory-brand-section {
  margin-top: 10px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.filter-row,
.brand-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-button,
.brand-chip {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.filter-button {
  padding: 8px 12px;
  font-size: 14px;
}

.filter-button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.brand-chip {
  display: inline-grid;
  gap: 2px;
  min-width: 128px;
  padding: 10px 12px;
  text-align: left;
}

.home-brand-wall .brand-chip {
  min-width: 142px;
}

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

.brand-chip span {
  color: var(--muted);
  font-size: 12px;
}

.brand-chip:hover,
.filter-button:hover {
  border-color: var(--accent-border);
}

.home-brand-wall,
.section .brand-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.related-brands-section .brand-related-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brand-related-wall .brand-tile {
  grid-template-rows: 82px minmax(64px, auto);
  min-width: 0;
  height: 100%;
}

.brand-related-wall .brand-logo-surface {
  width: 100%;
  min-width: 0;
  min-height: 82px;
}

.brand-related-wall .brand-tile-body {
  grid-template-rows: minmax(24px, auto) minmax(36px, auto);
  align-content: start;
  min-width: 0;
}

.brand-related-wall .brand-tile-body strong,
.brand-related-wall .brand-tile-body span {
  overflow-wrap: anywhere;
}

.brand-tile {
  display: grid;
  gap: 12px;
  min-height: 138px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--motion-fast) ease, transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.brand-tile[hidden] {
  display: none;
}

.brand-tile:hover {
  transform: translateY(-1px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-raised);
}

.brand-logo-surface {
  display: grid;
  min-height: 54px;
  place-items: center;
  border: 1px solid #e8edf5;
  border-radius: 7px;
  background: var(--surface-subtle);
}

.brand-logo-img {
  display: block;
  max-width: 104px;
  max-height: 30px;
  object-fit: contain;
}

.brand-logo-text {
  display: none;
  max-width: 100%;
  overflow: hidden;
  color: #172033;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-tile-body {
  display: grid;
  gap: 4px;
  text-align: center;
}

.brand-tile-body strong {
  font-size: 17px;
  line-height: 1.25;
}

.brand-tile-body span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.redirect-shell {
  text-align: center;
}

.redirect-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.redirect-target {
  display: inline-grid;
  gap: 4px;
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  text-align: left;
}

.redirect-target span {
  color: var(--muted);
  font-size: 13px;
}

.redirect-target strong {
  font-size: 16px;
}

.redirect-check {
  display: grid;
  gap: 4px;
  width: min(520px, 100%);
  margin: 16px auto 0;
  padding: 14px 0;
  border-top: 1px solid var(--warn-border);
  border-bottom: 1px solid var(--warn-border);
  color: var(--warn-text);
  text-align: left;
}

.redirect-check.healthy {
  border-color: var(--ok-border);
  color: var(--ok);
}

.redirect-check.unchecked {
  border-color: var(--border);
  color: var(--muted);
}

.redirect-check span,
.redirect-check p {
  font-size: 13px;
}

.redirect-check p {
  margin: 0;
  color: var(--muted);
}

.countdown {
  margin: 22px 0 0;
  color: var(--muted);
}

.countdown strong {
  color: var(--accent);
  font-size: 24px;
}

.countdown span {
  font-size: 14px;
}

.feedback-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.feedback-dialog::backdrop {
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(2px);
}

.feedback-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.feedback-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.feedback-dialog-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.3;
}

.feedback-dialog-close {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.feedback-dialog-close:hover {
  border-color: var(--border);
  background: var(--surface-subtle);
  color: var(--text);
}

.feedback-target {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text-secondary);
  font-size: 14px;
}

.feedback-field {
  display: grid;
  gap: 7px;
}

.feedback-field label {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.feedback-field label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.feedback-field select,
.feedback-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

.feedback-field select {
  min-height: 44px;
  padding: 0 12px;
}

.feedback-field textarea {
  min-height: 104px;
  padding: 10px 12px;
  resize: vertical;
}

.feedback-field select:hover,
.feedback-field textarea:hover {
  border-color: var(--accent-border);
}

.feedback-privacy {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.feedback-status {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-size: 14px;
}

.feedback-status:empty {
  display: none;
}

.feedback-status.success {
  border-color: var(--ok-border);
  background: var(--ok-soft);
  color: var(--ok);
}

.feedback-status.duplicate {
  border-color: var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
}

.feedback-status.error {
  border-color: var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger);
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

body.admin-mode {
  background: #f4f6f9;
}

.admin-mode .site-footer {
  margin-top: 0;
}

.admin-header-nav {
  align-items: center;
}

.admin-login-page,
.admin-loading {
  display: grid;
  min-height: calc(100vh - 180px);
  padding: 48px 16px;
  place-items: center;
}

.admin-login-shell {
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-tool);
}

.admin-login-shell h1 {
  margin: 5px 0 24px;
  font-size: 28px;
  line-height: 1.25;
}

.admin-login-form {
  display: grid;
  gap: 10px;
}

.admin-login-form label,
.admin-dialog-form > label,
.admin-form-grid label {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.admin-login-form input,
.admin-filter-tools input,
.admin-filter-tools select,
.admin-dialog-form input,
.admin-dialog-form select,
.admin-dialog-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

.admin-dialog-form textarea {
  min-height: 104px;
  padding: 10px 12px;
  resize: vertical;
}

.admin-login-form input:focus,
.admin-filter-tools input:focus,
.admin-filter-tools select:focus,
.admin-dialog-form input:focus,
.admin-dialog-form select:focus,
.admin-dialog-form textarea:focus {
  border-color: var(--accent-border);
  outline: 3px solid var(--focus-ring);
  outline-offset: 0;
}

.admin-login-form .button {
  margin-top: 6px;
}

.admin-form-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-form-status.error {
  color: var(--danger);
}

.admin-workspace {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 0;
  width: min(1440px, 100%);
  min-height: calc(100vh - 65px);
  margin: 0 auto;
}

.admin-sidebar {
  position: sticky;
  top: 65px;
  display: flex;
  height: calc(100vh - 65px);
  padding: 28px 20px;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.admin-sidebar h1 {
  margin: 4px 0 0;
  font-size: 23px;
  line-height: 1.25;
}

.admin-view-nav {
  display: grid;
  gap: 5px;
  margin-top: 28px;
}

.admin-view-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
}

.admin-view-nav button:hover {
  background: var(--surface-subtle);
}

.admin-view-nav button.active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 750;
}

.admin-view-nav button span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  place-items: center;
  border-radius: 12px;
  background: var(--subtle);
  font-size: 12px;
}

.admin-view-nav button.active span {
  background: #dbeafe;
}

.admin-logout {
  align-self: flex-start;
  margin-top: auto;
}

.admin-main {
  min-width: 0;
  padding: 30px clamp(20px, 3vw, 42px) 56px;
}

.admin-topbar,
.admin-panel-head,
.admin-row-heading,
.admin-row-actions,
.admin-dialog-head,
.admin-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-topbar h2 {
  margin: 3px 0 0;
  font-size: 28px;
  line-height: 1.2;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.admin-kpis > div {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 17px 18px;
  align-content: center;
}

.admin-kpis > div + div {
  border-left: 1px solid var(--border);
}

.admin-kpis span {
  color: var(--muted);
  font-size: 13px;
}

.admin-kpis strong {
  font-size: 27px;
  line-height: 1.1;
}

.admin-notice {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-notice.success {
  color: var(--ok);
}

.admin-notice.error {
  color: var(--danger);
}

.admin-panel {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.admin-panel[hidden] {
  display: none;
}

.admin-panel-head {
  align-items: flex-end;
  padding: 24px 0 18px;
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 22px;
}

.admin-panel-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-filter-tools {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 130px;
  gap: 8px;
}

.admin-list {
  border-top: 1px solid var(--border);
}

.admin-list-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.admin-row-heading {
  align-items: flex-start;
}

.admin-row-heading > div {
  min-width: 0;
}

.admin-row-heading h3,
.admin-zero-row h3 {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.4;
}

.admin-status {
  display: inline-flex;
  min-height: 24px;
  padding: 2px 8px;
  align-items: center;
  border: 1px solid var(--warn-border);
  border-radius: 4px;
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 12px;
  font-weight: 750;
}

.admin-status.verified,
.admin-status.resolved,
.admin-status.acknowledged,
.admin-status.normal,
.admin-status.redirected,
.admin-status.healthy,
.admin-status.covered {
  border-color: var(--ok-border);
  background: var(--ok-soft);
  color: var(--ok);
}

.admin-status.rejected,
.admin-status.dismissed,
.admin-status.not_found,
.admin-status.invalid,
.admin-status.download,
.admin-status.needs_update,
.admin-status.source_issue {
  border-color: var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger);
}

.admin-status.merged,
.admin-status.unchecked {
  border-color: var(--border);
  background: var(--subtle);
  color: var(--muted);
}

.admin-status.planned {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.admin-status.overdue,
.admin-status.due_soon {
  border-color: var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
}

.admin-count {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 13px;
}

.admin-row-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 16px 0 0;
}

.admin-row-meta div {
  min-width: 0;
}

.admin-row-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.admin-row-meta dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 650;
}

.admin-row-summary,
.admin-merge-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-merge-note {
  color: var(--brand-gold);
}

.admin-row-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 15px;
  gap: 8px;
}

.admin-row-actions .button {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
}

.danger-text {
  color: var(--danger);
}

.admin-empty {
  padding: 32px 0;
  color: var(--muted);
  text-align: center;
}

.admin-audit-list {
  border-top: 1px solid var(--border);
}

.admin-audit-row {
  display: grid;
  grid-template-columns: 56px 110px minmax(0, 1fr) 190px;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.admin-audit-row span,
.admin-audit-row time {
  color: var(--muted);
}

.admin-audit-row code {
  overflow: hidden;
  color: var(--text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.admin-dialog::backdrop {
  background: rgba(17, 24, 39, 0.5);
}

.admin-merge-dialog {
  width: min(520px, calc(100% - 32px));
}

.admin-dialog-form {
  display: grid;
  gap: 15px;
  padding: 24px;
}

.admin-dialog-head {
  align-items: flex-start;
}

.admin-dialog-head h2 {
  margin: 0;
  font-size: 22px;
}

.admin-dialog-head button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 25px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-dialog-actions {
  justify-content: flex-end;
  margin-top: 4px;
}

.admin-analytics-panel {
  background: transparent;
}

.admin-range-control {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-subtle);
}

.admin-range-control button {
  min-width: 62px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.admin-range-control button:hover {
  color: var(--text);
}

.admin-range-control button.active {
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.admin-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.admin-analytics-kpis > div {
  display: grid;
  min-height: 112px;
  padding: 18px 20px;
  align-content: center;
  border-bottom: 1px solid var(--border);
}

.admin-analytics-kpis > div:not(:nth-child(3n + 1)) {
  border-left: 1px solid var(--border);
}

.admin-analytics-kpis > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.admin-analytics-kpis span,
.admin-analytics-kpis small {
  color: var(--muted);
  font-size: 12px;
}

.admin-analytics-kpis strong {
  margin: 5px 0;
  font-size: 27px;
  line-height: 1.1;
}

.admin-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.admin-analytics-grid-wide {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
}

.admin-data-block {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.admin-data-block-head {
  min-height: 48px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.admin-data-block-head h3 {
  margin: 0;
  font-size: 17px;
}

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

.admin-trend-list {
  display: grid;
  gap: 8px;
  max-height: 430px;
  margin-top: 16px;
  overflow: auto;
}

.admin-trend-row {
  display: grid;
  grid-template-columns: 44px minmax(80px, 1fr) 34px minmax(145px, auto);
  gap: 10px;
  align-items: center;
  min-height: 28px;
  font-size: 12px;
}

.admin-trend-row time,
.admin-trend-row small {
  color: var(--muted);
}

.admin-trend-row span {
  color: var(--text-secondary);
  font-weight: 750;
  text-align: right;
}

.admin-trend-row progress,
.admin-source-row progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: var(--subtle);
}

.admin-trend-row progress::-webkit-progress-bar,
.admin-source-row progress::-webkit-progress-bar {
  background: var(--subtle);
}

.admin-trend-row progress::-webkit-progress-value,
.admin-source-row progress::-webkit-progress-value {
  border-radius: 4px;
  background: var(--accent);
}

.admin-trend-row progress::-moz-progress-bar,
.admin-source-row progress::-moz-progress-bar {
  border-radius: 4px;
  background: var(--accent);
}

.admin-source-list {
  display: grid;
  gap: 17px;
  margin-top: 17px;
}

.admin-source-row {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 7px 10px;
  align-items: center;
}

.admin-source-row > div {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.admin-source-row > div span,
.admin-source-row small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.admin-ranking-list {
  margin-top: 6px;
}

.admin-ranking-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--border);
}

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

.admin-ranking-row > span {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.admin-ranking-row > div {
  display: grid;
  min-width: 0;
}

.admin-ranking-row strong {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ranking-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.admin-ranking-row b {
  color: var(--accent-strong);
  font-size: 12px;
}

.admin-ranking-row.warning b {
  color: var(--warn-text);
}

.admin-ai-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 8px 0 0;
}

.admin-ai-metrics div {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.admin-ai-metrics div:nth-child(odd) {
  padding-right: 16px;
}

.admin-ai-metrics div:nth-child(even) {
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.admin-ai-metrics div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.admin-ai-metrics dt {
  color: var(--muted);
  font-size: 12px;
}

.admin-ai-metrics dd {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
  font-weight: 750;
}

@media (max-width: 820px) {
  :root {
    --font-page-title: 34px;
    --font-section-title: 24px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px var(--page-gutter);
  }

  .nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .grid.three,
  .grid.two,
  .trust-items,
  .directory-hero,
  .home-brand-wall,
  .section .brand-wall,
  .brand-detail-hero,
  .brand-overview,
  .brand-reading-columns,
  .brand-process,
  .brand-guide-list,
  .brand-category-links,
  .brand-related-wall,
  .brand-wall.category-brand-wall,
  .category-guide {
    grid-template-columns: 1fr;
  }

  .trust-items {
    border-top: 0;
  }

  .notice,
  .notice:first-child {
    padding: 16px 0;
    border-top: 1px solid var(--border);
  }

  .notice + .notice {
    border-left: 0;
  }

  .section-head,
  .recent-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 44px;
  }

  .ai-chat-form {
    grid-template-columns: 1fr;
  }

  .search-hero {
    padding-top: 38px;
  }

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

  .hero p {
    font-size: 16px;
  }

  .ai-chat {
    padding: 8px;
  }

  .query-examples {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-source-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .chat-missing li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .chat-answer .compact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-answer .compact-actions .button {
    width: 100%;
  }

  .example-query {
    width: 100%;
    text-align: left;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: repeat(2, max-content);
  }

  .hero-secondary {
    align-items: center;
    flex-direction: column;
    gap: 8px;
  }

  .brand-detail-page {
    padding-top: 22px;
  }

  .brand-detail-hero {
    gap: 14px;
    padding-bottom: 30px;
  }

  .brand-detail-logo {
    min-height: 96px;
  }

  .brand-detail-logo img {
    max-width: 136px;
    max-height: 54px;
  }

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

  .brand-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-detail-actions .button {
    width: 100%;
  }

  .brand-detail-actions .feedback-button {
    grid-column: 1 / -1;
  }

  .brand-hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }

  .brand-hero-meta div:nth-child(2) {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .brand-hero-meta div:nth-child(3) {
    grid-row: 1;
    grid-column: 2;
  }

  .brand-overview {
    gap: 28px;
    padding: 32px 0;
  }

  .brand-quick-facts {
    padding: 18px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .brand-content-section {
    padding: 32px 0;
  }

  .brand-reading-columns,
  .brand-guide-list,
  .brand-category-links {
    gap: 0;
  }

  .brand-process {
    gap: 24px;
    margin: 0 -16px;
    padding: 32px 16px;
  }

  .brand-advice h2,
  .brand-content-section h2,
  .brand-process h2 {
    font-size: 24px;
  }

  .category-page {
    padding-top: 26px;
  }

  .category-hero {
    padding-bottom: 30px;
  }

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

  .category-hero p {
    font-size: 16px;
  }

  .category-guide {
    gap: 22px;
  }

  .directory-filter-section .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -16px;
    padding-right: 16px;
    padding-bottom: 9px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .directory-filter-section .filter-row::-webkit-scrollbar {
    display: none;
  }

  .directory-filter-section .filter-button {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .brands-hero,
  .brands-toolbar {
    grid-template-columns: 1fr;
  }

  .brands-hero {
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

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

  .brands-toolbar {
    gap: 16px;
  }

  .brands-category-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-right: -16px;
    padding-right: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .brands-category-nav::-webkit-scrollbar {
    display: none;
  }

  .brands-category-nav .filter-button {
    flex: 0 0 auto;
  }

  .section .brand-wall.brands-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brands-directory-groups {
    gap: 30px;
  }

  .brands-directory-grid .brand-tile {
    min-height: 140px;
    padding: 11px;
  }

  .news-hero-layout,
  .news-featured-grid,
  .news-list,
  .brand-news-list,
  .news-related-grid {
    grid-template-columns: 1fr;
  }

  .news-hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .news-article-page > .article-breadcrumb {
    padding-top: 28px;
  }

  .news-hero-layout {
    gap: 24px;
  }

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

  .news-filter-toolbar .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -16px;
    padding-right: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .news-filter-toolbar .filter-row::-webkit-scrollbar {
    display: none;
  }

  .news-filter-toolbar .filter-button {
    flex: 0 0 auto;
  }

  .news-featured-grid .news-card.lead {
    grid-row: auto;
  }

  .news-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .news-card-copy {
    padding: 13px;
  }

  .news-article-shell {
    padding-top: 24px;
  }

  .news-article-header h1 {
    font-size: 31px;
  }

  .news-source-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .problems-hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }

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

  .problem-featured-grid,
  .problem-filter-bar,
  .problems-layout {
    grid-template-columns: 1fr;
  }

  .problem-featured-grid {
    display: block;
  }

  .problem-feature,
  .problem-feature.lead {
    padding: 22px 0;
    border-right: 0;
    border-top: 1px solid var(--border);
  }

  .problem-feature.lead {
    border-top: 0;
  }

  .problem-feature.lead h3 {
    font-size: 24px;
  }

  .problem-filter-bar {
    align-items: start;
    gap: 18px;
  }

  .problem-filter-bar .filter-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-right: -16px;
    padding-right: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .problem-filter-bar .filter-button {
    flex: 0 0 auto;
  }

  .problems-layout {
    gap: 26px;
  }

  .problems-sidebar {
    position: static;
    padding-top: 0;
  }

  .related-brands-section .brand-related-wall {
    grid-template-columns: 1fr;
  }

  .home-knowledge-list,
  .knowledge-hero,
  .knowledge-start-grid,
  .knowledge-library-head,
  .knowledge-chapter,
  .knowledge-card-grid {
    grid-template-columns: 1fr;
  }

  .home-knowledge-list a,
  .home-knowledge-list a:first-child {
    padding: 18px 0;
  }

  .home-knowledge-list a + a,
  .knowledge-start-grid a + a {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .knowledge-hero {
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 30px;
  }

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

  .knowledge-path {
    padding: 20px 0 0;
    border-top: 1px solid var(--border-strong);
    border-left: 0;
  }

  .knowledge-start-grid a,
  .knowledge-start-grid a:first-child {
    padding: 20px 0;
  }

  .knowledge-library-head {
    align-items: start;
    gap: 18px;
  }

  .knowledge-library-head .filter-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-right: -16px;
    padding-right: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .knowledge-library-head .filter-button {
    flex: 0 0 auto;
  }

  .knowledge-chapter {
    gap: 20px;
    padding: 26px 0;
  }

  .knowledge-card {
    min-height: 0;
    padding: 16px 0 20px;
  }

  .result-tools {
    align-items: flex-start;
  }

  .feedback-form {
    gap: 16px;
    padding: 20px 18px;
  }

  .feedback-dialog-head h2 {
    font-size: 20px;
  }

  .feedback-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .feedback-actions .button {
    width: 100%;
  }

  .admin-workspace {
    display: block;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    padding: 18px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .admin-sidebar > div,
  .admin-logout {
    display: none;
  }

  .admin-view-nav {
    display: flex;
    gap: 6px;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
  }

  .admin-view-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-view-nav button {
    flex: 0 0 auto;
  }

  .admin-main {
    padding: 22px 16px 40px;
  }

  .admin-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .admin-kpis > div + div {
    border-left: 0;
  }

  .admin-kpis > div:nth-child(even) {
    border-left: 1px solid var(--border);
  }

  .admin-kpis > div:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .admin-kpis > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .admin-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-range-control {
    align-self: flex-start;
  }

  .admin-analytics-kpis,
  .admin-analytics-grid,
  .admin-analytics-grid-wide {
    grid-template-columns: 1fr;
  }

  .admin-analytics-kpis > div,
  .admin-analytics-kpis > div:not(:nth-child(3n + 1)),
  .admin-analytics-kpis > div:nth-last-child(-n + 3) {
    border: 0;
    border-bottom: 1px solid var(--border);
  }

  .admin-analytics-kpis > div:last-child {
    border-bottom: 0;
  }

  .admin-trend-row {
    grid-template-columns: 42px minmax(60px, 1fr) 30px;
  }

  .admin-trend-row small {
    display: none;
  }

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

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

  .admin-audit-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .admin-audit-row code,
  .admin-audit-row time {
    grid-column: 1 / -1;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

.admin-content-filters {
  grid-template-columns: minmax(210px, 270px) 125px 115px;
}

.admin-health-filters {
  grid-template-columns: minmax(210px, 270px) 125px 115px;
}

.admin-content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-priority,
.admin-content-kind,
.admin-draft-status {
  display: inline-flex;
  min-height: 24px;
  padding: 2px 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-draft-status.generated {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.admin-draft-status.edited {
  border-color: var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
}

.admin-draft-status.published {
  border-color: var(--ok-border);
  background: var(--ok-soft);
  color: var(--ok);
}

.admin-priority.high {
  border-color: var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger);
}

.admin-priority.medium {
  border-color: var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
}

.admin-opportunity-score {
  display: grid;
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 22px;
  line-height: 1;
  text-align: right;
}

.admin-health-score {
  display: grid;
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  text-align: right;
}

.admin-health-score span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.admin-health-reason {
  margin: 13px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 650;
}

.admin-opportunity-score span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.admin-content-query,
.admin-content-aliases,
.admin-content-coverage,
.admin-content-gap {
  margin: 13px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.admin-draft-dialog {
  width: min(900px, calc(100% - 32px));
}

.admin-draft-form {
  gap: 17px;
}

.admin-draft-source {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text-secondary);
  font-size: 13px;
}

.admin-draft-actions {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
}

.admin-status.revision-draft {
  border-color: var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
}

.admin-revision-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 18px;
  padding: 14px 0;
  border-block: 1px solid var(--border);
}

.admin-revision-source > div:first-child {
  display: grid;
  align-content: start;
  gap: 6px;
}

.admin-revision-source span,
.admin-revision-history > strong {
  color: var(--muted);
  font-size: 12px;
}

.admin-revision-source code {
  overflow-wrap: anywhere;
  color: var(--text-secondary);
  font-size: 12px;
}

.admin-revision-history {
  padding-left: 18px;
  border-left: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
}

.admin-revision-history ol,
.admin-revision-history p {
  margin: 7px 0 0;
  padding-left: 18px;
}

.admin-revision-diff-dialog {
  width: min(1000px, calc(100% - 32px));
}

.admin-revision-diff-list {
  display: grid;
}

.admin-revision-diff-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.admin-revision-diff-item:first-child {
  border-top: 1px solid var(--border);
}

.admin-revision-diff-item h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.admin-revision-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-revision-diff-grid > div {
  min-width: 0;
  padding: 12px;
  border-left: 3px solid var(--border-strong);
  background: var(--surface-subtle);
}

.admin-revision-diff-grid > .revised {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.admin-revision-diff-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.admin-revision-diff-grid p,
.admin-revision-diff-grid ol,
.admin-revision-diff-grid dl {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.admin-revision-diff-grid ol {
  padding-left: 20px;
}

.admin-revision-diff-grid dl div + div {
  margin-top: 8px;
}

.admin-revision-diff-grid dt {
  font-weight: 750;
}

.admin-revision-diff-grid dd {
  margin: 2px 0 0;
}

.admin-publish-confirmation {
  padding: 13px 15px;
  border-left: 3px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
}

.admin-publish-confirmation p {
  margin: 4px 0 0;
  font-size: 13px;
}

.admin-content-aliases {
  color: var(--muted);
}

.admin-content-coverage,
.admin-content-gap {
  padding: 10px 12px;
  border-left: 3px solid var(--ok);
  background: var(--ok-soft);
}

.admin-content-gap {
  border-left-color: var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
}

@media (max-width: 820px) {
  .admin-content-filters,
  .admin-health-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .admin-content-row .admin-row-heading,
  .admin-health-row .admin-row-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-opportunity-score {
    display: flex;
    gap: 7px;
    align-items: baseline;
    text-align: left;
  }

  .admin-opportunity-score span {
    margin: 0;
  }

  .admin-health-score {
    display: flex;
    gap: 7px;
    align-items: baseline;
    text-align: left;
  }

  .admin-health-score span {
    margin: 0;
  }

  .admin-draft-actions {
    grid-template-columns: 1fr 1fr;
  }

  .admin-draft-actions span {
    display: none;
  }

  .admin-draft-actions .button,
  .admin-draft-actions .text-button {
    width: 100%;
  }

  .admin-revision-source,
  .admin-revision-diff-grid {
    grid-template-columns: 1fr;
  }

  .admin-revision-history {
    padding: 12px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}

@keyframes goldBreath {
  0%,
  100% {
    opacity: 0.64;
  }

  50% {
    opacity: 1;
  }
}

@keyframes goldDot {
  0%,
  100% {
    r: 2.35px;
    opacity: 0.86;
  }

  50% {
    r: 2.85px;
    opacity: 1;
  }
}

@keyframes searchPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

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

  .mark-aura,
  .dot-b,
  .search-progress::before {
    animation: none;
  }
}
