:root {
  --fmd-ink: #152d34;
  --fmd-ink-soft: #35505a;
  --fmd-muted: #677a80;
  --fmd-line: #d9e3e1;
  --fmd-line-strong: #bdcfca;
  --fmd-paper: #f6f8f5;
  --fmd-white: #ffffff;
  --fmd-teal: #0c7564;
  --fmd-teal-dark: #07564f;
  --fmd-teal-soft: #e4f2ed;
  --fmd-forest: #123c3d;
  --fmd-gold: #bf7b21;
  --fmd-gold-soft: #fff3df;
  --fmd-purple: #7655a6;
  --fmd-purple-soft: #f0eafb;
  --fmd-blue: #2b6e9f;
  --fmd-shadow: 0 24px 60px rgba(24, 57, 62, 0.11);
  --fmd-radius: 22px;
}

html { scroll-behavior: smooth; }
body.fmd-page {
  margin: 0;
  color: var(--fmd-ink);
  background: var(--fmd-paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.65;
}
.fmd-page *, .fmd-page *::before, .fmd-page *::after { box-sizing: border-box; }
.fmd-page button, .fmd-page input, .fmd-page select { font: inherit; }
.fmd-page button, .fmd-page a { -webkit-tap-highlight-color: transparent; }
.fmd-page button:focus-visible, .fmd-page a:focus-visible, .fmd-page input:focus-visible, .fmd-page select:focus-visible {
  outline: 3px solid rgba(12, 117, 100, 0.26);
  outline-offset: 2px;
}
.fmd-shell { width: min(1220px, calc(100% - 48px)); margin-inline: auto; }
.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;
}

.fmd-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px max(24px, calc((100vw - 1220px) / 2));
  background: rgba(250, 251, 249, 0.92);
  border-bottom: 1px solid rgba(203, 217, 213, 0.82);
  backdrop-filter: blur(18px);
}
.fmd-header .brand { display: inline-flex; align-items: center; gap: 11px; color: var(--fmd-ink); text-decoration: none; }
.fmd-header .brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  color: #fff; background: linear-gradient(145deg, #0f806d, #154d50); font-size: 13px; font-weight: 850;
  box-shadow: 0 8px 20px rgba(12, 117, 100, 0.18);
}
.fmd-header .brand strong, .fmd-header .brand small { display: block; }
.fmd-header .brand strong { font-size: 14px; letter-spacing: 0.04em; }
.fmd-header .brand small { color: var(--fmd-muted); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; }
.fmd-header nav { display: flex; align-items: center; gap: 25px; }
.fmd-header nav a { color: var(--fmd-ink-soft); font-size: 13px; font-weight: 650; text-decoration: none; }
.fmd-header nav a:hover { color: var(--fmd-teal); }

.fmd-hero {
  position: relative;
  min-height: 560px;
  color: #f4fbf8;
  background:
    linear-gradient(115deg, rgba(9, 45, 48, 0.99), rgba(18, 66, 64, 0.96) 54%, rgba(22, 79, 69, 0.94)),
    repeating-linear-gradient(90deg, transparent 0, transparent 91px, rgba(255, 255, 255, 0.025) 92px);
  overflow: hidden;
}
.fmd-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to top, rgba(4, 27, 29, 0.22), transparent);
  pointer-events: none;
}
.hero-glow { position: absolute; border-radius: 50%; border: 1px solid rgba(137, 224, 193, 0.18); pointer-events: none; }
.hero-glow-one { width: 520px; height: 520px; right: -135px; top: -175px; box-shadow: 0 0 0 55px rgba(116, 205, 175, 0.035), 0 0 0 110px rgba(116, 205, 175, 0.02); }
.hero-glow-two { width: 290px; height: 290px; left: -180px; bottom: -120px; box-shadow: 0 0 0 42px rgba(213, 173, 93, 0.04); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr); gap: 80px; align-items: center; min-height: 560px; padding-block: 64px; }
.hero-copy { max-width: 770px; }
.hero-kicker, .section-kicker {
  margin: 0 0 13px;
  color: #89d7bc;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-copy h1 { margin: 0; font-size: clamp(45px, 5.3vw, 72px); line-height: 1.08; letter-spacing: -0.055em; font-weight: 780; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fmd-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 19px;
  border: 1px solid transparent; border-radius: 11px; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.fmd-button:hover { transform: translateY(-1px); }
.button-primary { color: #103b37; background: #8ee0c2; box-shadow: 0 14px 34px rgba(63, 173, 138, 0.18); }
.button-primary:hover { color: #0a302d; background: #a4ead0; }
.button-ghost { color: #edf8f4; background: rgba(255,255,255,0.05); border-color: rgba(217, 241, 233, 0.32); }
.button-ghost:hover { color: #fff; background: rgba(255,255,255,0.1); }
.button-secondary { color: var(--fmd-ink); background: #fff; border-color: var(--fmd-line); }

.hero-proof {
  position: relative;
  padding: 32px;
  background: linear-gradient(150deg, rgba(255,255,255,0.12), rgba(255,255,255,0.055));
  border: 1px solid rgba(211, 239, 230, 0.19);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 21, 23, 0.23);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.hero-proof::before { content: ""; position: absolute; width: 170px; height: 170px; right: -65px; bottom: -75px; border-radius: 50%; background: rgba(134, 220, 187, 0.08); }
.proof-topline { display: flex; justify-content: space-between; gap: 18px; color: #a9c7c0; font-size: 10px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.proof-total { display: flex; align-items: end; gap: 12px; margin-top: 18px; }
.proof-total strong { font-family: Georgia, "Times New Roman", serif; font-size: 78px; font-weight: 500; line-height: 0.98; letter-spacing: -0.06em; }
.proof-total span { padding-bottom: 10px; color: #d7e9e4; font-size: 13px; }
.batch-bars { display: grid; gap: 11px; margin-top: 28px; }
.batch-row { display: grid; grid-template-columns: 95px minmax(0, 1fr) 30px; gap: 10px; align-items: center; color: #d4e7e2; font-size: 11px; }
.batch-row .bar { height: 5px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.batch-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, #8ee0c2, #d5b576); border-radius: inherit; }
.batch-row strong { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.proof-divider { height: 1px; margin: 28px 0 22px; background: rgba(222, 242, 236, 0.15); }
.proof-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.proof-metrics div { min-width: 0; }
.proof-metrics strong, .proof-metrics span { display: block; }
.proof-metrics strong { color: #fff; font-family: Georgia, serif; font-size: 27px; line-height: 1; }
.proof-metrics span { margin-top: 7px; color: #aac7c1; font-size: 10px; }


.fmd-section { padding: 100px 0; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.split-heading { display: flex; align-items: end; justify-content: space-between; max-width: none; gap: 50px; }
.section-kicker { color: var(--fmd-teal); }
.section-heading h2, .platform-intro h2, .boundary-card h2 { margin: 0; font-size: clamp(31px, 3.4vw, 48px); line-height: 1.18; letter-spacing: -0.04em; }
.section-heading p:not(.section-kicker), .platform-intro > p:last-child { margin: 15px 0 0; color: var(--fmd-muted); font-size: 14px; }
.status-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 16px; padding-bottom: 5px; color: var(--fmd-muted); font-size: 11px; }
.status-legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-available { background: var(--fmd-teal); }
.status-confirm { background: var(--fmd-gold); }
.status-candidate { background: var(--fmd-purple); }

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(130px, 0.82fr)) auto;
  gap: 11px;
  align-items: end;
  padding: 19px;
  background: #fff;
  border: 1px solid var(--fmd-line);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(20, 55, 60, 0.055);
}
.filter-panel label { display: grid; gap: 6px; min-width: 0; }
.filter-panel label > span { color: var(--fmd-muted); font-size: 10px; font-weight: 800; letter-spacing: 0.05em; }
.filter-panel input, .filter-panel select {
  width: 100%; height: 43px; padding: 0 12px; color: var(--fmd-ink); background: #f8faf8;
  border: 1px solid #d6e0de; border-radius: 10px; font-size: 12px;
}
.filter-panel input::placeholder { color: #94a3a7; }
.filter-panel input:hover, .filter-panel select:hover { border-color: #aac8c0; }
.filter-reset { height: 43px; padding: 0 15px; color: var(--fmd-teal-dark); background: var(--fmd-teal-soft); border: 0; border-radius: 10px; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 20px; }
.result-toolbar p { display: flex; align-items: baseline; gap: 6px; margin: 0; color: var(--fmd-muted); font-size: 11px; }
.result-toolbar p strong { color: var(--fmd-ink); font-family: Georgia, serif; font-size: 24px; }
.result-toolbar > div { display: flex; gap: 8px; }
.text-button { padding: 7px 10px; color: var(--fmd-teal); background: transparent; border: 0; font-size: 11px; font-weight: 800; cursor: pointer; }
.text-button:hover { color: var(--fmd-teal-dark); text-decoration: underline; }

.directory-table-wrap { background: #fff; border: 1px solid var(--fmd-line); border-radius: 18px; box-shadow: 0 18px 48px rgba(20, 55, 60, 0.06); overflow: hidden; }
.directory-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.directory-table thead { background: #edf3f0; }
.directory-table th { padding: 13px 12px; color: #536b70; border-bottom: 1px solid var(--fmd-line); font-size: 10px; font-weight: 850; letter-spacing: 0.06em; text-align: left; }
.directory-table td { padding: 15px 12px; border-bottom: 1px solid #e6ecea; color: var(--fmd-ink-soft); font-size: 11px; vertical-align: middle; }
.directory-table tbody tr { transition: background 0.15s ease; }
.directory-table tbody tr:hover { background: #fbfdfc; }
.directory-table tbody tr:last-child td { border-bottom: 0; }
.directory-table th:nth-child(2) { width: 14%; }
.directory-table th:nth-child(3) { width: 12%; }
.directory-table th:nth-child(4) { width: 15%; }
.directory-table th:nth-child(5) { width: 17%; }
.directory-table th:nth-child(6) { width: 18%; }
.directory-table th:nth-child(7) { width: 14%; }
.select-col { width: 44px; text-align: center !important; }
.view-col { width: 54px; }
.row-check { width: 16px; height: 16px; accent-color: var(--fmd-teal); cursor: pointer; }
.herb-cell button { display: block; padding: 0; color: var(--fmd-ink); background: transparent; border: 0; font-size: 14px; font-weight: 850; text-align: left; cursor: pointer; }
.herb-cell small { display: block; margin-top: 3px; color: #87969a; font-size: 9px; font-family: Georgia, serif; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.batch-label { display: inline-flex; padding: 4px 7px; color: #496167; background: #f1f4f3; border-radius: 6px; font-size: 9px; font-weight: 750; }
.identity-text { display: -webkit-box; color: #5d7277; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.status-pill, .lab-pill, .route-pill, .source-level {
  display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; line-height: 1.3;
}
.status-pill.available { color: #0b6958; background: var(--fmd-teal-soft); }
.status-pill.verified { color: #0b6958; background: var(--fmd-teal-soft); }
.status-pill.experience { color: #2d6289; background: #e8f1f7; }
.status-pill.review { color: #9b5f11; background: var(--fmd-gold-soft); }
.status-pill.confirm { color: #9b5f11; background: var(--fmd-gold-soft); }
.status-pill.candidate { color: #684390; background: var(--fmd-purple-soft); }
.status-pill.none { color: #748286; background: #eef1f1; }
.cell-meta { display: block; margin-top: 5px; color: #8a999c; font-size: 9px; }
.lab-group, .route-group { display: flex; flex-wrap: wrap; gap: 5px; }
.lab-pill { color: #456066; background: #edf2f1; }
.lab-pill.available { color: #0b6958; background: #dff1eb; }
.lab-pill.confirm { color: #93601d; background: #fff0d7; }
.lab-pill.method { color: #2d6289; background: #e8f1f7; }
.route-pill { color: #315d66; background: #ecf2f2; }
.view-button { display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; color: var(--fmd-teal); background: #edf6f3; border: 0; border-radius: 9px; font-weight: 900; cursor: pointer; }
.view-button:hover { color: #fff; background: var(--fmd-teal); }
.empty-state { padding: 70px 24px; text-align: center; }
.empty-state strong { font-size: 20px; }
.empty-state p { margin: 8px 0 20px; color: var(--fmd-muted); font-size: 13px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 62px; }
.pagination button {
  min-width: 34px; height: 34px; padding: 0 9px; color: var(--fmd-ink-soft); background: #fff;
  border: 1px solid var(--fmd-line); border-radius: 9px; font-size: 10px; font-weight: 800; cursor: pointer;
}
.pagination button:hover:not(:disabled), .pagination button.active { color: #fff; background: var(--fmd-teal); border-color: var(--fmd-teal); }
.pagination button:disabled { opacity: 0.42; cursor: default; }
.pagination span { margin: 0 6px; color: var(--fmd-muted); font-size: 10px; }

.capability-platform { color: #eff8f5; background: var(--fmd-forest); }
.platform-grid { display: grid; grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr); gap: 80px; align-items: start; }
.platform-intro { position: sticky; top: 100px; }
.platform-intro .section-kicker { color: #8ddabd; }
.platform-intro > p:last-child { color: #b8ceca; line-height: 1.9; }
.platform-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.platform-card { min-height: 140px; padding: 21px; background: rgba(255,255,255,0.07); border: 1px solid rgba(221, 242, 235, 0.12); border-radius: 16px; }
.platform-card .platform-top { display: flex; justify-content: space-between; gap: 16px; }
.platform-card h3 { margin: 0; color: #fff; font-size: 14px; }
.platform-card p { margin: 10px 0 0; color: #abc6c0; font-size: 11px; }
.platform-card .lab-group { margin-top: 14px; }
.platform-card .lab-pill { background: rgba(255,255,255,0.1); color: #d9ede7; }
.platform-card .lab-pill.available { color: #a4ead0; background: rgba(68, 181, 144, 0.15); }

.update-section { background: #eef3ef; }
.consensus-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.consensus-card { position: relative; min-height: 255px; padding: 24px; background: #fff; border: 1px solid var(--fmd-line); border-radius: 18px; overflow: hidden; }
.consensus-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--fmd-teal), #8ecdb8); }
.consensus-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--fmd-muted); font-size: 9px; font-weight: 800; letter-spacing: 0.05em; }
.consensus-tag { color: var(--fmd-teal); }
.consensus-card h3 { margin: 32px 0 0; font-size: 20px; line-height: 1.35; letter-spacing: -0.02em; }
.consensus-card p { margin: 13px 0 0; color: var(--fmd-muted); font-size: 12px; }
.consensus-card a { display: inline-flex; margin-top: 20px; color: var(--fmd-teal); font-size: 10px; font-weight: 800; text-decoration: none; }

.sources-section { background: #fff; }
.source-switch { display: flex; padding: 4px; background: #eef3f1; border-radius: 11px; }
.source-switch button { padding: 8px 12px; color: var(--fmd-muted); background: transparent; border: 0; border-radius: 8px; font-size: 11px; font-weight: 800; cursor: pointer; }
.source-switch button.active { color: var(--fmd-teal-dark); background: #fff; box-shadow: 0 4px 12px rgba(20,55,60,0.08); }
.source-list { display: grid; border-top: 1px solid var(--fmd-line); }
.source-item { display: grid; grid-template-columns: 92px minmax(0, 1.35fr) minmax(180px, 0.7fr) 36px; gap: 20px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--fmd-line); }
.source-date { color: var(--fmd-muted); font-family: Georgia, serif; font-size: 12px; }
.source-title strong { display: block; font-size: 13px; }
.source-title span { display: block; margin-top: 3px; color: var(--fmd-muted); font-size: 10px; }
.source-level { justify-self: start; color: #3a6468; background: #edf3f2; }
.source-open { display: grid; place-items: center; width: 31px; height: 31px; color: var(--fmd-teal); background: var(--fmd-teal-soft); border-radius: 9px; text-decoration: none; font-weight: 900; }
.source-open:hover { color: #fff; background: var(--fmd-teal); }

.boundary-section { padding-top: 20px; background: #fff; }
.boundary-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 28px 34px; background: #f1f5f2; border: 1px solid var(--fmd-line); border-radius: 20px; }
.boundary-card h2 { font-size: 24px; white-space: nowrap; }
.boundary-card p { margin: 0; color: var(--fmd-muted); font-size: 12px; text-align: right; }

.selection-tray {
  position: fixed;
  z-index: 55;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(980px, calc(100% - 32px));
  min-height: 68px;
  padding: 10px 12px 10px 18px;
  color: #eaf6f2;
  background: rgba(12, 54, 56, 0.96);
  border: 1px solid rgba(183, 224, 210, 0.2);
  border-radius: 17px;
  box-shadow: 0 24px 70px rgba(0, 27, 29, 0.28);
  backdrop-filter: blur(16px);
}
.selection-tray[hidden] { display: none; }
.tray-copy { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 11px; }
.tray-copy strong { color: #96e2c7; font-family: Georgia, serif; font-size: 24px; }
.tray-chips { display: flex; gap: 5px; max-width: 390px; margin-left: 10px; overflow: hidden; }
.tray-chips span { padding: 3px 7px; color: #d4eae4; background: rgba(255,255,255,0.08); border-radius: 999px; font-size: 9px; white-space: nowrap; }
.tray-actions { display: flex; gap: 7px; }
.tray-actions button { min-height: 42px; padding: 8px 14px; color: #d8ebe6; background: transparent; border: 0; border-radius: 10px; font-size: 11px; font-weight: 800; cursor: pointer; }
.tray-actions .tray-export { color: #0d3c38; background: #95e2c6; }
.tray-actions .tray-export:hover { background: #adebd4; }

.drawer-backdrop { position: fixed; z-index: 70; inset: 0; background: rgba(5, 24, 27, 0.52); backdrop-filter: blur(3px); }
.drawer-backdrop[hidden], .detail-drawer[hidden] { display: none; }
.detail-drawer {
  position: fixed;
  z-index: 75;
  inset: 0 0 0 auto;
  width: min(680px, 100%);
  background: #f7f9f7;
  box-shadow: -25px 0 80px rgba(7, 34, 36, 0.2);
  overflow-y: auto;
  animation: drawer-in 0.22s ease-out;
}
@keyframes drawer-in { from { transform: translateX(35px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.drawer-header { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: start; padding: 25px 30px 20px; background: rgba(247,249,247,0.94); border-bottom: 1px solid var(--fmd-line); backdrop-filter: blur(14px); }
.drawer-header p { margin: 0 0 4px; color: var(--fmd-teal); font-size: 10px; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.drawer-header h2 { margin: 0; font-size: 30px; letter-spacing: -0.04em; }
.drawer-header button { display: grid; place-items: center; width: 36px; height: 36px; color: var(--fmd-ink); background: #e8eeec; border: 0; border-radius: 10px; font-size: 24px; cursor: pointer; }
.drawer-content { padding: 25px 30px 50px; }
.drawer-status-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.drawer-section { padding: 22px 0; border-top: 1px solid var(--fmd-line); }
.drawer-section:first-of-type { border-top: 0; padding-top: 0; }
.drawer-section h3 { margin: 0 0 14px; font-size: 13px; }
.identity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.identity-item { min-height: 76px; padding: 13px; background: #fff; border: 1px solid var(--fmd-line); border-radius: 12px; }
.identity-item span { display: block; color: var(--fmd-muted); font-size: 9px; font-weight: 800; }
.identity-item strong { display: block; margin-top: 5px; font-size: 11px; font-weight: 700; }
.drawer-note { padding: 14px 15px; color: #5c6f72; background: #eef3f1; border-left: 3px solid #83bbaa; border-radius: 0 10px 10px 0; font-size: 11px; }
.standard-list { display: grid; gap: 11px; }
.standard-card { overflow: hidden; background: #fff; border: 1px solid #cfded9; border-radius: 15px; box-shadow: 0 8px 24px rgba(21, 57, 58, 0.055); }
.standard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 15px; background: linear-gradient(135deg, #e7f4ef, #f5f9f6); border-bottom: 1px solid #d8e6e1; }
.standard-head div { display: grid; gap: 3px; }
.standard-head div > span { color: #55726f; font-size: 9px; font-weight: 800; letter-spacing: 0.06em; }
.standard-head strong { color: #173f3d; font-size: 14px; }
.standard-match { flex: 0 0 auto; padding: 4px 8px; color: #0b6958; background: #d7eee6; border-radius: 999px; font-size: 9px; font-weight: 800; }
.standard-match.partial { color: #946012; background: #fff0d7; }
.standard-note { margin: 0; padding: 11px 15px; color: #687a7c; background: #fbfcfb; border-bottom: 1px solid #e5ece9; font-size: 10px; }
.standard-rows { display: grid; }
.standard-row { padding: 13px 15px; border-bottom: 1px solid #e8eeec; }
.standard-row-main { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.standard-row-main > span { color: #0c7564; font-size: 9px; font-weight: 850; }
.standard-row-main strong { color: #263f43; font-size: 11px; line-height: 1.55; }
.standard-row-main small { color: #6b7d7e; font-size: 9px; }
.standard-row-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0 72px; }
.standard-links { display: flex; flex-wrap: wrap; gap: 15px; padding: 11px 15px; background: #fbfcfb; }
.standard-links a { color: #0b6d60; font-size: 9px; font-weight: 800; text-decoration: none; }
.evidence-boundary { display: flex; gap: 12px; margin-top: 10px; padding: 12px 14px; color: #53696d; background: #f2f4f3; border-radius: 11px; font-size: 10px; }
.evidence-boundary strong { flex: 0 0 auto; color: #304f52; }
.ability-list { display: grid; gap: 9px; }
.ability-card { padding: 14px; background: #fff; border: 1px solid var(--fmd-line); border-radius: 13px; }
.ability-head { display: flex; justify-content: space-between; gap: 12px; }
.ability-head strong { font-size: 12px; }
.ability-head .status-pill { flex: 0 0 auto; }
.ability-card .ability-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.ability-card p { margin: 9px 0 0; color: var(--fmd-muted); font-size: 10px; }
.ability-layer { color: #5e7478; background: #eef2f1; }
.drawer-empty { padding: 24px; color: var(--fmd-muted); background: #fff; border: 1px dashed var(--fmd-line-strong); border-radius: 13px; text-align: center; font-size: 11px; }
.drawer-sources { display: grid; gap: 8px; }
.drawer-source { display: flex; justify-content: space-between; gap: 14px; padding: 12px; background: #fff; border: 1px solid var(--fmd-line); border-radius: 11px; color: var(--fmd-ink); text-decoration: none; }
.drawer-source strong { display: block; font-size: 11px; }
.drawer-source span { display: block; margin-top: 3px; color: var(--fmd-muted); font-size: 9px; }
.drawer-source i { color: var(--fmd-teal); font-style: normal; font-weight: 900; }

.toast { position: fixed; z-index: 90; right: 22px; bottom: 22px; max-width: 330px; padding: 12px 15px; color: #fff; background: #173f42; border-radius: 11px; box-shadow: var(--fmd-shadow); font-size: 11px; }
.toast[hidden] { display: none; }
.fmd-page .site-footer { border-top: 1px solid var(--fmd-line); background: #fff; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); gap: 45px; }
  .filter-panel { grid-template-columns: repeat(3, 1fr); }
  .search-field { grid-column: span 2; }
  .consensus-grid { grid-template-columns: repeat(2, 1fr); }
  .directory-table th:nth-child(4), .directory-table td:nth-child(4) { display: none; }
}

@media (max-width: 820px) {
  .fmd-header { min-height: 64px; }
  .fmd-header nav { display: none; }
  .fmd-shell { width: min(100% - 32px, 1220px); }
  .fmd-hero, .hero-grid { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 65px; }
  .hero-copy h1 { font-size: clamp(39px, 10vw, 58px); }
  .hero-proof { max-width: 520px; }
  .fmd-section { padding: 75px 0; }
  .split-heading { display: block; }
  .status-legend, .source-switch { margin-top: 20px; justify-content: flex-start; }
  .platform-grid { grid-template-columns: 1fr; gap: 34px; }
  .platform-intro { position: static; }
  .boundary-card { display: block; }
  .boundary-card h2 { white-space: normal; }
  .boundary-card p { margin-top: 10px; text-align: left; }
  .directory-table thead { display: none; }
  .directory-table, .directory-table tbody, .directory-table tr, .directory-table td { display: block; width: 100%; }
  .directory-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; }
  .directory-table tbody tr { position: relative; padding: 16px 16px 14px 46px; border: 1px solid var(--fmd-line); border-radius: 14px; }
  .directory-table td { padding: 0; border: 0; }
  .directory-table td:nth-child(1) { position: absolute; left: 16px; top: 18px; width: auto; }
  .directory-table td:nth-child(3), .directory-table td:nth-child(4) { display: inline-block; width: auto; margin-top: 8px; }
  .directory-table td:nth-child(5), .directory-table td:nth-child(6), .directory-table td:nth-child(7) { margin-top: 11px; }
  .directory-table td:nth-child(8) { position: absolute; right: 13px; top: 13px; width: auto; }
  .herb-cell { padding-right: 36px !important; }
  .identity-text { display: none; }
  .source-item { grid-template-columns: 75px minmax(0, 1fr) 34px; }
  .source-level { display: none; }
  .selection-tray { bottom: 12px; }
  .tray-chips { display: none; }
}

@media (max-width: 600px) {
  .fmd-shell { width: min(100% - 24px, 1220px); }
  .fmd-header { padding-inline: 14px; }
  .hero-grid { padding-block: 54px; }
  .hero-copy h1 { font-size: 39px; }
  .hero-lead { font-size: 14px; }
  .hero-proof { padding: 24px; border-radius: 22px; }
  .proof-total strong { font-size: 63px; }
  .filter-panel { grid-template-columns: 1fr 1fr; padding: 13px; }
  .search-field { grid-column: 1 / -1; }
  .filter-reset { grid-column: 1 / -1; }
  .directory-table tbody { grid-template-columns: 1fr; }
  .pagination { flex-wrap: wrap; }
  .platform-list, .consensus-grid { grid-template-columns: 1fr; }
  .consensus-card { min-height: 215px; }
  .boundary-card { width: calc(100% - 24px); padding: 28px 22px; }
  .selection-tray { align-items: stretch; gap: 10px; padding: 9px 9px 9px 13px; }
  .tray-copy { flex-wrap: wrap; }
  .tray-actions button:first-child { display: none; }
  .tray-actions .tray-export { min-width: 148px; }
  .drawer-header, .drawer-content { padding-left: 19px; padding-right: 19px; }
  .standard-row-main { grid-template-columns: 58px minmax(0, 1fr); }
  .standard-row-main small { grid-column: 2; }
  .standard-row-meta { margin-left: 68px; }
  .identity-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
