/* Clinicians, second pass (18 November 2026). The owner: the inner places have "muy poco diseño, muy poco cariño", improve them a lot.
   Loaded last (index.html), over the clean layer; tokens of the clean look only (--cl-*), and four extra hues, each only
   mixed into the surface. views/clinicians.js draws the page.

   What changed: the tiles were white and alike, the initials grey, the one way to invite a quiet outline. Now each tile
   carries a soft band in the colour of its field (the same colour for a field everywhere on the page), the portrait
   sits on it in a white round, initials take the band's colour, the activity is one small pill, and Follow turns soft
   lilac with a tick. The page reads in groups with a calm head each, a row of views sits beside the search, an
   invitation card closes the list, and an empty place is a soft panel that says what to do. Nothing dark and heavy. */

/* 1. The colours of a field ------------------------------------------------------------------------------------------ */
html .cl [data-hue] { --clp-h: var(--cl-lilac); }
html .cl [data-hue="teal"] { --clp-h: #3BA6A0; }
html .cl [data-hue="amber"] { --clp-h: #E0A93B; }
html .cl [data-hue="rose"] { --clp-h: #E06B8B; }
html .cl [data-hue="blue"] { --clp-h: #4C8DE0; }
html .cl { --clp-deep: color-mix(in srgb, var(--cl-lilac) 66%, var(--cl-ink)); }

/* 2. The head: the title and its line as every page has them, and the one way to invite ----------------------------- */
html .cl .cl-head { align-items: flex-end; }
html .cl .cl-go {
  height: 46px; gap: 10px; padding: 0 20px 0 11px;
  border: 1px solid color-mix(in srgb, var(--cl-lilac) 42%, transparent);
  background: color-mix(in srgb, var(--cl-lilac) 14%, var(--cl-surface));
  color: var(--clp-deep); font-size: 15px; font-weight: 500; box-shadow: none;
  transition: border-color .22s var(--cl-out), background-color .22s var(--cl-out), box-shadow .32s var(--cl-out), scale .12s var(--cl-out);
}
html .cl .cl-go:hover {
  border-color: color-mix(in srgb, var(--cl-lilac) 62%, transparent);
  background: color-mix(in srgb, var(--cl-lilac) 20%, var(--cl-surface));
  color: var(--clp-deep); box-shadow: var(--cl-shadow-1);
}
html .cl .cl-go .cl-go__ic { width: 24px; height: 24px; background: var(--clp-deep); }
html .cl .cl-go .cl-go__ic i, html .cl .cl-go:hover .cl-go__ic i { font-size: 13px; color: var(--cl-surface); }

/* 3. The search and the views beside it ------------------------------------------------------------------------------ */
html .cl .cl-bar { align-items: center; gap: 14px 16px; }
html .cl .cl-search { flex: 1 1 320px; max-width: 440px; padding-right: 14px; }
html .cl .cl-clear { font-size: 14px; color: var(--cl-ink-3); transition: background-color .2s var(--cl-out), color .2s var(--cl-out); }
html .cl .cl-clear i { font-size: 13px; }
html .cl .cl-clear:hover { background: var(--cl-hover); color: var(--cl-ink); }
html .cl .cl-chips { flex: 0 1 auto; justify-content: flex-end; animation: cl-rise .55s var(--cl-spring) .1s both; }
html .cl .cl-chip {
  border: 1px solid var(--cl-line-2); background: var(--cl-surface); color: var(--cl-ink-2); font-weight: 400;
  transition: border-color .22s var(--cl-out), background-color .22s var(--cl-out), color .22s var(--cl-out), scale .12s var(--cl-out);
}
html .cl .cl-chip i { font-size: 16px; color: var(--cl-ink-4); transition: color .22s var(--cl-out); }
html .cl .cl-chip small { font-size: 14px; color: var(--cl-ink-4); transition: color .22s var(--cl-out); }
html .cl .cl-chip:hover { border-color: var(--cl-line-3); background: var(--cl-hover); color: var(--cl-ink); }
html .cl .cl-chip:active { scale: .97; }
html .cl .cl-chip[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--cl-lilac) 45%, transparent);
  background: color-mix(in srgb, var(--cl-lilac) 14%, var(--cl-surface));
  color: var(--clp-deep);
}
html .cl .cl-chip[aria-pressed="true"] i, html .cl .cl-chip[aria-pressed="true"] small { color: var(--clp-deep); }

/* 4. A group: its mark on a tile of its colour, the name in the serif, one line, how many --------------------------- */
html .cl .cl-sec { gap: 18px; }
html .cl .cl-sec + .cl-sec { margin-top: 28px; }
html .cl .cl-sec__head { gap: 14px; animation: cl-rise .55s var(--cl-spring) both; animation-delay: calc(min(var(--i, 0), 12) * 45ms); }
html .cl .cl-sec__ic {
  background: color-mix(in srgb, var(--clp-h) 16%, var(--cl-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--clp-h) 30%, var(--cl-surface));
  color: color-mix(in srgb, var(--clp-h) 72%, var(--cl-ink));
}
html .cl .cl-sec__ic i { font-size: 17px; }
html .cl .cl-sec__t h2 { font-family: var(--cl-serif); font-size: 23px; font-weight: 400; letter-spacing: -.01em; line-height: 1.15; color: var(--cl-ink); }
html .cl .cl-sec__t p { margin-top: 3px; font-size: 14.5px; line-height: 1.4; color: var(--cl-ink-3); }
html .cl .cl-sec__n {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--cl-line); border-radius: 999px;
  background: var(--cl-surface); font-size: 14px; color: var(--cl-ink-3);
}

/* 5. A person ------------------------------------------------------------------------------------------------------- */
html .cl .cl-grid { gap: 16px; }
html .cl .cl-grid > .cl-tile {
  padding: 36px 16px 18px; border: 1px solid var(--cl-line-2); border-radius: 20px; background: var(--cl-surface); box-shadow: none;
  animation: cl-rise .55s var(--cl-spring) both; animation-delay: calc(min(var(--i, 0), 12) * 45ms);
  transition: border-color .3s var(--cl-out), box-shadow .42s var(--cl-out), transform .42s var(--cl-spring);
}
@media (hover: hover) {
  html .cl .cl-grid > .cl-tile:hover { transform: translateY(-2px); border-color: var(--cl-line-3); box-shadow: var(--cl-shadow-2); }
  html .cl .cl-grid > .cl-tile:hover .cl-name { text-decoration: none; }
}
html .cl .cl-grid > .cl-tile:has(.cl-who:focus-visible) { border-color: color-mix(in srgb, var(--cl-lilac) 55%, transparent); }
/* the band: a still field of the field's colour, soft shapes on a pale wash, as the cover of a profile */
html .cl .cl-band {
  top: 6px; left: 6px; right: 6px; height: 72px; border-radius: 15px;
  background:
    radial-gradient(58% 120% at 12% 100%, color-mix(in srgb, var(--clp-h) 34%, var(--cl-surface)), transparent 72%),
    radial-gradient(52% 110% at 56% 0%, color-mix(in srgb, var(--clp-h) 22%, var(--cl-surface)), transparent 74%),
    radial-gradient(44% 120% at 98% 92%, color-mix(in srgb, var(--cl-lilac) 18%, var(--cl-surface)), transparent 72%),
    color-mix(in srgb, var(--clp-h) 8%, var(--cl-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--clp-h) 16%, var(--cl-surface));
  transition: opacity .32s var(--cl-out);
}
/* the portrait in a white round on the band's lower edge */
html .cl .cl-tile > .cl-face { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 4px var(--cl-surface), 0 0 0 5px var(--cl-line), var(--cl-shadow-1); }
html .cl .cl-tile > .cl-face > *, html .cl .cl-tile .cl-pic { width: 84px; height: 84px; border: 0; }
/* initials take the colour of the field (the page's avatar helper paints a colour inline, so this needs the weight) */
html .cl .cl-tile .cl-face > span.cl-ini[style*="hsl("] {
  background: color-mix(in srgb, var(--clp-h) 22%, var(--cl-surface)) !important;
  color: color-mix(in srgb, var(--clp-h) 64%, var(--cl-ink)) !important;
  font-family: var(--cl-serif); font-size: 29px; font-weight: 400; letter-spacing: 0;
}
/* a record nobody has claimed: the same colour, paler, behind a dashed round */
html .cl .cl-tile .cl-face--none {
  border: 1.5px dashed color-mix(in srgb, var(--clp-h) 55%, var(--cl-surface));
  background: color-mix(in srgb, var(--clp-h) 9%, var(--cl-surface));
  color: color-mix(in srgb, var(--clp-h) 60%, var(--cl-ink));
  font-family: var(--cl-serif); font-size: 28px; font-weight: 400;
}
html .cl .cl-who { margin-top: 14px; }
html .cl .cl-name { font-size: 20px; }
html .cl .cl-tile .sc-mark--sm { margin-top: 6px; }
/* the field and the city wrap rather than lose their ends */
html .cl .cl-spec { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 100%; margin-top: 6px; overflow: visible; white-space: normal; line-height: 1.35; }
html .cl :is(.cl-spec__f, .cl-spec__c) { max-width: 100%; overflow: visible; white-space: normal; text-wrap: balance; }
html .cl .cl-spec__f { font-size: 14.5px; color: var(--cl-ink-2); }
html .cl .cl-spec__c { font-size: 14px; color: var(--cl-ink-4); }
html .cl .cl-spec__c i { margin-right: 4px; font-size: 14px; vertical-align: -2px; color: var(--cl-ink-4); }
/* the one real line, as a small pill: the dot takes the field's colour when the person posted this week */
html .cl .cl-tile > .cl-fact {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; margin-top: 12px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--cl-surface-2); font-size: 14px; color: var(--cl-ink-3); font-variant-numeric: tabular-nums; white-space: nowrap;
}
html .cl .cl-fact__dot { background: color-mix(in srgb, var(--cl-ink-4) 55%, var(--cl-surface)); }
html .cl .cl-tile[data-cl-week] > .cl-fact { background: color-mix(in srgb, var(--clp-h) 11%, var(--cl-surface)); color: var(--cl-ink-2); }
html .cl .cl-tile[data-cl-week] .cl-fact__dot { background: color-mix(in srgb, var(--clp-h) 88%, var(--cl-surface)); }
html .cl .cl-tile--away .cl-fact__dot { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cl-ink-4) 70%, var(--cl-surface)); }
/* a record nobody has claimed: a dashed edge, the band paler */
html .cl .cl-grid > .cl-tile--away { border-style: dashed; border-color: var(--cl-line-3); background: var(--cl-surface); }
html .cl .cl-tile--away .cl-band { opacity: .7; }

/* Follow: a soft pill; following, it turns lilac with a tick in a deep lilac round. Invite stands where Follow stands. */
html .cl .cl-act { padding-top: 16px; }
html .cl .cl-tile .follow-btn, html .cl .cl-act .cl-btn {
  height: 40px; min-width: 120px; gap: 8px; padding: 0 16px 0 10px; border: 1px solid var(--cl-line-2); border-radius: 999px;
  background: var(--cl-surface); color: var(--cl-ink); font-size: 14.5px; font-weight: 400; box-shadow: none;
  transition: border-color .22s var(--cl-out), background-color .22s var(--cl-out), color .22s var(--cl-out), scale .12s var(--cl-out);
}
html .cl .cl-tile .follow-btn .fb-ic, html .cl .cl-act .cl-btn > i {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cl-surface-2); color: var(--cl-ink-2); font-size: 12px !important;
  transition: background-color .22s var(--cl-out), color .22s var(--cl-out);
}
html .cl .cl-tile .follow-btn:hover, html .cl .cl-act .cl-btn:hover {
  border-color: color-mix(in srgb, var(--cl-lilac) 45%, transparent); background: color-mix(in srgb, var(--cl-lilac) 6%, var(--cl-surface)); color: var(--clp-deep);
}
html .cl .cl-tile .follow-btn:hover .fb-ic, html .cl .cl-act .cl-btn:hover > i { background: color-mix(in srgb, var(--cl-lilac) 18%, var(--cl-surface)); color: var(--clp-deep); }
html .cl .cl-tile .follow-btn.is-following, html .cl .cl-tile .follow-btn[aria-pressed="true"],
html .cl .cl-tile .follow-btn.is-following:hover, html .cl .cl-tile .follow-btn[aria-pressed="true"]:hover {
  border-color: color-mix(in srgb, var(--cl-lilac) 45%, transparent);
  background: color-mix(in srgb, var(--cl-lilac) 14%, var(--cl-surface));
  color: var(--clp-deep);
}
html .cl .cl-tile .follow-btn.is-following .fb-ic, html .cl .cl-tile .follow-btn[aria-pressed="true"] .fb-ic { background: var(--clp-deep); color: var(--cl-surface); }
html .cl :is(.cl-tile .follow-btn, .cl-act .cl-btn):active { scale: .97; }

/* 6. The card that closes the list, the empty places, the saved notes ----------------------------------------------- */
html .cl .cl-invite {
  margin-top: 20px; padding: 22px 24px 22px 22px; gap: 18px;
  border: 1px solid color-mix(in srgb, var(--cl-lilac) 22%, transparent);
  background: color-mix(in srgb, var(--cl-lilac) 6%, var(--cl-surface));
  animation: cl-rise .55s var(--cl-spring) both; animation-delay: calc(min(var(--i, 0), 13) * 45ms);
}
html .cl :is(.cl-invite__ic, .cl-empty__ic) { background: color-mix(in srgb, var(--cl-lilac) 18%, var(--cl-surface)); color: var(--clp-deep); }
html .cl :is(.cl-invite__ic, .cl-empty__ic) i { font-size: 22px; }
html .cl :is(.cl-invite__t h2, .cl-empty h2) { font-family: var(--cl-serif); font-size: 23px; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; color: var(--cl-ink); }
html .cl .cl-invite__t p { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--cl-ink-3); }
html .cl .cl-empty {
  gap: 0; padding: 48px 24px 44px; border: 1px solid color-mix(in srgb, var(--cl-lilac) 18%, transparent); border-radius: 20px;
  background: color-mix(in srgb, var(--cl-lilac) 6%, var(--cl-surface));
  animation: cl-rise .55s var(--cl-spring) both;
}
html .cl .cl-empty h2 { margin-top: 18px; }
html .cl .cl-empty p { margin-top: 8px; max-width: 44ch; font-size: 15.5px; line-height: 1.55; color: var(--cl-ink-3); }
html .cl .cl-empty .cl-go { margin-top: 22px; }
html .cl .cl-rows { padding: 6px; border-color: var(--cl-line-2); }
html .cl .cl-inv__ic { background: color-mix(in srgb, var(--cl-lilac) 14%, var(--cl-surface)); color: var(--clp-deep); }
html .cl .cl-more .cl-pill { height: 44px; padding: 0 22px; }

/* 7. A search as it is typed, or the same view drawn again, simply shows: no rise, a short fade ---------------------- */
html .cl #dirList[data-still] :is(.cl-grid > .cl-tile, .cl-sec__head, .cl-invite, .cl-empty) { animation: clp-fade .2s var(--cl-out) both; animation-delay: 0s; }
@keyframes clp-fade { from { opacity: 0; } to { opacity: 1; } }

/* 8. Keyboard: a clear lilac ring ----------------------------------------------------------------------------------- */
html .cl :is(.cl-chip, .cl-clear, .cl-go, .cl-pill, .cl-btn, .follow-btn, .cl-who):focus-visible { outline: 2px solid var(--cl-lilac); outline-offset: 2px; }

/* 9. Phones and narrow windows -------------------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
  /* one line, so the views' own width never widens the page: they scroll sideways instead */
  html .cl .cl-bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; }
  html .cl .cl-search { flex: none; max-width: none; }
  /* the views run sideways in one line, to the edges of the screen */
  html .cl .cl-chips {
    flex-wrap: nowrap; justify-content: flex-start; margin: 0 -16px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 14px, black calc(100% - 14px), transparent);
    mask-image: linear-gradient(90deg, transparent, black 14px, black calc(100% - 14px), transparent);
  }
  html .cl .cl-chips::-webkit-scrollbar { display: none; }
  html .cl .cl-chip { height: 42px; font-size: 15px; }
  html .cl .cl-chip small { font-size: 14px; }
  html .cl .cl-sec__t h2 { font-size: 21px; }
}
@media (max-width: 899.98px) {
  html .cl .cl-head .cl-go { align-self: flex-start; }
  html .cl .cl-grid { gap: 12px; }
  html .cl .cl-sec { gap: 14px; }
  html .cl .cl-sec + .cl-sec { margin-top: 24px; }
  html .cl .cl-sec__head { align-items: flex-start; gap: 12px; }
  html .cl .cl-sec__ic { margin-top: 2px; }
  html .cl .cl-sec__t p { font-size: 15px; }
  html .cl .cl-sec__n { height: 28px; padding: 0 11px; font-size: 14px; }
  html .cl :is(.cl-invite__t h2, .cl-empty h2) { font-size: 21px; }
  html .cl .cl-invite__t p { font-size: 15px; }
  html .cl .cl-empty { padding: 36px 20px 32px; }
}
/* a tablet: three tiles a row, at the computer's size */
@media (min-width: 640px) and (max-width: 899.98px) {
  html .cl .cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* a phone: two tiles a row, everything a little smaller, Follow across the tile */
@media (max-width: 639.98px) {
  html .cl .cl-grid { gap: 10px; }
  html .cl .cl-grid > .cl-tile { padding: 30px 10px 12px; border-radius: 18px; }
  html .cl .cl-band { top: 5px; left: 5px; right: 5px; height: 56px; border-radius: 13px; }
  html .cl .cl-tile > .cl-face, html .cl .cl-tile > .cl-face > *, html .cl .cl-tile .cl-pic { width: 64px; height: 64px; }
  html .cl .cl-tile .cl-face > span.cl-ini[style*="hsl("], html .cl .cl-tile .cl-face--none { font-size: 23px; }
  html .cl .cl-who { margin-top: 11px; }
  html .cl .cl-name { font-size: 17px; }
  /* a phone reads these at 15 px (clean-labels.css); the field may take two lines, and the fact drops its pill so it fits the tile */
  html .cl :is(.cl-spec__f, .cl-spec__c), html .cl .cl-spec__c i { font-size: inherit; }
  html .cl .cl-spec__c { color: var(--cl-ink-3); }
  html .cl .cl-tile > .cl-fact, html .cl .cl-tile[data-cl-week] > .cl-fact { max-width: 100%; height: auto; min-height: 22px; margin-top: 8px; padding: 0; gap: 6px; background: none; white-space: normal; text-align: left; }
  html .cl .cl-act { width: 100%; padding-top: 12px; }
  html .cl .cl-tile .follow-btn, html .cl .cl-act .cl-btn { width: 100%; min-width: 0; height: 40px; padding: 0 12px 0 8px; font-size: 14px; }
  html .cl .cl-invite { grid-template-columns: auto minmax(0, 1fr); gap: 14px 14px; padding: 18px; }
  html .cl .cl-invite .cl-go { grid-column: 1 / -1; justify-content: center; }
}

/* 10. Less motion: everything is simply there ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html .cl :is(.cl-grid > .cl-tile, .cl-sec__head, .cl-invite, .cl-empty, .cl-chips) { animation: none !important; }
  html .cl :is(.cl-grid > .cl-tile, .cl-chip, .cl-go, .follow-btn, .cl-btn, .cl-band) { transition: none; }
  html .cl .cl-grid > .cl-tile:hover { transform: none; }
}
html.a11y-reduce-motion .cl :is(.cl-grid > .cl-tile, .cl-sec__head, .cl-invite, .cl-empty, .cl-chips) { animation: none !important; }
html.a11y-reduce-motion .cl :is(.cl-grid > .cl-tile, .cl-chip, .cl-go, .follow-btn, .cl-btn, .cl-band) { transition: none; }
html.a11y-reduce-motion .cl .cl-grid > .cl-tile:hover { transform: none; }

/* 9. One calm palette (18 November 2026, the owner, on the colleague cards: "demasiados colores, y esos gradients ya no los
   usamos"). Every card, group and chip takes the same quiet look: no colour per person or per group, no blurred washes.
   The band is BiteSized's own texture (the dots of Home's field on a soft lilac wash), the one a doctor's page has; initials
   sit on a grey round in ink; the activity line is grey, with a lilac point only when the person posted this week; the
   invitation is a plain hairline pill. */
html .cl [data-hue], html .cl [data-hue="teal"], html .cl [data-hue="amber"], html .cl [data-hue="rose"], html .cl [data-hue="blue"] { --clp-h: var(--cl-lilac); }
html .cl .cl-band {
  background:
    radial-gradient(circle at 2px 2px, color-mix(in srgb, var(--cl-lilac) 34%, transparent) 1.1px, transparent 1.6px) 0 0 / 9px 9px,
    color-mix(in srgb, var(--cl-lilac) 9%, var(--cl-surface)) !important;
  box-shadow: inset 0 0 0 1px var(--cl-line) !important;
}
html:not(.light) .cl .cl-band {
  background:
    radial-gradient(circle at 2px 2px, color-mix(in srgb, var(--cl-lilac) 26%, transparent) 1.1px, transparent 1.6px) 0 0 / 9px 9px,
    color-mix(in srgb, var(--cl-lilac) 8%, var(--cl-surface)) !important;
}
html .cl .cl-tile .cl-face > span.cl-ini[style*="hsl("] { background: var(--cl-surface-2) !important; color: var(--cl-ink-2) !important; }
html .cl .cl-tile .cl-face--none { border-color: var(--cl-line-3); background: var(--cl-surface-2); color: var(--cl-ink-3); }
html .cl .cl-tile > .cl-fact, html .cl .cl-tile[data-cl-week] > .cl-fact { background: var(--cl-surface-2); color: var(--cl-ink-2); }
html .cl .cl-tile .cl-fact__dot { background: var(--cl-ink-4); }
html .cl .cl-tile[data-cl-week] .cl-fact__dot { background: var(--cl-lilac); }
/* a group's mark beside its title: grey, not a colour of its own */
html .cl [data-hue] .cl-sec__ic, html .cl .cl-sec__ic { background: var(--cl-surface-2) !important; box-shadow: none !important; color: var(--cl-ink-3) !important; }
/* Invite colleagues: a plain hairline pill */
html .cl .cl-go { border: 1px solid var(--cl-line-2); background: var(--cl-surface); color: var(--cl-ink); font-weight: 400; }
html .cl .cl-go:hover { border-color: var(--cl-line-3); background: var(--cl-hover); color: var(--cl-ink); box-shadow: none; }
html .cl .cl-go .cl-go__ic { background: var(--cl-ink); }
/* a phone keeps the fact without its pill, also after the calm palette above (19 November: in Spanish the week wrapped
   into a two-line grey pill) */
@media (max-width: 639.98px) { html .cl .cl-tile > .cl-fact, html .cl .cl-tile[data-cl-week] > .cl-fact { background: none; } }
