/* Clinic, live: a framed stage for js/kit/clinic-live.js (the stage ground, HUD chip, feed, counter tiles and their
   type follow teddychat.com's hero block, tokens resolved; positions re-done for a framed box instead of the
   full-screen hero). Mount: js/kit/kit-clinic-live-mount.js.
   The engine injects its own scene CSS (#clv-css: Teddy's breathing/blink, the call ring, the sun's rays, .frozen).
   Size the stage with --clv-h on .clinic-live (or any ancestor). Nothing that moves ever shows under text: the HUD
   plates are opaque and the fit() in the mount keeps the world below them. */
.clinic-live{--clv-h:clamp(380px,104vw,460px);position:relative;margin:0}
@media(min-width:700px){.clinic-live{--clv-h:clamp(460px,64vh,660px)}}
.clinic-live .cl-stage{position:relative;z-index:0;height:var(--clv-h);border-radius:24px;overflow:hidden;
  background:radial-gradient(62% 72% at 70% 52%,rgba(255,255,255,.72),rgba(255,255,255,0) 72%),repeating-linear-gradient(30deg,rgba(100,116,139,.12) 0 1px,transparent 1px 46px),repeating-linear-gradient(150deg,rgba(100,116,139,.12) 0 1px,transparent 1px 46px),linear-gradient(#DCE6F4,#E8EEF7 58%,#E2EAF4);
  box-shadow:0 30px 60px -36px rgba(15,23,42,.45),0 0 0 1px rgba(15,23,42,.06)}
.cl-svg{display:block;width:100%;height:100%}
/* HUD: opaque plates, text never fades (a new feed line arrives at full ink, only its dot animates) */
.cl-chip,.cl-tile,.cl-feed{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 12px 28px -14px rgba(15,23,42,.45),0 2px 6px -2px rgba(15,23,42,.12)}
.clinic-live .cl-ov-clock{position:absolute;z-index:3;top:12px;left:12px;right:60px;display:flex}
.cl-chip{display:inline-flex;flex-wrap:wrap;align-items:center;column-gap:6px;row-gap:0;padding:6px 11px;border-radius:9999px;font-family:var(--font-body,'Inter',sans-serif);font-size:.875rem;line-height:1.25rem;font-weight:600;color:#334155;font-variant-numeric:tabular-nums}
.cl-chip [data-clock]{display:inline-block;min-width:4.6em;white-space:nowrap}
.cl-chip [data-mode]{white-space:nowrap}
.cl-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.16);transition:background 2s ease,box-shadow 2s ease}
.clinic-live.night .cl-dot{background:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.2)}
.clinic-live > .cl-pause{top:12px;right:12px}
/* phones: the day's feed and counters sit under the stage, in the flow */
.cl-panel{position:relative;z-index:2;display:grid;gap:10px;padding:12px 0 0;font-family:var(--font-body,'Inter',sans-serif)}
.cl-feed{padding:12px 14px}
.cl-feed-title{font-family:var(--font-display,'Nunito',sans-serif);font-size:.9375rem;font-weight:800;color:#475569;letter-spacing:.02em;margin:0 0 6px}
.cl-feed ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;min-height:5.6em}
.cl-feed li{position:relative;display:flex;gap:10px;font-size:.9375rem;line-height:1.4;color:#334155}
.cl-feed li:nth-child(n+3){display:none}
.cl-feed li:first-child::before{content:'';position:absolute;left:-9px;top:.5em;width:5px;height:5px;border-radius:50%;background:#3b82f6;animation:clFeedDot 1.6s ease both}
.cl-feed time{color:#475569;font-variant-numeric:tabular-nums;flex:none;width:4.7em}
@keyframes clFeedDot{from{transform:scale(0)}35%{transform:scale(1.8)}to{transform:scale(1)}}
.cl-tiles{display:grid;gap:8px}
.cl-tile{display:flex;align-items:center;gap:10px;padding:8px 12px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.cl-tile > div{flex:1;display:flex;align-items:center;justify-content:space-between;gap:12px}
.cl-ic{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex:none}
.cl-ic svg{width:18px;height:18px}
.cl-ic-chat{background:#dbeafe;color:#1d4ed8}
.cl-ic-form{background:#fef3c7;color:#b45309}
.cl-ic-call{background:#dcfce7;color:#15803d}
.cl-k{font-size:.9375rem;color:#475569;line-height:1.25}
.cl-v{font-family:var(--font-display,'Nunito',sans-serif);font-size:1.375rem;font-weight:800;line-height:1.15;color:#0f172a;font-variant-numeric:tabular-nums}
@media(max-width:399px){.cl-chip > span:nth-child(3){display:none}}
/* wide: clock + pause top right, the counters in one row under them; the feed steps aside (the scene tells it) */
@media(min-width:700px){
  .clinic-live .cl-ov-clock{left:auto;right:56px;justify-content:flex-end}
  .cl-chip{column-gap:8px;padding:5px 13px}
  .cl-panel{position:absolute;top:56px;right:12px;padding:0;display:block}
  .cl-ov-feed{display:none}
  .cl-tiles{display:flex;gap:8px}
  .cl-tile{gap:8px;padding:5px 12px 5px 6px;border-radius:14px}
  .cl-tile > div{flex-direction:row-reverse;justify-content:flex-end;gap:8px}
  .cl-ic{width:30px;height:30px;border-radius:9px}
  .cl-ic svg{width:16px;height:16px}
  .cl-k{font-size:.875rem;line-height:1.2;max-width:7.6em;text-wrap:balance}
  .cl-v{font-size:1.25rem;min-width:1.25em}
}
html[data-pref-contrast="more"] :is(.cl-chip,.cl-tile,.cl-feed,.cl-pause){border-color:#64748b}
@media(prefers-reduced-motion:reduce){.cl-feed li::before{animation:none !important}}
html[data-pref-motion="reduce"] .cl-feed li::before{animation:none !important}
