/* css/clinic-share.css — Share Clinical Data (private). Brand blue/purple. */
.cls-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(17,24,39,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cls-panel { background: #fff; width: min(560px,100%); height: min(92vh,100%); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.35); }
.cls-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #eef0f3; background: linear-gradient(135deg, rgba(25,118,210,.08), rgba(123,31,162,.06)); }
.cls-title { font-weight: 700; font-size: 1rem; color: #111827; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cls-proto { font-size: .6rem; font-weight: 700; letter-spacing: .06em; background: #7B1FA2; color: #fff; padding: 2px 7px; border-radius: 999px; }
.cls-close { border: none; background: transparent; font-size: 1.1rem; cursor: pointer; color: #6b7280; width: 34px; height: 34px; border-radius: 8px; }
.cls-close:hover { background: #f3f4f6; }
.cls-body { flex: 1; overflow: auto; padding: 16px; }
.cls-loading { color: #6b7280; padding: 20px; text-align: center; }
.cls-error { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 12px; }
.cls-warn { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; font-size: .82rem; color: #92400e; margin-bottom: 14px; }
.cls-link { background: none; border: none; color: #1976D2; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; font-size: .82rem; }
.cls-sec { border-top: 1px solid #f1f5f9; padding: 14px 0; }
.cls-sec:first-of-type { border-top: none; }
.cls-sec h3 { margin: 0 0 4px; font-size: .95rem; color: #111827; }
.cls-help { font-size: .8rem; color: #6b7280; line-height: 1.45; margin: 0 0 10px; }
.cls-help code, .cls-title code { background: #f1f5f9; border-radius: 6px; padding: 1px 6px; font-size: .8em; }
.cls-qr { width: 180px; height: 180px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #eef0f3; border-radius: 10px; word-break: break-all; font-size: .65rem; padding: 6px; }
.cls-btn { border: none; background: #1976D2; color: #fff; font-weight: 700; font-size: .85rem; padding: 10px 14px; border-radius: 10px; cursor: pointer; width: 100%; }
.cls-btn:hover { background: #0D47A1; }
.cls-btn-ghost { background: #f3f4f6; color: #111827; }
.cls-btn-ghost:hover { background: #e5e7eb; }
.cls-contacts { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.cls-contacts li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .88rem; color: #111827; }
.cls-x { border: none; background: transparent; color: #9ca3af; cursor: pointer; }
.cls-x:hover { color: #b91c1c; }
.cls-add { display: flex; gap: 8px; }
.cls-add input, #clsAddLink { flex: 1; border: 1px solid #d1d5db; border-radius: 9px; padding: 8px 10px; font-size: .82rem; }
.cls-add input:focus { outline: none; border-color: #1976D2; }
.cls-report { margin-top: 12px; }
.cls-stats { font-size: .82rem; color: #374151; margin-bottom: 10px; }
.cls-bars { display: grid; gap: 5px; margin-bottom: 12px; }
.cls-bar-row { display: grid; grid-template-columns: 1fr 120px 32px; align-items: center; gap: 8px; font-size: .78rem; }
.cls-bar-label { color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cls-bar { background: #eef2f7; border-radius: 999px; height: 10px; overflow: hidden; }
.cls-bar > span { display: block; height: 100%; background: #1976D2; }
.cls-bar-n { text-align: right; color: #6b7280; }
@media (max-width: 560px) { .cls-panel { height: 100%; border-radius: 0; } .cls-overlay { padding: 0; } }
.cls-actions2 { display: flex; gap: 8px; margin-top: 8px; }
.cls-actions2 .cls-btn { flex: 1; }
.cls-scan-note { font-size: .82rem; color: #374151; background: #f8fafc; border: 1px solid #eef0f3; border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
