/* v10.0-D · Home follow-up delivery status */
.timeline-event.home-origin .timeline-event-body{border-color:#bfe3d0;background:#fbfffd}.timeline-home-badge.guardian{background:#e4f7ed;color:#24704b}.timeline-event-marker.type-appetite,.timeline-event-marker.type-water{background:#e8f7ef;color:#28704c}.timeline-event-marker.type-vomiting,.timeline-event-marker.type-diarrhea{background:#fff0ee;color:#b64b42}.timeline-event-marker.type-medication{background:#edf0ff;color:#4c5fb5}
.patient-crm-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}
.patient-crm-head h3{margin:3px 0 5px;font-size:22px;color:#17233c}.patient-crm-head p{margin:0;color:#6d7890;font-size:12px;line-height:1.55}
.patient-crm-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.patient-crm-notice{display:flex;align-items:flex-start;gap:9px;margin:0 0 14px;padding:11px 13px;border:1px solid #dbe6f7;border-radius:13px;background:#f7faff;color:#52627d;font-size:11px;line-height:1.55}
.patient-crm-notice b{color:#244f94}.patient-crm-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
.patient-crm-kpi{padding:13px 15px;border:1px solid #e3e9f3;border-radius:14px;background:#fff}.patient-crm-kpi span{display:block;color:#7a879c;font-size:10px}.patient-crm-kpi b{display:block;margin-top:5px;color:#1c2c49;font-size:22px}
.patient-crm-layout{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:14px;align-items:start}.patient-crm-list-panel,.patient-crm-detail{min-height:520px}
.patient-crm-search{display:flex;gap:8px;margin-bottom:10px}.patient-crm-search .input{min-width:0}.patient-crm-result-meta{display:flex;justify-content:space-between;gap:8px;margin:7px 0 10px;color:#7a879c;font-size:10px}
.patient-crm-list{display:flex;flex-direction:column;gap:8px;max-height:620px;overflow:auto;padding-right:2px}.patient-crm-row{width:100%;display:flex;gap:10px;align-items:center;text-align:left;border:1px solid #e2e8f2;border-radius:13px;background:#fff;padding:11px;cursor:pointer;transition:.16s ease}.patient-crm-row:hover,.patient-crm-row.active{border-color:#4c79dd;background:#f5f8ff;box-shadow:0 5px 15px rgba(47,91,176,.08)}
.patient-crm-avatar{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#e9f1ff;color:#2f5eb5;font-weight:800;font-size:13px;flex:0 0 auto}.patient-crm-avatar.cat{background:#fff0e3;color:#b3622a}.patient-crm-row-copy{min-width:0;flex:1}.patient-crm-row-copy b{display:block;color:#1d2d48;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.patient-crm-row-copy span{display:block;margin-top:3px;color:#78869b;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.patient-crm-row-side{color:#66758c;font-size:9px;text-align:right;flex:0 0 auto}
.patient-crm-empty{display:grid;place-items:center;min-height:260px;padding:30px;text-align:center;border:1px dashed #d9e1ee;border-radius:15px;color:#77849a;background:#fbfcfe}.patient-crm-empty b{display:block;margin-bottom:6px;color:#354863;font-size:14px}.patient-crm-empty span{font-size:11px;line-height:1.6}
.patient-detail-head{display:flex;justify-content:space-between;gap:12px;padding-bottom:13px;border-bottom:1px solid #e8edf4}.patient-detail-head h4{margin:2px 0 4px;font-size:20px;color:#1a2a45}.patient-detail-head p{margin:0;color:#728097;font-size:11px}.patient-detail-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.guardian-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0}.guardian-summary>div{padding:11px 12px;border-radius:12px;background:#f7f9fc;border:1px solid #e8edf4}.guardian-summary span{display:block;font-size:9px;color:#7c899c}.guardian-summary b{display:block;margin-top:4px;font-size:12px;color:#243650;word-break:break-word}
.patient-detail-section{margin-top:16px}.patient-detail-section-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}.patient-detail-section-head h5{margin:0;font-size:13px;color:#253650}.patient-count-pill{border-radius:999px;padding:4px 8px;background:#eef3fb;color:#4c6081;font-size:9px;font-weight:800}
.guardian-patient-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.guardian-patient-card{border:1px solid #e2e9f3;border-radius:14px;padding:12px;background:#fff}.guardian-patient-card.selected{border-color:#4c79dd;background:#f7f9ff}.guardian-patient-top{display:flex;justify-content:space-between;gap:8px}.guardian-patient-card h6{margin:0;color:#1c2c47;font-size:14px}.guardian-patient-card p{margin:5px 0 0;color:#718096;font-size:10px;line-height:1.45}.guardian-patient-meta{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0}.patient-tag{padding:4px 7px;border-radius:999px;background:#f0f4fa;color:#53657f;font-size:9px;font-weight:700}.guardian-patient-actions{display:flex;gap:6px;flex-wrap:wrap}.guardian-patient-actions .btn{min-height:32px;padding:7px 9px;font-size:10px}
.patient-crm-dialog{width:min(620px,calc(100vw - 28px));max-height:calc(100vh - 30px);border:0;border-radius:18px;padding:0;box-shadow:0 24px 70px rgba(23,42,76,.25)}.patient-crm-dialog::backdrop{background:rgba(20,31,52,.5)}.patient-crm-dialog-card{padding:20px}.patient-crm-dialog-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:15px}.patient-crm-dialog-head h4{margin:3px 0 4px;font-size:18px;color:#1d2d47}.patient-crm-dialog-head p{margin:0;color:#768398;font-size:10px;line-height:1.5}.patient-crm-close{border:0;background:#eef2f7;border-radius:10px;width:34px;height:34px;cursor:pointer;color:#53627a;font-size:18px}.patient-crm-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.patient-crm-form-grid .span-2{grid-column:1/-1}.patient-crm-form-grid textarea{min-height:76px;resize:vertical}.patient-crm-consent{display:flex;gap:9px;align-items:flex-start;padding:11px;border:1px solid #dce5f2;border-radius:12px;background:#f8faff;color:#586980;font-size:10px;line-height:1.55}.patient-crm-consent input{margin-top:2px}.patient-crm-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.patient-crm-status{min-height:18px;margin-top:8px;color:#6c7a90;font-size:10px}.patient-crm-status.error{color:#c34141}.patient-crm-status.ok{color:#24704b}
.patient-breed-field{position:relative}.patient-breed-combobox{position:relative}.patient-breed-combobox>.input{padding-right:34px}.patient-breed-combobox.open>.input{border-color:#4c79dd;box-shadow:0 0 0 3px rgba(58,105,211,.10)}.patient-breed-clear{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:24px;height:24px;border:0;border-radius:8px;background:transparent;color:#8793a5;font-size:16px;line-height:1;cursor:pointer}.patient-breed-clear:hover{background:#eef2f7;color:#4d5d74}.patient-breed-dropdown{position:absolute;z-index:520;left:0;right:0;top:calc(100% + 5px);max-height:260px;overflow:auto;padding:6px;border:1px solid #d9e2ef;border-radius:12px;background:#fff;box-shadow:0 16px 40px rgba(30,48,79,.18)}.patient-breed-dropdown[hidden]{display:none}.patient-breed-group-label{padding:6px 8px 4px;color:#8490a2;font-size:8px;font-weight:850;letter-spacing:.07em}.patient-breed-option{width:100%;display:flex;justify-content:space-between;gap:10px;align-items:center;border:0;border-radius:9px;padding:8px 9px;background:#fff;text-align:left;cursor:pointer}.patient-breed-option:hover,.patient-breed-option.active{background:#edf3ff}.patient-breed-option b{display:block;color:#243650;font-size:11px}.patient-breed-option span{min-width:0;color:#8490a2;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.patient-breed-option.direct b{color:#2458b7}.patient-breed-empty{padding:12px 9px;color:#7b889b;font-size:10px;text-align:center}.patient-breed-hint{margin:4px 2px 0;color:#8490a2;font-size:8px;line-height:1.35}.patient-breed-hint.selected{color:#2f68bf}
.crm-builder-picker{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:10px 0;padding:10px 12px;border:1px solid #dbe6f7;border-radius:12px;background:#f7faff}.crm-builder-picker span{font-size:10px;color:#596b85;line-height:1.45}.crm-builder-picker b{color:#2d5cad}.crm-builder-selection{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px;padding:9px 11px;border-radius:11px;background:#eef8f2;border:1px solid #cfe7d8;color:#315c43;font-size:10px}.crm-builder-selection.hidden{display:none}.crm-builder-selection b{font-size:11px}.crm-builder-selection button{border:0;background:transparent;color:#52705e;cursor:pointer;font-size:10px;text-decoration:underline}
.timeline-welcome{display:grid;place-items:center;min-height:120px;padding:22px;border:1px dashed #d8e2f0;border-radius:14px;background:#fafcff;text-align:center}.timeline-welcome b{display:block;color:#2c405f;font-size:13px}.timeline-welcome span{display:block;margin-top:5px;color:#758399;font-size:10px;line-height:1.55}.health-timeline{margin-top:18px;padding-top:17px;border-top:1px solid #e7edf5}.timeline-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.timeline-head h5{margin:2px 0 4px;color:#1f3150;font-size:17px}.timeline-head p:not(.eyebrow){margin:0;color:#758399;font-size:10px;line-height:1.5}.timeline-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0}.timeline-kpis>div{min-height:70px;padding:10px 12px;border:1px solid #e3eaf4;border-radius:12px;background:#f8faff}.timeline-kpis span{display:block;color:#7d899c;font-size:9px}.timeline-kpis b{display:block;margin-top:5px;color:#233752;font-size:14px}.timeline-kpis small{display:block;margin-top:3px;color:#708097;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline-chart{margin:10px 0 13px;padding:10px 12px 8px;border:1px solid #e0e8f4;border-radius:13px;background:linear-gradient(180deg,#f7faff,#fff)}.timeline-chart svg{display:block;width:100%;height:112px}.timeline-chart-axis{stroke:#d8e1ee;stroke-width:1}.timeline-chart-line{fill:none;stroke:#2962d5;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.timeline-chart-dot{fill:#fff;stroke:#2962d5;stroke-width:3}.timeline-chart-labels{display:flex;justify-content:space-between;gap:10px;color:#7a8799;font-size:8px}.timeline-chart-labels b{color:#315483}.timeline-chart-empty{margin:10px 0 13px;padding:15px;border-radius:12px;background:#f7f9fc;color:#7d899b;font-size:9px;text-align:center}.timeline-toolbar{display:flex;gap:6px;overflow:auto;padding:2px 0 10px}.timeline-toolbar button{flex:0 0 auto;border:1px solid #dfe6f1;border-radius:999px;background:#fff;padding:6px 10px;color:#63738a;font-size:9px;font-weight:750;cursor:pointer}.timeline-toolbar button.active{border-color:#2962d5;background:#2962d5;color:#fff}.timeline-list{position:relative;display:flex;flex-direction:column;gap:8px}.timeline-event{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px}.timeline-event:not(:last-child)::after{content:"";position:absolute;left:16px;top:34px;bottom:-12px;width:2px;background:#e6ebf3}.timeline-event-marker{position:relative;z-index:1;width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#eaf1ff;color:#2e60bc;font-size:9px;font-weight:900}.timeline-event-marker.type-weight{background:#e8f7ef;color:#28704c}.timeline-event-marker.type-vaccination{background:#efeaff;color:#6848b8}.timeline-event-marker.type-heartworm{background:#fff1e5;color:#ad622b}.timeline-event-marker.type-recheck{background:#fff6d8;color:#927212}.timeline-event-marker.type-journey{background:#e8f4ff;color:#286399}.timeline-event-body{padding:10px 11px;border:1px solid #e4eaf3;border-radius:12px;background:#fff}.timeline-event-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.timeline-event-date{color:#748299;font-size:9px}.timeline-status{display:inline-block;margin-left:6px;padding:3px 6px;border-radius:999px;background:#eef2f7;color:#65748a;font-size:8px;font-weight:800}.timeline-status.status-completed{background:#eaf7ef;color:#2f714e}.timeline-status.status-scheduled{background:#fff5d9;color:#8b6b0b}.timeline-status.status-active{background:#e9f1ff;color:#2b5fb5}.timeline-status.status-canceled{background:#f3f4f6;color:#818997}.timeline-event-actions{display:flex;gap:7px}.timeline-event-actions button{border:0;background:transparent;padding:2px;color:#718096;font-size:8px;cursor:pointer}.timeline-event-actions button:hover{color:#285ab0;text-decoration:underline}.timeline-event-title{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin-top:5px}.timeline-event-title b{color:#23354f;font-size:12px}.timeline-event-value{color:#245dbd;font-size:13px}.timeline-event-meta{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}.timeline-event-meta span{padding:3px 6px;border-radius:7px;background:#f2f5f9;color:#6b7a90;font-size:8px}.timeline-event-meta .timeline-event-due{background:#eef4ff;color:#325fa9}.timeline-event-body p{margin:7px 0 0;color:#66768d;font-size:9px;line-height:1.5;white-space:pre-wrap}.timeline-empty{padding:24px;border:1px dashed #dce4ef;border-radius:13px;text-align:center;color:#7b889b}.timeline-empty b,.timeline-empty span{display:block}.timeline-empty b{color:#425570;font-size:12px}.timeline-empty span{margin-top:4px;font-size:9px}.timeline-vaccine-list{display:flex;flex-direction:column;gap:7px;margin-top:6px}.timeline-vaccine-row{display:grid;grid-template-columns:auto minmax(0,1fr) 120px;gap:10px;align-items:center;padding:10px 11px;border:1px solid #e1e8f2;border-radius:12px;background:#fafbfe;cursor:pointer}.timeline-vaccine-row.selected{border-color:#7c63d9;background:#f7f4ff}.timeline-vaccine-row>input{width:17px;height:17px;accent-color:#6246c7}.timeline-vaccine-name b{display:block;color:#263852;font-size:11px}.timeline-vaccine-name small{display:block;margin-top:3px;color:#7b889b;font-size:8px}.timeline-vaccine-row .input{min-height:36px;padding:7px 9px;font-size:10px}.timeline-vaccine-row .input:disabled{opacity:.45}.timeline-vaccine-count{padding:3px 7px;border-radius:999px;background:#efeaff;color:#6848b8;font-size:8px;font-weight:800}.timeline-vaccine-event-list{display:flex;flex-direction:column;gap:5px;margin-top:9px}.timeline-vaccine-event-item{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 9px;border-radius:9px;background:#f8f6ff}.timeline-vaccine-event-item b{display:block;color:#3c315f;font-size:10px}.timeline-vaccine-event-item span{display:block;margin-top:2px;color:#796f91;font-size:8px}
@media(max-width:900px){.patient-crm-layout{grid-template-columns:1fr}.patient-crm-list-panel,.patient-crm-detail{min-height:auto}.patient-crm-list{max-height:360px}.guardian-patient-grid{grid-template-columns:1fr}}
@media(max-width:640px){.patient-crm-head{display:block}.patient-crm-actions{justify-content:flex-start;margin-top:12px}.patient-crm-kpis{grid-template-columns:1fr 1fr}.patient-crm-kpi:last-child{grid-column:1/-1}.guardian-summary,.patient-crm-form-grid{grid-template-columns:1fr}.patient-crm-form-grid .span-2{grid-column:auto}.patient-detail-head{display:block}.patient-detail-actions{justify-content:flex-start;margin-top:10px}.patient-crm-dialog-card{padding:16px}.crm-builder-picker{align-items:flex-start;flex-direction:column}.timeline-head{display:block}.timeline-head .btn{margin-top:10px}.timeline-kpis{grid-template-columns:1fr 1fr}.timeline-kpis>div:last-child{grid-column:1/-1}.timeline-event{grid-template-columns:28px minmax(0,1fr)}.timeline-event-marker{width:28px;height:28px}.timeline-event:not(:last-child)::after{left:13px;top:28px}.timeline-vaccine-row{grid-template-columns:auto minmax(0,1fr)}.timeline-vaccine-row .input{grid-column:2}.timeline-vaccine-event-item{align-items:flex-start}}

/* v10.0-A · Carestep Home invitation */
.home-invite-card{max-width:680px}.home-invite-body{display:grid;gap:16px;margin-top:4px}.home-invite-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-invite-summary>div{padding:13px 14px;border:1px solid #dfe7f5;border-radius:13px;background:#f8faff}.home-invite-summary span{display:block;margin-bottom:5px;color:#71809a;font-size:10px;font-weight:700}.home-invite-summary b{display:block;color:#10213f;font-size:12px;line-height:1.4}.home-invite-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.home-invite-link-row .input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px}.home-invite-notice{margin:0;padding:12px 14px;border-radius:12px;background:#fff8e8;color:#79550a;font-size:10.5px;line-height:1.55}.home-invite-loading{display:flex;align-items:center;gap:10px;min-height:120px;justify-content:center;color:#52627b}.home-invite-loading span{width:18px;height:18px;border:2px solid #d7e1f3;border-top-color:#1f5eff;border-radius:50%;animation:crmHomeSpin .75s linear infinite}.home-invite-connected{display:flex;gap:14px;align-items:center;padding:22px;border:1px solid #b9e4cf;border-radius:16px;background:#effaf4}.home-invite-connected>span{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:50%;background:#16865a;color:#fff;font-size:22px;font-weight:900}.home-invite-connected b,.home-invite-error b{display:block;color:#10213f;font-size:15px}.home-invite-connected p,.home-invite-error p{margin:5px 0 0;color:#61708a;font-size:11px;line-height:1.55}.home-invite-error{padding:20px;border:1px solid #ffd0cc;border-radius:14px;background:#fff5f4}@keyframes crmHomeSpin{to{transform:rotate(360deg)}}
@media(max-width:640px){.home-invite-summary{grid-template-columns:1fr}.home-invite-link-row{grid-template-columns:1fr}.home-invite-link-row .btn{width:100%}}

/* v10.0-B · Home-safe timeline sharing */
.timeline-home-share{border:1px solid #cbdcff;border-radius:14px;background:#f7faff;padding:13px}.timeline-home-share.disabled{background:#f6f7f9;border-color:#e1e5eb}.timeline-home-share-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.timeline-home-share-head>label{display:flex;gap:9px;align-items:flex-start;cursor:pointer}.timeline-home-share-head input{width:18px;height:18px;margin:1px 0 0;accent-color:#2563eb}.timeline-home-share-head b,.timeline-home-share-head small{display:block}.timeline-home-share-head b{font-size:11px;color:#1d3765}.timeline-home-share-head small{margin-top:3px;color:#6d7d96;font-size:9px;line-height:1.45}.timeline-home-share-head>span,.timeline-home-badge{display:inline-flex;align-items:center;border-radius:999px;background:#e7f0ff;color:#2258b2;padding:4px 7px;font-size:8px;font-weight:900;white-space:nowrap}.timeline-home-badge.private{background:#f0f2f5;color:#788396}.timeline-home-share>p{margin:6px 1px 0;color:#77869a;font-size:8.5px;line-height:1.45}.timeline-home-share.disabled textarea{background:#eef1f5;color:#9aa3af}

/* v10.0-D · clinic-side Home delivery and guardian responses */
.clinic-home-followups{margin-top:18px;padding:17px;border:1px solid #cbdcf2;border-radius:17px;background:linear-gradient(145deg,#f8fbff,#fff)}.clinic-home-followups-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.clinic-home-followups-head .eyebrow{margin:0 0 4px}.clinic-home-followups-head h6{margin:0;font-size:14px}.clinic-home-followups-head>div>span{display:block;margin-top:5px;color:#73829a;font-size:9px}.clinic-home-followup-kpis{display:flex;align-items:center;gap:7px}.clinic-home-followup-kpis b,.clinic-home-followup-kpis em{padding:6px 8px;border-radius:999px;background:#eaf1ff;color:#2554a8;font-size:9px;font-style:normal}.clinic-home-followup-kpis em{background:#edf4fb;color:#5d708a}.clinic-home-followup-kpis em.attention{background:#fff0ed;color:#b4483d}.clinic-home-followup-list{display:grid;gap:7px;margin-top:13px}.clinic-home-followup{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid #dde6f2;border-radius:12px;background:#fff}.clinic-home-followup.attention{border-color:#efafa7;background:#fffafa}.clinic-home-followup-day{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#eaf1ff;color:#2458b6;font-size:9px;font-weight:900}.clinic-home-followup>div:nth-child(2){min-width:0}.clinic-home-followup span,.clinic-home-followup b,.clinic-home-followup p{display:block}.clinic-home-followup span{color:#7d8b9e;font-size:8px}.clinic-home-followup b{margin-top:3px;overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.clinic-home-followup p{margin:5px 0 0;color:#566a82;font-size:9px}.clinic-home-followup p strong{display:inline;color:#b1493f}.clinic-home-followup>button{border:0;background:transparent;color:#a25353;font:inherit;font-size:8.5px;font-weight:800;cursor:pointer}.clinic-home-followup-empty{padding:18px;border:1px dashed #d2ddeb;border-radius:11px;color:#7b899c;font-size:9px;text-align:center}@media(max-width:700px){.clinic-home-followups-head{display:block}.clinic-home-followup-kpis{margin-top:9px}.clinic-home-followup{grid-template-columns:36px minmax(0,1fr) auto}.clinic-home-followup-day{width:36px;height:36px}}
/* CARESTEP Clinic v10.3-F · Patient Workspace */
.patient-workspace{border:1px solid #dbe4f3;border-radius:18px;background:#f8fbff;padding:16px}.patient-workspace-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.patient-workspace-head h4{margin:3px 0 5px;font-size:18px;color:#14213a}.patient-workspace-head p{margin:0;color:#718096;font-size:10px}.patient-workspace-head-actions{display:flex;gap:7px}.patient-workspace-alert{display:none;margin-top:12px;padding:10px 12px;border-radius:11px;background:#edf7f1;color:#246b4c;font-size:10px;font-weight:750}.patient-workspace-alert.show{display:block;background:#fff1ef;color:#b13b31}.patient-workspace-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.patient-workspace-kpis>div{min-width:0;padding:12px;border:1px solid #e1e7f0;border-radius:13px;background:#fff}.patient-workspace-kpis span,.patient-workspace-kpis b,.patient-workspace-kpis small{display:block}.patient-workspace-kpis span{font-size:8px;color:#718096}.patient-workspace-kpis b{margin-top:5px;font-size:15px;color:#17233d}.patient-workspace-kpis small{margin-top:3px;overflow:hidden;color:#8792a4;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.patient-workspace-quick{display:flex;gap:8px;margin:12px 0}.patient-workspace-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.patient-workspace-grid>article{min-width:0;border:1px solid #e1e7f0;border-radius:13px;background:#fff;padding:12px}.patient-workspace-grid>article.patient-workspace-consult{border-color:#f1c8c2;background:#fffaf9}.patient-workspace-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.patient-workspace-section-head b{font-size:10px}.patient-workspace-section-head span{border-radius:999px;background:#edf3ff;color:#315ca8;padding:3px 7px;font-size:8px;font-weight:800}.patient-workspace-row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border:0;border-bottom:1px solid #edf0f5;background:transparent;text-align:left}.patient-workspace-row:last-child{border-bottom:0}.patient-workspace-row div{min-width:0}.patient-workspace-row b,.patient-workspace-row span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.patient-workspace-row b{font-size:9px;color:#25344d}.patient-workspace-row span{margin-top:3px;color:#7b8798;font-size:8px}.patient-workspace-row em{flex:0 0 auto;border-radius:999px;background:#eef4ff;color:#2856a4;padding:3px 7px;font-size:8px;font-style:normal;font-weight:800}.patient-workspace-row.consult{cursor:pointer}.patient-workspace-row.consult em{background:#ffe9e5;color:#aa382f}.patient-workspace-empty{padding:18px 8px;color:#8a95a5;font-size:9px;text-align:center}.patient-workspace-loading{display:flex;align-items:center;justify-content:center;gap:9px;min-height:110px;color:#63728a;font-size:10px}.patient-workspace-loading span{width:16px;height:16px;border:2px solid #d8e4fa;border-top-color:#2864df;border-radius:50%;animation:patient-workspace-spin .8s linear infinite}@keyframes patient-workspace-spin{to{transform:rotate(360deg)}}
.patient-workspace-fast-record{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding:12px;border:1px solid #d8e4f7;border-radius:14px;background:#fff}.patient-workspace-fast-record>div:first-child{flex:0 0 145px}.patient-workspace-fast-record>div:first-child b,.patient-workspace-fast-record>div:first-child span{display:block}.patient-workspace-fast-record>div:first-child b{color:#17233d;font-size:11px}.patient-workspace-fast-record>div:first-child span{margin-top:3px;color:#7c889a;font-size:8px;line-height:1.45}.patient-workspace-fast-buttons{display:grid;flex:1;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.patient-workspace-fast-buttons button{min-width:0;padding:10px 8px;border:1px solid #dce5f2;border-radius:11px;background:#f8fbff;color:#1d3154;cursor:pointer;text-align:left}.patient-workspace-fast-buttons button:hover{border-color:#2864df;background:#eef4ff}.patient-workspace-fast-buttons b,.patient-workspace-fast-buttons small{display:block}.patient-workspace-fast-buttons b{font-size:10px}.patient-workspace-fast-buttons small{margin-top:3px;overflow:hidden;color:#7b8798;font-size:7px;text-overflow:ellipsis;white-space:nowrap}
.quick-record-presets{display:flex;align-items:center;gap:9px;margin:0 0 14px;padding:11px;border:1px solid #dce6f4;border-radius:13px;background:#f7faff}.quick-record-presets>div:first-child{min-width:150px}.quick-record-presets b,.quick-record-presets span{display:block}.quick-record-presets b{color:#1e3151;font-size:10px}.quick-record-presets span{margin-top:3px;color:#7c899b;font-size:8px}.quick-record-preset-list{display:flex;flex:1;gap:6px;overflow-x:auto}.quick-record-preset{display:flex;align-items:center;gap:5px;white-space:nowrap}.quick-record-preset>button:first-child{padding:7px 9px;border:1px solid #ccdcf5;border-radius:999px;background:#fff;color:#2856a4;font-size:8px;font-weight:800;cursor:pointer}.quick-record-preset>button:last-child{border:0;background:transparent;color:#9aa5b5;font-size:12px;cursor:pointer}.quick-record-preset-empty{color:#8a96a7;font-size:8px}
@media(max-width:900px){.patient-workspace-kpis{grid-template-columns:1fr 1fr}.patient-workspace-grid{grid-template-columns:1fr}.patient-workspace-fast-record{display:block}.patient-workspace-fast-buttons{margin-top:9px}.quick-record-presets{align-items:flex-start;flex-wrap:wrap}.quick-record-preset-list{flex-basis:100%;order:3}}@media(max-width:600px){.patient-workspace{padding:12px}.patient-workspace-head{display:block}.patient-workspace-head-actions{margin-top:10px}.patient-workspace-kpis{grid-template-columns:1fr}.patient-workspace-fast-buttons{grid-template-columns:1fr 1fr}.patient-workspace-quick{display:grid;grid-template-columns:1fr}.patient-workspace-quick .btn{width:100%}.quick-record-presets{display:block}.quick-record-preset-list{margin:9px 0}.quick-record-presets>.btn{width:100%}}

/* v10.3-F · tablet/mobile workflow */
.patient-workspace-mobile-context{display:none}.patient-crm-dialog-card{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}.patient-crm-dialog-head{position:sticky;top:0;z-index:4;background:#fff}.patient-crm-dialog-actions{position:sticky;bottom:0;z-index:4;margin-bottom:-1px;padding-top:12px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 22%)}
@media(max-width:760px){.patient-workspace-mobile-context{position:sticky;top:0;z-index:12;display:flex;justify-content:space-between;align-items:center;margin:-12px -12px 10px;padding:11px 12px;border-bottom:1px solid #dce5f2;background:rgba(248,251,255,.97);backdrop-filter:blur(8px)}.patient-workspace-mobile-context b{font-size:14px}.patient-workspace-mobile-context span{font-size:10px;color:#596a82}.patient-workspace-alert.show{position:sticky;top:43px;z-index:11}.patient-workspace-quick{position:sticky;bottom:0;z-index:12;grid-template-columns:repeat(3,1fr)!important;margin:12px -12px -12px!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #dce5f2;background:rgba(255,255,255,.97);backdrop-filter:blur(8px)}.patient-workspace-quick .btn,.patient-workspace-fast-buttons button,.patient-workspace-head-actions .btn,.patient-crm-dialog-actions .btn{min-height:46px}.patient-crm-dialog-card{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);padding:14px}.patient-crm-dialog-actions{padding-bottom:env(safe-area-inset-bottom)}}

.patient-search-result.last-worked{box-shadow:inset 4px 0 #275dff;background:#f0f5ff}.patient-search-result-copy{min-width:0;overflow-wrap:anywhere}@media(max-width:640px){.patient-search-result{min-height:64px}.patient-search-result-copy b{white-space:normal}.patient-search-result-side{flex-shrink:0;max-width:30%}}

.patient-list-updating{opacity:.6;transition:none;cursor:progress}.patient-list-updating button{cursor:progress}.patient-search-result-copy>span,.patient-search-result-side{font-size:.9375rem;line-height:1.6;color:#43536b}.patient-search-result-copy>small{font-size:.875rem;line-height:1.6;color:#53647d}#patientCrmResultMeta{font-size:.9375rem;line-height:1.6}#patientCrmList>.btn{margin-top:12px;min-height:44px}

.patient-home-state{border:1px solid #d8e2f3;border-radius:14px;padding:16px;background:#f7f9fd;min-width:0}.patient-home-state legend{font-weight:700}.patient-home-state>div{display:flex;flex-wrap:wrap;gap:12px}.patient-home-state label{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid #d8e2f3;border-radius:10px;background:white}.patient-home-state label:has(input:checked){border-color:#245cff;background:#edf3ff}.patient-home-state p{font-size:14px;line-height:1.6;color:#445a78}.patient-home-state-badge{display:inline-block;margin:6px 0;padding:4px 9px;border-radius:8px;background:#edf1f7;color:#334863;font-size:13px;font-weight:700}.timeline-purpose-option{display:flex;align-items:center;gap:8px;min-height:44px;margin-top:12px}#crmTimelineCopyPurpose{margin-bottom:8px}
