:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #17212b;
  background: #172433;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #172433;
  --navy-deep: #0e1721;
  --paper: #f3f0e8;
  --white: #fffefa;
  --ink: #1c242b;
  --muted: #6f7475;
  --line: rgba(28, 36, 43, 0.16);
  --line-light: rgba(255, 255, 255, 0.22);
  --lime: #d8ff31;
  --lime-strong: #c9f31e;
  --blue-soft: #e7eefc;
  --blue: #315eaa;
  --warn-bg: #fff2d2;
  --warn: #825000;
  --shadow: 0 24px 70px rgba(4, 10, 17, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(15, 25, 36, 0.24), rgba(15, 25, 36, 0.24)),
    url("./solidroad-mountain.png") center / cover fixed,
    var(--paper);
}

body.medical-notice-open {
  overflow: hidden;
}

.medical-notice {
  width: min(calc(100% - 32px), 520px);
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(23, 36, 51, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 28px 90px rgba(3, 9, 15, 0.4);
}

.medical-notice:not([open]) {
  display: none;
}

.medical-notice::backdrop {
  background: rgba(8, 15, 23, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.medical-notice-body {
  padding: 34px;
}

.medical-notice-label {
  display: inline-block;
  margin-bottom: 18px;
  color: #557317;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.medical-notice h2 {
  margin: 0;
  color: var(--navy-deep);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

.medical-notice p {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.7;
}

.medical-notice .medical-notice-support {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.medical-notice button {
  width: 100%;
  min-height: 48px;
  margin-top: 28px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--navy);
  cursor: pointer;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.medical-notice button:hover {
  background: #24384c;
}

.medical-notice button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

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

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

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 25, 36, 0.9) 0%, rgba(15, 25, 36, 0.58) 42%, rgba(15, 25, 36, 0.1) 100%),
    linear-gradient(180deg, rgba(15, 25, 36, 0.12) 36%, rgba(15, 25, 36, 0.82) 100%);
}

.nav-shell {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 48px, 1450px);
  height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line-light);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
  line-height: 1;
}

.brand-symbol {
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 15px;
}

.nav-feedback {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.nav-links a,
.brand,
.nav-action {
  transition: opacity 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-feedback:hover,
.brand:hover {
  opacity: 0.72;
}

.hero-feedback {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 22px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero-feedback:hover {
  color: var(--lime);
}

.suggestion-dialog {
  width: min(calc(100% - 32px), 680px);
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(23, 36, 51, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 28px 90px rgba(3, 9, 15, 0.4);
}

.suggestion-dialog::backdrop {
  background: rgba(8, 15, 23, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.suggestion-form {
  padding: 32px;
}

.suggestion-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.suggestion-head .eyebrow {
  margin: 0 0 10px;
}

.suggestion-head h2 {
  margin: 0;
  color: var(--navy-deep);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
}

.suggestion-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.suggestion-copy {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.suggestion-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.suggestion-form input,
.suggestion-form select,
.suggestion-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 36, 51, 0.2);
  border-radius: 5px;
  color: var(--ink);
  background: #fffefa;
}

.suggestion-form input,
.suggestion-form select {
  min-height: 44px;
  padding: 0 12px;
}

.suggestion-form textarea {
  min-height: 142px;
  padding: 12px;
  resize: vertical;
}

.suggestion-form input:focus,
.suggestion-form select:focus,
.suggestion-form textarea:focus {
  outline: 3px solid rgba(216, 255, 49, 0.58);
  outline-offset: 1px;
  border-color: #738e39;
}

.suggestion-fields {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 14px;
  margin-bottom: 16px;
}

.suggestion-form > label + label {
  margin-top: 16px;
}

.suggestion-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.suggestion-status {
  min-height: 22px;
  margin: 18px 0 0;
  color: #557317;
  font-size: 13px;
  line-height: 1.55;
}

.suggestion-status.is-error {
  color: #a14332;
}

.suggestion-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.suggestion-cancel,
.suggestion-submit {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.suggestion-cancel {
  border: 1px solid var(--line);
  color: var(--navy);
  background: transparent;
}

.suggestion-submit {
  border: 1px solid #bedc20;
  color: #1a2611;
  background: var(--lime);
}

.suggestion-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.nav-action,
.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 999px;
  color: #17211a;
  background: var(--lime);
  font-size: 14px;
  font-weight: 650;
}

.nav-action {
  justify-self: end;
  padding: 0 20px;
}

.nav-action:hover,
.hero-action:hover {
  background: var(--lime-strong);
  transform: translateY(-2px);
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(560px, 1.25fr);
  align-items: center;
  gap: 64px;
  width: min(100% - 48px, 1280px);
  min-height: calc(100svh - 132px);
  margin: 0 auto;
  padding: 72px 0 112px 80px;
}

.hero-copy {
  align-self: center;
  max-width: 520px;
}

.eyebrow {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #fffefa;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(44px, 4.4vw, 58px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 span {
  display: block;
}

.hero-summary {
  max-width: 460px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.65;
}

.hero-action {
  margin-top: 30px;
  padding: 0 22px;
}

.search-panel {
  align-self: center;
  width: 100%;
  max-height: min(540px, calc(100svh - 175px));
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -2px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: "Songti SC", "STSong", serif;
  font-size: 16px;
}

.quick-access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 18px;
}

.quick-access-button {
  min-height: 42px;
  border: 1px solid rgba(23, 36, 51, 0.22);
  border-radius: 6px;
  color: var(--navy);
  background: rgba(231, 238, 252, 0.56);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.quick-access-button:hover,
.quick-access-button:focus-visible {
  border-color: #758f30;
  color: #17211a;
  background: var(--lime);
  outline: 0;
}

.quick-access-button:last-child:nth-child(3) {
  grid-column: 1 / -1;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
}

.live-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ca83d;
  box-shadow: 0 0 0 4px rgba(108, 168, 61, 0.12);
}

label {
  display: block;
  color: #555b5d;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.4;
}

input,
select {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid #cbc9c2;
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: #fffefa;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: #a1a39f;
}

input:hover,
select:hover {
  border-color: #8f948f;
}

input:focus,
select:focus {
  border-color: #6f8423;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(216, 255, 49, 0.32);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  gap: 10px;
  margin-top: 15px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.search-panel > .muted {
  margin: 8px 0 0;
}

#status {
  margin: 18px 0 9px;
  color: #777b78;
  font-size: 11px;
  line-height: 1.4;
}

.disease-list {
  max-height: 205px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  scrollbar-color: #a6aaa4 transparent;
  scrollbar-width: thin;
}

.disease-list::-webkit-scrollbar {
  width: 5px;
}

.disease-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #a6aaa4;
}

.item {
  position: relative;
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 11px 38px 11px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, padding 160ms ease;
}

.item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 3px;
}

.item-action {
  flex: 0 0 auto;
  color: #666d67;
  font-size: 10px;
  font-weight: 700;
}

.item::after {
  position: absolute;
  top: 50%;
  right: 12px;
  content: "→";
  color: #969995;
  transform: translateY(-50%);
  transition: transform 160ms ease, color 160ms ease;
}

.item:hover {
  padding-left: 15px;
  background: rgba(216, 255, 49, 0.22);
}

.item:hover::after {
  color: #20271c;
  transform: translate(4px, -50%);
}

.item.active {
  color: #151b15;
  background: var(--lime);
}

.item.active::after {
  color: #151b15;
}

.item.active .muted {
  color: #4c553d;
}

.item.active .item-action {
  color: #303b21;
}

.item:focus-visible {
  z-index: 1;
  outline: 3px solid rgba(216, 255, 49, 0.78);
  outline-offset: -3px;
}

.hero-index {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
  text-align: center;
}

.content-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 100px max(24px, calc((100vw - 1280px) / 2)) 120px;
  background: linear-gradient(180deg, rgba(243, 240, 232, 0.7), rgba(243, 240, 232, 0.78));
}

.content-shell[hidden] {
  display: none;
}

body[data-view="home"] .content-shell {
  display: none;
}

body[data-view="detail"] .hero,
body[data-view="compatibility"] .hero,
body[data-view="physical-exam"] .hero,
body[data-view="laboratory"] .hero,
body[data-view="critical-values"] .hero {
  display: none;
}

body[data-view="detail"] .compatibility-view,
body[data-view="detail"] .physical-exam-view,
body[data-view="detail"] .laboratory-view,
body[data-view="detail"] .critical-values-view,
body[data-view="compatibility"] .detail-view,
body[data-view="compatibility"] .physical-exam-view,
body[data-view="compatibility"] .laboratory-view,
body[data-view="compatibility"] .critical-values-view,
body[data-view="physical-exam"] .detail-view,
body[data-view="physical-exam"] .compatibility-view,
body[data-view="physical-exam"] .laboratory-view,
body[data-view="physical-exam"] .critical-values-view,
body[data-view="laboratory"] .detail-view,
body[data-view="laboratory"] .compatibility-view,
body[data-view="laboratory"] .physical-exam-view,
body[data-view="laboratory"] .critical-values-view,
body[data-view="critical-values"] .detail-view,
body[data-view="critical-values"] .compatibility-view,
body[data-view="critical-values"] .physical-exam-view,
body[data-view="critical-values"] .laboratory-view {
  display: none;
}

.workspace-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -52px 0 54px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: #5d665a;
  font-size: 13px;
  font-weight: 750;
}

.workspace-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(23, 36, 51, 0.18);
  border-radius: 6px;
  color: var(--navy);
  background: rgba(255, 254, 250, 0.82);
  cursor: pointer;
  font-size: 19px;
  font-weight: 700;
}

.workspace-nav-text {
  width: auto;
  padding: 0 14px;
  font-size: 12px;
}

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

.workspace-nav-button:hover {
  border-color: #7b9150;
  background: #fffefa;
}

.compatibility-tool {
  margin-top: 0;
  padding-top: 0;
  scroll-margin-top: 28px;
}

.physical-exam-view {
  padding-bottom: 54px;
}

.laboratory-tool {
  padding-bottom: 54px;
}

.potassium-tool {
  padding-bottom: 54px;
  scroll-margin-top: 28px;
}

.potassium-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 24px;
}

.potassium-head .eyebrow,
.potassium-monitoring .eyebrow,
.potassium-calculator .eyebrow {
  margin: 0 0 14px;
  color: #737873;
}

.potassium-head h2 {
  margin: 0 0 14px;
  font-size: clamp(36px, 4vw, 56px);
}

.potassium-head > div > p:last-child,
.potassium-calculator header > div > p:last-child {
  max-width: 740px;
  margin: 0;
  color: #5e6567;
  line-height: 1.75;
}

.potassium-critical-note {
  padding: 18px;
  border: 1px solid #dfb3a9;
  border-left: 4px solid #ab4437;
  border-radius: 8px;
  color: #5c302b;
  background: rgba(255, 246, 243, 0.92);
  line-height: 1.65;
}

.potassium-critical-note b {
  color: #7e2f25;
}

.potassium-critical-note p {
  margin: 7px 0 0;
}

.critical-value-workflow {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1.65fr);
  gap: 28px;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.82);
}

.critical-workflow-title .eyebrow {
  margin: 0 0 8px;
  color: #737873;
}

.critical-workflow-title h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
}

.critical-value-workflow ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.critical-value-workflow li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
}

.critical-value-workflow li > span {
  color: #879d42;
  font-size: 12px;
  font-weight: 850;
}

.critical-value-workflow b {
  color: #314d72;
  font-size: 13px;
}

.critical-value-workflow p {
  margin: 4px 0 0;
  color: #5b666f;
  font-size: 12px;
  line-height: 1.55;
}

.critical-value-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.critical-value-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(23, 36, 51, 0.18);
  border-radius: 6px;
  color: #425460;
  background: rgba(255, 254, 250, 0.84);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.critical-value-tab:hover,
.critical-value-tab:focus-visible,
.critical-value-tab.is-active {
  border-color: #758f30;
  color: #17211a;
  background: var(--lime);
  outline: 0;
}

.critical-value-profile {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.9);
}

.critical-value-profile[hidden] {
  display: none;
}

.critical-value-profile > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.critical-value-profile h3 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
}

.critical-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.critical-action-grid section {
  min-width: 0;
  padding: 17px;
  border: 1px solid #d8dee5;
  border-radius: 6px;
  background: #fff;
}

.critical-action-grid section:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-color: #d8c99b;
  background: #fffdf4;
}

.critical-action-grid b {
  color: #314d72;
  font-size: 14px;
}

.critical-action-grid section[data-step] > b::before {
  display: inline-block;
  min-width: 25px;
  margin-right: 8px;
  color: #7b902f;
  content: attr(data-step);
  font-size: 11px;
  font-weight: 850;
}

.critical-action-grid ul {
  margin: 10px 0 0;
  padding-left: 19px;
}

.critical-action-grid li {
  color: #53616c;
  font-size: 13px;
  line-height: 1.65;
}

.critical-action-grid li + li {
  margin-top: 6px;
}

.critical-action-grid li strong {
  color: #725a24;
}

.potassium-pathways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.potassium-pathways article {
  min-width: 0;
  padding: 24px 24px 26px 0;
}

.potassium-pathways article + article {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.potassium-kicker {
  margin: 0 0 9px;
  color: #68764c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.potassium-pathways h3,
.potassium-monitoring h3,
.potassium-calculator h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 21px;
}

.potassium-pathways p,
.potassium-pathways li,
.potassium-monitoring li,
.potassium-calculator p,
.potassium-sources p {
  color: #53616c;
  font-size: 14px;
  line-height: 1.7;
}

.potassium-pathways ul,
.potassium-monitoring ul {
  margin: 14px 0 0;
  padding-left: 19px;
}

.potassium-pathways li + li,
.potassium-monitoring li + li {
  margin-top: 7px;
}

.potassium-monitoring {
  margin-top: 28px;
}

.potassium-monitoring > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.potassium-monitoring h3 {
  margin: 0;
}

.potassium-monitoring-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.82);
}

.potassium-monitoring-grid section {
  min-width: 0;
  padding: 20px;
}

.potassium-monitoring-grid section + section {
  border-left: 1px solid var(--line);
}

.potassium-monitoring-grid b {
  color: #314d72;
  font-size: 14px;
}

.potassium-monitoring-grid ul {
  margin-top: 11px;
}

.potassium-calculator {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #cfd9e4;
  border-radius: 8px;
  background: rgba(246, 250, 254, 0.88);
}

.potassium-calculator header {
  margin-bottom: 18px;
}

.potassium-calculator h3 {
  margin-bottom: 8px;
}

.potassium-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.potassium-form-grid label {
  display: grid;
  gap: 7px;
  color: #465968;
  font-size: 12px;
  font-weight: 750;
}

.potassium-form-grid input {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid #b9c7d6;
  border-radius: 6px;
  color: var(--ink);
  background: #fffefa;
  font: inherit;
}

.potassium-calculate-button {
  min-height: 40px;
  margin-top: 16px;
  padding: 0 15px;
  border: 1px solid #6e8830;
  border-radius: 6px;
  color: #1d2a19;
  background: var(--lime);
  cursor: pointer;
  font-weight: 800;
}

.potassium-calculate-button:hover,
.potassium-calculate-button:focus-visible {
  border-color: #465c20;
  background: #c9f42d;
  outline: 0;
}

.potassium-result {
  margin-top: 16px;
}

.potassium-result:empty {
  display: none;
}

.potassium-result-card {
  padding: 16px;
  border: 1px solid #b7c9df;
  border-radius: 6px;
  color: #40515d;
  background: #fff;
  line-height: 1.65;
}

.potassium-result-card b {
  color: #274e78;
}

.potassium-result-card p {
  margin: 7px 0 0;
}

.potassium-result-card ul {
  margin: 8px 0 0;
  padding-left: 19px;
}

.potassium-result-warning {
  border-color: #dfb3a9;
  color: #62342d;
  background: #fff8f5;
}

.potassium-result-warning b {
  color: #8a3329;
}

.potassium-sources {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 28px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.potassium-sources b {
  color: var(--navy);
}

.potassium-sources p {
  margin: 7px 0 0;
}

.potassium-source-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.potassium-source-links a {
  color: #315eaa;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.laboratory-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 22px;
}

.laboratory-head .eyebrow {
  margin: 0 0 14px;
  color: #737873;
}

.laboratory-head h2 {
  margin: 0 0 14px;
  font-size: clamp(36px, 4vw, 56px);
}

.laboratory-head > div > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #5e6567;
  line-height: 1.75;
}

.laboratory-search {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.laboratory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.laboratory-chips button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(23, 36, 51, 0.18);
  border-radius: 6px;
  color: #475860;
  background: rgba(231, 238, 252, 0.58);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.laboratory-chips button:hover,
.laboratory-chips button:focus-visible {
  border-color: #758f30;
  color: #17211a;
  background: var(--lime);
  outline: 0;
}

.laboratory-reading-guide {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #d4dce7;
  border-radius: 8px;
  background: rgba(247, 249, 252, 0.86);
  color: #4f5d68;
  font-size: 13px;
  line-height: 1.65;
}

.laboratory-reading-guide summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 700;
}

.laboratory-reading-guide ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.laboratory-reading-guide li + li {
  margin-top: 5px;
}

.laboratory-reading-guide b {
  color: #314d72;
}

.laboratory-abbreviations {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #d4dce7;
  border-radius: 8px;
  background: var(--white);
  color: #4f5d68;
  font-size: 13px;
  line-height: 1.65;
}

.laboratory-abbreviations summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 700;
}

.laboratory-abbreviations dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  margin: 12px 0 0;
}

.laboratory-abbreviations dl div {
  padding-bottom: 8px;
  border-bottom: 1px solid #e3e8ef;
}

.laboratory-abbreviations dt {
  color: #314d72;
  font-weight: 700;
}

.laboratory-abbreviations dd {
  margin: 3px 0 0;
}

.laboratory-status {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.laboratory-results {
  display: grid;
  gap: 14px;
}

.laboratory-query-context {
  margin: 0;
  color: #53616c;
  font-size: 13px;
  line-height: 1.55;
}

.laboratory-query-context span {
  display: inline-block;
  margin-right: 9px;
  padding: 2px 7px;
  border: 1px solid #c4d4ee;
  border-radius: 4px;
  color: #315eaa;
  background: #f3f7fd;
  font-size: 12px;
  font-weight: 700;
}

.laboratory-query-context b {
  color: var(--navy);
}

.laboratory-result-guide {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid #dbe4d0;
  border-radius: 8px;
  background: #f7faf3;
  color: #53614f;
}

.laboratory-result-guide > b {
  color: #3f5d3c;
  font-size: 13px;
}

.laboratory-result-guide ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.laboratory-result-guide li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  line-height: 1.55;
}

.laboratory-result-guide li > span {
  display: inline-grid;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #729064;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.laboratory-result-guide p {
  margin: 0;
}

.laboratory-result-guide strong {
  color: #40533d;
}

.laboratory-related-diseases,
.laboratory-more-results-content {
  display: grid;
  gap: 14px;
}

.laboratory-section-title {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.laboratory-more-results {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
}

.laboratory-more-results summary {
  color: #315eaa;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.laboratory-more-results-content {
  margin-top: 14px;
}

.laboratory-start {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.laboratory-start > div {
  padding: 20px;
}

.laboratory-start > div + div {
  border-left: 1px solid var(--line);
  background: #f7f9fc;
}

.laboratory-start h3 {
  margin: 0;
  color: var(--navy-deep);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
}

.laboratory-start p:not(.laboratory-eyebrow) {
  margin: 10px 0 0;
  color: #596167;
  font-size: 13px;
  line-height: 1.7;
}

.laboratory-start .laboratory-example {
  color: #536d2a;
}

.laboratory-test-summary,
.laboratory-followup,
.laboratory-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.laboratory-test-summary {
  padding: 18px 20px;
  border-left: 4px solid var(--lime-strong);
}

.laboratory-test-summary h3,
.laboratory-card h3 {
  margin: 0;
  color: var(--navy-deep);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
}

.laboratory-test-name,
.laboratory-test-purpose {
  display: block;
}

.laboratory-test-purpose {
  margin-top: 5px;
  color: #64757a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.laboratory-test-summary p,
.laboratory-card > p {
  margin: 10px 0 0;
  color: #596167;
  font-size: 13px;
  line-height: 1.7;
}

.laboratory-test-summary .laboratory-summary-note {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #dfe7d1;
  color: #566251;
}

.laboratory-test-summary p span,
.laboratory-indicator p span,
.laboratory-next-test p span {
  display: inline-block;
  min-width: 76px;
  margin-right: 8px;
  color: #344f75;
  font-weight: 700;
}

.laboratory-followup {
  padding: 20px;
  border-left: 4px solid #c97c1a;
  background: #fffdf8;
}

.laboratory-followup > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.laboratory-eyebrow {
  margin: 0 0 6px;
  color: #8a5613;
  font-size: 12px;
  font-weight: 700;
}

.laboratory-next-tests {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.laboratory-section-label {
  margin: 0;
  color: #6b4a14;
  font-size: 13px;
  font-weight: 700;
}

.laboratory-next-test {
  padding: 12px 14px;
  border-left: 3px solid #d5a259;
  background: #fff8ea;
}

.laboratory-next-test b,
.laboratory-next-test p {
  display: block;
}

.laboratory-next-test b {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
}

.laboratory-next-test b .laboratory-test-name,
.laboratory-next-test b .laboratory-test-purpose,
.laboratory-indicator b .laboratory-test-name,
.laboratory-indicator b .laboratory-test-purpose {
  display: block;
}

.laboratory-next-test b .laboratory-test-purpose,
.laboratory-indicator b .laboratory-test-purpose {
  margin-top: 4px;
  color: #6e725d;
  font-size: 12px;
  font-weight: 500;
}

.laboratory-next-test b i {
  display: inline-grid;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: #d5a259;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
}

.laboratory-next-test p {
  margin: 5px 0 0;
  color: #596167;
  font-size: 13px;
  line-height: 1.6;
}

.laboratory-reading {
  color: #7b5a11;
}

.laboratory-red-flags {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #ecc9c2;
  background: #fff7f5;
  color: #7b3025;
  font-size: 13px;
  line-height: 1.6;
}

.laboratory-red-flags ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.laboratory-card {
  padding: 20px;
}

.laboratory-fallback-card {
  border-left: 4px solid #a5adb4;
  background: #fbfcfd;
}

.laboratory-fallback-note {
  margin: 14px 0 0;
  color: #5d6871;
  font-size: 13px;
  line-height: 1.65;
}

.laboratory-fallback-tests {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: #455760;
  font-size: 13px;
  line-height: 1.6;
}

.laboratory-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.laboratory-card-header .tag {
  flex: 0 0 auto;
}

.laboratory-focus-tests {
  margin: 14px 0 0;
  color: #355275;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.laboratory-focus-tests .laboratory-test-name {
  display: inline;
}

.laboratory-focus-tests .laboratory-test-purpose {
  display: none;
}

.laboratory-scope {
  margin-top: 15px;
  padding: 11px 13px;
  border-left: 3px solid #6f8c6a;
  background: #f5f8f2;
  color: #53614f;
  font-size: 13px;
  line-height: 1.65;
}

.laboratory-scope b {
  display: block;
  color: #3f5d3c;
  font-size: 12px;
}

.laboratory-scope p {
  margin: 5px 0 0;
}

@media (max-width: 720px) {
  .laboratory-result-guide ol {
    grid-template-columns: 1fr;
  }
}

.laboratory-focus-tests > span:first-child {
  display: inline-block;
  margin-right: 10px;
  color: #65727d;
  font-weight: 600;
}

.laboratory-indicators {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.laboratory-indicator {
  padding: 13px 14px;
  border-left: 3px solid #8aa7dd;
  background: rgba(231, 238, 252, 0.52);
}

.laboratory-indicator b,
.laboratory-indicator p {
  display: block;
}

.laboratory-indicator b {
  color: var(--navy);
  font-size: 13px;
}

.laboratory-indicator p {
  margin: 5px 0 0;
  color: #596167;
  font-size: 13px;
  line-height: 1.6;
}

.laboratory-indicator .laboratory-reading {
  color: #7b5a11;
}

.laboratory-tool abbr {
  border-bottom: 1px dotted currentColor;
  cursor: help;
  text-decoration: none;
}

.laboratory-sources {
  margin-top: 16px;
  font-size: 12px;
}

.laboratory-sources summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 700;
}

.laboratory-source-links {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 2px solid #bfd0ec;
  background: #f7f9fc;
}

.laboratory-source-links a {
  color: #315eaa;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.physical-exam-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 36px;
}

.physical-exam-head .eyebrow {
  margin: 0 0 14px;
  color: #737873;
}

.physical-exam-head h2 {
  margin: 0 0 14px;
  font-size: clamp(36px, 4vw, 56px);
}

.physical-exam-head > div > p:last-child {
  max-width: 710px;
  margin: 0;
  color: #5e6567;
  line-height: 1.75;
}

.exam-system-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.exam-system-tab {
  min-height: 46px;
  padding: 0 8px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #66706b;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.exam-system-tab[aria-selected="true"] {
  border-bottom-color: var(--lime);
  color: var(--navy);
}

.exam-system-tab:hover {
  color: var(--navy);
  background: rgba(216, 255, 49, 0.14);
}

.exam-guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.exam-guide-tab {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #596361;
  background: rgba(255, 254, 250, 0.72);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.exam-guide-tab[aria-pressed="true"] {
  border-color: #819755;
  color: #1d2a20;
  background: var(--lime);
}

.exam-guide-tab:hover {
  border-color: #819755;
  color: var(--navy);
}

.exam-guide {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 48px;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
}

.exam-figure {
  margin: 0;
}

.exam-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.exam-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.exam-guide-copy {
  min-width: 0;
}

.exam-guide-title .tag {
  margin: 0 0 12px;
}

.exam-guide-title h3,
.exam-notes h3 {
  margin: 0;
  color: var(--navy);
  font-size: 25px;
}

.exam-guide-title p {
  margin: 14px 0 0;
  color: #596361;
  line-height: 1.75;
}

.exam-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.exam-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  min-height: 142px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.exam-step-number {
  color: #7b9150;
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
}

.exam-step h4 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 15px;
}

.exam-step p {
  margin: 0;
  color: #606967;
  font-size: 13px;
  line-height: 1.7;
}

.exam-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.exam-notes section {
  min-width: 0;
}

.exam-notes ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: #586360;
  line-height: 1.8;
}

.exam-red-flags h3 {
  color: #7c3030;
}

.exam-red-flags ul {
  color: #764747;
}

.compatibility-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 28px;
}

.compatibility-head .eyebrow {
  margin: 0 0 14px;
  color: #737873;
}

.compatibility-head h2 {
  margin-bottom: 14px;
  font-size: clamp(36px, 4vw, 56px);
}

.compatibility-head > div > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #5e6567;
  line-height: 1.75;
}

.compatibility-search {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.compatibility-status {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.compatibility-results {
  display: grid;
  gap: 18px;
}

.compatibility-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.compatibility-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.compatibility-card h3 {
  font-family: "Songti SC", "STSong", serif;
  font-size: 30px;
  font-weight: 400;
}

.compatibility-kicker {
  margin: 0 0 6px;
  color: #798078;
  font-size: 11px;
  font-weight: 700;
}

.compatibility-formulation {
  margin: 18px 0;
  line-height: 1.7;
}

.compatibility-card h4 {
  margin: 24px 0 10px;
  color: #31393d;
  font-size: 13px;
}

.context-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.context-notes > div {
  padding: 14px 16px;
  border-top: 3px solid #7a9152;
  background: #f4f6ef;
}

.context-notes p {
  margin: 7px 0 0;
  color: #4e5758;
  line-height: 1.65;
}

.compatibility-lines {
  display: grid;
  gap: 8px;
}

.compatibility-line {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(240px, 1fr);
  gap: 6px 18px;
  padding: 14px 16px;
  border-left: 4px solid;
  background: #f7f7f3;
}

.compatibility-line.compatible {
  border-left-color: #719a34;
  background: #f1f6e8;
}

.compatibility-line.incompatible {
  border-left-color: #bd5e45;
  background: #fff1eb;
}

.compatibility-line > b {
  grid-row: 1 / 3;
  color: #283133;
  line-height: 1.5;
}

.compatibility-line > span,
.compatibility-line > small {
  line-height: 1.6;
}

.compatibility-line > small {
  color: #646b6c;
}

.compatibility-meta {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  margin-top: 8px;
}

.compatibility-meta ul {
  margin: 0;
  padding-left: 20px;
  color: #434b50;
  line-height: 1.75;
}

.compatibility-meta p {
  margin: 0;
  color: #434b50;
  line-height: 1.75;
}

.source-links {
  display: grid;
  gap: 7px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.source-links a {
  width: fit-content;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source-links a:hover {
  color: #173f84;
}

#detail {
  min-width: 0;
  scroll-margin-top: 28px;
}

.detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.06;
}

h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.35;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 2px 5px 2px 0;
  padding: 0 9px;
  border: 1px solid #c8d4ea;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 700;
}

.diagnosis-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.diagnosis-card section {
  min-width: 0;
}

.diagnosis-card .diagnosis-primary {
  grid-column: 1 / -1;
}

.diagnosis-card section + section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.diagnosis-card b,
.order-card b {
  color: #222b31;
}

.diagnosis-card p,
.order-card p {
  margin: 10px 0 0;
  color: #434b50;
  line-height: 1.72;
}

.diagnosis-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #434b50;
  line-height: 1.72;
}

.warning {
  margin: 0 0 22px;
  padding: 13px 15px;
  border: 1px solid #dec27e;
  border-radius: 6px;
  color: var(--warn);
  background: var(--warn-bg);
  line-height: 1.55;
}

.diagnosis-preview {
  margin-top: 14px;
}

.diagnosis-preview:empty {
  display: none;
}

.diagnosis-preview section {
  padding: 18px;
  border: 1px solid rgba(204, 223, 75, 0.72);
  border-radius: 6px;
  background: #fbfff0;
}

.diagnosis-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #53602f;
  font-size: 11px;
  font-weight: 700;
}

.diagnosis-preview h3 {
  color: var(--ink);
}

.diagnosis-preview p {
  margin: 10px 0 14px;
  color: #434b50;
  line-height: 1.65;
}

.diagnosis-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
}

.diagnosis-preview-list {
  padding: 12px;
  border: 1px solid rgba(122, 143, 42, 0.2);
  background: rgba(255, 255, 255, 0.68);
}

.diagnosis-preview-list:last-child {
  grid-column: 1 / -1;
}

.diagnosis-preview-list > b {
  color: #283214;
  font-size: 12px;
}

.diagnosis-preview-list ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #434b50;
  font-size: 12px;
  line-height: 1.6;
}

.diagnosis-preview-list li + li {
  margin-top: 3px;
}

.diagnosis-preview button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

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

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

.order-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.order-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.order-card:hover {
  border-color: rgba(74, 91, 54, 0.42);
  box-shadow: 0 16px 38px rgba(28, 36, 43, 0.09);
  transform: translateY(-4px);
}

.order-card:hover::before {
  transform: scaleX(1);
}

.order-compatibility {
  margin: 18px 0;
  padding: 15px 0 15px 16px;
  border-left: 4px solid #8ba531;
  background: linear-gradient(90deg, rgba(216, 255, 49, 0.16), transparent 78%);
}

.order-compatibility + .order-compatibility {
  margin-top: -10px;
}

.order-compatibility-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.order-compatibility-title a {
  flex: none;
  color: var(--blue);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-compatibility p {
  margin-top: 7px;
}

.order-compatibility .context-guidance {
  color: #2c3828;
}

.detail-footer {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  color: #31518d;
  background: #e8edf8;
  font-size: 0.92em;
}

.hero-copy,
.search-panel {
  opacity: 1;
  transform: none;
}

body.is-ready .hero-copy {
  animation: none;
}

body.is-ready .search-panel {
  animation: none;
}

.reveal-card {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-card.is-visible {
  animation: card-in 520ms cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
    width: min(100% - 32px, 900px);
  }

  .nav-links {
    display: none;
  }

  .hero-feedback {
    min-height: 36px;
  }

  .hero {
    min-height: auto;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 760px);
    min-height: auto;
    padding: 70px 0 110px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .search-panel {
    max-height: none;
  }

  .disease-list {
    max-height: 300px;
  }

  .hero-index {
    display: none;
  }

  .compatibility-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .physical-exam-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .laboratory-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .potassium-head,
  .potassium-sources {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .critical-value-workflow {
    grid-template-columns: 1fr;
  }

  .critical-value-workflow ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .potassium-pathways,
  .potassium-monitoring-grid {
    grid-template-columns: 1fr;
  }

  .potassium-pathways article,
  .potassium-pathways article + article {
    padding: 22px 0;
    border-left: 0;
  }

  .potassium-pathways article + article,
  .potassium-monitoring-grid section + section {
    border-top: 1px solid var(--line);
  }

  .potassium-monitoring-grid section + section {
    border-left: 0;
  }

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

  .exam-guide {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 700px) {
  .medical-notice-body {
    padding: 26px 22px 22px;
  }

  .suggestion-form {
    padding: 24px 20px;
  }

  .suggestion-fields {
    grid-template-columns: 1fr;
  }

  .medical-notice h2 {
    font-size: 26px;
  }

  .medical-notice p {
    font-size: 16px;
  }

  .nav-action {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .brand {
    font-size: 17px;
  }

  .hero-shell {
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

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

  .filter-grid label:first-child {
    grid-column: 1 / -1;
  }

  .content-shell {
    padding: 72px 16px 86px;
  }

  .workspace-nav {
    margin: -36px 0 36px;
  }

  .workspace-actions {
    gap: 5px;
  }

  .workspace-nav-text {
    padding: 0 10px;
  }

  .diagnosis-card,
  .orders-grid,
  .compatibility-meta {
    grid-template-columns: 1fr;
  }

  .diagnosis-preview-grid {
    grid-template-columns: 1fr;
  }

  .diagnosis-preview-list:last-child {
    grid-column: auto;
  }

  .diagnosis-card section + section {
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-head {
    align-items: flex-start;
  }

  .compatibility-tool {
    margin-bottom: 64px;
    padding-bottom: 54px;
  }

  .exam-system-tab {
    font-size: 12px;
  }

  .exam-steps,
  .exam-notes {
    grid-template-columns: 1fr;
  }

  .exam-step {
    min-height: auto;
  }

  .compatibility-card {
    padding: 20px;
  }

  .compatibility-card > header {
    display: block;
  }

  .compatibility-card > header .tag {
    margin-top: 12px;
  }

  .laboratory-card-header {
    display: block;
  }

  .laboratory-card-header .tag {
    display: inline-block;
    margin-top: 10px;
  }

  .laboratory-start {
    grid-template-columns: 1fr;
  }

  .laboratory-start > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .laboratory-abbreviations dl {
    grid-template-columns: 1fr;
  }

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

  .critical-value-workflow {
    padding: 18px;
  }

  .critical-value-workflow ol,
  .critical-action-grid {
    grid-template-columns: 1fr;
  }

  .critical-action-grid section:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .critical-value-profile {
    padding: 18px;
  }

  .critical-value-profile > header {
    display: block;
  }

  .critical-value-profile > header .tag {
    display: inline-block;
    margin-top: 10px;
  }

  .potassium-calculator {
    padding: 20px;
  }

  .potassium-monitoring > div:first-child {
    display: block;
  }

  .potassium-monitoring > div:first-child .eyebrow {
    margin-bottom: 7px;
  }

  .compatibility-line {
    grid-template-columns: 1fr;
  }

  .context-notes {
    grid-template-columns: 1fr;
  }

  .compatibility-line > b {
    grid-row: auto;
  }

  .order-compatibility-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero-copy,
  .search-panel,
  .reveal-card {
    opacity: 1;
    transform: none;
  }
}
