/* myMedKitt — Pearl White + 3D Metallic Design System */

:root {
  /* Backgrounds & Surfaces */
  --color-bg: #FAFAF5;
  --color-surface-card: #FFFFFF;
  --color-surface-hover: #F0F0EB;
  --color-border: #E0E0DA;

  /* Text */
  --color-text-primary: #1A1A1A;
  --color-text-secondary: #5A5A5A;
  --color-text-muted: #8A8A8A;

  /* Accents */
  --color-umber: #B87333;
  --color-decision-active: #3CB371;
  --color-primary: #3CB371;
  --color-primary-dark: #2E8B57;
  --color-danger: #ff4757;
  --color-warning: #ffa502;
  --color-info: #3498db;

  /* Legacy semantic colors (for drug categories) */
  --color-cardiac: #C62828;
  --color-pain: #E65100;
  --color-sedation: #00695C;
  --color-paralytic: #AD1457;

  /* Typography */
  --font-mono: 'SF Mono', Monaco, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 50px;

  /* Shadows (light theme) */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-3d: 0 4px 8px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
}

/* ===================================================================
   HEADER
   =================================================================== */

.app-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  background: var(--color-surface-card);
  border-bottom: 1px solid var(--color-border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .icon {
  font-size: 24px;
}

.logo h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.logo-img {
  height: 32px;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  color: var(--color-text-secondary);
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--color-surface-hover);
}

/* ===================================================================
   MAIN CONTENT
   =================================================================== */

.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.tab-content {
  display: none;
  height: 100%;
  overflow-y: auto;
  padding: 20px;
}

.tab-content.active {
  display: block;
}

/* ===================================================================
   3D BUTTON SYSTEM — PRD Section 7
   =================================================================== */

.btn-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  color: #FFFFFF;
  /* Charcoal metallic 4-stop gradient */
  background: linear-gradient(to bottom, #6a6a6a 0%, #4a4a4a 40%, #3a3a3a 60%, #2a2a2a 100%);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  transition: all 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-3d:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 3px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Green (Yes/Affirmative) — PRD 7.2 */
.btn-3d.selected-yes,
.btn-3d--green {
  background: linear-gradient(to bottom, #5cb85c 0%, #449d44 40%, #398439 60%, #2d6a2d 100%);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}

/* Black (No/Negative) — PRD 7.3 */
.btn-3d.selected-no,
.btn-3d--black {
  background: linear-gradient(to bottom, #3a3a3a 0%, #2a2a2a 40%, #1a1a1a 60%, #0a0a0a 100%);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Critical (Red) */
.btn-3d--critical {
  background: linear-gradient(to bottom, #ef5350 0%, #e53935 40%, #c62828 60%, #8e0000 100%);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}

/* Urgent (Orange) */
.btn-3d--urgent {
  background: linear-gradient(to bottom, #ffb74d 0%, #ffa502 40%, #e68a00 60%, #bf6f00 100%);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}

/* Dimmed (unselected in answered card) */
.btn-3d--dimmed {
  background: linear-gradient(to bottom, #bbb 0%, #999 40%, #888 60%, #666 100%);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.1);
  opacity: 0.6;
  transform: scale(0.95);
  pointer-events: none;
}

/* Specialty variant — gradient set inline via JS */
.btn-3d-specialty {
  /* gradient set inline by getSpecialtyGradient() */
}

/* ===================================================================
   DECISION CARD
   =================================================================== */

.card-stack-container {
  padding: 16px;
  padding-bottom: 100px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.decision-card {
  background: var(--color-surface-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  animation: card-appear 0.3s ease-out;
}

@keyframes card-appear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.decision-card--answered {
  opacity: 0.9;
  padding: 12px 16px;
}

/* Answered card: Question + Answer layout */
.answered-card__question {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.answered-card__answer {
  display: inline-block;
  width: auto;
}

.decision-card--active {
  box-shadow: var(--shadow-md);
}

.decision-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.decision-card__body {
  font-size: 15px;
  color: var(--color-text-primary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.decision-card__body p {
  margin-bottom: 8px;
}

.decision-card__body p:last-child {
  margin-bottom: 0;
}

.decision-card__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.decision-card__option-desc {
  display: block;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 2px;
}

/* Result badge */
.decision-card__result-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.decision-card__result-badge--definitive {
  background: var(--color-decision-active);
}

.decision-card__result-badge--recommended {
  background: var(--color-info);
}

.decision-card__result-badge--consider {
  background: var(--color-warning);
}

/* ===================================================================
   OVERLAY PANEL
   =================================================================== */

.overlay-panel-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
  animation: overlay-fade-in 0.2s ease;
}

@keyframes overlay-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.overlay-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  background: var(--color-surface-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  z-index: 901;
  display: flex;
  flex-direction: column;
  animation: overlay-slide-up 0.3s ease-out;
  overflow: hidden;
}

@keyframes overlay-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.overlay-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.overlay-panel__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.overlay-panel__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-hover);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: var(--color-text-secondary);
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.overlay-panel__close:hover {
  background: var(--color-border);
}

.overlay-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

/* ===================================================================
   EXPANDABLE SECTION
   =================================================================== */

.expandable-section {
  border: none;
  margin: 8px 0;
}

.expandable-section summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  padding: 8px 0;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.expandable-section summary::-webkit-details-marker {
  display: none;
}

.expandable-section summary::before {
  content: '\25B8';
  font-size: 12px;
  transition: transform 0.2s;
}

.expandable-section[open] summary::before {
  transform: rotate(90deg);
}

.expandable-section__content {
  padding: 8px 0 8px 18px;
  font-size: 15px;
  color: var(--color-text-primary);
  line-height: 1.6;
  animation: expand-in 0.2s ease-out;
}

@keyframes expand-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   CONTEXTUAL TOOLBAR
   =================================================================== */

.contextual-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--color-surface-card);
  border-top: 1px solid var(--color-border);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.contextual-toolbar::-webkit-scrollbar {
  display: none;
}

.contextual-toolbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  color: var(--color-text-secondary);
  font-size: 10px;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  white-space: nowrap;
}

.contextual-toolbar__icon {
  font-size: 22px;
  line-height: 1;
}

.contextual-toolbar__item--active {
  color: var(--color-primary);
}

/* ===================================================================
   SPLASH SCREEN
   =================================================================== */

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0f0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  transition: opacity 0.5s ease;
}

.splash-screen--fading {
  opacity: 0;
}

.splash-screen__logo {
  width: 120px;
  height: 120px;
  animation: splash-fade-in 0.5s ease-out;
}

@keyframes splash-fade-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ===================================================================
   SPLASH SCREEN
   =================================================================== */

.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: #0f0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.splash-overlay--fading {
  opacity: 0;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: splash-fade-in 0.5s ease-out;
}

.splash-logo {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(184,115,51,0.3));
}

.splash-title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 2px;
  color: #FFFFFF;
  text-shadow: 0 0 20px rgba(184,115,51,0.4);
}

@keyframes splash-fade-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ===================================================================
   DASHBOARD (Home Screen)
   =================================================================== */

.dashboard {
  padding: 16px;
  padding-bottom: 80px;
  background: linear-gradient(180deg, #EBEBED 0%, #F5F5F7 50%, #E8E8EA 100%);
  min-height: 100vh;
}

/* ---- Logo Header ---- */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0 20px;
}

.dashboard-header__logo {
  height: 64px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.dashboard-header__title {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 1px;
  color: #3A3A3A;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

/* Italic "my" prefix styling */
.dashboard-header__title-my {
  font-style: italic;
  font-weight: 400;
  color: #2E7D32;
}

/* ---- Search ---- */
.dashboard-subheader {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 4px 12px;
}

.dashboard-subheader__search {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: 20px;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

.dashboard-subheader__share {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: 20px;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

.dashboard-subheader__share:hover {
  background: var(--color-surface-hover);
}

.dashboard-subheader__search:hover {
  background: var(--color-surface-hover);
}

.dashboard-search {
  display: none;
  padding: 0 0 12px;
}

.dashboard-search--open {
  display: block;
}

.dashboard-search__input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  background: var(--color-surface-card);
  color: var(--color-text-primary);
  outline: none;
}

.dashboard-search__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(60,179,113,0.15);
}

/* ---- Staggered 2-Column Grid ---- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

/* Right column offset for staggered effect (dashboard.png aesthetic) */
.dashboard-grid > :nth-child(2) {
  margin-top: 36px;
}

/* ---- 3D Glossy Specialty Cards ---- */
.dashboard-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 86px;
  padding: 16px 14px 12px;
  /* 3D luminous border — bright top/left edges, dark bottom/right */
  border: 1.5px solid rgba(255,255,255,0.28);
  border-right-color: rgba(0,0,0,0.18);
  border-bottom-color: rgba(0,0,0,0.25);
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  color: #FFFFFF;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  overflow: hidden;
  /* Premium 3D depth — outer shadow + inset lighting */
  box-shadow:
    0 8px 20px rgba(0,0,0,0.32),
    0 3px 8px rgba(0,0,0,0.18),
    inset 0 2px 1px rgba(255,255,255,0.30),
    inset 0 -3px 6px rgba(0,0,0,0.30);
  transition: all 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Glossy highlight band — the key 3D effect */
.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.42) 0%,
    rgba(255,255,255,0.22) 30%,
    rgba(255,255,255,0.06) 60%,
    transparent 100%);
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}

/* Sparkle glint — removed (looked like Gemini logo) */

.dashboard-card:active {
  transform: translateY(2px) scale(0.98);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.2),
    0 1px 3px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 2px rgba(0,0,0,0.15);
}

.dashboard-card__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.dashboard-card__count {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  align-self: flex-end;
  position: relative;
  z-index: 1;
  /* Highlighted recessed badge */
  background: rgba(255,255,255,0.12);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
  color: rgba(255,255,255,0.9);
}

/* ---- Disclaimer ---- */
.dashboard-disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--color-text-muted);
  padding: 20px 16px 0;
  line-height: 1.5;
}

/* ---- Unlock All (shared mode) ---- */
.dashboard-unlock {
  display: block;
  margin: 20px auto 0;
  padding: 12px 32px;
  font-size: 15px;
}

/* ---- Search Results ---- */
.dashboard-search-results {
  padding: 0 4px;
}

/* ===================================================================
   SPECIALTY VIEW
   =================================================================== */

.specialty-view {
  padding: 0;
}

.specialty-view__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.specialty-view__back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  color: #FFFFFF;
  font-size: 18px;
  -webkit-tap-highlight-color: transparent;
}

.specialty-view__title {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
}

.specialty-view__home {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  color: #FFFFFF;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

.specialty-view__search {
  padding: 12px 20px;
}

.specialty-view__search input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-card);
  color: var(--color-text-primary);
}

.specialty-view__search input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.specialty-view__list {
  padding: 8px 16px 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===================================================================
   CONSULT FLOW HEADER
   =================================================================== */

.consult-flow-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 50;
}

.consult-flow-header__back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  color: #FFFFFF;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

.consult-flow-header__reset {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  color: #FFFFFF;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

.consult-flow-header__title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.consult-flow-header__progress {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 8px;
  min-width: 28px;
  text-align: center;
}

.consult-flow-header__progress:empty {
  display: none;
}

.consult-flow-header__share {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  color: #FFFFFF;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

.consult-flow-header__home {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  color: #FFFFFF;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

/* ===================================================================
   SEARCH BAR (Expandable)
   =================================================================== */

.search-bar {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  padding: 0 16px;
}

.search-bar--open {
  max-height: 60px;
  opacity: 1;
  padding: 8px 16px;
}

/* -------------------------------------------------------------------
   CONSULT SEARCH (In-consult node search)
   ------------------------------------------------------------------- */

.consult-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--color-bg);
  position: relative;
}

.consult-search__toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--color-surface-card);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.consult-search__input {
  flex: 1;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0 14px;
  font-size: 15px;
  font-family: var(--font-sans);
  background: var(--color-surface-card);
  color: var(--color-text-primary);
  outline: none;
  opacity: 0;
  width: 0;
  transition: opacity 0.2s ease, width 0.2s ease;
  -webkit-appearance: none;
}

.consult-search__input:focus {
  border-color: var(--color-decision-active);
  box-shadow: 0 0 0 2px rgba(60, 179, 113, 0.15);
}

.consult-search--open .consult-search__input {
  opacity: 1;
  width: auto;
}

.consult-search__results {
  display: none;
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 100;
}

.consult-search__result-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
  border-bottom: 1px solid var(--color-border);
}

.consult-search__result-item:last-child {
  border-bottom: none;
}

.consult-search__result-item:active {
  background: var(--color-surface-hover);
}

.consult-search__result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.consult-search__result-badge {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: rgba(60, 179, 113, 0.12);
  color: var(--color-primary-dark);
  flex-shrink: 0;
}

.consult-search__result-context {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.consult-search__empty {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

.search-bar__input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-card);
  color: var(--color-text-primary);
}

.search-bar__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(60, 179, 113, 0.15);
}

.search-bar__input::placeholder {
  color: var(--color-text-muted);
}

/* Search results */
.search-results {
  padding: 8px 0;
}

.search-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  padding: 12px 4px 6px;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.search-result-item:hover {
  background: var(--color-surface-hover);
}

.search-result-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.search-result-sublabel {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.search-empty {
  text-align: center;
  padding: 24px;
  color: var(--color-text-muted);
}

/* ===================================================================
   DECISION MAP — Branch Point List (Overflow menu from ••• button)
   =================================================================== */

/* -------------------------------------------------------------------
   DECISION MAP — Full-screen table of contents overlay
   ------------------------------------------------------------------- */

.decision-map-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--color-bg);
  animation: overlay-slide-up 0.3s ease-out;
}

.decision-map {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.decision-map__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.decision-map__close {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
}

.decision-map__close:active {
  background: rgba(0,0,0,0.06);
}

.decision-map__scroller {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 4px 0 24px;
}

/* Module sections */
.decision-map__section {
  margin-bottom: 2px;
}

.decision-map__section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  -webkit-tap-highlight-color: transparent;
}

.decision-map__section-header:active {
  background: rgba(0,0,0,0.03);
}

.decision-map__chevron {
  font-size: 12px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.decision-map__section-label {
  flex: 1;
}

.decision-map__section-count {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.5;
}

/* Collapsed state */
.decision-map__section--collapsed .decision-map__section-body {
  display: none;
}

/* Section body */
.decision-map__section-body {
  padding: 0 0 4px;
}

/* Node items */
.decision-map__node {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 20px 10px 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text-primary);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.decision-map__node:active {
  background: rgba(0,0,0,0.06);
}

/* Current node highlight */
.decision-map__node--current {
  background: rgba(184, 115, 51, 0.10);
  font-weight: 600;
  color: var(--color-umber);
}

.decision-map__node--current:active {
  background: rgba(184, 115, 51, 0.18);
}

/* State indicators */
.decision-map__indicator {
  flex-shrink: 0;
  font-size: 10px;
  width: 16px;
  text-align: center;
  line-height: 1;
}

.decision-map__indicator--current {
  color: var(--color-umber);
}

.decision-map__indicator--visited {
  color: var(--color-decision-active);
}

.decision-map__indicator--unvisited {
  color: var(--color-text-secondary);
  opacity: 0.35;
}

/* Node title */
.decision-map__node-title {
  flex: 1;
  min-width: 0;
}

/* Node type badge */
.decision-map__node-type {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.05);
  color: var(--color-text-secondary);
}

/* ===================================================================
   INLINE LINKS & BODY TEXT (shared)
   =================================================================== */

.body-inline-link {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 500;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  -webkit-tap-highlight-color: transparent;
}

.cite-link {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 1px;
  vertical-align: super;
  -webkit-tap-highlight-color: transparent;
}

.cite-highlight {
  background: rgba(60, 179, 113, 0.15);
  border-radius: 4px;
  transition: background 0.3s;
}

/* ===================================================================
   TREATMENT SECTION
   =================================================================== */

.treatment-section {
  margin-top: 16px;
}

.treatment-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

/* Dosing Summary Bar - quick glance at key doses */
.dosing-summary {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #7dd3fc;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
}

.dosing-summary-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
}

.dosing-summary-row:not(:last-child) {
  border-bottom: 1px solid rgba(125, 211, 252, 0.3);
  padding-bottom: 6px;
  margin-bottom: 3px;
}

.dosing-label {
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 32px;
}

.dosing-value {
  font-size: 14px;
  font-weight: 600;
  color: #0c4a6e;
}

.dosing-pcn .dosing-label {
  color: #b45309;
}

.dosing-pcn .dosing-value {
  color: #92400e;
}

.treatment-expandable {
  margin: 8px 0;
}

.treatment-expandable summary {
  cursor: pointer;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 14px;
  padding: 6px 0;
  list-style: none;
}

.treatment-expandable summary::-webkit-details-marker {
  display: none;
}

.treatment-monitoring {
  padding: 8px 0 8px 16px;
}

.drug-regimen-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 8px 0;
}

.drug-regimen-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.drug-regimen-dose {
  margin-bottom: 4px;
}

.drug-regimen-detail {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.drug-regimen-notes {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 4px;
  font-style: italic;
}

/* Dose highlight chip */
.dose-highlight {
  background: rgba(60, 179, 113, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-primary);
}

/* ===================================================================
   DOSING CONFIDENCE VISUAL GRADIENT
   Traffic light color coding for medication doses:
   - Standard (green): High confidence, guideline-backed
   - Caution (amber): Edge of range, special population, needs monitoring
   - Critical (red): Max dose, narrow therapeutic index, high-risk
   =================================================================== */

/* Standard confidence (green) - default for most doses */
.dose-highlight[data-confidence="standard"],
.dosing-value[data-confidence="standard"],
.sticky-dosing-primary[data-confidence="standard"],
.sticky-dosing-row-value[data-confidence="standard"],
.dosing-banner__pill[data-confidence="standard"] {
  background: rgba(60, 179, 113, 0.12);
  border-left: 3px solid #3CB371;
  color: #2E8B57;
}

/* Caution confidence (amber) - edge of range, needs monitoring */
.dose-highlight[data-confidence="caution"],
.dosing-value[data-confidence="caution"],
.sticky-dosing-primary[data-confidence="caution"],
.sticky-dosing-row-value[data-confidence="caution"],
.dosing-banner__pill[data-confidence="caution"] {
  background: rgba(255, 165, 2, 0.12);
  border-left: 3px solid #ffa502;
  color: #b45309;
}

/* Critical confidence (red) - max dose, narrow therapeutic index */
.dose-highlight[data-confidence="critical"],
.dosing-value[data-confidence="critical"],
.sticky-dosing-primary[data-confidence="critical"],
.sticky-dosing-row-value[data-confidence="critical"],
.dosing-banner__pill[data-confidence="critical"] {
  background: rgba(255, 71, 87, 0.12);
  border-left: 3px solid #ff4757;
  color: #c62828;
}

/* Add left padding to accommodate border accent */
.dose-highlight[data-confidence],
.dosing-value[data-confidence],
.sticky-dosing-primary[data-confidence],
.sticky-dosing-row-value[data-confidence] {
  padding-left: 8px;
  border-radius: 0 4px 4px 0;
}

/* Dosing banner pills with confidence - adjust styling */
.dosing-banner__pill[data-confidence] {
  padding-left: 10px;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

/* Drug regimen card with confidence indicator */
.drug-regimen-card[data-confidence="standard"] {
  border-left: 4px solid #3CB371;
}

.drug-regimen-card[data-confidence="caution"] {
  border-left: 4px solid #ffa502;
}

.drug-regimen-card[data-confidence="critical"] {
  border-left: 4px solid #ff4757;
}

/* Dosing summary row with confidence */
.dosing-summary-row[data-confidence="standard"] .dosing-value {
  color: #2E8B57;
}

.dosing-summary-row[data-confidence="caution"] .dosing-value {
  color: #b45309;
}

.dosing-summary-row[data-confidence="critical"] .dosing-value {
  color: #c62828;
}

/* ===================================================================
   RESULT NODE STYLES
   =================================================================== */

.result-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.badge-definitive {
  background: var(--color-decision-active);
}

.badge-recommended {
  background: var(--color-info);
}

.badge-consider {
  background: var(--color-warning);
}

.result-recommendation {
  background: rgba(60, 179, 113, 0.08);
  border-left: 3px solid var(--color-primary);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 12px 0;
}

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

.result-summary summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 8px 0;
}

.result-summary-list {
  padding: 8px 0;
}

.result-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}

.summary-question {
  color: var(--color-text-secondary);
  flex: 1;
}

.summary-answer {
  color: var(--color-text-primary);
  font-weight: 500;
  text-align: right;
  margin-left: 12px;
}

.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.reference-link {
  display: block;
  margin-top: 12px;
  text-align: center;
}

/* ===================================================================
   CONFIDENCE PULSE — Success animation for result nodes
   =================================================================== */

.decision-card--result {
  animation: confidence-pulse 0.5s ease-out;
}

.decision-card--result .decision-card__result-badge,
.decision-card--result .decision-card__title {
  position: relative;
}

/* Animated checkmark that draws itself */
.decision-card--result .decision-card__result-badge::before,
.decision-card--result .decision-card__title::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--color-decision-active);
  border-radius: 50%;
  opacity: 0;
  animation: checkmark-appear 0.3s ease-out 0.2s forwards;
}

.decision-card--result .decision-card__result-badge::after,
.decision-card--result .decision-card__title::after {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-60%) rotate(45deg);
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  opacity: 0;
  animation: checkmark-draw 0.2s ease-out 0.35s forwards;
}

@keyframes confidence-pulse {
  0% {
    box-shadow: var(--shadow-md);
  }
  30% {
    box-shadow: 0 0 0 4px rgba(60, 179, 113, 0.25), var(--shadow-md);
  }
  100% {
    box-shadow: var(--shadow-md);
  }
}

@keyframes checkmark-appear {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes checkmark-draw {
  0% {
    opacity: 0;
    height: 0;
  }
  50% {
    opacity: 1;
    height: 0;
  }
  100% {
    opacity: 1;
    height: 9px;
  }
}

/* ===================================================================
   IMAGES
   =================================================================== */

.wizard-images {
  margin: 12px 0;
}

.wizard-image-figure {
  margin: 8px 0;
}

.wizard-image {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}

.wizard-image-caption {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 4px;
  text-align: center;
}

/* ===================================================================
   CALCULATOR LINKS
   =================================================================== */

.wizard-calc-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.wizard-calc-link {
  font-size: 13px;
}

/* ===================================================================
   DISCLAIMER
   =================================================================== */

.wizard-disclaimer {
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.home-disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--color-text-muted);
  padding: 16px 20px;
  line-height: 1.5;
}

/* ===================================================================
   BUTTONS (general)
   =================================================================== */

.btn-primary {
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  padding: 10px 18px;
  background: var(--color-surface-card);
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
}

.btn-text {
  padding: 10px 16px;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-text:hover {
  color: var(--color-text-primary);
}

/* ===================================================================
   MODAL (legacy — used by info-page, drug-store)
   =================================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.info-modal-overlay {
  align-items: flex-end;
}

.modal-content {
  background: var(--color-surface-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  -webkit-overflow-scrolling: touch;
}

.info-modal-panel {
  max-width: 100%;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-surface-card);
  z-index: 1;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.info-modal-subtitle {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-hover);
  border: none;
  color: var(--color-text-secondary);
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--color-border);
}

.modal-body {
  padding: 20px;
}

/* ===================================================================
   INFO PAGE SECTIONS
   =================================================================== */

.info-page-section {
  margin-bottom: 20px;
}

.info-page-section-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
}

.info-page-text {
  font-size: 15px;
  color: var(--color-text-primary);
  line-height: 1.6;
  margin-bottom: 6px;
}

.info-page-drug-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 8px;
}

.info-page-drug-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.info-page-drug-regimen {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.info-page-citations {
  margin-top: 16px;
}

.info-page-citations summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--color-text-secondary);
  font-size: 14px;
  padding: 8px 0;
}

/* ===================================================================
   REFERENCE TABLE
   =================================================================== */

.reference-citation-list {
  padding: 8px 0;
}

.reference-citation-item {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.5;
}

.reference-citation-num {
  font-weight: 600;
  color: var(--color-primary);
  flex-shrink: 0;
}

.reference-citation-text {
  color: var(--color-text-secondary);
}

.reference-disclaimer {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 16px;
}

/* ===================================================================
   DRUG STORE STYLES
   =================================================================== */

.drug-route-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.drug-section-danger .info-page-text {
  color: var(--color-danger);
}

.drug-section-warning .info-page-text {
  color: var(--color-warning);
}

/* Dose calculator in drug modal */
.dose-calc-panel {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 8px;
}

.dose-calc-mode-row {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.dose-calc-mode-btn {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-card);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.dose-calc-mode-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.dose-calc-input-section {
  margin-bottom: 8px;
}

.dose-calc-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dose-calc-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: var(--color-surface-card);
  color: var(--color-text-primary);
}

.dose-calc-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.dose-calc-input-wide {
  max-width: none;
}

.dose-calc-unit {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.dose-calc-go-btn {
  padding: 10px 16px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.dose-calc-bracket-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.dose-calc-bracket-row {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.dose-calc-bracket-btn {
  flex: 1;
  padding: 8px 6px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-card);
  color: var(--color-text-secondary);
  font-size: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.dose-calc-bracket-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.dose-calc-results {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.dose-calc-weight-summary {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.dose-calc-result-row {
  margin-bottom: 12px;
}

.dose-calc-result-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dose-calc-result-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}

.dose-calc-result-detail {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.dose-calc-result-volume {
  font-size: 15px;
  font-weight: 700;
  color: #C62828;
  margin-top: 4px;
  padding: 4px 8px;
  background: rgba(198, 40, 40, 0.08);
  border-left: 3px solid #C62828;
  border-radius: 2px;
}

/* Pin dose to sticky banner — appears on every dosing card */
.dose-pin-btn {
  display: block;
  margin-top: 8px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dose-pin-btn:active {
  transform: scale(0.96);
}

.dose-pin-btn:disabled {
  background: #888;
  opacity: 0.6;
  cursor: default;
}

.dose-calc-link {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: inherit;
  font-family: var(--font-mono);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Broselow Tape */
.dose-calc-broselow-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.dose-calc-broselow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.dose-calc-broselow-row:active {
  opacity: 0.85;
}

.dose-calc-broselow-row.selected {
  border-color: var(--color-text-primary, #1A1A1A);
  box-shadow: 0 0 0 2px var(--color-text-primary, #1A1A1A);
}

.dose-calc-broselow-name {
  font-weight: 700;
  min-width: 60px;
}

.dose-calc-broselow-info {
  text-align: right;
  font-weight: 500;
  font-size: 13px;
}

.dose-calc-broselow-length-toggle {
  background: none;
  border: none;
  color: var(--color-primary, #3CB371);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  text-align: left;
}

.dose-calc-broselow-length-section {
  margin-top: 4px;
}

.dose-calc-broselow-match {
  font-size: 12px;
  color: var(--color-text-secondary, #5A5A5A);
  margin-top: 4px;
  font-weight: 500;
}

/* ===================================================================
   CALCULATOR STYLES
   =================================================================== */

/* ---- Calculator Search ---- */

.calculator-search-wrap {
  margin: 8px 0 16px;
}

.calculator-search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-card);
  color: var(--color-text-primary);
}

.calculator-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ---- Calculator Header ---- */

.calculator-header {
  text-align: center;
  padding: 16px 0 8px;
}

.calculator-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.calculator-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.calculator-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-align: center;
  padding: 0 16px 16px;
  line-height: 1.5;
}

/* ---- Score Display — 3D Glassmorphism Umber ---- */

.calculator-score-display {
  margin: 16px auto 20px;
  padding: 20px 24px;
  max-width: 320px;
  text-align: center;
  border-radius: 16px;
  /* Glassmorphism: frosted glass + umber tones */
  background: linear-gradient(135deg,
    rgba(184, 115, 51, 0.15) 0%,
    rgba(184, 115, 51, 0.08) 50%,
    rgba(184, 115, 51, 0.12) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(184, 115, 51, 0.3);
  box-shadow:
    0 8px 24px rgba(184, 115, 51, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 2px rgba(184, 115, 51, 0.15);
}

.calculator-score-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-umber);
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(184, 115, 51, 0.25);
  letter-spacing: -1px;
}

.calculator-result-label {
  font-size: 16px;
  font-weight: 700;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calculator-result-risk {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

.calculator-risk-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 20px;
  margin-top: 8px;
  border: 2px solid;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.calculator-risk-class {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calculator-risk-level {
  font-size: 13px;
  font-weight: 500;
}

.calculator-mortality {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

/* ---- Calculator Form — Field Cards ---- */

.calculator-form {
  padding: 0 4px;
}

.calculator-field {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.calculator-field-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.calculator-field-desc {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.calculator-field-points {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-umber);
  background: rgba(184, 115, 51, 0.1);
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ---- Toggle Switch (checkbox replacement) ---- */

.calculator-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calculator-toggle-label-wrap {
  flex: 1;
  min-width: 0;
}

.calculator-toggle {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
  flex-shrink: 0;
  cursor: pointer;
}

.calculator-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.calculator-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #C8C8CA;
  border-radius: 32px;
  transition: background 0.2s;
}

.calculator-toggle-slider::before {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  left: 3px;
  bottom: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.calculator-toggle-input:checked + .calculator-toggle-slider {
  background: var(--color-umber);
}

.calculator-toggle-input:checked + .calculator-toggle-slider::before {
  transform: translateX(24px);
}

/* ---- Number Input ---- */

.calculator-number-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.calculator-number-input {
  width: 80px;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-card);
  color: var(--color-text-primary);
  text-align: center;
}

.calculator-number-input:focus {
  outline: none;
  border-color: var(--color-umber);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.15);
}

.calculator-number-unit {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ---- Select Dropdown ---- */

.calculator-select-row {
  margin-bottom: 4px;
}

.calculator-select-input-row {
  margin-top: 8px;
}

.calculator-select-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-card);
  color: var(--color-text-primary);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A5A5A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.calculator-select-input:focus {
  outline: none;
  border-color: var(--color-umber);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.15);
}

/* ---- Threshold Note & Citations ---- */

.calculator-threshold {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  padding: 16px 16px 8px;
  line-height: 1.5;
  font-style: italic;
}

.calculator-citations {
  margin: 12px 0 24px;
  padding: 0 4px;
}

.calculator-citations summary {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
  padding: 8px 0;
}

.calculator-citation-list {
  padding-left: 24px;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===================================================================
   CATEGORY VIEW HEADER (legacy — still used by drug list etc.)
   =================================================================== */

.category-view-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}

.category-view-icon {
  font-size: 32px;
}

.category-view-icon img {
  border-radius: 8px;
}

.category-view-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* ===================================================================
   TREE LIST (legacy — still used by drug list, category-view)
   =================================================================== */

.tree-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tree-card {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.tree-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.tree-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.tree-card-subtitle {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.tree-card-count {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ===================================================================
   HOME SEARCH (legacy — still used by category-grid)
   =================================================================== */

.home-search-bar {
  display: flex;
  align-items: center;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 16px;
  margin-bottom: 16px;
}

.home-search-bar .search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.home-search-bar .search-icon svg {
  width: 18px;
  height: 18px;
}

.home-search-bar input {
  flex: 1;
  padding: 14px 12px;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--color-text-primary);
}

.home-search-bar input:focus {
  outline: none;
}

.home-search-bar input::placeholder {
  color: var(--color-text-muted);
}

.home-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-card);
  color: var(--color-text-primary);
  font-size: 16px;
}

.home-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.category-search-input {
  margin-bottom: 12px;
}

/* ===================================================================
   ROLODEX (legacy — still used by category-grid until dashboard replaces it)
   =================================================================== */

.rolodex {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rolodex-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: #FFFFFF;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 72px;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.rolodex-card:active {
  transform: scale(0.98);
}

.rolodex-card--add {
  background: var(--color-surface-card) !important;
  border: 2px dashed var(--color-border);
  justify-content: center;
  color: var(--color-text-muted);
  box-shadow: none;
}

.rolodex-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.rolodex-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rolodex-name {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.rolodex-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.rolodex-badge {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0.85;
}

/* ===================================================================
   BOTTOM TAB BAR (legacy — still rendered in HTML for Pharmacy/Med-Calc routes)
   =================================================================== */

.bottom-tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0 4px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #F0F0F2 0%, #DCDCDE 100%);
  border-top: 1px solid #C8C8CA;
  box-shadow: 0 -1px 6px rgba(0,0,0,0.06);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 16px;
  text-decoration: none;
  color: #7A7A7C;
  font-size: 11px;
  font-weight: 600;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease;
}

.tab-item svg {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.tab-item.active {
  color: var(--color-primary);
}

.tab-item.active svg {
  filter: drop-shadow(0 2px 5px rgba(60,179,113,0.35));
}

.tab-item-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ===================================================================
   PICTOGRAPH
   =================================================================== */

.pictograph {
  margin: 16px 0;
}

.pictograph-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.pictograph-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.pictograph-dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.pictograph-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.pictograph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pictograph-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.pictograph-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pictograph-legend-symbol {
  font-size: 14px;
}

/* ===================================================================
   SHARE TOAST
   =================================================================== */

.share-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text-primary);
  color: var(--color-surface-card);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  animation: toast-in 0.3s ease-out;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===================================================================
   INFO SHARE BUTTON
   =================================================================== */

.info-share-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
}

/* ===================================================================
   SCROLLBAR (light theme)
   =================================================================== */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* Calculator views — always-visible bold scrollbar */
.calculator-form {
  scrollbar-width: thin;
  scrollbar-color: rgba(60, 179, 113, 0.6) rgba(0, 0, 0, 0.1);
}

.main-content:has(.calculator-form)::-webkit-scrollbar,
.main-content:has(.calculator-header)::-webkit-scrollbar {
  width: 10px;
}

.main-content:has(.calculator-form)::-webkit-scrollbar-track,
.main-content:has(.calculator-header)::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 5px;
}

.main-content:has(.calculator-form)::-webkit-scrollbar-thumb,
.main-content:has(.calculator-header)::-webkit-scrollbar-thumb {
  background: rgba(60, 179, 113, 0.5);
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.main-content:has(.calculator-form)::-webkit-scrollbar-thumb:hover,
.main-content:has(.calculator-header)::-webkit-scrollbar-thumb:hover {
  background: rgba(60, 179, 113, 0.75);
}

/* Custom scroll indicator — always visible, works on iOS */
.calc-scroll-track {
  position: fixed;
  top: 0;
  right: 2px;
  bottom: 60px; /* above contextual toolbar */
  width: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  z-index: 50;
  pointer-events: none;
}

.calc-scroll-thumb {
  position: absolute;
  right: 0;
  width: 8px;
  min-height: 40px;
  background: rgba(60, 179, 113, 0.5);
  border-radius: 4px;
  border: 1px solid rgba(60, 179, 113, 0.3);
  transition: top 0.1s ease-out;
}

/* ===================================================================
   EMPTY STATE
   =================================================================== */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 420px) {
  .dashboard-grid {
    gap: 10px;
  }

  .dashboard-card {
    min-height: 72px;
    padding: 12px 10px 10px;
  }

  .dashboard-card__name {
    font-size: 12px;
  }

  .dashboard-card__count {
    font-size: 10px;
  }

  .dashboard-header__logo {
    height: 48px;
  }

  .dashboard-header__title {
    font-size: 24px;
  }

  .dashboard-grid > :nth-child(2) {
    margin-top: 28px;
  }
}

/* ===================================================================
   LOADING STATE
   =================================================================== */

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-muted);
}

/* ===================================================================
   DOSING BANNER — Sticky summary of key doses
   =================================================================== */

.dosing-banner {
  position: sticky;
  top: 56px; /* Below header */
  z-index: 90;
  background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dosing-banner__label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.dosing-banner__pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.dosing-banner__pills::-webkit-scrollbar {
  display: none;
}

.dosing-banner__pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.dosing-banner__pill:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.25);
}

.dosing-banner__pill--copied {
  background: #4CAF50 !important;
  border-color: #4CAF50 !important;
}

.dosing-banner__pill--copied::after {
  content: ' ✓';
}

/* ===================================================================
   STICKY DOSING HEADER — Auto-shows treatment from result nodes
   =================================================================== */

.sticky-dosing-header {
  position: sticky;
  top: 56px; /* Below main header, same as dosing-banner */
  z-index: 89; /* Just below dosing-banner */
  background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* When dosing-banner is also showing, stack below it */
.dosing-banner + .sticky-dosing-header {
  top: 100px; /* 56px header + ~44px banner */
}

.sticky-dosing-header--hidden {
  display: none;
}

.sticky-dosing-details {
  margin: 0;
}

.sticky-dosing-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.sticky-dosing-summary::-webkit-details-marker {
  display: none;
}

.sticky-dosing-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.sticky-dosing-primary {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-dosing-expand-icon {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sticky-dosing-details[open] .sticky-dosing-expand-icon {
  transform: rotate(180deg);
}

.sticky-dosing-content {
  background: rgba(0, 0, 0, 0.15);
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-dosing-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sticky-dosing-row:last-of-type {
  border-bottom: none;
}

.sticky-dosing-row--primary {
  font-weight: 600;
}

.sticky-dosing-row-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  min-width: 60px;
}

.sticky-dosing-row-value {
  font-size: 13px;
  color: #fff;
  flex: 1;
}

.sticky-dosing-row-notes {
  width: 100%;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  padding-left: 60px;
  margin-top: 2px;
}

.sticky-dosing-copy {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.sticky-dosing-copy:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.3);
}

/* ===================================================================
   QUICK FIRE MODE — Expert toggle for rapid navigation
   =================================================================== */

.quick-fire-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: rgba(255, 255, 255, 0.6);
  margin-right: 4px;
}

.quick-fire-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.quick-fire-toggle--active {
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
  color: #FFD700;
  box-shadow: 0 0 12px rgba(139, 69, 19, 0.7);
  font-size: 16px;
  padding: 4px 10px;
}

/* Quick fire mode answered cards */
.decision-card--quick-fire {
  padding: 6px 12px !important;
  margin-bottom: 4px !important;
  min-height: auto !important;
}

.quick-fire-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.3;
}

.quick-fire-pill__q {
  color: var(--color-text-secondary, #6A6A6A);
  font-weight: 500;
}

.quick-fire-pill__arrow {
  color: var(--color-primary, #3CB371);
  font-weight: 700;
}

.quick-fire-pill__a {
  color: var(--color-text-primary, #1A1A1A);
  font-weight: 600;
}

.quick-fire-pill--info .quick-fire-pill__arrow {
  color: var(--color-text-muted, #8A8A8A);
}

/* Quick fire mode container spacing */
.card-stack-container--quick-fire {
  gap: 4px;
}

/* Body class for global quick fire state */
body.quick-fire-mode .decision-card--answered:not(.decision-card--quick-fire) {
  padding: 8px 12px;
}

/* ===================================================================
   QUICK FIRE MODE — Global visual feedback (yellow lightning round)
   =================================================================== */

body.quick-fire-mode .card-stack-container {
  background: linear-gradient(135deg,
    rgba(139, 69, 19, 0.04) 0%,
    rgba(139, 69, 19, 0.02) 100%);
  border: 4px solid #8B4513;
  border-radius: 14px;
  padding: 10px 6px;
  margin: 0 4px;
  box-shadow:
    inset 0 0 12px rgba(139, 69, 19, 0.06),
    0 0 12px rgba(139, 69, 19, 0.2);
}

body.quick-fire-mode .consult-flow-header {
  box-shadow: 0 2px 12px rgba(139, 69, 19, 0.3);
}

body.quick-fire-mode .quick-fire-toggle--active {
  animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(139, 69, 19, 0.5); }
  50% { box-shadow: 0 0 16px rgba(139, 69, 19, 0.8); }
}

/* Quick fire mode label badge */
body.quick-fire-mode .card-stack-container::before {
  content: '⚡ QUICK FIRE';
  position: absolute;
  top: -10px;
  left: 16px;
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(139, 69, 19, 0.4);
}

body.quick-fire-mode .card-stack-container {
  position: relative;
  margin-top: 16px;
}

/* ===================================================================
   QUICK FIRE MODE — Body text expand/collapse
   =================================================================== */

body.quick-fire-mode .qf-section {
  margin-bottom: 4px;
}

body.quick-fire-mode .qf-heading {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-primary, #1A1A1A);
  margin: 0 0 2px 0;
  line-height: 1.4;
}

/* Expand bar — tappable burnt umber strip, not full width */
body.quick-fire-mode .qf-expand-card {
  height: 18px;
  width: 60%;
  margin: 4px auto;
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.15s ease, height 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

body.quick-fire-mode .qf-expand-card:active {
  opacity: 0.7;
}

/* Content — hidden by default */
body.quick-fire-mode .qf-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

/* Content — revealed when expanded */
body.quick-fire-mode .qf-expanded .qf-content {
  max-height: 2000px;
  opacity: 1;
}

/* Expand bar visual change when expanded */
body.quick-fire-mode .qf-expanded .qf-expand-card {
  opacity: 0.25;
  height: 8px;
}

/* Essential links — always visible regardless of collapse state */
body.quick-fire-mode .qf-essential {
  margin: 4px 0;
}

/* ===================================================================
   SPOTLIGHT SEARCH — Global Command Palette
   =================================================================== */

.spotlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  transition: opacity 0.15s ease-out;
  pointer-events: none;
}

.spotlight-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

.spotlight-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.spotlight-modal {
  position: relative;
  width: 90%;
  max-width: 560px;
  max-height: 70vh;
  background: var(--color-surface-card);
  border-radius: 16px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transform: translateY(-10px);
  transition: transform 0.15s ease-out;
}

.spotlight-overlay--open .spotlight-modal {
  transform: translateY(0);
}

.spotlight-input-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.spotlight-search-icon {
  font-size: 20px;
  flex-shrink: 0;
  opacity: 0.5;
}

.spotlight-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--color-text-primary);
  outline: none;
}

.spotlight-input::placeholder {
  color: var(--color-text-muted);
}

.spotlight-shortcut {
  flex-shrink: 0;
  padding: 4px 8px;
  background: var(--color-surface-hover);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spotlight-results {
  max-height: calc(70vh - 80px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.spotlight-results--has-results {
  padding: 8px 0;
}

.spotlight-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 15px;
}

.spotlight-group-header {
  padding: 12px 20px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
}

.spotlight-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.spotlight-result-item:hover,
.spotlight-result-item--selected {
  background: var(--color-surface-hover);
}

.spotlight-result-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.spotlight-result-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spotlight-result-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-result-sublabel {
  font-size: 13px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .spotlight-overlay {
    padding-top: 8vh;
  }

  .spotlight-modal {
    width: 94%;
    max-height: 75vh;
    border-radius: 14px;
  }

  .spotlight-input {
    font-size: 16px;
  }

  .spotlight-shortcut {
    display: none;
  }

  .spotlight-results {
    max-height: calc(75vh - 70px);
  }
}

/* ===================================================================
   DASHBOARD V2 — Command Center Redesign
   =================================================================== */

/* Hero Search Bar */
.dashboard-hero-search {
  margin: 0 0 24px;
}

.dashboard-hero-search__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text-muted);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.dashboard-hero-search__btn:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.dashboard-hero-search__btn:active {
  transform: scale(0.99);
}

.dashboard-hero-search__icon {
  font-size: 18px;
  opacity: 0.6;
}

.dashboard-hero-search__text {
  flex: 1;
}

.dashboard-hero-search__shortcut {
  padding: 4px 10px;
  background: var(--color-surface-hover);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Recents Row */
.dashboard-recents {
  margin-bottom: 24px;
}

.dashboard-recents__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px;
}

.dashboard-recents__title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

.dashboard-recents__see-all {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.dashboard-recents__scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.dashboard-recents__scroll::-webkit-scrollbar {
  display: none;
}

.dashboard-recent-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 72px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dashboard-recent-item__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

/* Glassmorphic 3D Icon Style */
.dashboard-recent-item__icon--glass {
  border-radius: 50%;
  border: none;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

/* Glossy highlight overlay */
.dashboard-recent-item__icon--glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 45%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  border-radius: 50% 50% 40% 40%;
  pointer-events: none;
}

/* Medical cross icon */
.dashboard-recent-item__cross {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 1;
}

.dashboard-recent-item:active .dashboard-recent-item__icon {
  transform: scale(0.95);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-recent-item__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Category Cards V2 — Glass Morphism */
.dashboard-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-card-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 16px 20px;
  border-radius: 24px;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
  overflow: hidden;
  /* Glass morphism - more transparent, more see-through */
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.15) 30%,
    rgba(255,255,255,0.08) 70%,
    rgba(255,255,255,0.2) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  /* 3D bubble border - thicker, more visible */
  border: 2px solid rgba(255,255,255,0.5);
  border-bottom-color: rgba(0,0,0,0.12);
  border-right-color: rgba(0,0,0,0.1);
  /* Layered shadow for floating glass bubble effect */
  box-shadow:
    0 10px 40px rgba(0,0,0,0.15),
    0 4px 12px rgba(0,0,0,0.1),
    0 1px 3px rgba(0,0,0,0.08),
    inset 0 2px 6px rgba(255,255,255,0.5),
    inset 0 -2px 6px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Glossy highlight overlay - more pronounced for glass bubble look */
.category-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 45%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.6) 0%,
    rgba(255,255,255,0.25) 50%,
    transparent 100%
  );
  border-radius: 100px / 40px;
  pointer-events: none;
}

/* Secondary inner glow for depth */
.category-card-v2::after {
  content: '';
  position: absolute;
  bottom: 5%;
  left: 15%;
  right: 15%;
  height: 20%;
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.category-card-v2:active {
  transform: scale(0.98) translateY(1px);
  box-shadow:
    0 5px 20px rgba(0,0,0,0.12),
    0 2px 6px rgba(0,0,0,0.08),
    inset 0 1px 3px rgba(255,255,255,0.3);
}

/* Hide the icon element - we don't need it */
.category-card-v2__icon {
  display: none;
}

.category-card-v2__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.category-card-v2__name {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.category-card-v2__count {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  letter-spacing: 0.2px;
}

/* Hide arrow - not needed for glass cards */
.category-card-v2__arrow {
  display: none;
}

/* Quick Actions */
.dashboard-quick-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-bottom: 20px;
}

.dashboard-quick-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.dashboard-quick-action:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.dashboard-quick-action:active {
  transform: scale(0.98);
}

.dashboard-quick-action__icon {
  font-size: 18px;
}

/* Tablet+ layout for category cards - 2 columns */
@media (min-width: 768px) {
  .dashboard-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .category-card-v2 {
    min-height: 90px;
    padding: 20px 24px;
    align-items: center;
    text-align: center;
  }

  .category-card-v2__content {
    align-items: center;
  }

  .spotlight-modal {
    max-width: 640px;
  }
}

/* ===================================================================
   STICKY PATIENT CONTEXT HEADER
   Shows patient weight/age across calculators for quick reference.
   =================================================================== */

.sticky-patient-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #5D4E37 0%, #6B5B45 100%);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sticky-patient-header--hidden {
  display: none;
}

.sticky-patient-header--collapsed {
  opacity: 0.6;
  transform: scale(0.98);
}

.sticky-patient-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sticky-patient-icon {
  font-size: 16px;
  opacity: 0.9;
}

.sticky-patient-text {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.3px;
}

.sticky-patient-clear {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.sticky-patient-clear:hover,
.sticky-patient-clear:active {
  background: rgba(255, 255, 255, 0.25);
}
