:root {
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #16333a;
  background: #f4f7f8;
  font-synthesis: none;
  --ink: #123f4a;
  --muted: #61747a;
  --line: #dce6e8;
  --green: #09785f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #008fba;
  outline-offset: 3px;
}
a {
  color: var(--ink);
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
p {
  line-height: 1.75;
}
header {
  height: 92px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5%, calc((100% - 1256px) / 2));
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.4375rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #a9f1da;
  border-radius: 12px;
  font-size: 1.875rem;
}
.brand-sub {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 1.8px;
  margin-top: 3px;
  color: var(--muted);
}
.personal {
  font-size: 0.875rem;
  color: var(--muted);
}
main {
  max-width: 1256px;
  margin: auto;
  padding: 36px 0 70px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 12px;
}
h1 {
  font-size: 2rem;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}
.edition {
  font-size: 0.75rem;
  color: var(--muted);
  padding-left: 20px;
  border-left: 2px solid #b5c9ce;
}
.edition strong {
  display: block;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 500;
  margin-top: 5px;
}
.search-area {
  margin-bottom: 30px;
}
.search-box {
  display: flex;
  background: #fff;
  border: 1px solid #aec4cb;
  border-radius: 12px;
  align-items: center;
  padding: 0 18px;
  box-shadow: 0 3px 10px #123f4a05;
}
.search-box > span {
  font-size: 2.1875rem;
  color: var(--ink);
  padding-right: 12px;
}
.search-box input {
  background: none;
  border: 0;
  min-width: 0;
  width: 100%;
  height: 60px;
  outline: none;
  font-size: 1rem;
  color: var(--ink);
}
.search-box:focus-within {
  outline: 2px solid #008fba;
  outline-offset: 2px;
}
.search-box button {
  border: 0;
  background: transparent;
  font-size: 1.5625rem;
  min-width: 44px;
  min-height: 44px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 2px;
}
.chips button {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: white;
  border-radius: 24px;
  padding: 10px 18px;
  min-height: 44px;
  font-size: 0.875rem;
}
.chips button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.workspace {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 35px;
}
.side {
  padding-top: 5px;
}
.desktop-nav {
  display: grid;
  gap: 8px;
}
.desktop-nav button {
  text-align: left;
  background: none;
  border: 0;
  padding: 14px 12px;
  font-size: 0.9375rem;
  border-radius: 8px;
}
.desktop-nav button.active {
  background: #e0ecef;
  font-weight: 650;
  color: var(--ink);
}
.side-note {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding: 24px 4px;
}
.side-note strong {
  font-size: 0.875rem;
}
.side-note p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 10px;
}
.side-note button {
  font-size: 0.8125rem;
  border: 0;
  background: none;
  padding: 8px 0;
  text-align: left;
  min-height: 44px;
}
.results-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.results-bar h2 {
  font-size: 1.25rem;
  margin: 0;
}
.results-bar #count {
  font-size: 0.8125rem;
  color: var(--muted);
}
.sort-label {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--muted);
}
select {
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 0.8125rem;
  color: var(--ink);
  max-width: 175px;
}
.catalog-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.disease {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.disease:hover {
  border-color: #a5c4ca;
  box-shadow: 0 4px 20px #123f4a09;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.tag {
  font-size: 0.75rem;
  background: #ecf4f5;
  color: #486971;
  border-radius: 4px;
  padding: 4px 7px;
}
.save {
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px 0;
  background: none;
  border: 0;
  font-size: 1.4375rem;
  color: #5f7880;
}
.save[aria-pressed="true"] {
  color: #a36a00;
}
.disease h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  line-height: 1.45;
}
.disease .english {
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 19px;
  line-height: 1.5;
}
.pair {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.pair-line {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.6;
}
.region {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  background: #e9f5f0;
  min-width: 36px;
  text-align: center;
  border-radius: 3px;
  padding: 1px 4px;
}
.region.intl {
  color: #375bb0;
  background: #edf1fb;
}
.pair-line .ref-name {
  flex: 1;
}
.card-footer {
  border-top: 1px solid #eef2f3;
  padding-top: 14px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-footer small {
  font-size: 0.75rem;
  color: var(--muted);
}
.open-detail {
  border: 0;
  background: var(--ink);
  color: white;
  border-radius: 7px;
  padding: 11px 14px;
  font-size: 0.875rem;
  min-height: 44px;
}
.empty {
  grid-column: 1/-1;
  border: 1px dashed #bdced2;
  border-radius: 12px;
  padding: 50px 20px;
  text-align: center;
  background: #fff;
}
.empty h3 {
  font-size: 1.1875rem;
}
.empty p {
  color: var(--muted);
}
.empty button {
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  color: #fff;
  padding: 12px 18px;
}
.bottom-nav {
  display: none;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(990px, calc(100% - 32px));
  max-height: 90dvh;
  color: inherit;
  box-shadow: 0 20px 100px #001d3f40;
}
dialog::backdrop {
  background: #0d263d73;
  backdrop-filter: blur(3px);
}
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.dialog-head h2 {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.5;
}
.dialog-head button {
  border: 0;
  background: #f1f5f6;
  border-radius: 50%;
  width: 44px;
  min-width: 44px;
  height: 44px;
  font-size: 1.75rem;
}
.detail-content,
.about-content {
  padding: 24px 28px;
}
.detail-sub {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 20px;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.column {
  min-width: 0;
}
.column > h3 {
  font-size: 1rem;
  padding-bottom: 13px;
  border-bottom: 2px solid #27866d;
  margin-bottom: 18px;
}
.column.international > h3 {
  border-color: #6279b8;
}
.source {
  background: #f6f9fa;
  border: 1px solid #e2ebed;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}
.source h4 {
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 10px 0;
}
.source-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.7;
}
.source-type {
  font-size: 0.75rem;
  color: var(--muted);
}
.status {
  font-size: 0.75rem;
  color: #276751;
  border: 1px solid #c9e2d6;
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 10px;
}
.status.record {
  color: #87641e;
  border-color: #ead9b4;
}
.source p {
  font-size: 0.9375rem;
  margin: 16px 0;
}
.source ul {
  padding-left: 20px;
  font-size: 0.9375rem;
  line-height: 1.8;
}
.source li {
  margin-bottom: 10px;
}
.chapter {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}
.source-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.source-links a {
  font-size: 0.875rem;
  text-underline-offset: 4px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.detail-foot {
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 8px 0 0;
  line-height: 1.8;
}
.detail-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.detail-actions a {
  font-size: 0.875rem;
}
.detail-actions button {
  background: #eaf2f3;
  border: 0;
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 0.875rem;
  min-height: 44px;
}
.timeline {
  grid-column: 1/-1;
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.version-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.version-row:last-child {
  border-bottom: 0;
}
.version-row time {
  font-size: 0.8125rem;
  color: var(--muted);
}
.version-row h3 {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 5px;
}
.version-row p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.version-row button {
  border: 0;
  background: #edf3f5;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.875rem;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #163d46;
  color: #fff;
  border-radius: 8px;
  padding: 13px 20px;
  z-index: 10;
  font-size: 0.875rem;
  max-width: 90%;
  width: max-content;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 20;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
.about-content h3 {
  font-size: 1.0625rem;
  margin-top: 24px;
}
.about-content p {
  font-size: 1rem;
  color: #4a6269;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.offline {
  color: #996019;
}
.source a {
  overflow-wrap: anywhere;
}
@media (min-width: 1450px) {
  main {
    padding-top: 44px;
  }
}
@media (max-width: 1350px) {
  main {
    margin: 0 5%;
  }
}
@media (max-width: 850px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .side {
    display: none;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    z-index: 3;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffffef;
    border-top: 1px solid var(--line);
    padding: 5px 12px max(5px, env(safe-area-inset-bottom));
    backdrop-filter: blur(12px);
    justify-content: space-around;
  }
  .bottom-nav button {
    display: grid;
    gap: 3px;
    place-items: center;
    background: none;
    border: 0;
    min-width: 80px;
    min-height: 54px;
    font-size: 1.375rem;
    color: var(--muted);
  }
  .bottom-nav button span {
    font-size: 0.75rem;
  }
  .bottom-nav button.active {
    color: var(--ink);
    font-weight: 700;
  }
  .toast {
    bottom: 90px;
  }
  .compare {
    grid-template-columns: 1fr;
  }
  .personal {
    font-size: 0.75rem;
  }
  .intro h1 {
    font-size: 1.6875rem;
  }
  .edition strong {
    font-size: 0.9375rem;
  }
  main {
    padding-bottom: 110px;
  }
}
@media (max-width: 570px) {
  header {
    height: 76px;
    padding: 0 20px;
  }
  .brand {
    font-size: 1.25rem;
  }
  .brand-sub {
    font-size: 0.75rem;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .personal {
    display: none;
  }
  main {
    margin: 0;
    padding: 25px 18px 105px;
  }
  .intro {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
  }
  .intro h1 {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
  }
  .intro .eyebrow {
    font-size: 0.75rem;
    margin-bottom: 9px;
  }
  .intro p:not(.eyebrow) {
    font-size: 0.8125rem;
  }
  .edition {
    font-size: 0.75rem;
    padding-left: 10px;
    min-width: 87px;
    margin-top: 4px;
  }
  .edition strong {
    font-size: 0.75rem;
  }
  .search-box {
    padding: 0 12px;
  }
  .search-box input {
    height: 54px;
    font-size: 1rem;
  }
  .search-box > span {
    font-size: 1.75rem;
    padding-right: 8px;
  }
  .chips {
    margin-right: -18px;
    padding-right: 18px;
    gap: 7px;
  }
  .chips button {
    padding: 9px 15px;
  }
  .search-area {
    margin-bottom: 23px;
  }
  .results {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .results-bar h2 {
    font-size: 1.1875rem;
  }
  .sort-label {
    font-size: 0.75rem;
  }
  .sort-label select {
    font-size: 0.75rem;
    max-width: 134px;
  }
  .results-bar {
    gap: 8px;
  }
  .disease {
    padding: 20px;
  }
  .catalog-note {
    font-size: 0.75rem;
    line-height: 1.7;
  }
  .disease .english {
    margin-bottom: 17px;
  }
  .pair {
    margin-bottom: 18px;
  }
  .disease h3 {
    font-size: 1.25rem;
  }
  .card-footer {
    padding-top: 12px;
  }
  dialog {
    width: 100%;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
  }
  .dialog-head {
    padding: 17px 20px;
  }
  .dialog-head h2 {
    font-size: 1.3125rem;
  }
  .detail-content,
  .about-content {
    padding: 20px;
  }
  .source {
    padding: 17px;
  }
  .version-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 17px;
  }
  .version-row time {
    grid-column: 1/-1;
  }
  .version-row h3 {
    font-size: 0.9375rem;
  }
  .detail-foot {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-actions button {
  border: 0;
  background: none;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
.coverage {
  color: var(--green);
  font-size: 0.8125rem;
  margin: -8px 0 18px;
  font-weight: 600;
}
.recent {
  margin: 0 0 24px;
  padding: 14px 16px;
  background: #e8f0ee;
  border-radius: 14px;
}
.recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}
.recent-head button {
  border: 0;
  background: none;
  min-height: 44px;
  color: var(--muted);
}
#recent-items {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
#recent-items button {
  border: 1px solid #cadbd5;
  background: white;
  border-radius: 22px;
  padding: 10px 14px;
  min-height: 44px;
  white-space: nowrap;
  font-size: 0.8125rem;
}
.detail-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin: 20px 0;
  background: #eaf0f1;
  border-radius: 12px;
}
.detail-tabs button {
  flex: 1;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-weight: 650;
}
.detail-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  box-shadow: 0 3px 8px #123f4a18;
}
.detail-tabs small {
  font-weight: 400;
  opacity: 0.8;
}
.flow-intro h3 {
  margin: 7px 0;
  font-size: 1.375rem;
}
.flow-intro p,
.pathway-scope {
  font-size: 0.875rem;
  color: var(--muted);
}
.region-switch {
  display: flex;
  gap: 8px;
  margin: 14px 0 20px;
}
.region-switch button {
  border: 1px solid var(--line);
  background: white;
  padding: 9px 20px;
  border-radius: 24px;
  min-height: 44px;
}
.region-switch button[aria-pressed="true"] {
  background: #e1f3ed;
  border-color: #93c3b4;
  color: #08664e;
}
.pathway {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.pathway-head {
  height: auto;
  padding: 0;
  background: none;
  border: 0;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.6;
}
.pathway-head strong {
  font-size: 0.9375rem;
}
.pathway-scope {
  margin: 14px 0 20px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  margin-left: 14px;
  padding: 0 0 26px 29px;
  border-left: 2px solid #d4e7e0;
}
.steps li:last-child {
  padding-bottom: 6px;
  border-color: transparent;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: -16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green);
  border: 4px solid white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}
.steps h4 {
  font-size: 1rem;
  margin: 0 0 8px;
  line-height: 1.8;
}
.steps p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 7px;
}
.step-cite {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1.7;
  color: #42716b;
  padding: 7px 0;
  min-height: 36px;
  text-underline-offset: 3px;
}
.flow-note {
  padding: 14px;
  background: #f3f6f5;
  color: #526a65;
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.8;
  margin-top: 16px;
}
.flow-empty {
  border: 1px dashed #b9cdca;
  padding: 24px;
  border-radius: 14px;
  background: #f5f8f7;
}
.flow-empty h4 {
  margin: 0 0 10px;
}
.flow-empty button {
  min-height: 44px;
  background: white;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.large-reading .steps p,
.large-reading .steps h4 {
  font-size: 1.2rem;
}
.large-reading .source p,
.large-reading .source li {
  font-size: 1.125rem;
}
.large-reading .step-cite,
.large-reading .flow-note,
.large-reading .pathway-scope {
  font-size: 0.9375rem;
}
body:has(dialog[open]) {
  overflow: hidden;
}
@media (max-width: 570px) {
  .intro {
    margin-bottom: 16px;
  }
  .intro h1 {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  .intro .eyebrow {
    letter-spacing: 2px;
  }
  .coverage {
    font-size: 0.75rem;
    line-height: 1.8;
    margin-top: 0;
  }
  .search-area {
    margin-bottom: 16px;
  }
  .disease {
    padding: 18px;
    border-radius: 16px;
  }
  #detail {
    max-width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
  .dialog-head {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
    padding: 14px 16px;
  }
  .dialog-head button {
    min-width: 44px;
    min-height: 44px;
  }
  .detail-content {
    padding: 16px 16px calc(28px + env(safe-area-inset-bottom));
  }
  .detail-sub {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }
  .detail-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .detail-actions button,
  .detail-actions a {
    min-height: 44px;
  }
  .detail-tabs {
    scroll-margin-top: 86px;
  }
  .pathway {
    padding: 17px 15px;
  }
  .pathway-head {
    padding: 0;
    height: auto;
  }
  .pathway-scope {
    font-size: 0.8125rem;
  }
  .steps li {
    padding-left: 25px;
  }
  .steps p {
    line-height: 1.85;
  }
  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
