:root {
  --ink: #202522;
  --muted: #69736c;
  --paper: #fffaf3;
  --surface: #ffffff;
  --wash: #f4efe7;
  --line: #e3dbd0;
  --green: #4f7f67;
  --green-deep: #24513e;
  --mint: #e4f0e8;
  --coral: #df735b;
  --coral-soft: #f9e2da;
  --mustard: #efb84a;
  --blue: #416d8b;
  --shadow: 0 18px 48px rgba(31, 37, 34, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
    sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

button,
select,
input {
  border-radius: 8px;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(227, 219, 208, 0.82);
  background: rgba(255, 250, 243, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  font-size: 1.18rem;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.96rem;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--green-deep);
}

.header-action,
.primary-button,
.join-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  background: var(--green-deep);
  color: #fff;
  font-weight: 750;
  white-space: nowrap;
}

.header-action:hover,
.primary-button:hover,
.join-form button:hover {
  background: #193f30;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 74px) clamp(18px, 4vw, 34px) clamp(20px, 4vw, 40px);
}

.intro-copy h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.25rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.intro-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-signal {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.brand-signal img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.brand-signal strong {
  display: block;
  font-size: 1.45rem;
}

.brand-signal span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.finder-shell {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  max-width: calc(var(--max) + 64px);
  margin: 0 auto;
  padding: 16px clamp(14px, 3vw, 32px) clamp(40px, 6vw, 78px);
}

.filter-panel,
.results-panel,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(31, 37, 34, 0.08);
}

.filter-panel,
.detail-panel {
  position: sticky;
  top: 84px;
  align-self: start;
}

.filter-panel {
  padding: 18px;
}

.panel-heading h2,
.results-toolbar h2,
.section-heading h2,
.join-copy h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.field,
.join-form label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.field span,
.join-form label span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.field input,
.field select,
.toolbar-controls select,
.join-form input,
.join-form select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.toolbar-controls select:focus,
.join-form input:focus,
.join-form select:focus {
  outline: 3px solid rgba(79, 127, 103, 0.22);
  border-color: var(--green);
}

.segmented {
  display: grid;
  gap: 8px;
}

.segmented button,
.secondary-button,
.chip,
.provider-card button,
.provider-card .provider-actions a,
.detail-actions a,
.compare-bar button,
.article-list a {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.segmented button {
  padding: 8px 10px;
  text-align: left;
}

.segmented button.active,
.chip.active {
  border-color: var(--green-deep);
  background: var(--mint);
  color: var(--green-deep);
}

.secondary-button {
  width: 100%;
  margin-top: 18px;
  background: var(--wash);
}

.results-panel {
  min-width: 0;
  padding: 18px;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

#resultCount {
  min-width: 54px;
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.city-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  padding: 0 12px;
}

.provider-list {
  display: grid;
  gap: 12px;
}

.provider-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.provider-card.is-active {
  border-color: var(--green);
  box-shadow: inset 4px 0 0 var(--green);
}

.provider-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.provider-card h3 a {
  color: var(--green-deep);
}

.provider-meta,
.provider-tags,
.provider-actions,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.provider-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.92rem;
}

.provider-tags,
.detail-tags {
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--wash);
  color: #4b514c;
  font-size: 0.84rem;
  font-weight: 700;
}

.tag.important {
  background: var(--coral-soft);
  color: #8d3c2f;
}

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

.provider-actions {
  margin-top: 14px;
}

.provider-card button,
.provider-card .provider-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.provider-score {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #f5f7f4;
  color: var(--green-deep);
  font-weight: 850;
}

.provider-score span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.detail-panel {
  padding: 18px;
}

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

.detail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.detail-panel h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.detail-panel p {
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-list span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.detail-list strong {
  font-size: 0.98rem;
}

.detail-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.detail-actions a:first-child {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #fff;
}

.content-band {
  padding: clamp(42px, 7vw, 84px) clamp(18px, 4vw, 34px);
}

.service-band,
.join-band {
  background: #fff;
}

.articles-band {
  background: var(--wash);
}

.source-band {
  background: #fff;
}

.section-heading,
.join-band {
  max-width: var(--max);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.section-heading p:not(.eyebrow) {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
}

.service-grid,
.article-list,
.pillar-grid,
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
}

.pillar-grid,
.source-grid {
  margin-bottom: 18px;
}

.service-grid article,
.article-list article,
.pillar-grid article,
.source-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-grid strong,
.article-list h3,
.pillar-grid strong,
.source-grid strong {
  display: block;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.service-grid p,
.article-list p,
.pillar-grid p,
.source-grid p {
  margin: 8px 0 0;
  color: var(--muted);
}

.article-list span,
.pillar-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.article-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 12px;
}

.topic-library {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.topic-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.topic-toolbar h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: 0;
}

#topicCount {
  color: var(--green-deep);
  font-weight: 850;
  white-space: nowrap;
}

.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.topic-filters button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
}

.topic-filters button.active {
  border-color: var(--green-deep);
  background: var(--mint);
  color: var(--green-deep);
}

.article-list article small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.topic-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.join-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(24px, 6vw, 88px);
  align-items: start;
}

.join-copy p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 10px 12px;
  border-left: 4px solid var(--mustard);
  background: #fff8e7;
  border-radius: 0 8px 8px 0;
  font-weight: 750;
}

.join-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.join-form button {
  width: 100%;
  margin-top: 18px;
}

#formMessage {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--green-deep);
  font-weight: 750;
}

.empty-state {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

.compare-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.compare-bar[hidden] {
  display: none;
}

.compare-bar button {
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px clamp(18px, 4vw, 44px);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.site-footer p {
  max-width: 650px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.domain-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-content: flex-start;
}

.domain-list span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
}

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

.generated-header {
  position: sticky;
}

.seo-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px clamp(18px, 4vw, 34px) 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--green-deep);
  font-weight: 750;
}

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  gap: clamp(18px, 4vw, 44px);
  align-items: stretch;
  padding: clamp(24px, 5vw, 48px) 0;
}

.seo-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.seo-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-deep);
  font-weight: 800;
}

.hero-facts {
  display: grid;
  gap: 10px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 37, 34, 0.08);
}

.hero-facts div {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.hero-facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-facts span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.hero-facts strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.seo-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.seo-section .section-heading {
  max-width: none;
  margin-bottom: 16px;
}

.seo-card-grid,
.decision-grid,
.link-grid,
.faq-list {
  display: grid;
  gap: 14px;
}

.seo-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decision-grid,
.faq-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.seo-provider-card,
.decision-grid article,
.faq-list article,
.empty-resource,
.provider-profile,
.source-note {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.seo-provider-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.seo-provider-card h3,
.decision-grid strong,
.faq-list h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.seo-provider-card h3 a {
  color: var(--green-deep);
}

.seo-provider-card p,
.decision-grid p,
.faq-list p,
.empty-resource p,
.source-note p {
  margin: 8px 0 0;
  color: var(--muted);
}

.seo-provider-card dl,
.provider-profile dl {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.seo-provider-card dl div,
.provider-profile dl div {
  display: grid;
  gap: 2px;
}

.seo-provider-card dt,
.provider-profile dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.seo-provider-card dd,
.provider-profile dd {
  margin: 0;
  font-weight: 750;
}

.seo-service-grid {
  max-width: none;
}

.seo-service-grid a {
  color: var(--green-deep);
}

.link-grid a,
.empty-resource a {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-deep);
  font-weight: 800;
}

.provider-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
}

.simple-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.simple-table th,
.simple-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.simple-table th {
  background: var(--mint);
  color: var(--green-deep);
  font-weight: 850;
}

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

.simple-table td:first-child {
  color: var(--green-deep);
  font-weight: 850;
}

.profile-actions {
  display: grid;
  gap: 10px;
  min-width: 180px;
}

.source-note {
  margin-top: 28px;
  background: var(--mint);
}

.admin-body {
  background: #f6f2eb;
}

.admin-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 20px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px clamp(14px, 3vw, 30px) 56px;
}

.admin-sidebar,
.admin-card,
.admin-metrics article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 37, 34, 0.07);
}

.admin-sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
  padding: 16px;
}

.admin-sidebar-brand {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.admin-sidebar-brand strong,
.admin-card h2,
.admin-topbar h1,
.qa-board h3 {
  margin: 0;
  line-height: 1.24;
  letter-spacing: 0;
}

.admin-sidebar-brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.admin-sidebar nav a {
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover,
.admin-sidebar nav a:focus-visible {
  background: var(--mint);
  color: var(--green-deep);
}

.admin-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-topbar h1 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

.admin-topbar p:not(.eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.admin-actions button,
.admin-review-list button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-deep);
  font-weight: 800;
}

.admin-metrics,
.admin-grid,
.admin-split,
.seo-workflow {
  display: grid;
  gap: 14px;
}

.admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.admin-metrics article,
.admin-card {
  padding: 18px;
}

.admin-metrics span,
.admin-table th {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.admin-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--green-deep);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
}

.admin-metrics p,
.admin-card p,
.admin-timeline span,
.quality-list span,
.seo-workflow p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.admin-card h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.status-pill,
.intent-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--wash);
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill.success {
  background: var(--mint);
}

.status-pill.warning {
  background: #fff3c8;
  color: #7b5712;
}

.status-pill.danger {
  background: var(--coral-soft);
  color: #8d3c2f;
}

.admin-timeline,
.admin-checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.admin-timeline li::marker,
.admin-checks li::marker {
  color: var(--coral);
  font-weight: 900;
}

.quality-list {
  display: grid;
  gap: 14px;
}

.quality-list div {
  display: grid;
  gap: 4px;
}

.quality-list meter {
  width: 100%;
  height: 12px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table td:first-child {
  font-weight: 850;
}

.admin-table a {
  color: var(--green-deep);
  font-weight: 850;
}

.admin-review-list,
.qa-board {
  display: grid;
  gap: 12px;
}

.admin-review-list article,
.qa-board article,
.seo-workflow article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-review-list article div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.qa-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qa-board h3 {
  margin-top: 10px;
  font-size: 1.02rem;
}

.seo-workflow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seo-workflow strong {
  color: var(--green-deep);
}

@media (max-width: 1100px) {
  .finder-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .detail-panel {
    grid-column: 1 / -1;
    position: static;
  }

  .seo-card-grid,
  .decision-grid,
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .admin-sidebar {
    position: static;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-metrics,
  .seo-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .intro-band,
  .finder-shell,
  .join-band {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .service-grid,
  .article-list,
  .pillar-grid,
  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-hero,
  .provider-profile {
    grid-template-columns: 1fr;
  }

  .admin-topbar,
  .admin-card-head {
    display: grid;
  }

  .admin-grid,
  .admin-split,
  .qa-board {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .header-action {
    flex: 1;
  }

  .intro-band {
    padding-top: 24px;
  }

  .brand-signal {
    grid-template-columns: 82px 1fr;
    padding: 16px;
  }

  .brand-signal img {
    width: 82px;
    height: 82px;
  }

  .results-toolbar,
  .toolbar-controls,
  .provider-card,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .results-toolbar,
  .toolbar-controls,
  .site-footer {
    display: flex;
  }

  .toolbar-controls {
    min-width: 0;
  }

  #resultCount {
    text-align: left;
  }

  .provider-card {
    display: flex;
  }

  .provider-score {
    width: 100%;
    height: 44px;
  }

  .service-grid,
  .article-list,
  .pillar-grid,
  .source-grid,
  .seo-card-grid,
  .decision-grid,
  .faq-list,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .topic-toolbar {
    display: grid;
  }

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

  .compare-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: space-between;
  }

  .domain-list {
    justify-content: flex-start;
  }

  .admin-sidebar nav,
  .admin-metrics,
  .seo-workflow {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    padding-inline: 12px;
  }
}
