/* Brand overrides for the open-search engine styles.css, plus result-card styles. Tokens resolve through eh.css (html[data-brand]). */
:root {
  --bg: #FFFFFF;
  --bg-alt: var(--eh-community);
  --surface: #FFFFFF;
  --surface-2: var(--eh-community);
  --border: #E6E6E6;
  --border-strong: #D1D1D1;
  --text: #333333;
  --text-muted: #626262;
  --text-faint: #8A8A8A;
  --accent: var(--eh-blue);
  --accent-2: var(--eh-link);
  --accent-soft: var(--eh-tint);
  --accent-border: var(--eh-tint-2);
  --warm: var(--eh-dark);
  --warm-soft: var(--eh-community);
  --danger: #B42318;
  --shadow-sm: 0 1px 2px rgba(16,44,61,.06), 0 0 0 1px rgba(16,44,61,.05);
  --shadow-md: 0 2px 4px rgba(16,44,61,.05), 0 10px 28px -10px rgba(16,44,61,.18);
  --radius-lg: 16px;
  --content-max: 880px;
  --rail-w: 292px;
}
body { font-family: var(--eh-sans); font-size: 16px; line-height: 1.55; font-feature-settings: normal; }
.serif, .summary { font-family: var(--eh-head); letter-spacing: 0; }
.landing__title, .query { font-family: var(--eh-serif); letter-spacing: -0.005em; }
.query { font-weight: 700; font-size: 26px; line-height: 1.3; color: var(--eh-ink); }
.summary { font-size: 18px; line-height: 1.6; font-weight: 400; }
.section__title { font-family: var(--eh-head); font-weight: 600; font-size: 19px; color: var(--eh-ink); }
.btn { font-family: var(--eh-sans); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; }
.btn svg { width: 14px; height: 14px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--eh-dark); border-color: var(--eh-dark); }
/* Citations: chips in the streamed summary, quiet superscript numbers everywhere else */
.summary .cite { background: var(--accent-soft); color: var(--eh-dark); border-color: var(--accent-border); font-weight: 600; margin-left: 2px; }
.summary .cite:hover { background: var(--accent); color: #fff; }
sup.cites { vertical-align: baseline; position: relative; top: -0.45em; line-height: 0; font-size: 100%; margin-left: 1px; white-space: nowrap; }
sup.cites .cite { display: inline; height: auto; min-width: 0; padding: 0; border: 0; background: none; font-size: 10.5px; font-weight: 600; color: var(--accent); opacity: .75; }
sup.cites .cite + .cite::before { content: ','; color: var(--text-faint); margin: 0 1px 0 0; }
sup.cites .cite:hover { opacity: 1; text-decoration: underline; }
.callout { border-color: var(--accent-border); background: var(--bg-alt); }
.callout__icon { color: var(--accent); }
.chat-header__tabs .chat-tab--active, .search-tab--active { color: var(--accent); }
.chat-tab--active::after, .search-tab--active::after { background: var(--accent); }
.chat-tab__count { font-size: 11px; font-weight: 600; color: var(--text-muted); background: var(--eh-surface); border-radius: 100px; padding: 0 6px; line-height: 16px; margin-left: 2px; }
.chat-tab--active .chat-tab__count { background: var(--accent-soft); color: var(--eh-dark); }
.chat-header { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding-right: 16px; }
.chat-header__left { min-width: 0; width: 100%; }
.chat-header__name { font-family: var(--eh-head); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; max-width: 100%; }
.chat-header__home { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.chat-header__home:hover { color: var(--accent); }
.chat-header__home svg { width: 14px; height: 14px; }
.chat-header__right { display: flex; justify-content: flex-end; }

/* Landing */
.landing { padding-top: 18vh; }
.landing__scale { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 12px; color: var(--text-muted); }
.landing__scale svg { width: 14px; height: 14px; color: var(--accent); }
.landing__scale b { font-weight: 600; color: var(--text); }
.search-tab { font-weight: 600; }

/* Input */
.input__textarea-wrap { display: flex; align-items: flex-start; gap: 10px; }
.input__lead { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.input__lead svg { width: 20px; height: 20px; }
.input__textarea { font-family: var(--eh-sans); }
.input__hint { font-size: 12px; color: var(--text-faint); }
.input__scope { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--eh-dark); background: var(--accent-soft); border-radius: 100px; padding: 3px 10px; }
.input__scope svg { width: 13px; height: 13px; }
.input__send { background: var(--accent); color: #fff; }
.input__send:disabled { background: var(--eh-surface); color: var(--text-faint); }
.search-panel__tag { margin-left: auto; font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--eh-dark); background: var(--accent-soft); border-radius: 100px; padding: 1px 8px; flex: none; }
.search-panel__item { display: flex; align-items: center; }

/* Single-row search box everywhere: icon, field, (scope chip), action */
.input-shell { flex-direction: row; align-items: center; gap: 12px; padding: 6px 8px 6px 18px; border-radius: 100px; }
.input__textarea-wrap { flex: 1; align-items: center; min-width: 0; }
.input__lead { margin-top: 0; }
.input__textarea, .input-shell--large .input__textarea { min-height: 0; height: 40px; padding: 8px 0; font-size: 16px; line-height: 24px; overflow-y: hidden; resize: none; }
.composer .input__textarea { height: 36px; padding: 6px 0; }
.input__row { padding: 0; display: flex; align-items: center; gap: 10px; }
.input__tools { display: flex; align-items: center; }
.input__hint { display: none; }
.input__send--label { width: auto; height: 46px; padding: 0 20px; border-radius: 100px; display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--eh-sans); }
.input__send--label svg { width: 16px; height: 16px; }
.input__send--label:disabled { background: var(--accent-border); color: #fff; cursor: default; }
.input__send--label:not(:disabled) { background: var(--accent); color: #fff; }
.input__send--label:not(:disabled):hover { background: var(--eh-dark); }
/* Landing box mirrors the homepage hero bar */
.landing .input-shell { min-height: 64px; border-radius: 16px; border-color: var(--accent-border); box-shadow: 0 6px 24px rgba(16, 44, 61, .12); }
.landing .input-shell:focus-within { border-color: var(--accent); box-shadow: 0 8px 28px rgba(16, 44, 61, .18); }
.landing .input__textarea { font-size: 18px; }
.landing .input__lead, .landing .input__lead svg { width: 22px; height: 22px; }
.landing__suggest { margin-top: 14px; border: 1px solid var(--border); border-radius: 14px; padding: 6px; background: #fff; }
.landing__suggest-label { padding: 8px 14px 4px; font: 600 11px/16px var(--eh-sans); letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); }
.landing__suggest .default-suggestions { display: grid; gap: 2px; }
.landing__suggest .default-suggestions__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 10px; font-size: 16px; }
.landing__suggest .default-suggestions__item:hover { background: var(--bg-alt); }
.landing__suggest .default-suggestions__text { flex: 1; min-width: 0; text-align: left; }
.landing__scale { justify-content: center; }
/* Composer stays compact */
.composer .input-shell { min-height: 52px; }

/* Rail */
.rail { background: var(--bg-alt); border-right-color: var(--accent-border); }
.rail__brand { color: var(--eh-dark); }
.rail__brand-mark svg { width: 16px; height: 22px; }
.rail__wordmark svg { width: 160px; height: 14px; }
.rail__item--active { background: var(--accent-soft); color: var(--eh-dark); }
.rail__recent--active { background: var(--accent-soft); }
.rail__item { font-size: 15px; padding: 8px 10px; }
.rail__label { font-size: 11.5px; }
.rail__recent { font-size: 14px; padding: 8px 10px; }

/* Top-nav variant */
.app--top { flex-direction: column; }
.app--top .main { height: 100vh; }
.app--top .main__scroll { padding-bottom: 180px; }
.app--top .composer { position: fixed; }
.app--top .eh-header { position: relative; z-index: 20; }
.app--top .col { max-width: 960px; }
.app--top .landing { padding-top: 0; }
.search-tabs--hidden { display: none; }
.pbar { background: #fff; border-bottom: 1px solid var(--border); position: relative; z-index: 25; }
.pbar__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 52px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; }
.pbar__brand { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; font: 600 15px/1 var(--eh-head); color: var(--eh-dark); }
.pbar__mark { width: 22px; height: 22px; border-radius: 6px; background: var(--eh-dark); display: inline-flex; align-items: center; justify-content: center; }
.pbar__mark svg { width: 11px; height: 15px; }
.pbar__mark svg * { fill: #fff; }
.pbar__nav { display: flex; align-items: center; gap: 4px; height: 52px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.pbar__nav::-webkit-scrollbar { display: none; }
.pbar__item { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 52px; padding: 0 10px; border: 0; background: none; font: 600 13.5px/1 var(--eh-sans); color: var(--text-muted); white-space: nowrap; }
.pbar__item:hover { color: var(--text); }
.pbar__item.is-active { color: var(--accent); }
.pbar__item.is-active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.pbar__item.is-muted { color: var(--text-faint); }
.pbar__icon { width: 15px; height: 15px; display: inline-flex; }
.pbar__icon svg { width: 15px; height: 15px; }
.pbar__count { font-size: 11px; font-weight: 600; color: var(--text-muted); background: var(--eh-surface); border-radius: 100px; padding: 0 6px; line-height: 16px; }
.pbar__item.is-active .pbar__count { background: var(--accent-soft); color: var(--eh-dark); }
.pbar__right { display: flex; align-items: center; gap: 10px; }
.pbar__recent { position: relative; }
.pbar__ghost { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 100px; border: 1px solid transparent; background: none; font: 600 13px/1 var(--eh-sans); color: var(--text-muted); }
.pbar__ghost svg { width: 14px; height: 14px; }
.pbar__ghost:hover, .pbar__ghost.is-open { background: var(--bg-alt); color: var(--text); border-color: var(--accent-border); }
.pbar__menu { position: absolute; right: 0; top: calc(100% + 6px); width: 320px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px; z-index: 40; }
.pbar__menu-label { padding: 8px 10px 4px; font: 600 10.5px/16px var(--eh-sans); letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); }
.pbar__menu-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: 500 13.5px/1.3 var(--eh-sans); color: var(--text); }
.pbar__menu-item svg { width: 14px; height: 14px; color: var(--text-faint); flex: none; }
.pbar__menu-item:hover, .pbar__menu-item.is-active { background: var(--bg-alt); }
.pbar__new { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 100px; border: 0; background: var(--accent); color: #fff; font: 600 13px/1 var(--eh-sans); }
.pbar__new svg { width: 14px; height: 14px; }
.pbar__new:hover { background: var(--eh-dark); }

/* Presenter nav toggle */
.nav-toggle { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--border-strong); border-radius: 100px; padding: 2px 2px 2px 10px; }
.nav-toggle__label { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--text-faint); margin-right: 6px; }
.noflow { border: 1px solid var(--accent-border); background: var(--bg-alt); border-radius: 14px; padding: 18px 20px; }
.noflow__title { display: flex; align-items: center; gap: 8px; font: 600 16px/24px var(--eh-head); color: var(--eh-ink); }
.noflow__title svg { width: 16px; height: 16px; color: var(--accent); }
.noflow__body { margin: 6px 0 12px; color: var(--text-muted); font-size: 14px; }
.noflow__list { margin: 0; }

.nav-toggle__btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; border-radius: 100px; padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.nav-toggle__btn svg { width: 13px; height: 13px; }
.nav-toggle__btn.is-on { background: var(--accent); color: #fff; }

/* Scoped tabs show the directory view without repeating the narrative answer */
.col--scoped .answer-block, .col--scoped .actions-row { display: none; }
.col--scoped .sources { margin-top: 8px; }
.col--scoped .query { margin-bottom: 20px; }
.pcard__disclose { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); background: var(--bg-alt); border: 1px solid var(--accent-border); border-radius: 10px; padding: 10px 12px; }
.filter__hint { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-faint); margin-left: 4px; }
.acard__date { white-space: nowrap; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 4px 0 14px; }
.filter { display: flex; flex-direction: column; gap: 4px; }
.filter__label { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); }
.filter select, .filter__input { height: 38px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; font: 500 13px/1 var(--eh-sans); color: var(--text); padding: 0 12px; min-width: 170px; }
.filter select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.8' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.filter__input { display: inline-flex; align-items: center; gap: 8px; }
.filter__input svg { width: 14px; height: 14px; color: var(--accent); }
.filter__input input { border: 0; outline: 0; font: 500 13px/1 var(--eh-sans); color: var(--text); width: 150px; }
.filter__toggle { height: 38px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); border-radius: 100px; background: #fff; padding: 0 14px; font: 600 13px/1 var(--eh-sans); color: var(--text); }
.filter__toggle svg { width: 13px; height: 13px; color: var(--eh-dark); }
.filter__toggle.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--eh-dark); }
.filter__clear { height: 38px; border: 0; background: none; font: 600 13px/1 var(--eh-sans); color: var(--accent); padding: 0 6px; }
.providers__count { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.providers__count strong { color: var(--text); font-weight: 600; }
.providers__empty { padding: 20px; border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--text-muted); font-size: 14px; margin-bottom: 14px; }
.providers__grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.providers__more { margin-top: 14px; align-self: flex-start; }

/* Provider card */
.pcard { position: relative; border: 1px solid var(--border); border-radius: 14px; background: #fff; padding: 18px 20px 16px; display: grid; gap: 12px; transition: box-shadow .15s ease, border-color .15s ease; }
.pcard:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); }
.pcard--featured { background: linear-gradient(180deg, var(--eh-community) 0%, #fff 60px); border-color: var(--accent-border); }
.pcard__featured { position: absolute; right: 16px; top: 14px; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); background: none; border: 0; padding: 0; cursor: pointer; }
.pcard__featured:hover, .pcard__featured.is-open { color: var(--accent); }
.pcard__featured-i svg { width: 12px; height: 12px; }
.pcard__head { display: flex; gap: 16px; align-items: flex-start; }
.pcard__avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--eh-dark); display: flex; align-items: center; justify-content: center; font: 600 18px/1 var(--eh-head); }
.pcard__id { min-width: 0; flex: 1; }
.pcard__name { margin: 0; font: 600 18px/24px var(--eh-head); color: var(--eh-ink); }
.pcard__spec { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.pcard__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 100px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge svg { width: 12px; height: 12px; }
.badge--top { background: var(--eh-dark); color: #fff; }
.badge--soft { background: var(--eh-surface); color: var(--text); }
.badge--ok { background: var(--eh-tint); color: var(--eh-blue); }
.badge--net { background: var(--eh-tint); color: var(--eh-blue); }
.badge--saved { background: var(--eh-dark); color: #fff; }
.badge--out { background: var(--eh-surface); color: var(--text-muted); }
.pcard__meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-size: 13.5px; line-height: 1.45; }
.pcard__meta > div { display: flex; gap: 8px; align-items: flex-start; }
.pcard__meta dt { flex: none; width: 16px; height: 16px; color: var(--accent); margin-top: 2px; }
.pcard__meta dt svg { width: 16px; height: 16px; }
.pcard__meta dd { margin: 0; min-width: 0; }
.pcard__muted { color: var(--text-muted); }
.pcard__actions { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.pcard__actions .btn { padding: 8px 14px; }

/* Hospitals */
.hospitals { display: grid; gap: 12px; }
.hcard { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: start; border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; background: #fff; }
.hcard__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--eh-dark); display: flex; align-items: center; justify-content: center; }
.hcard__icon svg { width: 20px; height: 20px; }
.hcard__name { margin: 0; font: 600 17px/24px var(--eh-head); color: var(--eh-ink); }
.hcard__ranks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.hcard__ranks strong { color: var(--eh-dark); font-weight: 700; }
.hcard__actions { display: flex; flex-direction: column; gap: 8px; }
.hcard__actions .btn { padding: 8px 14px; }

/* Articles */
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.acard { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .15s ease; }
.acard:hover { box-shadow: var(--shadow-md); }
.acard__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--eh-surface); }
.acard__body { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.acard__cat { font: 600 11px/16px var(--eh-sans); letter-spacing: .5px; text-transform: uppercase; color: var(--eh-dark); }
.acard__title { margin: 0; font: 600 16px/22px var(--eh-head); color: var(--eh-ink); }
.acard:hover .acard__title { color: var(--accent); }
.acard__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--text-muted); align-items: center; }

/* Tools */
.tools-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tcard { display: grid; grid-template-columns: 120px 1fr; gap: 16px; border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: var(--bg-alt); align-items: center; }
.tcard__img { width: 120px; height: 110px; object-fit: contain; }
.tcard__body { display: grid; gap: 6px; }
.tcard__name { margin: 0; font: 600 17px/24px var(--eh-head); color: var(--eh-ink); }
.tcard__desc { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }
.tcard__cta { width: max-content; padding: 7px 14px; margin-top: 4px; }

/* Condition */
.cond__more { margin: 12px 0 0; }
.cond__name { margin: 0; font: 600 20px/28px var(--eh-head); color: var(--eh-ink); }
.cond__link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.cond__link svg { width: 13px; height: 13px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 20px; }
.fact { border: 1px solid var(--accent-border); background: var(--bg-alt); border-radius: 12px; padding: 14px 16px; }
.fact__value { font: 600 22px/28px var(--eh-head); color: var(--eh-dark); display: flex; align-items: flex-start; gap: 4px; }
.fact__label { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }

/* Sources */
.sources { margin-top: -20px; margin-bottom: 40px; }
.sources .section__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sources__count { font-size: 12px; font-weight: 600; color: var(--text-muted); background: var(--eh-surface); border-radius: 100px; padding: 1px 8px; }
.sources__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.source { display: flex; gap: 12px; align-items: flex-start; }
.source__num { flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft); color: var(--eh-dark); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.source__body { display: grid; grid-template-columns: 220px 1fr auto; gap: 12px; align-items: baseline; flex: 1; padding: 4px 8px; border-radius: 8px; font-size: 13.5px; min-width: 0; }
.source__body:hover { background: var(--bg-alt); }
.source__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source__fav { width: 18px; height: 18px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; background: #7A7A7A; flex: none; }
.source__fav--editorial { background: var(--accent); }
.source__fav--directory { background: var(--eh-dark); }
.source__title { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source__date { color: var(--text-faint); font-size: 12px; white-space: nowrap; }
.sources__toggle { margin-top: 8px; border: 0; background: none; color: var(--accent); font: 600 13px/1 var(--eh-sans); padding: 6px 0; }

.followups__label { font-family: var(--eh-sans); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.followup-link { font-family: var(--eh-sans); }
.actions-row__note { font-family: var(--eh-sans); }

/* Follow-up chips (last block before the composer) */
.fchips { margin: -16px 0 24px; }
.fchips__label { font: 600 11px/16px var(--eh-sans); letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; }
.fchips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--accent-border); background: var(--bg-alt); color: var(--eh-dark); font: 500 14px/1.3 var(--eh-sans); text-align: left; transition: background .12s ease, border-color .12s ease; }
.fchip svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.fchip:hover { background: var(--accent-soft); border-color: var(--accent); }
.sources { margin-top: -20px; margin-bottom: 32px; }

/* Cite popover */
.cite-pop__num { background: var(--accent-soft); color: var(--eh-dark); }
.cite-pop__open { color: var(--accent); }

@media (max-width: 1240px) {
  .chat-header__home span { display: none; }
  .chat-header__tabs { gap: 14px; }
  .pbar__inner { gap: 16px; }
  .pbar__item { padding: 0 7px; font-size: 13px; }
  .rail__wordmark svg { width: 140px; height: 12px; }
}
@media (max-width: 900px) {
  .articles, .tools-row, .facts { grid-template-columns: 1fr; }
  .pcard__meta { grid-template-columns: 1fr; }
  .source__body { grid-template-columns: 1fr; gap: 2px; }
}

/* Turn wrapper: the newest turn reserves a viewport of height so it can scroll to the top while its sections stream in. */
.turn + .turn .message { border-top: 1px solid var(--border); padding-top: 36px; }

/* ===================== v2: search-first landing ===================== */
.main { background: var(--eh-surface); }
.app--top .main { background: var(--eh-surface); }
.landing { max-width: none; width: 100%; margin: 0; padding: 0; align-items: stretch; display: flex; flex-direction: column; height: 100%; min-height: 0; } /* a fixed height lets the spacer shrink; once it hits zero the group overflows and .main__scroll scrolls */
.landing::after { content: ''; display: block; flex: 1 1 222px; min-height: 0; } /* the spacer absorbs any shortfall down to zero; the band never shrinks below its content, so short viewports scroll instead of clipping the title */
.main__scroll:has(> .landing) { padding-bottom: 0; }
.app--top .main__scroll:has(> .landing) { padding-bottom: 0; }
.main__scroll { padding: 0 0 160px; }
.main__scroll > .col { padding: 0 32px; }
.landing-bar { position: absolute; top: 14px; right: 24px; z-index: 6; display: flex; align-items: center; }
.main { position: relative; }

/* Header band: navy wash with translucent green organic shapes, borrowed from castleconnolly.com's hero */
.band { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--band-bg) 0%, var(--band-bg-2) 100%); color: #fff; padding: 46px 32px 62px; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; flex: 1 0 auto; }
.band__shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.band__shapes span { position: absolute; display: block; border-radius: 48% 52% 55% 45% / 55% 45% 55% 45%; filter: blur(2px); }
.band__s1 { width: 720px; height: 520px; right: -200px; top: -220px; background: var(--band-shape); opacity: .55; transform: rotate(-16deg); }
.band__inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.band__hello { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 5px 12px 5px 9px; border-radius: 100px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-size: 12.5px; font-weight: 500; color: #fff; }
.band__hello svg { width: 14px; height: 14px; }
.landing__title { font-size: 44px; line-height: 1.12; font-weight: 700; color: #fff; margin: 0 0 12px; text-wrap: balance; }
.landing__sub { margin: 0; max-width: 680px; color: rgba(255,255,255,.85); font-size: 17px; line-height: 1.5; text-wrap: balance; }
.band .landing__input { max-width: 820px; }
.band .input-shell { min-height: 60px; border-radius: 100px; border: 0; box-shadow: 0 14px 34px -14px rgba(0,0,0,.45); background: #fff; padding: 6px 6px 6px 22px; }
.band .input-shell:focus-within { box-shadow: 0 18px 40px -14px rgba(0,0,0,.55), 0 0 0 3px rgba(124,204,101,.45); }
.band .input__lead { color: var(--eh-dark); }
.band .input__textarea, .band .input-shell--large .input__textarea { font-size: 17px; color: var(--eh-ink); height: 40px; }
.band .input__textarea::placeholder { color: #6B6B6B; }
.band .input__send--label { height: 48px; border-radius: 100px; background: var(--eh-link); font: 600 15px/1 var(--eh-sans); letter-spacing: 0; text-transform: none; }
.band .input__send--label:not(:disabled) { background: var(--eh-link); }
.band .input__send--label:not(:disabled):hover { background: var(--eh-blue); }
.band .input__send--label:disabled { background: var(--eh-surface); color: var(--text-faint); }
.band .search-panel { text-align: left; box-shadow: var(--shadow-md); border-radius: 12px; }
.band .search-panel__item { color: var(--text); }

/* Below the band: structured search beside suggested questions */
.sform { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px 20px; box-shadow: 0 10px 30px -18px rgba(16,44,61,.35); display: grid; gap: 18px; }
.sform__head { display: grid; gap: 4px; }
.sform__title { margin: 0; font: 700 19px/1.25 var(--eh-head); color: var(--eh-ink); }
.sform__sub { margin: 0; font-size: 13px; color: var(--text-muted); }
.sform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.sform__field { display: grid; gap: 6px; min-width: 0; }
.sform__label { font: 700 11px/16px var(--eh-sans); letter-spacing: .8px; text-transform: uppercase; color: var(--eh-dark); display: flex; align-items: center; gap: 8px; }
.sform__from { font: 500 11px/16px var(--eh-sans); letter-spacing: 0; text-transform: none; color: var(--eh-blue); background: var(--eh-tint); border-radius: 100px; padding: 0 8px; }
.sform select, .sform__input { height: 42px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; font: 500 14px/1 var(--eh-sans); color: var(--text); padding: 0 12px; width: 100%; min-width: 0; }
.sform select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23626262' stroke-width='1.8' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.sform select:focus, .sform__input:focus-within { outline: 0; border-color: var(--eh-link); box-shadow: 0 0 0 3px var(--eh-tint); }
.sform__input { display: flex; align-items: center; gap: 8px; }
.sform__input svg { width: 15px; height: 15px; color: var(--eh-dark); flex: none; }
.sform__input input { border: 0; outline: 0; font: 500 14px/1 var(--eh-sans); color: var(--text); width: 100%; min-width: 0; background: transparent; }
.sform__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sform__submit { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border: 0; border-radius: 100px; background: var(--eh-link); color: #fff; font: 600 14px/1 var(--eh-sans); letter-spacing: 0; text-transform: none; transition: background .15s ease; }
.sform__submit svg { width: 15px; height: 15px; }
.sform__submit:hover:not(:disabled) { background: var(--eh-blue); }
.sform__submit:disabled { background: var(--accent-border); cursor: default; }
.sform__note { font-size: 12.5px; color: var(--text-muted); }
.landing__suggest { width: 100%; margin: 14px 0 0; border: 1px solid var(--border); border-radius: 14px; padding: 6px; background: #fff; box-shadow: 0 10px 30px -18px rgba(16,44,61,.35); }
.landing__suggest-label { padding: 10px 14px 6px; font: 700 11px/16px var(--eh-sans); letter-spacing: .8px; text-transform: uppercase; color: var(--eh-dark); }
.landing__suggest .default-suggestions__item { align-items: center; padding: 10px 14px; font-size: 15px; line-height: 1.3; }
.landing__suggest .default-suggestions__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landing__suggest .default-suggestions__icon { margin-top: 1px; color: var(--eh-link); }
.landing__suggest .search-panel__tag { margin-top: 2px; }
.landing__scale { display: block; margin: 22px 0 0; text-align: center; font-size: 13px; max-width: 880px; line-height: 1.5; }
.landing__scale svg { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.landing__scale svg { color: var(--eh-link); }
.search-tabs--hidden { display: none; }

/* Rail brand + saved */
.rail__logo { height: 36px; width: auto; max-width: 200px; display: block; }
.rail__count { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; color: var(--eh-dark); background: var(--eh-tint); border-radius: 100px; padding: 0 6px; line-height: 15px; }
.rail__empty { font-size: 12px; color: var(--text-muted); padding: 2px 10px 6px; line-height: 1.4; }
.rail__saved { display: flex; align-items: center; gap: 10px; }
.rail__saved-avatar { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--eh-dark); color: #fff; font: 700 10.5px/1 var(--eh-head); display: inline-flex; align-items: center; justify-content: center; }
.rail__saved .rail__recent-text { display: grid; gap: 1px; min-width: 0; }
.rail__saved .rail__recent-text strong { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail__saved .rail__recent-text span { font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Account control */
.acct { position: relative; }
.acct__signin { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 12px; border-radius: 100px; border: 1px solid var(--border-strong); background: #fff; font: 600 13px/1 var(--eh-sans); color: var(--eh-dark); transition: border-color .15s ease, background .15s ease; }
.acct__signin svg { width: 14px; height: 14px; }
.acct__signin:hover { border-color: var(--eh-link); background: var(--eh-tint); }
.acct__chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 4px; border-radius: 100px; border: 1px solid var(--border-strong); background: #fff; font: 600 13px/1 var(--eh-sans); color: var(--eh-dark); }
.acct__chip svg { width: 12px; height: 12px; color: var(--text-muted); }
.acct__chip:hover, .acct__chip.is-open { border-color: var(--eh-link); background: var(--eh-tint); }
.acct__avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--eh-dark); color: #fff; font: 700 11px/1 var(--eh-head); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.acct__menu { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); padding: 8px; z-index: 70; }
.acct__who { display: grid; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; font-size: 13px; }
.acct__who strong { font-weight: 700; color: var(--eh-ink); }
.acct__who span { color: var(--text-muted); font-size: 12.5px; }
.acct__item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 8px; background: none; font: 500 13.5px/1.3 var(--eh-sans); color: var(--text); }
.acct__item svg { width: 15px; height: 15px; color: var(--eh-dark); flex: none; }
.acct__item em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--eh-dark); background: var(--eh-tint); border-radius: 100px; padding: 1px 7px; }
.acct__item:hover { background: var(--bg-alt); }
.acct__note { padding: 8px 10px 4px; font-size: 11.5px; line-height: 1.4; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 6px; }
.cc-header__right .acct__signin, .cc-header__right .acct__chip { height: 40px; }

/* Sign-in modal */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(16,44,61,.55); display: flex; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(3px); }

/* Entry tag + follow-ups */
.entry-tag { display: inline-flex; align-items: center; gap: 6px; margin: 28px 0 -18px; font: 700 11px/16px var(--eh-sans); letter-spacing: .8px; text-transform: uppercase; color: var(--eh-dark); }
.entry-tag svg { width: 13px; height: 13px; }
.fchip--personal { border-color: var(--eh-dark); background: #fff; }
.fchip--personal svg { color: var(--eh-dark); }
.fchip--personal:hover { background: var(--eh-tint); }

/* Cards: account states */
.pcard__link { border: 0; background: none; padding: 0; font: 600 12.5px/1.4 var(--eh-sans); color: var(--eh-blue); cursor: pointer; text-align: left; }
.pcard__link:hover { text-decoration: underline; }
.pcard--saved { border-color: var(--eh-faded); }
.btn--save { color: var(--eh-dark); }
.btn--save.is-on { background: var(--eh-tint); border-color: var(--eh-tint-2); color: var(--eh-blue); }
.btn--save.is-on svg { fill: currentColor; }
.btn--quiet { margin-left: auto; color: var(--text-muted); border-color: transparent; background: none; }
.btn--quiet:hover { border-color: var(--border-strong); }
.badge--net svg, .badge--saved svg { width: 11px; height: 11px; }
.hcard__note { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.filter--sm select { min-width: 130px; }

/* Compare */
.compare { display: grid; gap: 14px; }
.compare__intro { margin: 0; font-size: 15px; line-height: 1.6; }
.compare__table { border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; }
.compare__row { display: grid; grid-template-columns: 180px 1fr 1fr; border-top: 1px solid var(--border); }
.compare__row--head { border-top: 0; background: var(--eh-community); }
.compare__row:nth-child(even):not(.compare__row--head) { background: #FBFBFB; }
.compare__label { padding: 12px 16px; font: 700 12px/1.4 var(--eh-sans); letter-spacing: .3px; color: var(--eh-dark); display: flex; align-items: center; }
.compare__cell { padding: 12px 16px; font-size: 14px; line-height: 1.5; border-left: 1px solid var(--border); }
.compare__col { padding: 16px; border-left: 1px solid var(--border); display: grid; gap: 8px; align-content: start; }
.compare__kicker { font: 700 11px/16px var(--eh-sans); letter-spacing: .8px; text-transform: uppercase; color: var(--text-muted); }
.compare__who { display: flex; gap: 12px; align-items: center; }
.compare__who .pcard__avatar { width: 44px; height: 44px; font-size: 15px; }
.compare__name { font: 700 16px/1.3 var(--eh-head); color: var(--eh-ink); }
.compare__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.compare__actions .btn { padding: 8px 14px; }
.compare__foot { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-muted); }

/* Presenter toggles */

/* Browser surfaces */
::selection { background: var(--eh-tint-2); color: var(--eh-ink); }
:focus-visible { outline: 2px solid var(--eh-link); outline-offset: 2px; }
.main__scroll { scrollbar-color: var(--eh-faded) transparent; scrollbar-width: thin; }

@media (max-width: 1240px) {
    .band { padding: 52px 24px 64px; }
  .landing__title { font-size: 40px; }
}
@media (max-width: 900px) {
  .compare__row { grid-template-columns: 120px 1fr 1fr; }
  .sform__grid { grid-template-columns: 1fr; }
}

/* Everyday Health-CARE wordmark is wide and short; size by width */
html[data-brand="ehcare"] .rail__logo { height: 36px; width: 200px; max-width: 200px; object-fit: contain; object-position: left center; }
html[data-brand="ehcare"] .cc-header__logo img { height: auto; width: 260px; }

.main__scroll > .col { padding-top: 28px; }
.app--top .main__scroll > .col { padding-top: 32px; }

.sform select.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180,35,24,.12); }
.sform__note--warn { color: var(--danger); font-weight: 600; }
.btn--save { border-color: transparent; background: none; }
.btn--save:hover { border-color: var(--border-strong); }

.compare__name .badge { margin-left: 8px; vertical-align: middle; }

/* Scope pills sit on the light surface directly under the bar, as v1 had them */
.landing__tabs { margin: 18px 0 0; gap: 6px; justify-content: center; }
.landing__tabs .search-tab { padding: 7px 14px; border-radius: 100px; border: 1px solid transparent; color: var(--text-muted); font-weight: 600; }
.landing__tabs .search-tab:hover { color: var(--eh-dark); background: #fff; }
.landing__tabs .search-tab--active { color: var(--eh-dark); background: #fff; border-color: var(--border-strong); }
.landing__tabs .search-tab--active::after { display: none; }

.badge--savechip { border: 1px solid var(--border-strong); background: #fff; color: var(--eh-dark); cursor: pointer; font-family: inherit; }
.badge--savechip:hover { border-color: var(--eh-dark); }
.badge--savechip.is-on { background: var(--eh-dark); border-color: var(--eh-dark); color: #fff; }
.badge--savechip.is-on svg { fill: currentColor; }

/* Presenter controls */
.ptoggles--rail { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--accent-border); }
.ptoggles--rail .nav-toggle { width: 100%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2px; padding: 2px; border-radius: 12px; }
.ptoggles--rail .nav-toggle__btn { padding: 5px 6px; font-size: 11px; justify-content: center; white-space: nowrap; border-radius: 9px; }
.ptoggles--rail .nav-toggle__label { font-size: 10px; margin: 0; grid-column: 1 / -1; padding: 4px 8px 2px; }
.ptoggles--bar { display: flex; align-items: center; gap: 6px; }
.ptoggles--bar .nav-toggle { height: 30px; padding: 2px 2px 2px 8px; }
.ptoggles--bar .nav-toggle__btn { padding: 3px 8px; font-size: 11.5px; }
.ptoggles--bar .nav-toggle__btn svg { display: none; }
.ptoggles--bar .nav-toggle__label { font-size: 10px; }
@media (max-width: 1320px) { .pbar__inner { gap: 14px; } }
@media (max-width: 1140px) {
  .pbar__item { padding: 0 6px; font-size: 12.5px; }
  .pbar__inner { gap: 12px; }
}
.sform__foot { justify-content: space-between; }
.sform__submit { min-width: 200px; }

/* v2 landing: the bar overlaps the band's bottom edge; everything below sits on the light surface with v1's rhythm */
.landing__body { flex: 0 0 auto; width: 100%; max-width: 880px; margin: -30px auto 0; padding: 0 32px; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.landing__body .landing__input { max-width: none; }
.landing__body .input-shell { min-height: 60px; border-radius: 100px; border: 0; background: #fff; box-shadow: 0 14px 34px -14px rgba(0,0,0,.45); padding: 6px 6px 6px 22px; }
.landing__body .input-shell:focus-within { box-shadow: 0 14px 34px -14px rgba(0,0,0,.55), 0 0 0 3px rgba(52,160,104,.35); }
.landing__body .input__lead { color: var(--eh-dark); }
.landing__body .input__textarea, .landing__body .input-shell--large .input__textarea { font-size: 17px; color: var(--eh-ink); height: 40px; }
.landing__body .input__send--label { height: 48px; border-radius: 100px; background: var(--eh-link); font: 600 15px/1 var(--eh-sans); }
.landing__body .input__send--label:not(:disabled) { background: var(--eh-link); }
.landing__body .input__send--label:not(:disabled):hover { background: var(--eh-blue); }
.landing__body .input__send--label:disabled { background: var(--eh-surface); color: var(--text-faint); }
.landing__body .search-panel { text-align: left; box-shadow: var(--shadow-md); border-radius: 12px; }
/* Structured row slides in under the pills */
.srow { width: 100%; display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .18s ease, opacity .18s ease, margin .18s ease; margin-top: 0; }
.srow--open { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
.srow > * { min-height: 0; overflow: hidden; }
.sform--row { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1.2fr) minmax(0,1.1fr) 84px auto; gap: 10px; align-items: end; padding: 12px 14px 14px; border-radius: 14px; box-shadow: none; }
.sform--row .sform__label { font-size: 10.5px; letter-spacing: .6px; white-space: nowrap; flex-direction: column; align-items: flex-start; gap: 3px; }
.sform--row .sform__from { font-size: 10px; padding: 0 6px; line-height: 15px; }
.sform--row select, .sform--row .sform__input { height: 40px; font-size: 13.5px; padding: 0 10px; }
.sform--row select { padding-right: 28px; background-position: right 10px center; }
.sform--row .sform__submit { height: 40px; min-width: 0; padding: 0 16px; font-size: 13.5px; white-space: nowrap; }
.sform--row .sform__note--warn { grid-column: 1 / -1; font-size: 12px; }
@media (max-width: 900px) { .sform--row { grid-template-columns: 1fr 1fr; } }

/* Sign-in: centered dialog on a scrim. Fixed, so nothing behind it moves. */
.acct { position: relative; }
.acct__menu { position: absolute; }

/* The welcome pill always reserves its line so signing in shifts nothing behind the dialog */
.band__hello--off { visibility: hidden; }

/* ===================== v2 round 4: account invitation (v3 shapes on our tokens) ===================== */
/* Landing banner under the search group */
.landing__banner { margin: 8px 0 0; padding: 6px 16px 6px 12px; min-height: 32px; gap: 10px; border-radius: 100px; border: 1px solid var(--accent-border); background: #fff; color: var(--text); font: 500 13.5px/1.35 var(--eh-sans); box-shadow: 0 6px 18px -12px rgba(16,44,61,.35); }
.landing__banner:hover { border-color: var(--eh-link); background: var(--eh-tint); }
.landing__banner-icon, .landing__banner-arrow { color: var(--eh-link); }
.landing__banner-text strong { font-weight: 700; color: var(--eh-dark); }
.landing__banner--user .landing__banner-text strong { color: var(--eh-ink); }
.landing__banner + .landing__scale { margin-top: 10px; }
/* Locked rail items and the hover promo */
.rail__item--locked { opacity: 1; color: var(--text-faint); cursor: pointer; line-height: normal; }
.rail__item--locked .rail__item-icon { color: var(--text-faint); opacity: 1; }
.rail__locked:hover .rail__item--locked, .rail__item--locked-hover { color: var(--text-muted); background: var(--accent-soft); }
.rail__item-trail--lock { opacity: .7; color: var(--text-faint); }
.rail__item-trail--lock svg { width: 15px; height: 15px; }
.rail__promo { width: 248px; padding: 14px 14px 12px; border-radius: 12px; border-color: var(--accent-border); box-shadow: var(--shadow-md), 0 0 0 1px rgba(16,44,61,.03); font-family: var(--eh-sans); }
.rail__promo--below { animation-name: rail-promo-down; }
@keyframes rail-promo-down { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.rail__promo-title { font: 700 14px/1.3 var(--eh-head); color: var(--eh-ink); margin-bottom: 4px; }
.rail__promo-desc { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); margin-bottom: 10px; }
.rail__promo-btn { height: 32px; padding: 0 12px; border-radius: 100px; background: var(--eh-link); color: #fff; font: 600 13px/1 var(--eh-sans); }
.rail__promo-btn:hover { background: var(--eh-dark); }
/* Unlocked rows */
.rail__item .rail__item-trail { display: inline-flex; align-items: center; gap: 6px; width: auto; color: var(--text-faint); }
.rail__item .rail__item-trail svg { width: 15px; height: 15px; }
.rail__item .rail__item-trail .rail__count { margin: 0; }
.rail__item--open { background: var(--accent-soft); color: var(--eh-dark); }
.rail__sublist { padding: 2px 0 6px 10px; display: grid; gap: 2px; }
.rail__sublist .rail__saved { cursor: pointer; }
.rail__book { margin-left: auto; height: 28px; padding: 0 10px; font-size: 12px; border-radius: 100px; }
.rail__book svg { width: 12px; height: 12px; }
/* Rail footer: sign-in callout, user row */
.signin-callout { margin: 0 0 4px; padding: 14px 14px 12px; border-radius: 12px; border-color: var(--accent-border); background: #fff; }
.signin-callout__title { font: 700 14px/1.3 var(--eh-head); color: var(--eh-ink); }
.signin-callout__desc { font-size: 12.5px; line-height: 1.45; }
.signin-callout__primary { height: 32px; padding: 0 10px; border-radius: 100px; background: var(--eh-dark); color: #fff; font: 600 12.5px/1 var(--eh-sans); }
.signin-callout__primary:hover { background: var(--eh-navy); }
.signin-callout__secondary { height: 32px; padding: 0 10px; border-radius: 100px; border-color: var(--border-strong); color: var(--eh-dark); font: 600 12.5px/1 var(--eh-sans); background: #fff; }
.signin-callout__secondary:hover { background: var(--eh-tint); border-color: var(--eh-link); }
.rail__user { margin: 0; padding: 6px 6px 6px 4px; border-radius: 10px; }
.rail__user:hover, .rail__user--open { background: var(--accent-soft); }
.rail__user-avatar { width: 32px; height: 32px; background: var(--eh-dark); color: #fff; font: 700 11.5px/1 var(--eh-head); }
.rail__user-name { font: 600 13.5px/1.2 var(--eh-sans); color: var(--eh-ink); }
.rail__user-sub { font-size: 12px; color: var(--text-muted); }
.rail__user-action { display: grid; place-items: center; color: var(--text-muted); }
.user-menu { border-radius: 12px; padding: 6px; }
.user-menu__item { font: 500 13.5px/1.3 var(--eh-sans); }
.user-menu__item .user-menu__icon { color: var(--eh-dark); }
/* Product bar: the same three items at the right end */
.pbar__features { display: flex; align-items: center; gap: 2px; padding-right: 8px; margin-right: 2px; border-right: 1px solid var(--border); }
.pbar__locked { display: inline-flex; }
.pbar__locked .rail__item { width: auto; height: 34px; padding: 0 10px; gap: 6px; border-radius: 100px; font: 600 13px/1 var(--eh-sans); white-space: nowrap; }
.pbar__locked .rail__item-icon, .pbar__locked .rail__item-icon svg { width: 14px; height: 14px; }
.pbar__locked .rail__item-trail--lock { margin-left: 0; width: 14px; height: 14px; }
.pbar__locked .rail__item-trail--lock svg { width: 13px; height: 13px; }
.pbar__signup { height: 34px; padding: 0 14px; margin-left: 4px; border-radius: 100px; border: 0; background: var(--eh-link); color: #fff; font: 600 13px/1 var(--eh-sans); white-space: nowrap; }
.pbar__signup:hover { background: var(--eh-dark); }
.pbar__feat { color: var(--eh-dark); }
.pbar__feat .pbar__count { background: var(--accent-soft); color: var(--eh-dark); }
.pbar__menu--saved { width: 340px; }
.pbar__menu--saved .rail__saved { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.pbar__menu--saved .rail__saved:hover { background: var(--bg-alt); }
.pbar__menu--saved .rail__empty { padding: 6px 10px 8px; }
@media (max-width: 1180px) { .pbar__locked .rail__text, .pbar__feat > span:not(.pbar__count) { display: none; } .pbar__locked .rail__item, .pbar__feat { padding: 0 8px; } }
.pbar__inner { max-width: 1400px; }
@media (min-width: 1400px) { .pbar__inner { padding: 0 24px; } }
/* Auth dialog: v3 shape, our centered scrim, white card on brand tokens */
.auth-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(16,44,61,.55); backdrop-filter: blur(3px); animation: none; }
.auth-modal__card { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 48px); overflow: hidden; background: #fff; color: var(--text); border: 0; border-radius: 16px; padding: 30px 30px 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); display: grid; gap: 12px; animation: none; }
.auth-modal__card--profile { max-width: 480px; gap: 10px; padding: 26px 28px 20px; }
.auth-modal__close { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; }
.auth-modal__close:hover { background: var(--eh-surface); color: var(--text); }
.auth-modal__close svg { width: 16px; height: 16px; }
.auth-modal__back { position: absolute; left: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; font-size: inherit; }
.auth-modal__back:hover { background: var(--eh-surface); color: var(--text); }
.auth-modal__back svg { width: 16px; height: 16px; }
.auth-modal__logo { height: 34px; width: auto; justify-self: start; }
html[data-brand="ehcare"] .auth-modal__logo { height: auto; width: 240px; }
.auth-modal__title { margin: 4px 0 0; font: 700 22px/1.25 var(--eh-serif); color: var(--eh-ink); text-align: left; letter-spacing: 0; }
.auth-modal__card--profile .auth-modal__title { margin-top: 6px; }
.auth-modal__sub { margin: -6px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); text-align: left; }
.auth-modal__providers { display: grid; gap: 8px; margin-top: 4px; }
.auth-provider { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; color: var(--eh-ink); font: 600 14.5px/1 var(--eh-sans); transition: background .15s ease, border-color .15s ease; }
.auth-provider:hover { background: var(--eh-surface); border-color: var(--eh-dark); }
.auth-provider__icon { display: grid; place-items: center; width: 18px; height: 18px; color: var(--eh-ink); }
.auth-modal__divider { display: flex; align-items: center; gap: 12px; margin: 2px 0; font: 600 11px/1 var(--eh-sans); letter-spacing: .8px; text-transform: uppercase; color: var(--text-faint); }
.auth-modal__divider::before, .auth-modal__divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-modal__email { display: grid; gap: 8px; }
.auth-modal__input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; color: var(--eh-ink); font: 500 14.5px/1 var(--eh-sans); outline: none; transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none; }
select.auth-modal__input { background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23626262' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 12px center / 14px 14px; padding-right: 32px; }
.auth-modal__input::placeholder { color: var(--text-faint); }
.auth-modal__input:focus { border-color: var(--eh-link); box-shadow: 0 0 0 3px rgba(52,160,104,.25); }
.auth-modal__continue { height: 46px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--eh-dark); color: #fff; font: 700 15px/1 var(--eh-sans); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s ease, opacity .15s ease; }
.auth-modal__continue:hover:not(:disabled) { background: var(--eh-navy); color: #fff; }
.auth-modal__continue:disabled { background: var(--eh-surface); color: var(--text-faint); opacity: 1; cursor: not-allowed; }
.auth-modal__continue svg { width: 16px; height: 16px; }
.auth-modal__legal { margin: 0; font-size: 12px; line-height: 1.45; color: var(--text-faint); text-align: left; }
.auth-modal__form { display: grid; gap: 8px; }
.auth-modal__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 10px; }
.auth-modal__grid--family { grid-template-columns: 1fr 72px 1fr; }
.auth-modal__field { display: grid; gap: 4px; min-width: 0; }
.auth-modal__field--wide { grid-column: span 2; }
.auth-modal__field--full { grid-column: 1 / -1; }
.auth-modal__label { font: 700 10.5px/14px var(--eh-sans); letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); }
.auth-modal__label--group { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; color: var(--eh-dark); }
.auth-modal__label--group em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12px; color: var(--text-faint); }
.auth-modal__field .auth-modal__input { height: 40px; font-size: 14px; }
.auth-modal__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 100px; border: 1px solid var(--border-strong); background: #fff; color: var(--text-muted); font: 600 13px/1 var(--eh-sans); transition: all .15s ease; }
.auth-chip svg { width: 14px; height: 14px; }
.auth-chip:hover { border-color: var(--eh-link); }
.auth-chip.is-on { background: var(--eh-tint); border-color: var(--eh-link); color: var(--eh-dark); }
.auth-modal__primary { margin-top: 8px; }
.auth-modal__alt { margin: 0; font-size: 13px; color: var(--text-muted); text-align: center; }
.auth-modal__link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--eh-link); text-decoration: underline; text-underline-offset: 2px; }
.auth-modal__link:hover { color: var(--eh-dark); }
.auth-modal__foot { margin: 0; padding-top: 10px; border-top: 1px solid var(--border); font-size: 11.5px; line-height: 1.45; color: var(--text-faint); text-align: left; }
/* Book online rows in the rail: name and next available, the booking button beneath */
.rail__sublist .rail__saved--book { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; row-gap: 6px; align-items: center; }
.rail__sublist .rail__saved--book .rail__book { grid-column: 2; justify-self: start; margin: 0; }
/* Critic round: footer stays on screen when the rail scrolls; promo carries a caret; saved rows wrap instead of truncating */
.rail__foot { margin: auto -10px -12px; padding: 8px 10px 12px; flex: none; } /* in flow at the rail's end: the rail scrolls, nothing sits behind the footer */
.rail__promo { width: 232px; }
.rail__promo::before { content: ""; position: absolute; left: -6px; top: 14px; width: 11px; height: 11px; background: #fff; border-left: 1px solid var(--accent-border); border-bottom: 1px solid var(--accent-border); transform: rotate(45deg); }
.rail__promo--below::before { left: 18px; top: -6px; border-left: 1px solid var(--accent-border); border-bottom: 0; border-top: 1px solid var(--accent-border); }
.rail__sublist .rail__recent-text span { white-space: normal; line-height: 1.3; }
@media (max-width: 1320px) { .pbar__features { padding-right: 6px; gap: 0; } .pbar__locked .rail__item { padding: 0 7px; gap: 5px; } .pbar__signup { padding: 0 11px; margin-left: 2px; } .pbar__right .pbar__ghost { padding: 0 9px; } }

/* Saved page (v3 pattern) on Castle Connolly tokens */
.saved-page { max-width: 880px; padding: 28px 24px 80px; }
.saved-page__title { font: 700 30px/1.15 var(--eh-serif); color: var(--eh-ink); letter-spacing: 0; }
.saved-page__subtitle { font-size: 14px; color: var(--text-muted); }
.saved-tabs { margin-bottom: 22px; }
.saved-tabs__btn { font: 600 14px/1 var(--eh-sans); color: var(--text-muted); }
.saved-tabs__btn--active { color: var(--eh-dark); border-bottom-color: var(--eh-link); }
.saved-section__title { font: 700 15px/1.3 var(--eh-head); color: var(--eh-ink); }
.saved-section__count { background: var(--eh-tint); color: var(--eh-dark); font-weight: 700; }
.saved-list { display: grid; gap: 14px; }
.saved-item { position: relative; }
.saved-item--card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 16px 10px; }
.saved-item--card .hospitals, .saved-item--card .articles { margin: 0; }
.saved-item--card .hcard { border: 0; padding: 0; box-shadow: none; background: none; }
.saved-item .saved-card__foot--inline { justify-content: space-between; flex-wrap: wrap; padding: 6px 4px 0; }
.saved-item .saved-card__unsave { top: 12px; right: 12px; background: #fff; border-color: var(--border-strong); color: var(--text-muted); }
.saved-item .saved-card__unsave:hover { color: #B42318; border-color: #B42318; background: #fff; }
.saved-remove { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 4px 6px; border-radius: 6px; font: 500 12.5px/1 var(--eh-sans); color: var(--text-muted); cursor: pointer; max-width: 100%; }
.saved-remove span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-remove:hover { color: #B42318; background: var(--bg-alt); }
.saved-remove svg { width: 12px; height: 12px; flex: none; }
.saved-empty { margin: 0; padding: 18px 16px; border: 1px dashed var(--border-strong); border-radius: 12px; font-size: 13.5px; color: var(--text-muted); background: #fff; }
.saved-pages-list { gap: 8px; }
.saved-search-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 44px 12px 16px; }
.saved-search-row + .saved-search-row { border-top: 1px solid var(--border); border-radius: 12px; }
.saved-search-row:hover { background: var(--eh-tint); border-color: var(--eh-link); }
.saved-search-row__icon { color: var(--eh-link); display: grid; place-items: center; margin-top: 2px; flex: none; }
.saved-search-row__icon svg { width: 16px; height: 16px; }
.saved-search-row__body { min-width: 0; flex: 1; }
.saved-search-row__q { font: 600 15px/1.35 var(--eh-sans); color: var(--eh-ink); }
.saved-search-row .saved-card__foot--inline { padding: 4px 0 0; margin: 0; }
.saved-page__foot { margin: 12px 0 0; font-size: 12px; color: var(--text-faint); }
.rail__seeall { color: var(--eh-link); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.rail__seeall svg { width: 12px; height: 12px; flex: none; }
.rail__seeall svg:last-child { margin-left: auto; }
.pbar__menu--saved .rail__seeall { padding: 8px 10px; }

/* Search preferences sheet */
.prefs-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--border); }
.prefs-toggle + .prefs-toggle { border-top: 1px solid var(--border); }
.prefs-toggle + .auth-modal__primary { margin-top: 12px; }
.prefs-toggle strong { display: block; font: 600 14px/1.3 var(--eh-sans); color: var(--eh-ink); }
.prefs-toggle em { display: block; font-style: normal; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); margin-top: 2px; }
.switch { flex: none; width: 40px; height: 24px; border-radius: 100px; border: 0; background: var(--border-strong); position: relative; cursor: pointer; padding: 0; transition: background .15s; }
.switch.is-on { background: var(--eh-link); }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.is-on .switch__knob { transform: translateX(16px); }

/* Banner lives in the band (v3 placement): the invite is the first thing a new visitor reads */
.band .landing__banner--band { margin: 0 0 18px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.band .landing__banner--band:hover { background: #fff; border-color: var(--eh-link); }
.providers__pref { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--eh-dark); background: var(--eh-tint); border-radius: 100px; padding: 1px 7px; margin-left: 4px; }

/* Save anything: hospitals, topics and the search itself */
.hcard__actions .btn.is-on, .turn__save.is-on { background: var(--eh-tint); border-color: var(--eh-link); color: var(--eh-dark); }
.acard-wrap { position: relative; min-width: 0; }
.acard-wrap .acard { height: 100%; }
.acard__save { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); background: #fff; color: var(--text-muted); display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.acard__save svg { width: 14px; height: 14px; }
.acard__save:hover { border-color: var(--eh-link); color: var(--eh-dark); }
.acard__save.is-on { background: var(--eh-tint); border-color: var(--eh-link); color: var(--eh-dark); }
.turn__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 -6px; min-height: 32px; }
.turn__bar .entry-tag { margin: 0; }
.turn__save { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 100px; border: 1px solid var(--border-strong); background: #fff; color: var(--text-muted); font: 500 12.5px/1 var(--eh-sans); cursor: pointer; margin-left: auto; }
.turn__save svg { width: 13px; height: 13px; }
.turn__save:hover { border-color: var(--eh-link); color: var(--eh-dark); }

/* Composer tools: add menu, voice, response mode */
.input__tool { width: 36px; height: 36px; border-radius: 50%; color: var(--eh-dark); }
.input__tool svg { width: 18px; height: 18px; }
.input__tool:hover, .input__tool.icon-btn--open { background: var(--eh-tint); color: var(--eh-dark); }
.input__mic.is-on { background: var(--eh-link); color: #fff; animation: mic-pulse 1.2s ease-in-out infinite; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(52,160,104,.45); } 50% { box-shadow: 0 0 0 8px rgba(52,160,104,0); } }
.input-shell.is-listening { border-color: var(--eh-link); box-shadow: 0 0 0 3px rgba(52,160,104,.25), 0 8px 28px rgba(16,44,61,.18); }
.input-shell.is-listening .input__lead { color: var(--eh-link); }
.input__file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.input__add-menu, .input__mode-menu { z-index: 30; }
.input__add-menu--up { top: auto; bottom: calc(100% + 8px); }
.input__mode-menu--up { top: auto; bottom: calc(100% + 8px); }
.landing .input__add-menu--up, .landing .input__mode-menu--up { bottom: auto; top: calc(100% + 8px); }
.input__mode { height: 36px; border-radius: 100px; font: 600 13px/1 var(--eh-sans); color: var(--eh-dark); }
.input__mode:hover, .input__mode--open { background: var(--eh-tint); color: var(--eh-dark); }
.input__mode-item--active .input__mode-item-label { color: var(--eh-link); }
.input__chips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-right: 8px; }
.input__chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border-radius: 100px; background: var(--eh-tint); border: 1px solid var(--accent-border); color: var(--eh-dark); font: 600 12px/1 var(--eh-sans); white-space: nowrap; }
.input__chip svg { width: 13px; height: 13px; }
.input__chip-x { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 0; background: none; color: var(--text-muted); cursor: pointer; padding: 0; }
.input__chip-x:hover { background: #fff; color: var(--eh-dark); }
.input__chip-x svg { width: 11px; height: 11px; }
.band .input__chips { margin-left: -6px; }
.turn__tags { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.entry-tag--quick { gap: 8px; }
.entry-tag__link { border: 0; background: none; padding: 0; font: 600 11px/16px var(--eh-sans); letter-spacing: 0; text-transform: none; color: var(--eh-link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.entry-tag__link:hover { color: var(--eh-dark); }

/* My care profile page */
.profile-page .saved-page__head { align-items: center; }
.profile-page__edit { height: 38px; }
.profile-page .completion { margin: 0 0 26px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.profile-page .completion__pct { font-family: var(--eh-sans); color: var(--eh-link); }
.profile-page .completion__fill { background: var(--eh-link); }
.profile-page .completion__hint { color: var(--text-muted); }
.profile-page .completion__plus { color: var(--eh-link); }
.prow-grid { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; }
.prow { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; font-size: 14px; line-height: 1.45; }
.prow + .prow { border-top: 1px solid var(--border); }
.prow__label { color: var(--text-muted); }
.prow__value { color: var(--eh-ink); font-weight: 500; }
.prow__value--empty { color: var(--text-faint); font-weight: 400; font-style: italic; }
.app:not(.app--top) .saved-page { padding-top: 64px; }

/* ===================== Phone (390 and up): the rail is a drawer, the bar stacks, everything wraps ===================== */
@media (max-width: 720px) {
  .mobile-menu-btn { border-color: var(--border-strong); color: var(--eh-dark); border-radius: 50%; }
  .rail.rail--open .rail__header { padding-left: 52px; }
  .landing-bar { top: 12px; right: 12px; }
  .chat-header__left { padding-left: 64px; }
  .chat-header__right { position: absolute; top: 8px; right: 12px; }
  .chat-header { position: relative; }
  .band { padding: 64px 20px 56px; }
  .band .landing__banner--band { margin: 0 0 14px; padding: 6px 12px; font-size: 12.5px; line-height: 1.35; text-align: left; }
  .landing__title { font-size: 32px; line-height: 1.12; }
  .landing__sub { font-size: 15px; }
  .landing__body { padding-left: 16px; padding-right: 16px; }
  .landing__tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 16px; padding: 0 4px 6px; margin-left: -4px; margin-right: -4px; scrollbar-width: none; }
  .landing__tabs::-webkit-scrollbar { display: none; }
  .landing__suggest .default-suggestions__item { min-width: 0; }
  .landing__suggest .default-suggestions__text { flex: 1; min-width: 0; }
  .landing__suggest .search-panel__tag { display: none; }
  .landing__scale { font-size: 12px; }
  .sform--row { grid-template-columns: 1fr; }
  .pbar__inner { overflow-x: auto; scrollbar-width: none; gap: 10px; }
  .pbar__inner::-webkit-scrollbar { display: none; }
  .pbar__features, .pbar__recent { display: none; }
  .pbar__new span { display: none; }
  .app:not(.app--top) .saved-page { padding-top: 72px; }
  .saved-page { padding-left: 16px; padding-right: 16px; }
  .saved-tabs { overflow-x: auto; scrollbar-width: none; }
  .saved-tabs::-webkit-scrollbar { display: none; }
  .saved-tabs__btn { white-space: nowrap; }
  .prow { grid-template-columns: 1fr; gap: 2px; }
  .profile-page .saved-page__head { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  /* The one-row pill becomes the engine's stacked shell so the placeholder and the tools both fit */
  .input-shell, .band .input-shell, .landing .input-shell { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 12px 8px 16px; border-radius: 22px; min-height: 0; }
  .input__textarea-wrap { align-items: flex-start; }
  .band .input__textarea, .band .input-shell--large .input__textarea { height: auto; min-height: 28px; font-size: 16px; }
  .input__textarea { font-size: 16px; }
  .input__row { justify-content: space-between; }
  .input__chips { margin: 0 0 6px; }
  .input__send--label { height: 40px; padding: 0 16px; font-size: 14px; }
  .input__mode { height: 34px; }
  .compare__row { grid-template-columns: 76px 1fr 1fr; gap: 8px; }
  .compare__col, .compare__kicker, .compare__who, .compare__name { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .compare .badge, .pcard__badges .badge { white-space: normal; }
  .hcard { grid-template-columns: 1fr; }
  .hcard__actions, .pcard__actions { flex-wrap: wrap; }
  .pcard__actions .btn--quiet, .hcard__actions .btn--quiet { width: 100%; justify-content: flex-start; }
  .turn__bar { flex-wrap: wrap; }
  .composer__inner { padding-left: 12px; padding-right: 12px; }
}

/* Quieter landing: plain suggestion list, no card, no tags, one-line scale */
.landing__suggest { background: none; border: 0; box-shadow: none; padding: 0; margin-top: 26px; }
.landing__suggest .default-suggestions__item { padding: 10px 12px; border-radius: 10px; }
.landing__suggest .default-suggestions__item:hover { background: #fff; }
.landing__suggest .search-panel__tag { display: none; }
.landing__suggest-label { padding: 0 12px 6px; }
.landing__scale { margin-top: 18px; font-size: 12.5px; color: var(--text-faint); }

/* Menus: inert rows carry a trailing value like v3 */
.user-menu__trail, .acct__trail { margin-left: auto; font-size: 12px; font-style: normal; font-weight: 500; color: var(--text-faint); background: none; padding: 0; }

/* Search preferences page on Castle Connolly tokens */
.prefs { max-width: 760px; margin: 0 auto; padding: 28px 24px 80px; width: 100%; }
.app:not(.app--top) .prefs { padding-top: 64px; }
.prefs__head { margin-bottom: 30px; }
.prefs__badge { font: 700 11px/1 var(--eh-sans); letter-spacing: .8px; text-transform: uppercase; color: var(--eh-dark); background: var(--eh-tint); border-color: transparent; }
.prefs__badge-icon { color: var(--eh-link); }
.prefs__title { font: 700 30px/1.15 var(--eh-serif); color: var(--eh-ink); letter-spacing: 0; }
.prefs__sub { font-size: 14px; color: var(--text-muted); }
.prefs__link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--eh-link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.prefs__section-num { color: var(--eh-link); }
.prefs__section-title { font: 700 16px/1.3 var(--eh-head); color: var(--eh-ink); }
.prefs__section-body { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; display: grid; gap: 18px; }
.prefs__field { display: grid; gap: 8px; }
.prefs__field--row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.prefs__field-label { font: 600 14px/1.3 var(--eh-sans); color: var(--eh-ink); }
.prefs__field-hint { font-size: 12.5px; line-height: 1.4; color: var(--text-muted); margin-top: 2px; }
.prefs__radio, .prefs__chip { font: 600 13px/1 var(--eh-sans); border-radius: 100px; }
.prefs__radio--active { background: var(--eh-dark); border-color: var(--eh-dark); color: #fff; }
.prefs__chip--active { background: var(--eh-tint); border-color: var(--eh-link); color: var(--eh-dark); }
.prefs__chip-check { color: var(--eh-link); }
.ptoggle--on { background: var(--eh-link); }
.prefs__footer { border-top: 1px solid var(--border); padding-top: 18px; }
.prefs__footer-note { font-size: 12.5px; color: var(--text-muted); }
.prefs__btn-primary { background: var(--eh-dark); color: #fff; border-radius: 100px; font: 600 14px/1 var(--eh-sans); display: inline-flex; align-items: center; gap: 8px; }
.prefs__btn-primary:hover { background: var(--eh-navy); }
.prefs__btn-secondary { border-radius: 100px; font: 600 14px/1 var(--eh-sans); color: var(--eh-dark); }
.profile-page .prefs__badge { margin-bottom: 10px; }
@media (max-width: 720px) { .prefs { padding-left: 16px; padding-right: 16px; } .app:not(.app--top) .prefs { padding-top: 72px; } .prefs__footer { flex-direction: column; align-items: stretch; gap: 12px; } }

/* ===================== Landing aligned to the health-system demo: banner, title, tabs, stacked input, plain list. Flat surface, brand in type and accents. ===================== */
.landing--flat .band--flat { background: none; color: var(--eh-ink); padding: 88px 32px 0; overflow: visible; isolation: auto; flex: 0 0 auto; justify-content: flex-start; }
body.nav-top .landing--flat .band--flat { padding-top: 64px; }
.landing--flat .band__shapes { display: none; }
.landing--flat .band__inner { max-width: 820px; }
.landing--flat .landing__title { color: var(--eh-ink); font-size: 42px; margin: 0; }
.landing--flat .band .landing__banner--band { margin: 0 0 26px; box-shadow: 0 8px 24px -14px rgba(16,44,61,.35); }
.landing--flat .landing__body { margin: 26px auto 0; max-width: 820px; }
.landing--flat .landing__tabs { margin: 0 0 18px; gap: 26px; justify-content: center; }
.landing--flat .landing__tabs .search-tab { padding: 6px 2px 10px; border-radius: 0; border: 0; background: none; color: var(--text-muted); font-weight: 500; position: relative; }
.landing--flat .landing__tabs .search-tab:hover { color: var(--eh-dark); background: none; }
.landing--flat .landing__tabs .search-tab--active { color: var(--eh-dark); font-weight: 600; background: none; border: 0; }
.landing--flat .landing__tabs .search-tab--active::after { display: block; content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--eh-link); border-radius: 2px; }
.landing--flat .landing__body .input-shell, .landing--flat .band .input-shell { flex-direction: column; align-items: stretch; gap: 10px; min-height: 0; padding: 16px 14px 10px 18px; border-radius: 22px; border: 1px solid var(--border-strong); background: #fff; box-shadow: 0 10px 30px -18px rgba(16,44,61,.3); }
.landing--flat .landing__body .input-shell:focus-within { border-color: var(--eh-link); box-shadow: 0 0 0 3px rgba(52,160,104,.2), 0 10px 30px -18px rgba(16,44,61,.3); }
.landing--flat .landing__body .input__textarea-wrap { align-items: flex-start; }
.landing--flat .landing__body .input__textarea, .landing--flat .landing__body .input-shell--large .input__textarea { height: auto; min-height: 30px; font-size: 18px; line-height: 1.4; }
.landing--flat .landing__body .input__lead { display: none; }
.landing--flat .landing__body .input__row { justify-content: space-between; }
.landing--flat .landing__body .input__send { width: 40px; height: 40px; border-radius: 12px; background: var(--eh-link); color: #fff; }
.landing--flat .landing__body .input__send:disabled { background: var(--eh-surface); color: var(--text-faint); }
.landing--flat .landing__body .input__chips { margin: 0 0 6px; }
.landing--flat .srow--open { margin-top: 12px; }
.landing--flat .landing__suggest { margin-top: 22px; width: 100%; }
.landing--flat .landing__suggest .default-suggestions__item { padding: 11px 10px; font-size: 16px; }
.landing--flat .landing__suggest .default-suggestions__icon { color: var(--text-faint); }
.landing--flat .landing__scale { margin-top: 26px; }
.landing--flat::after { flex: 1 1 160px; }
.app--top .landing--flat .band--flat { padding-top: 40px; }
@media (max-width: 720px) {
  .landing--flat .band--flat { padding: 72px 20px 0; }
  .landing--flat .landing__title { font-size: 30px; }
  .landing--flat .landing__tabs { justify-content: flex-start; gap: 20px; }
}

/* Round: tools, chips as a row, distance, save-this-search spacing */
.pcard__dist { display: inline-flex; align-items: center; margin-left: 8px; padding: 1px 8px; border-radius: 100px; background: var(--eh-tint); color: var(--eh-dark); font: 600 12px/18px var(--eh-sans); vertical-align: 1px; }
.turn__bar { margin: 26px 0 10px; }
.input__textarea-wrap:has(.input__chips) { flex-wrap: wrap; }
.input__chips { flex: 0 0 100%; order: -1; margin: 0 0 8px; }
.input__chip { padding: 0 4px 0 10px; }
.input__chip-x { width: 20px; height: 20px; border: 1px solid var(--accent-border); background: #fff; color: var(--eh-dark); }
.input__chip-x svg { width: 10px; height: 10px; }
.input-shell:not(.input-shell--large) .input__chips { margin: 0 0 6px; }
.landing--flat .landing__body .input__chips { margin: 0 0 8px; }

/* Tools: coverage sheet, compare page, profile family note */
.cov__stat { padding: 12px 14px; border-radius: 12px; background: var(--eh-tint); color: var(--eh-ink); font-size: 14px; line-height: 1.45; }
.cov__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cov__row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; font-size: 13.5px; }
.cov__row svg { width: 16px; height: 16px; flex: none; }
.cov__row.is-in svg, .cov__row.is-in b { color: var(--eh-link); }
.cov__row.is-out svg, .cov__row.is-out b { color: #B42318; }
.cov__row span { display: grid; gap: 1px; min-width: 0; flex: 1; }
.cov__row strong { font-weight: 600; color: var(--eh-ink); }
.cov__row em { font-style: normal; font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cov__row b { font-size: 12px; font-weight: 700; white-space: nowrap; }
.compare-page__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.compare-page__label { font: 700 11px/16px var(--eh-sans); letter-spacing: .8px; text-transform: uppercase; color: var(--text-muted); margin-right: 4px; }
.compare-page__hint { flex: 0 0 100%; font-size: 12.5px; color: var(--text-faint); }
.compare-page__table { padding: 0; overflow: hidden; }
.compare-page__table .compare { border: 0; border-radius: 0; }
.compare-page__foot { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.profile-page__note { margin: 10px 4px 0; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.pcard__actions .btn.is-on { background: var(--eh-tint); border-color: var(--eh-link); color: var(--eh-dark); }

/* Focus lives on the shell, not the textarea */
.input__textarea:focus, .input__textarea:focus-visible { outline: none; box-shadow: none; }

/* Compare page: the section's own table is the card */
.compare-page__body .compare__intro { font-size: 15px; color: var(--text); margin-bottom: 2px; }
.compare-page__body .compare__foot { margin-top: 2px; }

/* Care profile tabs (health-data pattern) */
.profile-page .care-profile__tabnav { margin: 26px 0 18px; gap: 2px; }
.profile-page .ptab-btn { font: 600 13.5px/1 var(--eh-sans); color: var(--text-muted); padding: 10px 14px; border-radius: 8px 8px 0 0; }
.profile-page .ptab-btn--active { color: var(--eh-dark); }
.profile-page .ptab-btn--active::after { background: var(--eh-link); }
.ptab__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; min-height: 36px; }
.ptab__note { font-size: 13.5px; color: var(--text-muted); }
.ptab__badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 100px; background: var(--eh-tint); color: var(--eh-dark); font: 600 12.5px/1 var(--eh-sans); }
.ptab__badge svg { width: 14px; height: 14px; color: var(--eh-link); }
.ptab__edit { padding: 8px 14px; }
.ptab__add { margin-top: 12px; }
.ptab__link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--eh-link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ptab__actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ptab__danger { color: #B42318; border-color: #E6C2BE; }
.ptab__danger:hover { background: #FFF1F0; }
.prow--doc .prow__value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
@media (max-width: 720px) { .profile-page .care-profile__tabnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .profile-page .ptab-btn { white-space: nowrap; } }

/* Find a Top Doctor: smart field, grouped suggestions, secondary filters */
.smart-row { width: 100%; margin-top: 12px; display: grid; gap: 10px; }
.smart__fields { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 10px; align-items: end; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px 12px 12px 14px; }
.smart__field { display: grid; gap: 4px; min-width: 0; }
.smart__label { display: flex; align-items: center; gap: 6px; font: 700 10.5px/14px var(--eh-sans); letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); }
.smart__label svg { width: 13px; height: 13px; color: var(--eh-link); }
.smart__label em { font: 500 11px/14px var(--eh-sans); letter-spacing: 0; text-transform: none; color: var(--eh-blue); background: var(--eh-tint); border-radius: 100px; padding: 0 7px; margin-left: 2px; }
.smart__inline { display: flex; align-items: center; gap: 8px; }
.smart__field input, .smart__field select { height: 38px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; font: 500 14px/1 var(--eh-sans); color: var(--eh-ink); padding: 0 12px; width: 100%; min-width: 0; }
.smart__field select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23234053' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
.smart__field input:focus, .smart__field select:focus { outline: 0; border-color: var(--eh-link); box-shadow: 0 0 0 3px var(--eh-tint); }
.smart__use { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--eh-link); font: 600 12.5px/1 var(--eh-sans); cursor: pointer; white-space: nowrap; }
.smart__use:hover { background: var(--eh-tint); }
.smart__use svg { width: 14px; height: 14px; }
.smart__find { height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--eh-link); color: #fff; font: 600 14px/1 var(--eh-sans); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.smart__find:hover { background: var(--eh-dark); }
.smart__find svg { width: 15px; height: 15px; }
.smart__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 2px; }
.smart__chipwrap { position: relative; }
.smart__chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 100px; border: 1px solid var(--border-strong); background: #fff; color: var(--eh-ink); font: 600 13px/1 var(--eh-sans); cursor: pointer; }
.smart__chip b { font-weight: 500; color: var(--text-muted); }
.smart__chip svg { width: 13px; height: 13px; color: var(--text-muted); }
.smart__chip:hover, .smart__chip.is-open { border-color: var(--eh-link); }
.smart__chip.is-on { background: var(--eh-tint); border-color: var(--eh-link); color: var(--eh-dark); }
.smart__chip.is-on svg { color: var(--eh-link); }
.smart__menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 180px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px -16px rgba(16,44,61,.35); padding: 6px; display: grid; gap: 2px; }
.smart__opt { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: 500 13.5px/1.2 var(--eh-sans); color: var(--text); cursor: pointer; }
.smart__opt:hover { background: var(--bg-alt); }
.smart__opt.is-on { color: var(--eh-dark); font-weight: 600; }
.smart__opt svg, .smart__optgap { width: 14px; height: 14px; flex: none; color: var(--eh-link); display: inline-block; }
.smart { text-align: left; padding: 8px; display: grid; gap: 4px; }
.smart__group { padding: 4px 0; }
.smart__group + .smart__group { border-top: 1px solid var(--border); padding-top: 8px; }
.smart__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 4px; font: 700 11px/16px var(--eh-sans); letter-spacing: .8px; text-transform: uppercase; color: var(--text-muted); }
.smart__head svg { width: 15px; height: 15px; color: var(--eh-link); }
.smart__item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 8px; background: none; font: 500 15px/1.3 var(--eh-sans); color: var(--eh-ink); cursor: pointer; }
.smart__item:hover { background: var(--bg-alt); }
.smart__item mark { background: none; color: var(--eh-link); font-weight: 700; }
.smart__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smart__meta { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.smart__item--doc .rail__saved-avatar { width: 28px; height: 28px; font-size: 11px; }
@media (max-width: 720px) { .smart__fields { grid-template-columns: 1fr; } .smart__find { justify-content: center; } .smart__meta { display: none; } }

/* Finder bar: one card, three cells, one button */
.finder-wrap { width: 100%; display: grid; gap: 12px; }
.finder { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; align-items: stretch; background: #fff; border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: 0 14px 40px -22px rgba(16,44,61,.35); overflow: visible; }
.finder.is-focused { border-color: var(--eh-link); box-shadow: 0 0 0 3px rgba(52,160,104,.18), 0 14px 40px -22px rgba(16,44,61,.35); }
.finder__cell { position: relative; padding: 14px 18px 12px; display: grid; gap: 4px; min-width: 0; }
.finder__cell + .finder__cell { border-left: 1px solid var(--border); }
.finder__label { display: flex; align-items: center; gap: 6px; font: 600 12px/16px var(--eh-sans); color: var(--text-muted); }
.finder__label em { font: 500 10.5px/14px var(--eh-sans); color: var(--eh-blue); background: var(--eh-tint); border-radius: 100px; padding: 0 7px; font-style: normal; }
.finder__inputwrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.finder__inputwrap > svg { width: 18px; height: 18px; flex: none; color: var(--eh-dark); }
.finder__inputwrap input, .finder__inputwrap select { flex: 1; min-width: 0; border: 0; background: none; padding: 0; height: 28px; font: 500 17px/1.2 var(--eh-sans); color: var(--eh-ink); outline: none; }
.finder__inputwrap input::placeholder { color: var(--text-faint); }
.finder__inputwrap select { appearance: none; -webkit-appearance: none; padding-right: 22px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23234053' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 2px center; cursor: pointer; }
.finder__inputwrap select:invalid, .finder__inputwrap select option[value=""] { color: var(--text-faint); }
.finder__geo { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: none; color: var(--eh-link); display: grid; place-items: center; cursor: pointer; }
.finder__geo:hover { background: var(--eh-tint); }
.finder__geo svg { width: 17px; height: 17px; }
.finder__go { margin: 8px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--eh-link); color: #fff; font: 600 15px/1 var(--eh-sans); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.finder__go:hover { background: var(--eh-dark); }
.finder__go svg { width: 16px; height: 16px; }
.finder__cell--q .smart { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(16,44,61,.4); min-width: 420px; }
.finder__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 2px; }
.smart__menu--more { min-width: 340px; padding: 10px; gap: 10px; }
.smart__more { display: grid; gap: 6px; }
.smart__morelabel { font: 700 10.5px/14px var(--eh-sans); letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); padding: 0 2px; }
.smart__moreopts { display: flex; flex-wrap: wrap; gap: 6px; }
.smart__pill { height: 28px; padding: 0 10px; border-radius: 100px; border: 1px solid var(--border-strong); background: #fff; font: 500 12.5px/1 var(--eh-sans); color: var(--eh-ink); cursor: pointer; }
.smart__pill.is-on { background: var(--eh-tint); border-color: var(--eh-link); color: var(--eh-dark); font-weight: 600; }
.landing--flat .finder-wrap + .landing__suggest { margin-top: 26px; }
/* The left rail takes 290px, so the landing finder wraps to two rows earlier there than under the top nav */
@media (max-width: 1180px) { body:not(.nav-top) .landing .finder { grid-template-columns: 1fr 1fr; } body:not(.nav-top) .landing .finder__cell--q { grid-column: 1 / -1; } body:not(.nav-top) .landing .finder__cell--loc { border-left: 0; border-top: 1px solid var(--border); } body:not(.nav-top) .landing .finder__cell--ins { border-top: 1px solid var(--border); } body:not(.nav-top) .landing .finder__go { grid-column: 1 / -1; margin: 0 12px 12px; height: 44px; justify-content: center; } body:not(.nav-top) .landing .finder__cell--q .smart { min-width: 0; } }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr 1fr; } .finder__cell--q { grid-column: 1 / -1; } .finder__cell--loc { border-left: 0; border-top: 1px solid var(--border); } .finder__cell--ins { border-top: 1px solid var(--border); } .finder__go { grid-column: 1 / -1; margin: 0 12px 12px; height: 44px; justify-content: center; } .finder__cell--q .smart { min-width: 0; } }
.landing--flat .landing__body:has(.finder-wrap) { max-width: 940px; }
.finder__label em { white-space: nowrap; }
.finder__cell--loc .finder__inputwrap input, .finder__cell--ins .finder__inputwrap select { font-size: 15.5px; }
.finder__cell--q .finder__inputwrap input { font-size: 16.5px; }

/* Results filter bar carries both directory sites' facets */
.filter__row { flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter--chip { min-width: 0; }
.filter--chip select { height: 34px; border-radius: 100px; border: 1px solid var(--border-strong); background: #fff; font: 600 13px/1 var(--eh-sans); color: var(--eh-ink); padding: 0 30px 0 12px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23626262' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
.filter--chip select:focus { outline: 0; border-color: var(--eh-link); box-shadow: 0 0 0 3px var(--eh-tint); }
.filter--chip:has(select:not([value="Any"])) select { background-color: var(--eh-tint); border-color: var(--eh-link); color: var(--eh-dark); }

/* Results filter bar reuses the finder card: Sort by sits where the Find button was, smaller type, chips under it */
.finder-wrap--filters { margin: 4px 0 16px; }
.finder--filters { grid-template-columns: 1.3fr 1fr 1.1fr .9fr; box-shadow: none; }
.finder--filters .finder__cell { padding: 10px 16px 9px; cursor: default; }
.finder--filters .finder__inputwrap input, .finder--filters .finder__inputwrap select { height: 26px; font-size: 14.5px; }
.finder--filters .finder__inputwrap > svg { width: 16px; height: 16px; }
.finder--filters .finder__cell--sort select { color: var(--eh-dark); }
.finder-wrap--filters .filter__clear { height: 32px; }
@media (max-width: 1240px) { .finder--filters { grid-template-columns: 1fr 1fr; } .finder--filters .finder__cell--q { grid-column: auto; } .finder--filters .finder__cell--loc { border-left: 1px solid var(--border); border-top: 0; } .finder--filters .finder__cell--ins { border-left: 0; border-top: 1px solid var(--border); } .finder--filters .finder__cell--sort { border-top: 1px solid var(--border); } }

/* Provider cards trimmed to what decides a visit: who, Top Doctor status, network, availability, where and how far. Address on hover, everything else on the profile. */
.pcard { padding: 14px 18px 14px; gap: 10px; }
.pcard__head { gap: 12px; }
.pcard__avatar { width: 44px; height: 44px; font-size: 15px; }
.pcard__name { font-size: 17px; line-height: 22px; }
.pcard__spec { font-size: 13.5px; margin-top: 1px; }
.pcard__badges { margin-top: 6px; }
.badge { height: 20px; font-size: 11px; }
.pcard__lines { margin: 0; display: grid; gap: 5px; font-size: 13.5px; line-height: 20px; }
.pcard__lines > div { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.pcard__lines dt { flex: none; width: 16px; height: 16px; color: var(--accent); margin-top: 2px; }
.pcard__lines dt svg { width: 16px; height: 16px; }
.pcard__lines dd { margin: 0; min-width: 0; }
.pcard__actions { padding-top: 2px; }
.pcard__call { margin-left: 0; }
.pcard__call svg { width: 15px; height: 15px; }
