/* The places of Doctorpedia in every app's top bar (places.js, 20 November 2026). Quiet words in the bar's own ink; the place in
   view sits on a soft pill (never a dark one); a narrow window gets one button and a short list. It takes the colours of the
   bar it stands in, so it is right in each app, light or dark. Nothing moves but the list opening (a fade and a 4 px rise). */
.dpp { display: flex; align-items: center; min-width: 0; color: inherit; }
.dpp[hidden] { display: none; }
.dpp[data-dp-places-fit] { flex: 1 1 auto; overflow: visible; }
.dpp-row { display: flex; align-items: center; gap: 2px; min-width: 0; }
.dpp-a, .dpp-btn {
  position: relative; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: 999px;
  color: color-mix(in srgb, currentColor 72%, transparent); font: inherit; font-size: 14.5px; font-weight: 450; line-height: 1;
  white-space: nowrap; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition-property: background-color, color; transition-duration: .15s; transition-timing-function: ease-out;
}
.dpp-a::after { content: ""; position: absolute; inset: -4px 0; }
.dpp-a:hover { color: inherit; background: color-mix(in srgb, currentColor 6%, transparent); }
.dpp-a[aria-current="page"] { color: inherit; background: color-mix(in srgb, currentColor 8%, transparent); font-weight: 500; }
.dpp a:focus-visible, .dpp-btn:focus-visible { outline: 2px solid color-mix(in srgb, currentColor 40%, transparent); outline-offset: 2px; }
.dpp-item:focus-visible { outline-offset: -2px; }

/* the narrow form: the place in view and a caret; the places under it */
.dpp.is-compact { position: relative; }
.dpp-btn { border: 0; margin: 0; cursor: pointer; background: color-mix(in srgb, currentColor 6%, transparent); color: inherit; font-weight: 500; padding: 0 10px 0 13px; }
.dpp-btn:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.dpp-btn svg { opacity: .7; }
.dpp-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; display: grid; gap: 2px; min-width: 220px; padding: 6px;
  border-radius: 18px; background: var(--dpp-surface, var(--cl-surface, var(--ds-surface, var(--l-surface, Canvas))));
  box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 8%, transparent), 0 12px 32px -12px rgba(0, 0, 0, .28);
  opacity: 0; translate: 0 -4px; transition: opacity .16s ease-out, translate .16s ease-out;
}
.dpp-pop.is-open { opacity: 1; translate: 0 0; }
.dpp-pop[hidden] { display: none; }
.dpp-item {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; color: inherit; font-size: 15px;
  text-decoration: none; transition: background-color .15s ease-out;
}
.dpp-item:hover { background: color-mix(in srgb, currentColor 6%, transparent); }
.dpp-item[aria-current="page"] { background: color-mix(in srgb, currentColor 8%, transparent); font-weight: 500; }
/* a clinician's menu, grouped by app (21 November 2026): the app's mark and name, and a quiet line when the place is in another app */
.dpp-pop.is-grouped { gap: 0; width: 288px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 88px); overflow-y: auto; padding: 8px; }
.dpp-group + .dpp-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid color-mix(in srgb, currentColor 9%, transparent); }
.dpp-cap { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 10px 4px; font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap; color: color-mix(in srgb, currentColor 70%, transparent); }
.dpp-mark { display: inline-flex; flex: none; width: 16px; height: 16px; }
.dpp-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dpp-leaves { margin-left: auto; font-size: 12.5px; font-weight: 400; color: color-mix(in srgb, currentColor 64%, transparent); }
.dpp-group .dpp-item { justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 10px; }
.dpp-out { flex: none; width: 15px; height: 15px; opacity: .55; transition: opacity .15s ease-out; }
.dpp-item:hover .dpp-out, .dpp-item:focus-visible .dpp-out { opacity: .9; }
@media (pointer: coarse) { .dpp-group .dpp-item { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .dpp-pop { transition: none; translate: none; } }
