/* === FamCare drug cards: SynapseRx Psych-style profile pass 2026-06-16 === */
.drug-profile {
  --drug-card-ink: #13263a;
  --drug-card-muted: #5f7084;
  --drug-card-line: rgba(45, 94, 130, .16);
}
.profile-hero.psych-style {
  min-height: 164px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 22px 24px !important;
  border-radius: 20px !important;
  border: 1px solid color-mix(in srgb, var(--class-border) 50%, rgba(255,255,255,.45));
  background:
    radial-gradient(circle at 88% 24%, rgba(255,255,255,.34), transparent 20%),
    linear-gradient(118deg, rgba(13,33,54,.98), rgba(31,101,126,.92) 52%, color-mix(in srgb, var(--class-border) 48%, #b7e5ec)) !important;
  box-shadow: 0 18px 42px rgba(16, 42, 71, .20);
}
.profile-title-block {
  position: relative;
  z-index: 1;
}
.profile-title-block > span {
  display: block;
  color: rgba(255,255,255,.76) !important;
  font-size: .72rem !important;
  font-weight: 850;
  letter-spacing: .1em !important;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.profile-hero.psych-style h2 {
  margin: 0 0 8px;
  font-size: clamp(2.1rem, 4vw, 3.9rem) !important;
  line-height: .92 !important;
  letter-spacing: 0;
}
.profile-hero.psych-style p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.88) !important;
  font-size: .98rem !important;
  line-height: 1.35;
}
.profile-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.profile-hero-chips b {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #13314b;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.55);
  font-size: .72rem;
  font-weight: 850;
}
.profile-hero.psych-style .profile-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 270px;
}
.profile-hero.psych-style .profile-actions button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: #153b58;
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 8px 18px rgba(4,19,32,.15);
  font-size: .76rem;
  font-weight: 850;
}
.profile-hero.psych-style .profile-watermark {
  right: 26px;
  bottom: 8px;
  opacity: .13;
  font-size: 7rem;
}
.indication-strip,
.about-med-panel,
.clinical-fit-panel {
  border: 1px solid var(--drug-card-line);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(15, 41, 70, .07);
}
.indication-strip {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 13px 14px;
  background: linear-gradient(180deg, rgba(239,249,252,.96), rgba(255,255,255,.92));
}
.indication-strip span,
.section-kicker {
  color: #52697e;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.indication-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.indication-strip b {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 9px;
  color: #15516f;
  background: #f0fbff;
  border: 1px solid #b9e7f5;
  font-size: .74rem;
  font-weight: 850;
}
.about-med-panel {
  margin-top: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f8fcff, #eefaf6);
}
.about-med-panel p {
  margin: 8px 0 0;
  color: var(--drug-card-ink);
  font-size: .95rem;
  line-height: 1.55;
}
.clinical-fit-panel {
  margin-top: 12px;
  padding: 14px;
}
.clinical-fit-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #223d55;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.clinical-fit-head span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #eaf6ff;
  border: 1px solid #b7d8f2;
}
.clinical-fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.fit-card {
  min-height: 118px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #d7e4ef;
  background: #f8fbfd;
}
.fit-card h3 {
  margin: 0 0 8px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fit-card p {
  margin: 0;
  color: #26394d;
  font-size: .82rem;
  line-height: 1.45;
}
.fit-card.best { background: #f0fbf3; border-color: #b7e6c5; }
.fit-card.best h3 { color: #14743c; }
.fit-card.caution { background: #fff8ed; border-color: #f5c98c; }
.fit-card.caution h3 { color: #a04d12; }
.fit-card.counsel { background: #eff6ff; border-color: #bdd7ff; }
.fit-card.counsel h3 { color: #1d4f91; }
.psych-metrics {
  margin-top: 12px;
}
.psych-metrics .mini-card {
  min-height: 112px;
  align-items: flex-start;
  background: linear-gradient(180deg, #ffffff, #f7fbfd);
}
.psych-section-stack {
  margin-top: 14px;
}
.psych-section-stack .drug-disclosure {
  overflow: hidden;
  background: rgba(255,255,255,.94);
}
.psych-section-stack .drug-disclosure.primary {
  border-left: 4px solid #36a7d1;
}
.psych-section-stack .drug-disclosure.caution {
  border-left: 4px solid #f2994a;
  background: #fffaf2;
}
.drug-related-pathways,
.pc-overlay-panel,
.decision-support-panel {
  margin-top: 14px;
}
@media (max-width: 980px) {
  .profile-hero.psych-style {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .profile-hero.psych-style .profile-actions {
    justify-content: flex-start;
    max-width: none;
  }
  .clinical-fit-grid,
  .drug-metric-grid.psych-metrics {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .profile-hero.psych-style {
    padding: 18px 16px !important;
    border-radius: 16px !important;
  }
  .profile-hero.psych-style h2 {
    font-size: 2.15rem !important;
  }
  .profile-hero.psych-style .profile-actions button {
    flex: 1 1 auto;
  }
  .indication-strip,
  .about-med-panel,
  .clinical-fit-panel {
    border-radius: 14px;
  }
}


/* === FamCare drug cards: safety/practice polish 2026-06-16 === */
.about-pearl {
  margin-top: 12px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(52, 116, 150, .14);
}
.about-pearl b {
  color: #17435d;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.about-pearl span {
  color: #2d4256;
  font-size: .82rem;
  line-height: 1.45;
}
.critical-safety-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.critical-safety-strip > div {
  min-height: 86px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(229, 128, 63, .35);
  background: linear-gradient(180deg, #fffaf2, #fff6e7);
  box-shadow: 0 8px 18px rgba(88, 53, 18, .06);
}
.critical-safety-strip > div:nth-child(2) {
  border-color: rgba(213, 76, 76, .28);
  background: linear-gradient(180deg, #fff8f7, #fff1f0);
}
.critical-safety-strip span {
  display: block;
  margin-bottom: 7px;
  color: #994912;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.critical-safety-strip > div:nth-child(2) span {
  color: #9a2f2f;
}
.critical-safety-strip p {
  margin: 0;
  color: #3a2d22;
  font-size: .82rem;
  line-height: 1.45;
}
@media (max-width: 720px) {
  .about-pearl,
  .critical-safety-strip {
    grid-template-columns: 1fr;
  }
}


/* === FamCare disclosure stability pass 2026-06-16 === */
.clinical-disclosure {
  scroll-margin-top: 132px;
}
.clinical-disclosure .disclosure-summary {
  position: relative;
  user-select: none;
}
.clinical-disclosure .disclosure-summary:focus-visible,
.rail-links a:focus-visible {
  outline: 3px solid rgba(44, 126, 168, .32);
  outline-offset: 3px;
}
.clinical-disclosure .disclosure-body {
  display: block !important;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transition: max-height .22s ease, opacity .18s ease, padding .18s ease;
}
.clinical-disclosure.is-open .disclosure-body {
  max-height: 1800px;
  opacity: 1;
  padding-top: 13px !important;
  padding-bottom: 15px !important;
}
.clinical-disclosure:not(.is-open) .disclosure-body {
  display: block !important;
}
.drug-disclosure .disclosure-summary b {
  min-width: 52px;
  text-align: center;
}
.rail-links a {
  cursor: pointer;
}
.section-focus-pulse {
  animation: sectionFocusPulse .9s ease;
}
@keyframes sectionFocusPulse {
  0% { box-shadow: 0 0 0 0 rgba(42, 126, 168, .45), 0 8px 22px rgba(15,41,70,.07); }
  100% { box-shadow: 0 0 0 12px rgba(42, 126, 168, 0), 0 8px 22px rgba(15,41,70,.07); }
}
@media (prefers-reduced-motion: reduce) {
  .clinical-disclosure .disclosure-body { transition: none; }
  .section-focus-pulse { animation: none; }
}


/* === FamCare workstation parity pass: SynapseRx-style shell 2026-06-16 === */
:root {
  --fc-blue-deep: #10243f;
  --fc-blue: #1f6fa8;
  --fc-cyan: #2aa8bd;
  --fc-soft-blue: #eef7fd;
  --fc-line-blue: #d6e5f1;
  --fc-panel-shadow: 0 12px 30px rgba(19, 51, 82, .09);
  --fc-dock-bottom: 18px;
}
body {
  background:
    linear-gradient(180deg, rgba(248,251,252,.86), rgba(243,248,247,.88)),
    url("../assets/famcare-premium-main-atlas-v2b.png") center top / cover fixed no-repeat !important;
}
.header {
  min-height: 76px !important;
  padding: 10px 26px !important;
  grid-template-columns: minmax(176px, auto) minmax(420px, 1fr) auto !important;
  background: linear-gradient(90deg, rgba(12,31,53,.96), rgba(19,54,83,.95) 55%, rgba(26,71,78,.93)) !important;
  border-bottom: 1px solid rgba(196,223,239,.24) !important;
  box-shadow: 0 16px 38px rgba(9, 25, 45, .24) !important;
}
.brand-lockup {
  gap: 10px !important;
}
.brand-badge {
  width: 54px !important;
  height: 54px !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(2, 16, 28, .26) !important;
}
.brand-lockup strong {
  font-size: 1.22rem !important;
  letter-spacing: -.02em !important;
}
.brand-lockup small {
  font-size: .78rem !important;
  color: rgba(229,244,251,.86) !important;
}
.search-wrap {
  min-height: 52px !important;
  border-radius: 18px !important;
  padding: 6px !important;
  background: rgba(255,255,255,.95) !important;
  border: 1px solid rgba(218,234,244,.72) !important;
  box-shadow: inset 0 0 0 1px rgba(10,37,59,.04), 0 14px 30px rgba(0,0,0,.16) !important;
}
.history-btn, #search-button {
  min-height: 40px !important;
  border-radius: 13px !important;
}
#search-input {
  min-height: 40px !important;
  font-size: .95rem !important;
}
.utility-btn, .text-btn, .drug-count {
  border-radius: 999px !important;
  font-weight: 850 !important;
}
.tabs {
  top: 76px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 6px 18px !important;
  background: rgba(248,252,254,.94) !important;
  box-shadow: 0 9px 20px rgba(18, 54, 86, .10) !important;
}
.tab, .subtab {
  min-height: 29px !important;
  padding: 6px 11px !important;
  border-radius: 10px !important;
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--tab-border, #bfdbfe) 58%, transparent) !important;
}
.content {
  width: min(1500px, calc(100% - 28px)) !important;
  grid-template-columns: 194px minmax(0, 1fr) !important;
  gap: 14px !important;
}
.home-mode .content {
  width: min(1320px, calc(100% - 28px)) !important;
  grid-template-columns: minmax(0, 1fr) !important;
}
.sidebar {
  top: 132px !important;
  padding: 7px 6px 122px 0 !important;
  background: rgba(255,255,255,.62) !important;
  border-right: 1px solid rgba(204,222,235,.72) !important;
  box-shadow: 12px 0 34px rgba(15, 41, 70, .045) !important;
}
.sidebar-item {
  min-height: 50px !important;
  padding: 8px 9px !important;
  border-radius: 10px !important;
  background: linear-gradient(90deg, var(--class-bg, #f8fbff), rgba(255,255,255,.94) 70%) !important;
  border-left: 4px solid var(--class-border, #cfe0ee) !important;
  box-shadow: inset 0 -1px 0 rgba(214,226,238,.85) !important;
}
.sidebar-item:hover {
  transform: translateY(-1px) !important;
  box-shadow: inset 0 0 0 1px var(--class-border, #cfe0ee), 0 8px 18px rgba(24, 70, 108, .08) !important;
}
.sidebar-item.active {
  color: #fff !important;
  background: linear-gradient(135deg, #113556, #1f6fa8 62%, #2aa8bd) !important;
  border-left-color: #a7e8f5 !important;
  box-shadow: 0 13px 28px rgba(15, 76, 126, .24) !important;
}
.sidebar-item.active strong,
.sidebar-item.active span {
  color: #fff !important;
}
.main-panel {
  padding: 16px 0 132px !important;
}
.drug-profile.vu-drug-page {
  max-width: 1460px;
  margin: 0 auto;
}
.drug-profile .profile-layout {
  grid-template-columns: minmax(0, 1fr) 310px !important;
  gap: 18px !important;
}
.profile-hero.psych-style {
  min-height: 190px !important;
  padding: 24px 26px 22px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 88% 24%, rgba(255,255,255,.30), transparent 18%),
    radial-gradient(circle at 78% 78%, color-mix(in srgb, var(--class-border, #2aa8bd) 32%, transparent), transparent 28%),
    linear-gradient(118deg, #10233f 0%, #1f567d 54%, color-mix(in srgb, var(--class-border, #89d5e1) 50%, #b4eef2) 100%) !important;
  box-shadow: 0 20px 46px rgba(16, 52, 88, .22) !important;
}
.profile-hero.psych-style h2 {
  font-size: clamp(2.45rem, 4.5vw, 4.45rem) !important;
}
.profile-hero.psych-style .profile-actions button,
.rail-actions button,
.section-control-pair button {
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease !important;
}
.profile-hero.psych-style .profile-actions button:hover,
.rail-actions button:hover,
.section-control-pair button:hover {
  transform: translateY(-1px);
}
.indication-strip,
.about-med-panel,
.clinical-fit-panel,
.critical-safety-strip > div,
.pc-overlay-panel,
.decision-support-panel,
.info-section,
.rail-card {
  border-color: var(--fc-line-blue) !important;
  box-shadow: var(--fc-panel-shadow) !important;
}
.profile-rail {
  top: 134px !important;
}
.rail-card {
  background: rgba(255,255,255,.94) !important;
  border-radius: 16px !important;
}
.rail-card-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.rail-card-headline h3 {
  margin: 0 !important;
}
.section-control-pair {
  display: flex;
  gap: 5px;
}
.section-control-pair button {
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid #cfe0ee;
  border-radius: 999px;
  background: #f6fbff;
  color: #17405f;
  font-size: .66rem;
  font-weight: 900;
}
.rail-links {
  display: grid !important;
  gap: 7px !important;
}
.rail-links a,
.rail-links button {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 9px 10px !important;
  border: 1px solid #dbe8f2 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #fff, #f8fbff) !important;
  color: #17385f !important;
  font-size: .78rem !important;
  font-weight: 850 !important;
  text-align: left;
  cursor: pointer;
}
.rail-links a::after,
.rail-links button::after {
  content: "›";
  color: #2b78a9;
  font-size: 1rem;
  font-weight: 950;
}
.clinical-disclosure {
  border-radius: 15px !important;
  background: rgba(255,255,255,.96) !important;
}
.clinical-disclosure .disclosure-summary {
  min-height: 50px !important;
  padding: 12px 14px !important;
}
.clinical-disclosure .disclosure-summary span {
  color: #17385f !important;
  font-size: .9rem !important;
}
.clinical-disclosure .disclosure-summary b {
  color: #31536d !important;
  background: #eef7fd !important;
  border-color: #c9deed !important;
}
.clinical-disclosure .disclosure-summary::after {
  background: linear-gradient(135deg, #1f6fa8, #2aa8bd) !important;
}
.clinical-disclosure.is-open .disclosure-summary {
  background: linear-gradient(180deg, #f7fbff, #ffffff) !important;
}
.bottom-nav {
  left: 50% !important;
  right: auto !important;
  bottom: calc(var(--fc-dock-bottom) + env(safe-area-inset-bottom, 0px)) !important;
  transform: translateX(-50%) !important;
  width: min(1210px, calc(100% - 32px)) !important;
  min-height: 76px !important;
  padding: 8px 12px !important;
  gap: 7px !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.91) !important;
  border: 1px solid rgba(204,222,235,.86) !important;
  box-shadow: 0 -6px 24px rgba(15, 41, 70, .08), 0 18px 48px rgba(14, 39, 64, .20) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  overflow-x: auto !important;
  scrollbar-width: none;
}
.bottom-nav::-webkit-scrollbar { display: none; }
.bottom-nav button {
  flex: 0 0 104px !important;
  min-height: 58px !important;
  border-radius: 15px !important;
  color: #456276 !important;
  font-size: .72rem !important;
  font-weight: 850 !important;
  background: transparent !important;
}
.bottom-nav button.active {
  color: #133b5c !important;
  background: linear-gradient(180deg, #ffffff, var(--nav-soft, #e8f3fb)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nav-accent, #1f6fa8) 34%, transparent), 0 9px 20px rgba(22, 86, 132, .13) !important;
}
.bottom-nav .nav-icon {
  display: grid !important;
  place-items: center !important;
  width: 31px !important;
  height: 31px !important;
  margin-bottom: 3px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 3px 9px rgba(21,50,80,.10) !important;
}
.bottom-nav button.active .nav-icon {
  color: var(--nav-accent, #1f6fa8) !important;
}
@media (max-width: 1180px) {
  .content { grid-template-columns: 1fr !important; }
  .sidebar { position: static !important; max-height: 230px !important; overflow: auto !important; border-right: 0 !important; }
  .drug-profile .profile-layout { grid-template-columns: 1fr !important; }
  .profile-rail { position: static !important; max-height: none !important; }
}
@media (max-width: 760px) {
  .header { grid-template-columns: 1fr !important; padding: 8px 12px !important; }
  .header-top { display: flex !important; }
  .search-wrap { grid-column: auto !important; }
  .tabs { top: 116px !important; }
  .content, .home-mode .content { width: min(100% - 16px, 100%) !important; }
  .bottom-nav { width: calc(100% - 16px) !important; min-height: 70px !important; padding: 7px !important; border-radius: 18px !important; }
  .bottom-nav button { flex-basis: 84px !important; font-size: .66rem !important; }
}


/* === FamCare clinical tool boards 2026-06-16 === */
.algorithm-tool-board,
.lab-compass-board,
.clinical-branch-board {
  margin: 14px 0;
  border: 1px solid rgba(178, 204, 222, .92);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--fc-panel-shadow);
  overflow: hidden;
}
.algorithm-tool-head,
.lab-compass-head,
.clinical-branch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(235,247,253,.98), rgba(245,251,249,.98));
  border-bottom: 1px solid rgba(206, 224, 238, .82);
}
.algorithm-tool-head span,
.lab-compass-head span,
.clinical-branch-head span {
  display: block;
  margin-bottom: 5px;
  color: #2c719a;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.algorithm-tool-head h3,
.lab-compass-head h3,
.clinical-branch-head h3 {
  margin: 0;
  color: #102b46;
  font-size: 1.08rem;
  letter-spacing: -.01em;
}
.algorithm-tool-head p,
.lab-compass-head p {
  max-width: 860px;
  margin: 7px 0 0;
  color: #52687c;
  font-size: .86rem;
  line-height: 1.45;
}
.algorithm-tool-head button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #bfd8ea;
  background: #fff;
  color: #16496c;
  font-size: .72rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(23, 70, 108, .09);
}
.algorithm-tool-grid,
.lab-compass-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}
.algorithm-tool-grid article,
.lab-compass-grid article {
  min-height: 166px;
  padding: 13px;
  border: 1px solid #dce9f2;
  border-radius: 15px;
  background: linear-gradient(180deg, #fff, #f8fbfd);
}
.algorithm-tool-grid article.first,
.lab-compass-grid article.fit {
  background: linear-gradient(180deg, #f0fbff, #ffffff);
  border-color: #bfe1f3;
}
.algorithm-tool-grid article.factor,
.lab-compass-grid article.monitor {
  background: linear-gradient(180deg, #f4fbf3, #ffffff);
  border-color: #c6e7c8;
}
.algorithm-tool-grid article.backup,
.lab-compass-grid article.caution {
  background: linear-gradient(180deg, #fff8ef, #ffffff);
  border-color: #f0c78d;
}
.algorithm-tool-grid article.monitor,
.lab-compass-grid article.pearl {
  background: linear-gradient(180deg, #f4f6ff, #ffffff);
  border-color: #ccd8ff;
}
.algorithm-tool-grid span,
.lab-compass-grid span {
  color: #607285;
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.algorithm-tool-grid h4,
.lab-compass-grid h4 {
  margin: 6px 0 8px;
  color: #142d45;
  font-size: .93rem;
  line-height: 1.15;
}
.algorithm-tool-grid ul,
.lab-compass-grid ul,
.branch-grid ul {
  margin: 8px 0 0;
  padding-left: 1rem;
  color: #32485b;
  font-size: .8rem;
  line-height: 1.42;
}
.algorithm-tool-grid .use-chips {
  margin: 8px 0;
}
.clinical-branch-board {
  padding-bottom: 10px;
}
.clinical-branch-board .branch-disclosure {
  margin: 10px 14px 0;
  border-left: 4px solid #2f86b8;
}
.clinical-branch-board .branch-disclosure.renal {
  border-left-color: #2d8b71;
}
.clinical-branch-board .branch-disclosure.neutral {
  border-left-color: #7b8ca1;
}
.branch-disclosure .disclosure-body h4 {
  margin: 0 0 10px;
  color: #16334f;
  font-size: .95rem;
}
.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.branch-grid article {
  padding: 11px;
  border: 1px solid #dce8f1;
  border-radius: 13px;
  background: #fbfdff;
}
.branch-grid strong {
  display: block;
  color: #244e6f;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lab-compass-board + .lab-pattern-map,
.lab-pattern-map + .lab-action-map,
.lab-action-map + .lab-table-section {
  margin-top: 14px;
}
@media (max-width: 1120px) {
  .algorithm-tool-grid,
  .lab-compass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .branch-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .algorithm-tool-head,
  .lab-compass-head,
  .clinical-branch-head {
    display: grid;
  }
  .algorithm-tool-grid,
  .lab-compass-grid {
    grid-template-columns: 1fr;
  }
}


/* === FamCare professional visual reset 2026-06-17 === */
:root {
  --fc-ink: #10243a;
  --fc-muted: #5d7081;
  --fc-surface: rgba(255,255,255,.94);
  --fc-border: rgba(190, 211, 226, .78);
  --fc-blue-1: #123b5b;
  --fc-blue-2: #1f75a8;
  --fc-teal-1: #168a9b;
  --fc-gold: #caa45b;
  --fc-shadow-soft: 0 14px 36px rgba(16, 42, 67, .10);
  --fc-shadow-lift: 0 18px 48px rgba(16, 42, 67, .16);
}
html,
body {
  min-height: 100%;
}
body {
  background:
    linear-gradient(180deg, rgba(250,253,254,.72), rgba(244,249,250,.82)),
    url("../assets/famcare-premium-main-atlas-v2b.png") center top / cover fixed no-repeat !important;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.72), transparent 32%),
    linear-gradient(90deg, rgba(255,255,255,.72), rgba(255,255,255,.20) 45%, rgba(255,255,255,.68));
  z-index: -1;
}
.header {
  background:
    linear-gradient(90deg, rgba(13, 28, 47, .96), rgba(18, 62, 88, .96) 58%, rgba(30, 87, 95, .94)) !important;
}
.brand-badge {
  background: #fff url("../assets/famcare-logo.png") center / 84% auto no-repeat !important;
}
.home-v2 {
  width: min(1280px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
  padding: 18px 0 118px !important;
}
.home-hero {
  position: relative !important;
  min-height: 360px !important;
  display: grid !important;
  place-items: center !important;
  padding: 34px 26px !important;
  border: 1px solid rgba(214, 229, 238, .34) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(90deg, rgba(8, 23, 38, .88), rgba(11, 36, 55, .66) 46%, rgba(11, 42, 47, .22)),
    url("../assets/famcare-premium-hero-atlas-v2a.png") center center / cover no-repeat !important;
  box-shadow: 0 28px 70px rgba(11, 39, 63, .28), inset 0 0 0 1px rgba(255,255,255,.08) !important;
  overflow: hidden !important;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.10), transparent 26%),
    linear-gradient(180deg, transparent 0%, rgba(2, 11, 18, .12) 100%);
}
.home-hero-inner {
  position: relative !important;
  z-index: 1 !important;
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  text-align: center !important;
  display: grid !important;
  justify-items: center !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.home-hero-eyebrow {
  color: #d7ecf6 !important;
  font-size: .72rem !important;
  font-weight: 950 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.35) !important;
}
.home-hero-title {
  max-width: 760px !important;
  margin: 9px auto 10px !important;
  color: #fff !important;
  font-size: clamp(2.7rem, 5vw, 4.7rem) !important;
  line-height: .94 !important;
  letter-spacing: -.035em !important;
  text-shadow: 0 4px 24px rgba(0,0,0,.44) !important;
}
.home-hero-sub {
  max-width: 650px !important;
  margin: 0 auto 22px !important;
  color: rgba(237, 248, 252, .92) !important;
  font-size: 1.02rem !important;
  line-height: 1.45 !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.38) !important;
}
.home-hero-search-wrap {
  position: relative !important;
  width: min(720px, 100%) !important;
  margin: 0 auto !important;
}
.home-hero-search-icon {
  left: 18px !important;
  color: #1f6d91 !important;
}
.home-hero-search {
  width: 100% !important;
  min-height: 62px !important;
  padding: 0 20px 0 54px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255,255,255,.82) !important;
  background: rgba(255,255,255,.96) !important;
  color: #10243a !important;
  font-size: 1rem !important;
  font-weight: 650 !important;
  box-shadow: 0 18px 38px rgba(5, 23, 38, .26) !important;
}
.home-hero-search:focus {
  outline: 3px solid rgba(72, 178, 218, .34) !important;
  outline-offset: 3px !important;
}
.home-quick-strip {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 11px !important;
  margin: 18px auto 20px !important;
  padding: 0 !important;
}
.home-quick-btn {
  flex: 0 1 142px !important;
  max-width: 154px !important;
  min-height: 92px !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  text-align: center !important;
  gap: 4px !important;
  padding: 12px 10px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(198, 216, 229, .86) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,249,252,.95)) !important;
  box-shadow: var(--fc-shadow-soft) !important;
  color: var(--fc-ink) !important;
}
.home-quick-btn:nth-child(1) { --q: #2b78a6; }
.home-quick-btn:nth-child(2) { --q: #1f8a9e; }
.home-quick-btn:nth-child(3) { --q: #6b5bb8; }
.home-quick-btn:nth-child(4) { --q: #c07a2b; }
.home-quick-btn:nth-child(5) { --q: #526ea8; }
.home-quick-btn:nth-child(6) { --q: #18876d; }
.home-quick-btn:nth-child(7) { --q: #b2537d; }
.home-quick-btn:nth-child(8) { --q: #697689; }
.home-quick-btn::before {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--q, var(--fc-blue-2));
}
.home-quick-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--fc-shadow-lift) !important;
}
.home-quick-icon {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 0 3px !important;
  border-radius: 12px !important;
  background: color-mix(in srgb, var(--q, #2b78a6) 13%, white) !important;
  color: var(--q, #2b78a6) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--q, #2b78a6) 20%, transparent) !important;
}
.home-quick-btn strong {
  color: #10243a !important;
  font-size: .79rem !important;
  line-height: 1.05 !important;
}
.home-quick-btn small {
  color: #657789 !important;
  font-size: .66rem !important;
  line-height: 1.12 !important;
}
.home-section-label {
  width: min(1120px, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.home-drug-sys-grid {
  width: min(1120px, 100%) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)) !important;
  justify-content: center !important;
  gap: 12px !important;
}
.home-sys-drug-card {
  min-height: 132px !important;
  border-radius: 19px !important;
  border: 1px solid rgba(199, 216, 229, .86) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,253,.94)) !important;
  box-shadow: var(--fc-shadow-soft) !important;
  overflow: hidden !important;
}
.home-sys-drug-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--sc, #2b78a6);
  opacity: .9;
}
.home-sys-drug-card strong {
  color: #10243a !important;
}
.home-disclaimer {
  width: min(1120px, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-color: rgba(198,216,229,.8) !important;
  background: rgba(255,255,255,.78) !important;
  color: #415469 !important;
}
.profile-hero,
.clinical-profile .profile-hero,
.library-hero {
  background:
    linear-gradient(120deg, rgba(15, 38, 63, .94), rgba(28, 91, 123, .84) 58%, rgba(36, 123, 132, .72)),
    url("../assets/app-background.png") center / cover no-repeat !important;
}
@media (max-width: 760px) {
  .home-v2 {
    width: min(100% - 18px, 100%) !important;
    padding-top: 10px !important;
  }
  .home-hero {
    min-height: 330px !important;
    padding: 28px 14px !important;
    border-radius: 22px !important;
  }
  .home-hero-title {
    font-size: clamp(2.1rem, 9vw, 3rem) !important;
  }
  .home-quick-btn {
    flex: 1 1 calc(50% - 10px) !important;
    max-width: none !important;
  }
}

/* === FamCare background visibility fix 2026-06-17 === */
body {
  background:
    linear-gradient(180deg, rgba(250,253,254,.24), rgba(244,249,250,.34)),
    url("../assets/famcare-premium-main-atlas-v2b.png") center top / cover fixed no-repeat !important;
}
body::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.24), transparent 30%),
    linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.04) 44%, rgba(255,255,255,.20)) !important;
}
.app,
.content,
.home-mode .content,
.main-panel,
.home-v2,
.home-drug-sys-grid {
  background: transparent !important;
}
.main-panel {
  isolation: isolate;
}
.home-section-label {
  background: rgba(255,255,255,.58) !important;
  border: 1px solid rgba(198,216,229,.55) !important;
  border-radius: 16px !important;
  padding: 10px 12px !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.home-quick-btn,
.home-sys-drug-card,
.home-disclaimer,
.sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(247,251,253,.70)) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.rail-card,
.info-section,
.algorithm-tool-board,
.lab-compass-board,
.clinical-branch-board,
.pathway-card,
.system-card,
.tool-panel {
  background: rgba(255,255,255,.88) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* === FamCare background visibility boost 2026-06-17 === */
body {
  background-color: #f5f3e8 !important;
  background:
    linear-gradient(180deg, rgba(250,253,254,.06), rgba(244,249,250,.14)),
    url("../assets/famcare-premium-main-atlas-v2b.png") center top / cover fixed no-repeat !important;
}
body::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.12), transparent 30%),
    linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,0) 44%, rgba(255,255,255,.10)) !important;
}
.content,
.main-panel,
.home-v2 {
  box-shadow: none !important;
}
@media (max-width: 760px) {
  body {
    background:
      linear-gradient(180deg, rgba(250,253,254,.04), rgba(244,249,250,.10)),
      url("../assets/famcare-premium-main-atlas-v2b.png") 72% top / auto 100vh fixed no-repeat !important;
  }
  body::before {
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.10)) !important;
  }
}

/* === FamCare flow clarity pass 2026-06-17 === */
.home-start-label,
.home-secondary-label {
  margin-top: 16px !important;
  margin-bottom: 10px !important;
}
.home-start-label span::before {
  content: "↳ ";
  color: #2b78a6;
}
.fc-start-lanes {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 13px !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}
.fc-start-lane {
  max-width: none !important;
  min-height: 128px !important;
  padding: 16px 14px !important;
  border-radius: 20px !important;
  align-content: start !important;
  justify-items: start !important;
  text-align: left !important;
}
.fc-start-lane .home-quick-icon {
  width: 38px !important;
  height: 38px !important;
  margin-bottom: 8px !important;
}
.fc-start-lane strong {
  font-size: .92rem !important;
  line-height: 1.1 !important;
}
.fc-start-lane small {
  max-width: 24ch;
  font-size: .71rem !important;
  line-height: 1.22 !important;
}
.fc-start-lane.treat { --q: #315f86; }
.fc-start-lane.symptoms { --q: #d97706; }
.fc-start-lane.meds { --q: #278b83; }
.fc-start-lane.labs { --q: #38a6b8; }
.fc-secondary-actions {
  margin-top: 0 !important;
  margin-bottom: 22px !important;
}
.fc-secondary-actions .home-quick-btn {
  flex-basis: 154px !important;
  min-height: 84px !important;
}
.bottom-nav button[data-mode="algorithms"] {
  --nav-accent: #315f86;
  --nav-soft: #e8f1f8;
}
@media (max-width: 920px) {
  .fc-start-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 560px) {
  .fc-start-lanes {
    grid-template-columns: 1fr !important;
  }
  .fc-start-lane {
    min-height: 108px !important;
  }
}

/* === FamCare Treat Dx tool upgrade 2026-06-17 === */
.treat-dx-picker,
.treat-question-strip {
  border: 1px solid rgba(177, 205, 224, .82);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(244,249,252,.84));
  box-shadow: 0 14px 34px rgba(20, 46, 69, .09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px;
  margin-bottom: 14px;
}
.treat-dx-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.treat-dx-picker-head span,
.treat-question-title span {
  display: block;
  color: #2f729b;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.treat-dx-picker-head h3 {
  margin: 0 0 4px;
  color: #13263a;
  font-size: 1.06rem;
  line-height: 1.1;
}
.treat-dx-picker-head p {
  margin: 0;
  max-width: 760px;
  color: #5e7184;
  font-size: .82rem;
  line-height: 1.4;
}
.treat-dx-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #18415f;
  background: #e8f4fb;
  border: 1px solid #bbd8eb;
  font-size: .72rem;
  font-weight: 900;
}
.treat-dx-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 9px;
}
.treat-dx-chip-grid button {
  min-height: 78px;
  padding: 11px 12px;
  text-align: left;
  border-radius: 15px;
  border: 1px solid rgba(190, 211, 226, .92);
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 18px rgba(20, 46, 69, .06);
  cursor: pointer;
}
.treat-dx-chip-grid button:hover {
  transform: translateY(-1px);
  border-color: #7fb8d7;
  box-shadow: 0 12px 24px rgba(20, 46, 69, .10);
}
.treat-dx-chip-grid button.active {
  background: linear-gradient(180deg, #e7f5fb, #ffffff);
  border-color: #2f8dbd;
  box-shadow: inset 4px 0 0 #2f8dbd, 0 12px 26px rgba(47, 141, 189, .16);
}
.treat-dx-chip-grid strong {
  display: block;
  color: #10243a;
  font-size: .8rem;
  line-height: 1.12;
  margin-bottom: 4px;
}
.treat-dx-chip-grid span,
.treat-dx-chip-grid small {
  display: block;
  color: #657789;
  font-size: .68rem;
  line-height: 1.18;
}
.treat-dx-chip-grid small {
  margin-top: 5px;
  color: #2a7181;
  font-weight: 800;
}
.treat-question-strip {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) minmax(0, 2fr);
  gap: 13px;
  background: linear-gradient(135deg, rgba(19, 38, 58, .94), rgba(26, 83, 117, .88));
  border-color: rgba(173, 211, 232, .32);
}
.treat-question-title strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.22;
}
.treat-question-title span {
  color: #bde6f7;
}
.treat-question-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 9px;
}
.treat-question-steps article {
  min-height: 104px;
  padding: 11px;
  border-radius: 15px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
}
.treat-question-steps article > span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 7px;
  border-radius: 9px;
  color: #13314b;
  background: #ffffff;
  font-size: .72rem;
  font-weight: 950;
}
.treat-question-steps article > strong {
  display: block;
  color: #ffffff;
  font-size: .78rem;
  line-height: 1.15;
  margin-bottom: 8px;
}
.treat-question-steps .linked-drug-tags {
  gap: 5px;
}
.treat-question-steps .linked-drug-tags button {
  min-height: 23px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #10314b;
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.76);
  font-size: .64rem;
}
@media (max-width: 760px) {
  .treat-dx-picker-head,
  .treat-question-strip {
    grid-template-columns: 1fr;
    display: grid;
  }
  .treat-dx-count {
    width: fit-content;
  }
}

