.profile-tabs{display:flex;gap:10px;overflow:visible!important;flex-wrap:nowrap}.profile-tabs>button{flex:1 1 25%;min-width:0}.profile-tabs>[data-profile-tab="data"]{order:1}.profile-tabs>[data-profile-tab="files"]{order:2}.profile-tabs>[data-extra-tab="visits"]{order:3}.profile-tabs>[data-medical-tab="prescriptions"]{order:4}.profile-tabs>[data-medical-tab="health"],.profile-tabs>[data-medical-tab="followup"],.profile-tabs>[data-extra-tab="booking"],.profile-tabs>[data-family-tab="family"]{display:none!important}

.unified-page-head{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:20px}.unified-page-head>div>span{display:block;font-size:12px;font-weight:800;color:#1957c7;margin-bottom:5px}.unified-page-head h2{margin:0;font-size:28px;color:#15233e}.unified-page-head p{margin:5px 0 0;color:#73819b}.unified-record{margin-bottom:18px}.history-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.history-grid>div{background:#f8fbff;border:1px solid #e5edf8;border-radius:16px;padding:16px}.history-grid h4{margin:0 0 12px;color:#263650;font-size:14px}

.visits-page-head .visit-new-btn{display:inline-flex;align-items:center;gap:8px;width:auto;white-space:nowrap}.visit-new-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.encounter-filters{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 18px}.encounter-filters button{border:1px solid #d9e4f3;background:#fff;color:#52627d;border-radius:999px;padding:9px 15px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.encounter-filters button.active{background:#123fa7;border-color:#123fa7;color:#fff}.visit-title-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.encounter-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;background:#eef4ff;color:#194ba7;font-size:12px;font-weight:800;line-height:1}.type-emergency{background:#fff0ef;color:#b72e25}.type-follow_up{background:#f0f8f2;color:#277342}.type-session{background:#f6f1ff;color:#6943a5}.type-lab{background:#eef9fa;color:#14707b}.type-radiology{background:#f1f4fa;color:#475c82}.type-home_visit{background:#fff7e8;color:#8b5f13}.visits-followup-panel,.visits-followup-empty{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#f8fbff;border:1px solid #dfe9f7;border-radius:18px;padding:16px 18px;margin-bottom:16px}.visits-followup-panel>div:first-child span,.visits-followup-empty b{font-size:12px;color:#1957c7;font-weight:800}.visits-followup-panel h3{margin:3px 0 0;color:#1f2f4c;font-size:17px}.visits-followup-empty span{color:#71809a}.followup-mini-list{display:flex;gap:10px;flex-wrap:wrap}.followup-mini-list>div{display:flex;flex-direction:column;background:#fff;border:1px solid #e4ebf4;border-radius:13px;padding:9px 12px;min-width:180px}.followup-mini-list b{font-size:13px;color:#1d2f4b}.followup-mini-list span{font-size:11px;color:#748198;margin-top:2px}

.encounter-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.encounter-type-card{appearance:none;border:1px solid #dfe7f2;background:#fff;border-radius:18px;padding:20px 16px;min-height:150px;text-align:right;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;gap:8px;transition:.18s ease;box-shadow:0 8px 24px rgba(25,55,95,.04)}.encounter-type-card:hover{transform:translateY(-2px);border-color:#8ab0ef;box-shadow:0 12px 30px rgba(25,55,95,.08)}.encounter-type-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:13px;background:#eef4ff;color:#174aa7;font-size:20px}.encounter-type-card b{font-size:18px;color:#172742}.encounter-type-card small{color:#76839a;line-height:1.6}.encounter-selected{display:flex;align-items:center;gap:12px;background:#f8fbff;border:1px solid #e0eaf7;border-radius:16px;padding:14px 16px;margin-bottom:14px}.encounter-selected>span{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:13px;background:#eef4ff;font-size:20px}.encounter-selected div{display:flex;flex-direction:column}.encounter-selected small{color:#71809a}.encounter-selected b{color:#1d2e4a;font-size:17px}.deferred-booking{max-width:760px;margin:auto}.unified-booking-context{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #e8eef6}.unified-booking-context .booking-back{margin:0}

/* Family lives under the account menu, so its content can use the full page width. */
.family-view{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(320px,1fr)!important;gap:16px!important;align-items:start;width:100%}.family-hero,.family-panel.add,.family-notice{grid-column:1/-1}.family-hero{min-height:auto!important;padding:18px 20px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}.family-hero h2{font-size:25px!important;margin:3px 0!important}.family-hero p{max-width:760px!important;margin:4px 0 0!important}.family-hero-icon{width:52px!important;height:52px!important;flex:0 0 52px!important}.family-panel{margin:0!important;min-width:0}.family-panel.add{padding:18px 20px!important}.family-search-row{display:grid!important;grid-template-columns:180px minmax(0,1fr) auto!important;gap:10px!important;align-items:stretch!important}.family-search-row select,.family-search-row input{width:100%!important;min-width:0!important}.family-primary{width:auto!important;min-width:150px!important;white-space:nowrap!important;padding-inline:18px!important}.family-member-card,.family-request-card{gap:12px!important}.family-member-copy{min-width:0!important}.family-member-copy b,.family-member-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}

@media(max-width:900px){.profile-tabs{gap:6px}.profile-tabs>button{font-size:12px}.history-grid{grid-template-columns:1fr}.encounter-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.family-view{grid-template-columns:1fr!important}.family-hero,.family-panel.add,.family-notice{grid-column:1}.family-search-row{grid-template-columns:1fr!important}.family-primary{width:100%!important}.unified-page-head{align-items:flex-start;flex-direction:column}.visits-page-head .visit-new-btn{width:100%;justify-content:center}.visits-followup-panel,.visits-followup-empty{align-items:flex-start;flex-direction:column}}

@media(max-width:560px){.profile-tabs{display:grid;grid-template-columns:repeat(2,1fr)}.profile-tabs>button{width:100%}.encounter-type-grid{grid-template-columns:1fr}.followup-mini-list{width:100%}.followup-mini-list>div{width:100%}}
