/* Visit history and medical diary: PUG shared materials. */
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .pugVisitHistory{padding:0!important;margin:0!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .prHistoryHeading{display:flex;align-items:center;gap:10px;margin:0 0 18px}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .prHistoryHeading h2{margin:0;color:var(--ct-text);font-size:21px;font-weight:650;letter-spacing:-.3px}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .prHistoryCount{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:25px;padding:0 6px;border-radius:8px;background:var(--ct-soft);border:1px solid var(--ct-line);color:var(--ct-muted);font-size:12px;font-variant-numeric:tabular-nums}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitTimeline{padding:0!important;margin:0!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitTimelineItem{position:relative!important;padding:0 0 0 22px!important;margin:0 0 18px!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitTimelineItem::before{width:1px!important;left:5px!important;top:17px!important;bottom:-20px!important;background:var(--ct-line)!important;box-shadow:none!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitTimelineItem:last-child::before{display:none!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitTrack{left:5px!important;width:1px!important;background:var(--ct-line)!important;box-shadow:none!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitNode{position:absolute!important;left:1px!important;top:25px!important;width:9px!important;height:9px!important;background:var(--ct-paper)!important;border:2px solid var(--ct-accent)!important;box-shadow:none!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitCard{position:relative;padding:22px!important;border:1px solid var(--ct-line)!important;border-radius:15px!important;background:var(--ct-paper)!important;color:var(--ct-text)!important;box-shadow:none!important;transform:none!important;overflow:visible!important;cursor:pointer}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitCard:hover{border-color:var(--ct-accent)!important;box-shadow:none!important;transform:none!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitCard:focus-visible{outline:2px solid var(--ct-accent);outline-offset:3px}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot :is(.premiumVisitAccent,.premiumMedEntryAccent,.premiumVisitCard::before,.premiumVisitCard::after){display:none!important;content:none!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitTop{display:flex!important;align-items:start!important;justify-content:space-between!important;gap:18px!important;flex-wrap:wrap}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitHeading{min-width:0;flex:1 1 340px}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitEyebrow{display:flex;align-items:center;gap:7px;font-size:12px!important;color:var(--ct-muted)!important;margin-bottom:9px!important;letter-spacing:normal!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot :is(.premiumVisitDateIcon,.premiumVisitDiagnosisIcon,.premiumVisitSectionIcon){display:inline-flex;align-items:center;justify-content:center;color:var(--ct-accent)!important;background:none!important;box-shadow:none!important;border:0!important;width:18px!important;height:18px!important;flex:0 0 18px!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitDiagnosis{display:flex;align-items:start!important;gap:8px!important;margin:0!important;color:var(--ct-text)!important;font-size:20px!important;line-height:1.5!important;letter-spacing:-.2px!important;font-weight:650!important;overflow-wrap:anywhere}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitDiagnosisIcon{margin-top:5px}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitBadges{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot :is(.premiumVisitStatus,.premiumVisitPrice,.premiumVisitType){padding:6px 9px!important;border:1px solid var(--ct-line)!important;border-radius:20px!important;background:var(--ct-soft)!important;color:var(--ct-muted)!important;font-size:11px!important;line-height:1.4!important;font-weight:600!important;letter-spacing:normal!important;box-shadow:none!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitPrice{color:var(--ct-text)!important;font-variant-numeric:tabular-nums}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitStatusCompleted{color:var(--ct-positive)!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitStatusInProgress{color:var(--ct-warning)!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitStatusPlanned{color:var(--ct-accent)!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitDivider{height:1px!important;margin:18px 0!important;background:var(--ct-line)!important;border:0!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitContent{display:grid!important;grid-template-columns:1fr 1fr!important;gap:16px!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitSection{padding:16px!important;border:1px solid var(--ct-line)!important;border-radius:11px!important;background:var(--ct-soft)!important;box-shadow:none!important;min-width:0}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .complaint-box{grid-column:1/-1!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitSectionHead{display:flex;align-items:center;gap:8px!important;margin-bottom:9px!important;color:var(--ct-muted)!important;font-size:12px!important;line-height:1.5!important;letter-spacing:normal!important;font-weight:600!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot :is(.premiumVisitText,.premiumVisitParagraph){color:var(--ct-text)!important;font-size:14px!important;line-height:1.75!important;letter-spacing:normal!important;font-weight:400!important;overflow-wrap:anywhere;white-space:normal}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitParagraph{margin:0 0 7px!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitParagraph:last-child{margin-bottom:0!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitFooter{display:flex;align-items:center;justify-content:space-between;gap:12px!important;padding:15px 0 0!important;margin-top:18px!important;border-top:1px solid var(--ct-line)!important;background:none!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .prOpenVisit{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:40px;padding:9px 13px!important;border:1px solid var(--ct-line)!important;border-radius:9px;background:var(--ct-accent-soft);color:var(--ct-accent);font-size:13px;font-weight:600;cursor:pointer}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .prOpenVisit:hover{background:var(--ct-hover);border-color:var(--ct-accent)!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .visitCardDelete{display:flex;align-items:center;justify-content:center;width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;background:none!important;color:var(--ct-muted)!important;border:1px solid transparent!important;border-radius:8px!important;box-shadow:none!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .visitCardDelete>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .visitCardDelete:hover{color:#ca7a86!important;background:var(--ct-soft)!important;border-color:currentColor!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .pugVisitHistory>.hint{padding:35px!important;border:1px dashed var(--ct-line);border-radius:13px;background:var(--ct-paper);color:var(--ct-muted)!important;opacity:1!important;font-size:14px}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .pugMedcardWorkspace{padding:0!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .pugMedcardWorkspace>.row{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;flex-wrap:wrap;margin:0 0 20px!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .pugMedcardWorkspace>.row h2{font-size:23px!important;font-weight:650!important;line-height:1.4!important;letter-spacing:-.4px!important;color:var(--ct-text)!important;margin:0 0 5px!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .pugMedcardWorkspace .hint{color:var(--ct-muted)!important;opacity:1!important;font-size:13px!important;line-height:1.6!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot #btnAddMedcardEntry{display:inline-flex;align-items:center;justify-content:center;padding:11px 15px!important;min-height:42px!important;background:var(--ct-button)!important;color:var(--ct-on-button)!important;border:1px solid var(--ct-button)!important;border-radius:10px!important;font-size:13px!important;font-weight:600!important;box-shadow:none!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot #btnAddMedcardEntry:hover{background:var(--ct-button-hover)!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .medcardList{display:flex!important;flex-direction:column;gap:18px!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .medcardList>.hint{padding:30px!important;background:var(--ct-paper);border:1px dashed var(--ct-line);border-radius:12px;text-align:center}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedEntry{padding:22px!important;margin:0!important;border:1px solid var(--ct-line)!important;border-radius:15px!important;background:var(--ct-paper)!important;box-shadow:none!important;color:var(--ct-text)!important;overflow:visible!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot :is(.premiumMedEntry::before,.premiumMedEntry::after){content:none!important;display:none!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedEntryHeader{display:flex;align-items:start;justify-content:space-between;gap:16px;padding:0 0 18px!important;margin-bottom:18px!important;border-bottom:1px solid var(--ct-line)!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedEntryMainInfo{min-width:0;flex:1}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedEntryDateRow{display:flex;align-items:center;gap:9px;color:var(--ct-text)!important;font-size:15px!important;line-height:1.5!important;font-weight:650!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedEntryDateIcon{color:var(--ct-accent)!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .med-card-vitals{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px!important;color:var(--ct-muted)!important;font-size:12px!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .prVitalTag{display:flex;align-items:center;gap:10px;padding:7px 10px;border:1px solid var(--ct-line);background:var(--ct-soft);border-radius:8px}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .prVitalLabel{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--ct-muted)}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .prVitalTag strong{color:var(--ct-text);font-size:13px;font-weight:650;font-variant-numeric:tabular-nums}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .prVitalLabel svg{width:15px;height:15px;color:var(--ct-accent)}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedEntryActions{display:flex;align-items:center;gap:6px}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedEntryAction{display:flex;align-items:center;justify-content:center;width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;color:var(--ct-muted)!important;background:var(--ct-soft)!important;border:1px solid var(--ct-line)!important;border-radius:8px!important;box-shadow:none!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedEntryAction:hover{background:var(--ct-hover)!important;color:var(--ct-accent)!important;border-color:var(--ct-accent)!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedEntryDelete:hover{color:#ca7a86!important;border-color:currentColor!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedVitalsGrid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:0 0 18px!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedVitalCell{padding:12px!important;background:var(--ct-soft)!important;border:1px solid var(--ct-line)!important;border-radius:10px!important;min-width:0}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .med-mini-label{color:var(--ct-muted)!important;font-size:11px!important;line-height:1.5!important;font-weight:600!important;letter-spacing:normal!important;margin-bottom:5px!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .med-mini-value{color:var(--ct-text)!important;font-size:13px!important;line-height:1.6!important;font-weight:500!important;overflow-wrap:anywhere}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedBlocks{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedBlock{padding:16px!important;border:1px solid var(--ct-line)!important;border-radius:11px!important;background:var(--ct-paper)!important;box-shadow:none!important;min-width:0}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot :is(.premiumMedCondition,.premiumMedTreatment,.premiumMedNote){grid-column:1/-1!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedBlockHeader{display:flex;align-items:center;gap:8px!important;margin-bottom:9px!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot :is(.history-label,.premiumMedBlockIcon){color:var(--ct-muted)!important;font-size:12px!important;line-height:1.5!important;font-weight:600!important;letter-spacing:normal!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedBlockIcon svg{width:16px;height:16px}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedText{color:var(--ct-text)!important;font-size:14px!important;font-weight:400!important;line-height:1.75!important;letter-spacing:normal!important;white-space:pre-wrap;overflow-wrap:anywhere}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedNote .premiumMedText{color:var(--ct-muted)!important;font-style:normal!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedEntryFooter{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 0 0!important;margin:18px 0 0!important;border-top:1px solid var(--ct-line)!important;background:none!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedDoctor{color:var(--ct-muted)!important;font-size:12px!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedEntryStatus{color:var(--ct-muted)!important;font-size:10px!important;font-weight:500!important;letter-spacing:.03em!important;background:var(--ct-soft)!important;border:1px solid var(--ct-line)!important;padding:5px 8px!important;border-radius:20px!important}
html body[data-theme] #medcardModal#medcardModal {align-items:center!important;justify-content:center!important;padding:16px!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;color-scheme:var(--ct-scheme)}
html body[data-theme] #medcardModal#medcardModal .medcardModalBackdrop{background:rgba(10,18,25,.48)!important;backdrop-filter:blur(5px)!important}
html body[data-theme] #medcardModal#medcardModal .medcardModalGlow{display:none!important}
html body[data-theme] #medcardModal#medcardModal .medcardModalWindow{display:flex!important;flex-direction:column!important;width:min(1080px,100%)!important;max-width:1080px!important;max-height:calc(100dvh - 32px)!important;margin:0!important;overflow:hidden!important;background:var(--ct-paper)!important;color:var(--ct-text)!important;border:1px solid var(--ct-line)!important;border-radius:20px!important;box-shadow:0 24px 70px #0003!important;transform:none!important}
html body[data-theme] #medcardModal#medcardModal .medcardModalHeader{display:flex!important;align-items:start;justify-content:space-between;gap:20px;padding:24px 28px!important;background:var(--ct-paper)!important;border-bottom:1px solid var(--ct-line)!important;flex-shrink:0}
html body[data-theme] #medcardModal#medcardModal .medcardModalHeaderMain{display:flex;align-items:start;gap:15px;min-width:0}
html body[data-theme] #medcardModal#medcardModal .medcardModalIcon{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px!important;height:44px!important;background:var(--ct-accent-soft)!important;color:var(--ct-accent)!important;border:1px solid var(--ct-line)!important;border-radius:12px!important;box-shadow:none!important}
html body[data-theme] #medcardModal#medcardModal .medcardModalKicker{color:var(--ct-accent)!important;font-size:10px!important;font-weight:650!important;letter-spacing:1.2px!important}
html body[data-theme] #medcardModal#medcardModal #medcardModalTitle{margin:5px 0!important;color:var(--ct-text)!important;font-size:26px!important;line-height:1.3!important;font-weight:650!important;letter-spacing:-.5px!important}
html body[data-theme] #medcardModal#medcardModal .medcardModalHeader p{color:var(--ct-muted)!important;font-size:13px!important;line-height:1.6!important;margin:8px 0 0!important}
html body[data-theme] #medcardModal#medcardModal button{cursor:pointer;transform:none!important;box-shadow:none!important;font:inherit}
html body[data-theme] #medcardModal#medcardModal .medcardModalClose{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px!important;height:36px!important;padding:0!important;background:var(--ct-soft)!important;color:var(--ct-muted)!important;border:1px solid var(--ct-line)!important;border-radius:9px!important}
html body[data-theme] #medcardModal#medcardModal .medcardModalScroll{padding:24px 28px!important;overflow-y:auto!important;min-height:0;flex:1;scrollbar-color:var(--ct-line) transparent}
html body[data-theme] #medcardModal#medcardModal .medcardFormSection{padding:0 0 22px!important;margin:0 0 22px!important;border:0!important;border-bottom:1px solid var(--ct-line)!important;border-radius:0!important;background:none!important;box-shadow:none!important}
html body[data-theme] #medcardModal#medcardModal .medcardFormSection:last-child{padding-bottom:0!important;margin-bottom:0!important;border-bottom:0!important}
html body[data-theme] #medcardModal#medcardModal .medcardSectionHeader{display:flex;align-items:start;gap:10px;margin-bottom:16px!important}
html body[data-theme] #medcardModal#medcardModal .medcardSectionIcon{display:flex;align-items:center;justify-content:center;width:30px!important;height:30px!important;flex:0 0 30px;background:var(--ct-accent-soft)!important;color:var(--ct-accent)!important;border-radius:8px!important;border:0!important}
html body[data-theme] #medcardModal#medcardModal .medcardSectionHeader h3{margin:0!important;font-size:16px!important;line-height:1.5!important;font-weight:650!important;color:var(--ct-text)!important}
html body[data-theme] #medcardModal#medcardModal .medcardSectionHeader p{margin:4px 0 0!important;font-size:12px!important;line-height:1.6!important;color:var(--ct-muted)!important}
html body[data-theme] #medcardModal#medcardModal .medcardVitalsGrid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important}
html body[data-theme] #medcardModal#medcardModal .medcardVitalsGrid .medcardFieldWide{grid-column:auto!important}
html body[data-theme] #medcardModal#medcardModal .medcardVitalsGrid{align-items:end!important}
html body[data-theme] #medcardModal#medcardModal .medcardStateGrid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
html body[data-theme] #medcardModal#medcardModal :is(.medcardTextGrid,.medcardPlanGrid){display:grid!important;grid-template-columns:1fr 1fr!important;gap:16px!important}
html body[data-theme] #medcardModal#medcardModal .medcardField{display:flex!important;flex-direction:column!important;gap:7px!important;min-width:0!important;margin:0!important}
html body[data-theme] #medcardModal#medcardModal .medcardConditionField{margin-top:16px!important}
html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedVitalsGrid:empty{display:none!important}
html body[data-theme] #medcardModal#medcardModal .medcardFieldLabel{color:var(--ct-muted)!important;font-size:12px!important;font-weight:600!important;line-height:1.5!important;letter-spacing:normal!important}
html body[data-theme] #medcardModal#medcardModal .medcardFieldLabel :is(b,small){color:var(--ct-muted)!important}
html body[data-theme] #medcardModal#medcardModal :is(.medcardInput,.medcardTextarea){box-sizing:border-box;width:100%!important;min-width:0!important;padding:11px 12px!important;background:var(--ct-soft)!important;color:var(--ct-text)!important;border:1px solid var(--ct-line)!important;border-radius:9px!important;font:inherit;font-size:14px!important;line-height:1.5!important;box-shadow:none!important;outline:none!important}
html body[data-theme] #medcardModal#medcardModal .medcardInput{min-height:44px!important;height:44px!important}
html body[data-theme] #medcardModal#medcardModal .medcardTextarea{min-height:125px!important;resize:vertical!important}
html body[data-theme] #medcardModal#medcardModal :is(.medcardInput,.medcardTextarea)::placeholder{color:var(--ct-muted)!important;opacity:.9!important}
html body[data-theme] #medcardModal#medcardModal :is(.medcardInput,.medcardTextarea):focus{border-color:var(--ct-accent)!important;outline:2px solid var(--ct-accent-soft)!important;outline-offset:1px}
html body[data-theme] #medcardModal#medcardModal .medcardInputUnit>span{color:var(--ct-muted)!important;background:none!important;font-size:11px!important}
html body[data-theme] #medcardModal#medcardModal .medcardInputUnit .medcardInput{padding-right:40px!important}
html body[data-theme] #medcardModal#medcardModal .medcardPlanSide{display:flex;flex-direction:column;gap:14px!important}
html body[data-theme] #medcardModal#medcardModal .medcardModalFooter{display:flex!important;align-items:center;justify-content:space-between;gap:16px;padding:18px 28px!important;background:var(--ct-paper)!important;border-top:1px solid var(--ct-line)!important;flex-shrink:0}
html body[data-theme] #medcardModal#medcardModal .medcardModalFooterHint{color:var(--ct-muted)!important;font-size:12px!important;line-height:1.5!important}
html body[data-theme] #medcardModal#medcardModal .medcardModalActions{display:flex;gap:9px!important}
html body[data-theme] #medcardModal#medcardModal :is(.medcardCancelButton,.medcardSaveButton){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px!important;padding:10px 15px!important;border:1px solid var(--ct-line)!important;border-radius:9px!important;font-size:13px!important;font-weight:600!important;line-height:1.5!important;letter-spacing:normal!important;background:var(--ct-soft)!important;color:var(--ct-text)!important}
html body[data-theme] #medcardModal#medcardModal .medcardSaveButton{background:var(--ct-button)!important;border-color:var(--ct-button)!important;color:var(--ct-on-button)!important}
html body[data-theme] #medcardModal#medcardModal .medcardSaveButton:hover{background:var(--ct-button-hover)!important}
html body[data-theme] #medcardModal#medcardModal :is(.medcardCancelButton,.medcardModalClose):hover{background:var(--ct-hover)!important}
html body[data-theme] #medcardModal#medcardModal button:focus-visible{outline:2px solid var(--ct-accent);outline-offset:3px}
@media(max-width:760px){html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitContent{grid-template-columns:1fr!important}html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitBadges{justify-content:flex-start!important}html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedVitalsGrid{grid-template-columns:1fr 1fr!important}html body[data-theme] #medcardModal#medcardModal .medcardVitalsGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important}html body[data-theme] #medcardModal#medcardModal .medcardStateGrid{grid-template-columns:1fr 1fr!important}html body[data-theme] #medcardModal#medcardModal .medcardTextGrid,html body[data-theme] #medcardModal#medcardModal .medcardPlanGrid{grid-template-columns:1fr!important}}
@media(max-width:500px){html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitTimelineItem{padding-left:0!important}html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitNode,html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitTrack,html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitTimelineItem::before{display:none!important}html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitCard,html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedEntry{padding:17px!important}html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitHeading{flex-basis:100%!important}html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumVisitDiagnosis{font-size:18px!important}html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedBlocks{grid-template-columns:1fr!important}html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedEntryHeader{flex-wrap:wrap!important}html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedEntryMainInfo{flex-basis:100%!important}html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedVitalsGrid{grid-template-columns:1fr!important}html body[data-theme] .page[data-page="patient"].pugPatientWorkspace #patientCardRoot .premiumMedEntryFooter{flex-wrap:wrap!important}html body[data-theme] #medcardModal#medcardModal{padding:8px!important}html body[data-theme] #medcardModal#medcardModal .medcardModalWindow{max-height:calc(100dvh - 16px)!important;border-radius:15px!important}html body[data-theme] #medcardModal#medcardModal .medcardModalHeader,html body[data-theme] #medcardModal#medcardModal .medcardModalScroll{padding:18px!important}html body[data-theme] #medcardModal#medcardModal .medcardModalIcon{display:none!important}html body[data-theme] #medcardModal#medcardModal #medcardModalTitle{font-size:22px!important}html body[data-theme] #medcardModal#medcardModal .medcardVitalsGrid,html body[data-theme] #medcardModal#medcardModal .medcardStateGrid{grid-template-columns:1fr 1fr!important}html body[data-theme] #medcardModal#medcardModal .medcardStateGrid{grid-template-columns:1fr!important}html body[data-theme] #medcardModal#medcardModal .medcardVitalsGrid .medcardFieldWide{grid-column:1/-1!important}html body[data-theme] #medcardModal#medcardModal .medcardInput,html body[data-theme] #medcardModal#medcardModal .medcardTextarea{font-size:16px!important}html body[data-theme] #medcardModal#medcardModal .medcardModalFooter{padding:14px 18px!important;flex-wrap:wrap!important}html body[data-theme] #medcardModal#medcardModal .medcardModalFooterHint{display:none!important}html body[data-theme] #medcardModal#medcardModal .medcardModalActions{width:100%!important}html body[data-theme] #medcardModal#medcardModal .medcardModalActions button{flex:1}}
