/* Login screen (Locum Traveler brand). The ACEP visual layer that also lived here was left out in the merge:
   the ACEP page keeps the approved warm-white design in styles.css (the layer is in branch acep-other-snapshot). */
/* Locum Traveler login uses the parent brand: black and white. Teal belongs to ACEP only. */
.login-overlay {
  background: #f4f4f4;
  padding: 32px 20px;
  overflow-y: auto;
  color: #171717;
}
.login-card {
  width: 480px;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 64px -28px rgba(0,0,0,.20), 0 4px 12px -6px rgba(0,0,0,.08);
  margin: auto;
  flex-shrink: 0;
}
.login-logo {
  text-align: center;
  padding: 36px 24px;
  margin: 0 0 28px;
  border-radius: 22px 22px 0 0;
  background: #111111;
  color: #fff;
}
.login-roles-label { color: #555555; font-size: 14px; letter-spacing: 0; text-transform: none; margin: 0 24px 20px; }
#loginRoles { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding: 0 32px 28px; }
#loginRoles .login-role-btn { width: 100%; padding: 14px 8px 12px; gap: 10px; border-radius: 12px; background: #f7f7f7; border: 1px solid transparent; transition: background .15s, border-color .15s; }
#loginRoles .login-role-btn:hover { background: #eeeeee; border-color: #777777; }
#loginRoles .login-role-icon { width: 48px; height: 48px; border-radius: 14px; background: #eeeeee; border: 0; color: #111111; font-size: 15px; font-weight: 500; letter-spacing: .02em; }
#loginRoles .login-role-btn:hover .login-role-icon { background: #171717; color: #fff; transform: none; }
#loginRoles .login-role-name { color: #171717; font-size: 14px; font-weight: 500; }
.login-role-btn:focus-visible, .login-pw-btn:focus-visible, .login-pw-back:focus-visible { outline: 2px solid #171717; outline-offset: 3px; }
.login-pw-section { padding: 0 32px 28px; }
.login-pw-back { font: 400 13px 'Outfit', sans-serif; background: none; border: none; color: #171717; padding: 8px 0; min-height: 40px; margin-bottom: 16px; }
.login-pw-back:hover { color: #111111; text-decoration: underline; text-underline-offset: 3px; }
.login-pw-label { display: block; color: #171717; font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.login-pw-input { min-height: 48px; border: 1px solid #d6d6d6; border-radius: 10px; background: #f7f7f7; font-size: 15px; color: #171717; caret-color: #171717; }
.login-pw-input::placeholder { color: #666666; }
.login-pw-input:focus { border-color: #171717; outline: 2px solid #171717; outline-offset: 2px; background: #fff; }
.login-pw-input[aria-invalid="true"] { border-color: #a1442e; }
.login-pw-error { font-size: 13px; line-height: 1.4; color: #a1442e; margin-top: 10px; }
.login-pw-btn { background: #171717; border-radius: 10px; min-height: 48px; font-size: 14px; margin-top: 12px; box-shadow: 0 4px 8px -4px rgba(0,0,0,.25); }
.login-pw-btn:hover { background: #111111; }
.login-overlay ::selection { background: #dddddd; color: #171717; }
@media (max-width: 520px) {
  .login-overlay { padding: 20px 16px; }
  .login-logo { padding: 26px 24px; }
    #loginRoles { padding: 0 20px 24px; gap: 8px; }
  .login-pw-section { padding: 0 24px 24px; }
  .login-pw-input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { #loginRoles .login-role-btn, #loginRoles .login-role-icon { transition: none; } }

/* Parent-brand wordmark and support, scoped to sign-in. */
.login-logo .login-logo-title { font-family: 'Playfair Display', Georgia, serif; font-size: 28px; font-weight: 500; line-height: 1.25; letter-spacing: .025em; color: #fff; margin: 0; }
.login-tagline { font-family: 'Playfair Display', Georgia, serif; font-size: 19px; font-style: italic; font-weight: 400; line-height: 1.5; color: #fff; margin-top: 8px; }
#loginRoles .login-role-icon, #loginRoles .login-role-btn:hover .login-role-icon { background: #111; color: #fff; }
.login-support { margin: 0; padding: 18px 24px 22px; border-top: 1px solid #ededed; text-align: center; font-size: 12px; line-height: 1.7; color: #666; }
.login-support a { color: #171717; text-decoration: underline; text-underline-offset: 3px; }
.login-support a:hover { color: #555; }
.login-support a:focus-visible { outline: 2px solid #171717; outline-offset: 3px; }
@media (max-width: 380px) { .login-logo .login-logo-title { font-size: 24px; } }

/* Operational clarity: event metrics, reliable touch targets and readable detail. */
@media screen {
  body[data-page="event"] #sb-pulse { display: none; }
  .ev-jump-leads { display: none; }
  .ev-milestone-note { color: #5f6d72; font-size: 12.5px; line-height: 1.5; margin: 8px 0 12px; }
  .ev-board-notice { color: #435b61; font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
  .ev-table tr[tabindex]:focus-visible { outline: 2px solid #1b7772; outline-offset: -2px; }
  .ev-modal:focus { outline: none; }
  .ev-modal .ev-modal-body { overflow-x: hidden; }
  .ev-table-wrap { max-width: 100%; overflow-x: auto; }
  @media (max-width: 700px) {
    .ev-jump-leads { display: flex; width: 100%; justify-content: center; margin: 0 0 16px; min-height: 44px; }
    .ev-head-actions .ev-btn, .ev-viewnav button, .ev-q, .ev-qmore-btn, .ev-seg button, .ev-bsum { min-height: 44px; }
    .ev-viewnav { overflow-x: auto; scroll-padding: 12px; }
    .ev-milestone-note { font-size: 13px; }
    #ev-hub { scroll-margin-top: 16px; }
  }
}

/* Keep contact details scannable in the queue; reserve journey detail for the drawer. */
@media screen {
  .ev-lead-contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px 14px; min-width: 0; }
  .ev-lead-contact > div { min-width: 0; }
  .ev-lead-contact small { display: block; color: var(--ev-muted); font-size: 10px; line-height: 1.2; }
  .ev-lead-contact span { display: block; min-width: 0; color: var(--ev-mid); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
  .ev-contact-cell { min-width: 195px; }
  .ev-source { min-width: 120px; max-width: 170px; color: var(--ev-mid); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
  .ev-lead-contact-list { display: flex; flex-direction: column; gap: 3px; }
  .ev-lead-contact-list > div { display: flex; align-items: baseline; gap: 6px; }
  .ev-lead-contact-list small { flex: 0 0 34px; font-size: 10px; }
  .ev-list-work .ev-phys-meta { display: block; margin-top: 2px; font-size: 12px; color: var(--ev-muted); }
  .ev-drawer-head { margin-bottom: 0; }
  .ev-drawer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ev-folds-top { margin: 22px 0 28px; }
  .ev-folds-top .ev-fold { margin-top: 8px; }
  .ev-folds-top .ev-fold:first-child { margin-top: 0; }
  .ev .ev-composer textarea:focus-visible { outline: none; box-shadow: none; }
  .ev-drawer-next { margin-top: 28px; }
  .ev-drawer-next > h3 { margin: 0 0 12px; color: var(--ev-muted); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
  .ev-drawer-next .ev-contact { margin-bottom: 0; }
  .ev-drawer-next .ev-contact .ev-btn { min-height: 44px; }
  .ev-drawer-next .ev-outcome { margin-top: 12px; }
  .ev-drawer-followup { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ev-line); }
  .ev-drawer-followup > h4 { margin: 0 0 10px; color: var(--ev-muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
  .ev-drawer-next .ev-next { background: var(--ev-hover); border-color: var(--ev-line); }
  .ev-drawer-next .ev-next.overdue { background: #fdf6f4; border-color: var(--ev-coral-soft); }
  .ev-drawer-next .ev-next-foot { margin-top: 10px; }
  .ev-drawer-aux { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 12px; align-items: end; margin-top: 24px; }
  .ev-drawer-last { min-width: 0; }
  .ev-drawer-last > span { display: block; color: var(--ev-muted); font-size: 11px; margin-bottom: 5px; }
  .ev-drawer-last > b { display: block; color: var(--ev-ink); font-size: 12px; font-weight: 600; line-height: 1.35; }
  .ev-drawer-last > small { display: block; color: var(--ev-muted); font-size: 10px; margin-top: 2px; }
  .ev-quo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ev-line); }
  .ev-quo > span { flex-basis: 100%; margin-bottom: 0; }
  .ev-quo > b { flex: 1; min-width: 0; }
  .ev-drawer-delete { display: flex; justify-content: flex-end; }
  .ev-btn.ev-btn-danger { color: var(--ev-coral-ink); border-color: var(--ev-coral-soft); }
  .ev-btn.ev-btn-danger:hover { background: var(--ev-coral-soft); }

  .ev-journey { margin-top: 28px; padding: 18px; background: var(--ev-hover); border: 1px solid var(--ev-line); border-radius: var(--ev-radius); }
  .ev-journey-head { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 15px; }
  .ev-journey-head h3 { margin: 3px 0 0; color: var(--ev-ink); font-size: 19px; font-weight: 600; line-height: 1.15; }
  .ev-journey-head > div > span { display: block; color: var(--ev-muted); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
  .ev-journey-head > strong { color: var(--ev-teal-dk); font-size: 20px; font-weight: 600; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .ev-journey-head > strong small { color: var(--ev-muted); font-size: 12px; font-weight: 500; }
  .ev-journey-progress { position: relative; margin-top: 19px; }
  .ev-journey-path { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; }
  .ev-journey-path::before { content: ''; position: absolute; top: 17px; left: 10%; height: 3px; border-radius: 2px; }
  .ev-journey-path::before { width: 80%; background: var(--ev-line-strong); }
  .ev-journey-path li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
  .ev-journey-link { position: absolute; z-index: 0; top: 17px; left: 50%; width: 100%; height: 3px; border-radius: 2px; background: var(--ev-teal); transform-origin: left center; }
  .ev-journey-flow { position: absolute; z-index: 1; top: 17px; left: 10%; height: 3px; overflow: hidden; border-radius: 2px; pointer-events: none; }
  .ev-journey-flow i { position: absolute; inset: 0 auto 0 0; width: 24%; background: linear-gradient(90deg, transparent, #70d5b3 30%, #d5fff0 65%, transparent); transform: translateX(-100%); }
  .ev-journey-node { position: relative; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--ev-line-strong); border-radius: 50%; background: var(--ev-card); color: var(--ev-muted); }
  .ev-journey-node svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ev-journey-path .is-complete .ev-journey-node { background: var(--ev-teal-soft); border-color: var(--ev-teal); color: var(--ev-teal-dk); }
  .ev-journey-path .is-current .ev-journey-node { background: var(--ev-teal-dk); border-color: var(--ev-teal-dk); color: #fff; box-shadow: 0 0 0 4px var(--ev-teal-soft); }
  .ev-journey-label { color: var(--ev-muted); font-size: 10px; line-height: 1.25; max-width: 72px; }
  .ev-journey-path .is-current .ev-journey-label { color: var(--ev-teal-dk); font-weight: 600; }
  .ev-journey-next { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ev-line); }
  .ev-journey-next > span { display: block; color: var(--ev-muted); font-size: 11px; font-weight: 500; }
  .ev-journey-next > span b { color: var(--ev-ink); font-weight: 600; margin-left: 7px; }
  .ev-journey-next p, .ev-journey-empty p { margin: 3px 0 0; color: var(--ev-mid); font-size: 11.5px; line-height: 1.45; }
  .ev-journey-empty p { margin-top: 0; }
  .ev-folds-handoff { margin-top: 10px; }
  .ev-folds-handoff .ev-fold { margin-top: 0; }
  .ev-drawer .ev-sec.ev-first { margin-top: 28px; }
  @media (max-width: 700px) {
    .ev-journey-label { font-size: 9px; }
  }
  @media (max-width: 420px) {
    .ev-lead-contact { grid-template-columns: minmax(0, 1fr); gap: 5px; }
    .ev-drawer-aux { grid-template-columns: minmax(0, 1fr) minmax(125px, .75fr); }
  }
}

/* Booth refinement: disclosures only appear on phones. Desktop keeps its layout. */
.ev-phone-only { display: none; }
.ev-phone-details { display: contents; }

@media screen and (max-width: 700px) {
  body[data-page="event"] .ev .ev-phone-only,
  body[data-page="event"] .ev-drawer .ev-phone-only { display: inline-flex; }
  body[data-page="event"] .ev-head { align-items: center; flex-wrap: wrap; gap: 12px; padding: 10px 0 12px; }
  body[data-page="event"] .ev-head > div:first-child { min-width: 0; flex: 1; }
  body[data-page="event"] .ev-title { margin: 0; font-size: 22px; }
  body[data-page="event"] .ev-head > .ev-phone-only { flex: none; min-height: 44px; padding: 0 12px; }
  body[data-page="event"] .ev-sub,
  body[data-page="event"] .ev-viewnav { display: none; }
  body[data-page="event"] .ev-head-actions { display: flex; flex: 0 0 100%; min-width: 0; }
  body[data-page="event"] .ev-head-actions > :not(.ev-presence) { display: none; }
  body[data-page="event"] .ev-head-actions:has(.ev-presence:empty) { display: none; }
  body[data-page="event"] .ev-presence { flex-wrap: wrap; font-size: 13px; }
  body[data-page="event"] .ev:not(:has(#ev-hub)) [data-ev-act="phone-overview"] { display: none; }
  body[data-page="event"] .ev-jump-leads { display: none !important; }
  body[data-page="event"] #ev-main > .ev-row1 { display: none; }
  body[data-page="event"] #ev-main.phone-overview-open > .ev-row1 { display: grid; order: -2; margin: 0 0 12px; }
  body[data-page="event"] [data-ev-act="phone-overview"][aria-expanded="true"] { background: var(--ev-teal-soft); color: var(--ev-teal-dk); border-color: var(--ev-teal); }

  body[data-page="event"] .ev-booth-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 8px; padding: 10px 12px; }
  body[data-page="event"] .ev-booth-live { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
  body[data-page="event"] .ev-booth-bar .ev-btn { min-height: 44px; justify-content: center; }
  body[data-page="event"] .ev-booth-bar > [data-ev-act="phone-filters"] { justify-self: start; }
  body[data-page="event"] .ev-booth-bar .ev-btn-icon { width: 44px; }
  body[data-page="event"] .ev-hub .ev-toolbar { padding: 8px 12px 12px; }
  body[data-page="event"] .ev-hub .ev-toolbar .ev-search { min-height: 44px; font-size: 16px; }
  body[data-page="event"] .ev-hub.filters-open .ev-toolbar .ev-input,
  body[data-page="event"] .ev-hub.filters-open .ev-toolbar .ev-btn,
  body[data-page="event"] .ev-hub.filters-open .ev-seg button,
  body[data-page="event"] .ev-hub.filters-open .ev-q,
  body[data-page="event"] .ev-hub.filters-open .ev-qmore-btn { min-height: 44px; }
  body[data-page="event"] .ev-brow { gap: 10px; padding: 12px; }
  body[data-page="event"] .ev-brow-main > b { font-size: 16px; line-height: 1.25; }
  body[data-page="event"] .ev-brow-main > span { line-height: 1.4; overflow-wrap: anywhere; }
  body[data-page="event"] .ev-brow-note { padding: 0 12px; border-radius: 10px; }

  body[data-page="event"] .ev-drawer { width: 100%; max-width: none; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  body[data-page="event"] .ev-drawer-head { padding-top: calc(16px + env(safe-area-inset-top)); }
  body[data-page="event"] .ev-drawer-head .ev-head-tags { display: none; }
  body[data-page="event"] .ev-drawer-head .ev-x { min-width: 44px; min-height: 44px; }
  body[data-page="event"] .ev-note-top { margin-top: 14px; }
  body[data-page="event"] .ev-note-top .ev-composer textarea { min-height: 112px; font-size: 16px; }
  body[data-page="event"] .ev-note-top .ev-composer textarea:focus-visible { outline: 2px solid var(--ev-teal); outline-offset: -2px; }
  body[data-page="event"] .ev-composer-foot { flex-wrap: wrap; gap: 8px; padding: 8px; }
  body[data-page="event"] .ev-note-for select { min-height: 44px; max-width: 140px; font-size: 16px; }
  body[data-page="event"] .ev-composer-foot .ev-note-state:empty { display: none; }
  body[data-page="event"] .ev-composer-foot .ev-note-state:not(:empty) { order: 3; flex-basis: 100%; overflow-wrap: anywhere; }
  body[data-page="event"] .ev-note-top [data-ev-dact="add-note"] { margin-left: auto; min-height: 44px; }
  body[data-page="event"] .ev-phone-details-toggle { width: 100%; justify-content: space-between; min-height: 44px; margin-top: 16px; }
  body[data-page="event"] .ev-phone-details-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  body[data-page="event"] .ev-phone-details { display: none; }
  body[data-page="event"] .ev-phone-details.is-open { display: contents; }
  body[data-page="event"] .ev-phone-details .ev-details-h { display: none; }
}

@media screen and (max-width: 380px) {
  body[data-page="event"] .ev-brow { grid-template-columns: minmax(0, 1fr) auto; }
  body[data-page="event"] .ev-brow > .ev-ava { display: none; }
}
