/* DoctorPlus Care — a presentation-only system, shared across the three sites. */
:root {
 --care-ink:#182b3a; --care-muted:#526575; --care-blue:#1267a8; --care-blue-dark:#0b5188;
 --care-paper:#f5f7fa; --care-white:#fff; --care-line:#dce4ec; --care-soft:#edf4fa;
 --care-green:#167353; --care-red:#bc3946; --care-amber:#8b5e13;
 --primary:var(--care-blue); --primary-dark:var(--care-blue-dark); --bg:var(--care-paper);
 --text:var(--care-ink); --muted:var(--care-muted); --border:var(--care-line);
 --dp-primary:var(--care-blue); --dp-text:var(--care-ink); --dp-muted:var(--care-muted);
 --blue:var(--care-blue); --blue-dark:var(--care-blue-dark); --blue-soft:var(--care-soft);
 --dp-clean-primary:var(--care-blue); --dp-clean-text:var(--care-ink);
 --dp-clean-muted:var(--care-muted); --dp-clean-border:var(--care-line);
}
html[data-dp-design="care"] {color-scheme:light;scroll-padding-top:100px;}
html[data-dp-design] body {
 margin:0;color:var(--care-ink)!important;background:var(--care-paper)!important;
 font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans","Noto Sans Kannada","Noto Sans Devanagari","Noto Sans Tamil","Noto Sans Telugu","Noto Sans Malayalam",sans-serif!important;
 font-size:16px!important;line-height:1.6;letter-spacing:normal;-webkit-text-size-adjust:100%;
 font-variant-numeric:lining-nums tabular-nums;text-rendering:optimizeLegibility;
}
html[data-dp-design] *,html[data-dp-design] *::before,html[data-dp-design] *::after {box-sizing:border-box;}
html[data-dp-design] :where(h1,h2,h3,h4,p) {overflow-wrap:anywhere;}
html[data-dp-design] h1 {font-size:clamp(1.9rem,3.7vw,3.3rem)!important;line-height:1.18!important;font-weight:700!important;letter-spacing:-.035em;margin:0 0 20px;}
html[data-dp-design] h2,html[data-dp-design] .page-title {font-size:clamp(1.35rem,2.2vw,1.85rem)!important;line-height:1.35!important;font-weight:650!important;letter-spacing:-.02em;margin:0 0 24px;}
html[data-dp-design] h3 {font-size:1.13rem!important;line-height:1.45!important;font-weight:650!important;margin:0 0 14px;}
html[data-dp-design] h4 {font-size:1rem!important;line-height:1.5!important;font-weight:650!important;}
html[data-dp-design] p {line-height:1.65;}
html[data-dp-design] :where(.muted,.small,.helper-text,.help-text,.form-help,.subtitle) {color:var(--care-muted);line-height:1.6;}
html[data-dp-design] .small,html[data-dp-design] small {font-size:.84rem!important;}
html[data-dp-design] :where(button,input,select,textarea) {font-family:inherit!important;font-size:1rem;letter-spacing:normal;}
html[data-dp-design] :where(button,.btn,.primary-btn,.secondary-btn,.nav-btn,.navbtn,.cta-primary,.cta-secondary) {
 min-height:44px;max-width:100%;border-radius:10px!important;font-size:.925rem!important;
 line-height:1.45!important;font-weight:600!important;white-space:normal;overflow-wrap:anywhere;
 padding:11px 17px;box-shadow:none!important;transition:background-color .15s,border-color .15s,box-shadow .15s;
}
html[data-dp-design] :where(.btn-primary,.primary-btn,.cta-primary) {background:var(--care-blue)!important;color:#fff!important;border:1px solid var(--care-blue)!important;}
html[data-dp-design] :where(.btn-primary,.primary-btn,.cta-primary):hover:not(:disabled) {background:var(--care-blue-dark)!important;border-color:var(--care-blue-dark)!important;}
html[data-dp-design] :where(.btn-secondary,.secondary-btn,.cta-secondary) {background:var(--care-white)!important;color:var(--care-ink)!important;border:1px solid var(--care-line)!important;}
html[data-dp-design] :where(.btn-secondary,.secondary-btn,.cta-secondary):hover:not(:disabled) {background:var(--care-soft)!important;border-color:#b5cadd!important;}
html[data-dp-design] :where(.btn-danger,.danger-btn) {background:#fff5f5!important;color:var(--care-red)!important;border:1px solid #e8bfc4!important;}
html[data-dp-design] :where(button,input,select,textarea,a,summary):focus-visible {outline:3px solid #1267a8!important;outline-offset:3px;}
html[data-dp-design] :where(button:disabled,input:disabled,select:disabled) {cursor:not-allowed;}
html[data-dp-design] :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea) {
 width:100%;max-width:100%;min-height:48px;border:1px solid #8294a4!important;border-radius:10px!important;
 padding:12px 14px!important;color:var(--care-ink)!important;background:#fff!important;font-size:16px!important;line-height:1.5;
}
html[data-dp-design] :where(textarea) {min-height:120px;resize:vertical;}
html[data-dp-design] :where(input,textarea)::placeholder {color:#6c7d8c;opacity:1;}
html[data-dp-design] :where(input[type=checkbox],input[type=radio]) {width:20px;height:20px;flex:0 0 20px;accent-color:var(--care-blue);}
html[data-dp-design] label {font-size:.9rem!important;font-weight:600!important;line-height:1.55;}
html[data-dp-design] .form-group,html[data-dp-design] .field {margin-bottom:20px;min-width:0;}
html[data-dp-design] :where(.form-group,.field)>label {display:block;margin-bottom:8px;}
html[data-dp-design] :where(.auth-wrapper,.auth-wrap) {background:var(--care-paper)!important;padding:32px 20px!important;}
html[data-dp-design] :where(.auth-card,.login-card) {width:100%;max-width:560px!important;padding:32px!important;border:1px solid var(--care-line)!important;border-radius:18px!important;box-shadow:0 8px 32px #182b3a08!important;background:white!important;}
html[data-dp-design] :where(.auth-card,.login-card) .brand {margin-bottom:28px;text-align:left!important;}
html[data-dp-design] :where(.auth-card,.login-card) .brand h1 {font-size:1.7rem!important;margin-bottom:8px;}
html[data-dp-design] :where(.auth-card,.login-card) .brand p {font-size:.95rem!important;}
html[data-dp-design] :where(.tabs,.tab-buttons,.tab-bar,.dp-referral-tabs,.notification-filters) {display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px;}
html[data-dp-design] :where(.tabs,.dp-referral-tabs)>button {flex:1 1 130px;padding:10px 14px;}
html[data-dp-design] :where(.tabs,.tab-buttons,.tab-bar)>button.active,html[data-dp-design] [role=tab][aria-selected=true] {background:var(--care-soft)!important;border-color:#b7d3e8!important;color:var(--care-blue-dark)!important;box-shadow:inset 0 -2px var(--care-blue)!important;}
html[data-dp-design] :where(.card,.panel,.stat-card,.stat,.metric-card,.hospital-card,.doctor-card,.appointment-card,.payment-card,.queue-hero,.dp-referral-card,.hero-card) {
 border:1px solid var(--care-line)!important;border-radius:14px!important;box-shadow:0 2px 4px #182b3a03!important;
 background:white!important;padding:24px!important;min-width:0;max-width:100%;
}
html[data-dp-design] :where(.card,.panel,.dp-referral-card)+:where(.card,.panel,.dp-referral-card) {margin-top:20px;}
html[data-dp-design] :where(.stats-grid,.stats,.stat-grid,.queue-metrics,.payment-summary,.quick-card-grid,.home-cards,.grid) {gap:20px!important;}
html[data-dp-design] :where(.stat-card,.stat,.queue-metric) {padding:20px!important;}
html[data-dp-design] :where(.stat-card .value,.stat .value,.stat strong,.stat-card strong,.queue-token) {font-size:clamp(1.6rem,2.5vw,2.2rem)!important;font-weight:650!important;letter-spacing:-.03em;}
html[data-dp-design] :where(.stat-card .label,.stat .label,.queue-metric b,.payment-detail b) {font-size:.82rem!important;font-weight:500!important;text-transform:none!important;letter-spacing:normal!important;color:var(--care-muted);}
html[data-dp-design] :where(.toolbar,.table-toolbar,.page-actions,.actions,.button-row,.queue-actions,.filters,.filter-row) {display:flex;flex-wrap:wrap;align-items:center;gap:10px!important;}
html[data-dp-design] :where(.filters,.filter-row)>:where(input,select,.field,.form-group) {flex:1 1 180px;min-width:0;}
html[data-dp-design] :where(.table-wrap,.table-wrapper,.table-container) {max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid var(--care-line);border-radius:12px;}
html[data-dp-design] table {border-collapse:collapse;width:100%;font-size:.9rem!important;}
html[data-dp-design] th {padding:13px 16px!important;background:#f5f8fb!important;color:var(--care-muted)!important;font-size:.8rem!important;font-weight:600!important;letter-spacing:normal!important;text-transform:none!important;text-align:left;}
html[data-dp-design] td {padding:16px!important;line-height:1.6;border-bottom:1px solid #e8edf2!important;vertical-align:middle;}
html[data-dp-design] tbody tr:hover {background:#f7fafc;}
html[data-dp-design] :where(.badge,.status,.status-badge,.queue-status,.payment-status,.owner-badge) {font-size:.78rem!important;font-weight:600!important;line-height:1.45;padding:5px 9px;border-radius:6px!important;}
html[data-dp-design] :where(.modal,.modal-card,.dialog,.modal-content) {border-radius:18px!important;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;}
html[data-dp-design] :where(.notice,.info-box,.provider-note,.queue-notice,.error-state,.success-state,.deletion-warning) {font-size:.9rem!important;line-height:1.65;border-radius:10px!important;padding:16px!important;}
html[data-dp-design] details {line-height:1.65;}
html[data-dp-design] summary {cursor:pointer;font-weight:600;min-height:44px;padding:10px 0;}
html[data-dp-design] :where(.topbar,header.site-header,.navbar) {background:#fff!important;box-shadow:none!important;border-bottom:1px solid var(--care-line)!important;backdrop-filter:none!important;}
html[data-dp-design] .topbar {padding:16px 24px!important;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
html[data-dp-design] :where(.topbar-left,.topbar-right,.top-actions,.topbar-inner) {min-width:0;display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
html[data-dp-design] .topbar>div {min-width:0;flex-wrap:wrap;max-width:100%;}
html[data-dp-design] :where(.topbar-title,#workspaceTitle) {font-size:1.05rem!important;font-weight:650!important;line-height:1.4;}
html[data-dp-design] :where(.topbar .dp-brand-mark,.topbar .dp-approved-logo) {width:36px!important;height:36px!important;flex:0 0 36px!important;}
html[data-dp-design] :where(.topbar .lang,.topbar select,.topbar-inner .lang) {width:auto!important;max-width:160px;min-height:44px;padding:8px 12px!important;}
html[data-dp-design] :where(#ownerIdentity,#topUserEmail) {font-size:.8rem!important;overflow-wrap:anywhere;color:var(--care-muted);}
html[data-dp-design] :where(.sidebar .nav-btn,.sidebar .navbtn) {text-align:left!important;background:transparent!important;border:1px solid transparent!important;color:var(--care-muted)!important;width:100%;padding:12px 14px!important;margin:2px 0!important;font-size:.9rem!important;font-weight:500!important;}
html[data-dp-design] :where(.sidebar .nav-btn,.sidebar .navbtn):hover {background:#f0f5fa!important;color:var(--care-ink)!important;}
html[data-dp-design] :where(.sidebar .nav-btn.active,.sidebar .navbtn.active) {background:#eaf3fb!important;color:var(--care-blue-dark)!important;border-color:#d2e4f2!important;font-weight:650!important;}
html[data-dp-design] .sidebar {background:white!important;border-right:1px solid var(--care-line)!important;padding:20px 14px!important;}
html[data-dp-surface=owner] .layout {grid-template-columns:244px minmax(0,1fr)!important;}
html[data-dp-surface=owner] .content {padding:32px!important;min-width:0;}
html[data-dp-surface=hospital] .dashboard-shell {grid-template-columns:244px minmax(0,1fr)!important;}
html[data-dp-surface=hospital] .main {margin-left:244px!important;min-width:0;}
html[data-dp-surface=hospital] .sidebar {width:244px!important;}
html[data-dp-surface=hospital] .content {padding:32px!important;min-width:0;}
html[data-dp-surface=patient] #appView .layout {grid-template-columns:224px minmax(0,1fr)!important;gap:28px!important;max-width:1320px;margin:auto;padding:28px 24px!important;}
html[data-dp-surface=patient] .sidebar {border:1px solid var(--care-line)!important;border-radius:14px!important;align-self:start;}
html[data-dp-surface=patient] .hero {padding:28px!important;border:1px solid var(--care-line)!important;border-radius:16px!important;background:#fff!important;}
html[data-dp-surface=patient] .quick-card {padding:18px!important;min-height:90px;border-radius:12px!important;box-shadow:none!important;}
html[data-dp-surface=patient] .quick-icon {background:var(--care-soft)!important;border-radius:10px!important;}
html[data-dp-surface=public] .hero {background:var(--care-paper)!important;padding-top:64px!important;padding-bottom:64px!important;}
html[data-dp-surface=public] :where(.hero p,.hero-subtitle,.hero-description) {font-size:1.05rem!important;line-height:1.8!important;max-width:58ch;}
html[data-dp-surface=public] :where(.hero-grid,.hero-content,.section-grid) {gap:40px!important;}
html[data-dp-surface=public] :where(.section,.section-pad,main>section) {scroll-margin-top:96px;}
html[data-dp-surface=public] :where(.section-title,.section-heading) {margin-bottom:28px!important;}
html[data-dp-design] :where(.policy-content,.legal-content,.policy-body,article.policy) {max-width:78ch;margin-inline:auto;line-height:1.85;}
/* Only known system placeholders receive these classes. Their translated text stays available to assistive technology. */
html[data-dp-design] .dp-ui-pending {font-size:0!important;line-height:0!important;color:transparent!important;position:relative;}
html[data-dp-design] .dp-ui-pending::before {content:"";display:block;border-radius:12px;background-color:#eef2f6;}
html[data-dp-design] .dp-ui-pending[data-dp-wait=list]::before {width:100%;height:132px;background:linear-gradient(#dce5ed,#dce5ed) 18px 24px/42% 12px no-repeat,linear-gradient(#e2e9f0,#e2e9f0) 18px 51px/75% 9px no-repeat,linear-gradient(#e2e9f0,#e2e9f0) 18px 74px/62% 9px no-repeat,linear-gradient(#e2e9f0,#e2e9f0) 18px 97px/32% 9px no-repeat,#f0f4f8;animation:dp-care-breathe 1.4s ease-in-out infinite alternate;}
html[data-dp-design] .dp-ui-pending[data-dp-wait=short]::before {width:20px;height:20px;background:transparent;border:2px solid #bed4e5;border-top-color:var(--care-blue);border-radius:50%;margin:4px auto;animation:dp-care-spin .8s linear infinite;}
html[data-dp-design] .dp-ui-pending[data-dp-wait=short] {min-width:44px;min-height:28px;}
html[data-dp-design] button.dp-ui-pending::before {border-top-color:currentColor;}
@keyframes dp-care-spin {to{transform:rotate(360deg);}}
@keyframes dp-care-breathe {from{opacity:.55;}to{opacity:1;}}
@media(min-width:1100px){html[data-dp-design] :where(.stats,.stats-grid,.stats-grid-4){grid-template-columns:repeat(4,minmax(0,1fr))!important;}html[data-dp-design] :where(.form-grid,.form-grid-2){column-gap:24px!important;row-gap:8px!important;}}
@media(max-width:1000px){
 html[data-dp-design] .topbar {padding:12px 18px!important;gap:10px;}
 html[data-dp-design] :where(.stats,.stats-grid,.stats-grid-4,.quick-card-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:850px){
 html[data-dp-design] body {font-size:15px!important;}
 html[data-dp-design] :where(h2,.page-title){font-size:1.4rem!important;margin-bottom:20px;}
 html[data-dp-design] :where(.auth-card,.login-card){padding:24px!important;}
 html[data-dp-design] :where(.card,.panel,.hospital-card,.doctor-card,.appointment-card,.payment-card,.queue-hero,.dp-referral-card,.hero-card){padding:20px!important;}
 html[data-dp-design] .content {padding:22px 16px!important;}
 html[data-dp-design] .topbar {padding:12px 16px!important;gap:12px;}
 html[data-dp-design] .topbar>div {gap:8px!important;}
 html[data-dp-design] :where(.topbar button,.topbar select) {padding:8px 10px!important;font-size:.84rem!important;}
 html[data-dp-surface=owner] .layout {display:block!important;}
 html[data-dp-surface=owner] .sidebar {width:min(292px,88vw)!important;top:0!important;height:100dvh!important;z-index:1000;overflow-y:auto;padding-top:76px!important;box-shadow:12px 0 50px #182b3a14!important;}
 html[data-dp-surface=hospital] .main {margin-left:0!important;}
 html[data-dp-surface=hospital] .sidebar {width:min(292px,88vw)!important;overflow-y:auto;height:100dvh!important;z-index:1000;}
 html[data-dp-surface=patient] #appView .layout {display:block!important;padding:18px 14px!important;}
 html[data-dp-surface=patient] #appView .sidebar {position:static!important;display:flex!important;flex-wrap:nowrap;overflow-x:auto;gap:6px!important;padding:8px!important;margin-bottom:20px;border-radius:12px!important;scroll-snap-type:x proximity;}
 html[data-dp-surface=patient] #appView .sidebar .navbtn {width:auto!important;flex:0 0 auto;max-width:170px;min-width:0!important;white-space:normal!important;padding:10px 14px!important;scroll-snap-align:start;}
 html[data-dp-surface=patient] .home-cards {grid-template-columns:1fr!important;}
 html[data-dp-surface=patient] .hero {padding:22px!important;}
 html[data-dp-surface=public] .hero {padding-top:36px!important;padding-bottom:36px!important;}
 html[data-dp-design] :where(.form-grid,.form-grid-2,.payment-summary,.payment-details,.proof-grid,.profile-grid,.grid-2){grid-template-columns:1fr!important;}
 html[data-dp-design] :where(.toolbar,.filters,.filter-row) {align-items:flex-end;}
 html[data-dp-design] :where(.toolbar,.filters,.filter-row)>button {align-self:flex-end;flex:0 0 auto;width:auto;min-height:44px;max-height:48px;white-space:nowrap;}
 html[data-dp-design] .table-wrap td {padding:12px!important;}
}
@media(max-width:430px){
 html[data-dp-design] :where(.auth-wrapper,.auth-wrap){padding:16px 12px!important;}
 html[data-dp-design] :where(.auth-card,.login-card){padding:22px 18px!important;}
 html[data-dp-design] .topbar-left {gap:8px!important;}
 html[data-dp-design] #workspaceTitle {max-width:180px;font-size:.94rem!important;}
 html[data-dp-design] :where(#ownerIdentity,#topUserEmail){flex-basis:100%;}
 html[data-dp-design] :where(.stats-grid,.stats-grid-4){gap:10px!important;}
 html[data-dp-design] :where(.stat-card,.stat,.queue-metric){padding:16px!important;}
 html[data-dp-design] :where(.dp-referral-tabs,.tabs)>button{flex-basis:100%;}
 html[data-dp-design] :where(.queue-metrics,.quick-card-grid){gap:10px!important;}
}
@media(prefers-reduced-motion:reduce){html[data-dp-design] *,html[data-dp-design] *::before,html[data-dp-design] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}
@media print {html[data-dp-design] :where(.sidebar,.topbar,.dp-ui-pending){display:none!important;}html[data-dp-design] :where(.main,.content){margin:0!important;padding:0!important;}html[data-dp-design] body{background:#fff!important;}}
/* Staff drawers sit below the actual wrapped header so the menu toggle remains reachable. */
html[data-dp-surface=owner] #appView>.topbar,html[data-dp-surface=hospital] #dashboardShell .topbar {position:sticky;top:0;z-index:1010;}
html[data-dp-design] button.dp-ui-pending::before {border-top-color:var(--care-blue);}
html[data-dp-design] button.dp-ui-pending:is(.btn-primary,.primary-btn)::before {border-color:#ffffff66;border-top-color:white;}
@media(max-width:850px){
 html[data-dp-surface=owner] .sidebar,html[data-dp-surface=hospital] .sidebar {top:var(--care-header-height,100px)!important;height:calc(100dvh - var(--care-header-height,100px))!important;padding-top:16px!important;z-index:1000;}
}

html[data-dp-design] .current-token {font-size:2.5rem!important;font-weight:650!important;line-height:1.25;}
html[data-dp-design] .queue-card:has(.dp-ui-pending) .current-token {font-size:0!important;background:#e3ebf3;width:120px;height:40px;border-radius:8px;margin:16px auto;}
/* Patient home keeps the visit summary compact without dropping any account content. */
html[data-dp-surface=patient] .dashboard-search {padding:0 14px!important;min-height:52px;border:1px solid #8294a4!important;border-radius:12px!important;box-shadow:none!important;}
html[data-dp-surface=patient] .dashboard-search input {border:0!important;border-radius:0!important;background:transparent!important;padding:12px 4px!important;box-shadow:none!important;}
html[data-dp-surface=patient] .patient-home-summary .patient-summary-head {display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start;}
html[data-dp-surface=patient] .patient-home-summary h2 {margin:4px 0 8px!important;font-size:1.4rem!important;}
html[data-dp-surface=patient] .patient-home-summary p {margin:6px 0;font-size:.9rem;}
html[data-dp-surface=patient] .patient-home-summary .identity-line:empty {display:none;}
html[data-dp-surface=patient] .patient-home-summary .summary-pill {min-width:0;width:100px;margin:0!important;padding:12px;border-radius:10px;}
html[data-dp-surface=patient] #appView .sidebar {scrollbar-width:thin;}
@media(max-width:850px){
 html[data-dp-surface=owner] .topbar-left {display:grid!important;grid-template-columns:40px 32px minmax(0,1fr) auto;width:100%;gap:8px!important;}
 html[data-dp-surface=owner] .topbar-left .mobile-menu {width:40px;min-width:40px;padding:8px!important;}
 html[data-dp-surface=owner] .topbar-left .dp-brand-mark {width:32px!important;height:32px!important;flex-basis:32px!important;}
 html[data-dp-surface=owner] #workspaceTitle {max-width:none;font-size:.94rem!important;}
 html[data-dp-surface=owner] #workspaceRoleBadge {font-size:.68rem!important;padding:4px 6px;max-width:72px;}
}
/* Existing owner security, refresh and sign-out actions stay intact in an accessible native menu. */
html[data-dp-design] .dp-account-menu {position:relative;}
html[data-dp-design] .dp-account-menu>summary {display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid var(--care-line);border-radius:10px;background:#fff;list-style:none;font-size:.9rem;}
html[data-dp-design] .dp-account-menu>summary::-webkit-details-marker {display:none;}
html[data-dp-design] .dp-account-menu>summary::after {content:"⌄";font-size:16px;}
html[data-dp-design] .dp-account-menu-panel {position:absolute;right:0;top:calc(100% + 10px);z-index:1020;width:300px;max-width:calc(100vw - 24px);padding:16px;background:#fff;border:1px solid var(--care-line);border-radius:14px;box-shadow:0 12px 32px #182b3a18;}
html[data-dp-design] .dp-account-menu-panel>div {display:flex!important;flex-direction:column;align-items:stretch!important;gap:10px!important;}
html[data-dp-design] .dp-account-menu-panel button {width:100%;text-align:left;}
html[data-dp-design] .dp-account-menu-panel #ownerIdentity {display:block;margin-bottom:4px;}
@media(max-width:850px){html[data-dp-design] .dp-account-menu-panel {position:fixed;top:calc(var(--care-header-height,100px) + 8px);left:12px;right:12px;width:auto;max-width:none;}html[data-dp-design] .dp-account-menu-label {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}}

/* DoctorPlus Clinical Design System v2 — Shared Reusable Components & Mobile Guards */
:root {
 --care-surface-subtle:#f8fafc; --care-soft-border:#cfe0ee;
 --care-success-soft:#eef9f4; --care-success-line:#bfe4d3;
 --care-warning-soft:#fef9ec; --care-warning-line:#f2dcb0;
 --care-danger-soft:#fff5f5; --care-danger-line:#f1c7cc;
 --care-shadow-card:0 2px 6px rgba(24,43,58,.04);
 --care-shadow-modal:0 16px 40px rgba(24,43,58,.14);
}
html[data-dp-design] :where(.btn-outline,.outline-btn) {background:#fff!important;color:var(--care-blue)!important;border:1px solid var(--care-blue)!important;}
html[data-dp-design] :where(.btn-outline,.outline-btn):hover:not(:disabled) {background:var(--care-soft)!important;}
html[data-dp-design] :where(.btn-ghost,.btn-text) {background:transparent!important;color:var(--care-blue)!important;border:1px solid transparent!important;}
html[data-dp-design] :where(.btn-ghost,.btn-text):hover:not(:disabled) {background:var(--care-soft)!important;}
html[data-dp-design] .btn-block {width:100%;}

/* Page header, breadcrumb & connectivity banner */
html[data-dp-design] .dp-page-header {display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:20px;}
html[data-dp-design] .dp-breadcrumb {display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:.84rem;color:var(--care-muted);margin-bottom:10px;}
html[data-dp-design] .dp-breadcrumb a {color:var(--care-blue);text-decoration:none;font-weight:600;}
html[data-dp-design] .dp-breadcrumb a:hover {text-decoration:underline;}
html[data-dp-design] [data-dp-offline-banner] {display:none;margin:0 0 16px;padding:12px 16px;border-radius:10px;background:var(--care-warning-soft);border:1px solid var(--care-warning-line);color:var(--care-ink);font-size:.9rem;font-weight:600;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
html[data-dp-design][data-dp-offline="true"] [data-dp-offline-banner] {display:flex;}

/* Grouped Settings Pattern (Patient, Hospital & Owner) */
html[data-dp-design] .dp-settings-stack {display:grid;gap:20px;}
html[data-dp-design] .dp-settings-group {min-width:0;}
html[data-dp-design] .dp-settings-group-title {margin:0 0 8px 4px;font-size:.82rem;font-weight:700;color:var(--care-muted);letter-spacing:.03em;text-transform:uppercase;}
html[data-dp-design] .dp-settings-card {background:#fff;border:1px solid var(--care-line);border-radius:14px;box-shadow:var(--care-shadow-card);overflow:hidden;}
html[data-dp-design] .dp-settings-group--danger .dp-settings-card {border-color:var(--care-danger-line);background:#fffdfd;}
html[data-dp-design] .dp-settings-group--danger .dp-settings-group-title {color:var(--care-red);}
html[data-dp-design] .dp-settings-row {width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;min-height:56px;background:transparent!important;border:0!important;border-bottom:1px solid #edf1f5!important;border-radius:0!important;text-align:left!important;color:var(--care-ink);cursor:pointer;font-weight:500!important;}
html[data-dp-design] .dp-settings-card>.dp-settings-row:last-child,html[data-dp-design] .dp-settings-card>:last-child {border-bottom:0!important;}
html[data-dp-design] button.dp-settings-row:hover,html[data-dp-design] a.dp-settings-row:hover {background:var(--care-surface-subtle)!important;}
html[data-dp-design] .dp-settings-row--static {cursor:default;}
html[data-dp-design] .dp-settings-row-main {display:flex;align-items:center;gap:12px;min-width:0;flex:1;}
html[data-dp-design] .dp-settings-row-icon {width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:var(--care-soft);color:var(--care-blue);display:inline-flex;align-items:center;justify-content:center;font-size:1rem;font-weight:700;}
html[data-dp-design] .dp-settings-group--danger .dp-settings-row-icon {background:var(--care-danger-soft);color:var(--care-red);}
html[data-dp-design] .dp-settings-row-body {min-width:0;flex:1;}
html[data-dp-design] .dp-settings-row-title {display:block;font-size:.95rem;font-weight:650;color:var(--care-ink);line-height:1.35;}
html[data-dp-design] .dp-settings-row-sub {display:block;font-size:.83rem;color:var(--care-muted);line-height:1.4;margin-top:2px;overflow-wrap:anywhere;}
html[data-dp-design] .dp-settings-row-end {display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;color:var(--care-muted);font-size:.85rem;font-weight:600;}
html[data-dp-design] .dp-settings-value {color:var(--care-blue-dark);background:var(--care-soft);padding:3px 9px;border-radius:999px;font-size:.78rem;font-weight:650;}
html[data-dp-design] .dp-settings-chevron {font-size:1.2rem;line-height:1;color:#7a8b99;}
html[data-dp-design] .dp-switch {position:relative;display:inline-flex;align-items:center;width:46px;height:26px;flex:0 0 46px;}
html[data-dp-design] .dp-switch input {position:absolute;opacity:0;width:46px;height:26px;min-height:26px;margin:0;cursor:pointer;}
html[data-dp-design] .dp-switch-track {width:46px;height:26px;border-radius:999px;background:#cbd5e1;transition:background-color .15s;position:relative;display:block;}
html[data-dp-design] .dp-switch-track::after {content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.22);transition:transform .15s;}
html[data-dp-design] .dp-switch input:checked+.dp-switch-track {background:var(--care-blue);}
html[data-dp-design] .dp-switch input:checked+.dp-switch-track::after {transform:translateX(20px);}
html[data-dp-design] .dp-switch input:focus-visible+.dp-switch-track {outline:3px solid var(--care-blue);outline-offset:2px;}

/* 6-Step Live Queue Progress Timeline */
html[data-dp-design] .dp-timeline {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:16px 0 8px;padding:16px;border:1px solid var(--care-line);border-radius:14px;background:var(--care-surface-subtle);}
html[data-dp-design] .dp-timeline-step {display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:10px 12px;border-radius:10px;background:#fff;border:1px solid var(--care-line);min-width:0;}
html[data-dp-design] .dp-timeline-marker {display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;font-size:.78rem;font-weight:700;background:#eef2f6;color:var(--care-muted);}
html[data-dp-design] .dp-timeline-label {font-size:.82rem;font-weight:600;color:var(--care-muted);line-height:1.35;overflow-wrap:anywhere;}
html[data-dp-design] .dp-timeline-step.is-done {border-color:var(--care-success-line);background:var(--care-success-soft);}
html[data-dp-design] .dp-timeline-step.is-done .dp-timeline-marker {background:var(--care-green);color:#fff;}
html[data-dp-design] .dp-timeline-step.is-done .dp-timeline-label {color:#12513b;}
html[data-dp-design] .dp-timeline-step.is-active {border-color:#93c5fd;background:var(--care-soft);box-shadow:0 0 0 1px rgba(18,103,168,.12);}
html[data-dp-design] .dp-timeline-step.is-active .dp-timeline-marker {background:var(--care-blue);color:#fff;}
html[data-dp-design] .dp-timeline-step.is-active .dp-timeline-label {color:var(--care-blue-dark);font-weight:700;}
html[data-dp-design] .dp-timeline-step.is-warning {border-color:var(--care-warning-line);background:var(--care-warning-soft);}
html[data-dp-design] .dp-timeline-step.is-warning .dp-timeline-marker {background:var(--care-amber);color:#fff;}
html[data-dp-design] .dp-timeline-step.is-danger {border-color:var(--care-danger-line);background:var(--care-danger-soft);}
html[data-dp-design] .dp-timeline-step.is-danger .dp-timeline-marker {background:var(--care-red);color:#fff;}
@media(max-width:900px){html[data-dp-design] .dp-timeline{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:460px){html[data-dp-design] .dp-timeline{grid-template-columns:1fr;padding:12px;gap:8px;}html[data-dp-design] .dp-timeline-step{flex-direction:row;align-items:center;gap:10px;}}

/* Clinical Empty State & Accessible Modal Dialog */
html[data-dp-design] .dp-empty-state {padding:24px;border:1px dashed #cbd6e2;border-radius:14px;background:var(--care-surface-subtle);text-align:left;}
html[data-dp-design] .dp-empty-state h3 {margin:0 0 6px;color:var(--care-ink);}
html[data-dp-design] .dp-empty-state p {margin:0 0 14px;color:var(--care-muted);font-size:.92rem;}
html[data-dp-design] .dp-confirm-backdrop {position:fixed;inset:0;z-index:10030;background:rgba(16,24,40,.46);display:flex;align-items:center;justify-content:center;padding:16px;}
html[data-dp-design] .dp-confirm-backdrop.hidden {display:none!important;}
html[data-dp-design] .dp-confirm-dialog {width:100%;max-width:480px;max-height:calc(100dvh - 32px);overflow-y:auto;background:#fff;border:1px solid var(--care-line);border-radius:16px;padding:24px;box-shadow:var(--care-shadow-modal);}
html[data-dp-design] .dp-confirm-actions {display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:18px;}

/* Mobile drawer backdrop, gate pricing table wrap & non-overlapping launchers */
html[data-dp-design] .dp-sidebar-backdrop {position:fixed;inset:0;z-index:990;background:rgba(16,24,40,.38);display:none;}
html[data-dp-design][data-dp-drawer-open="true"] .dp-sidebar-backdrop {display:block;}
html[data-dp-surface=hospital] #subscriptionGate .subscription-pricing {max-width:100%;overflow-x:auto;}
@media(max-width:640px){
 html[data-dp-design] .dp-settings-row {padding:12px 14px;gap:10px;}
 html[data-dp-design] .queue-actions,html[data-dp-design] .dp-actions-stack {display:grid!important;grid-template-columns:1fr!important;}
 html[data-dp-design] .queue-actions button,html[data-dp-design] .dp-actions-stack button {width:100%;}
}

/* DoctorPlus Clinical Design System v2 — Unified clinical tokens, semantic badges, discovery, queue & admin polish */
:root{
 --dp-bg-canvas:#f8fafc;
 --dp-bg-surface:#ffffff;
 --dp-bg-subtle:#f1f5f9;
 --dp-brand-primary:#2563eb;
 --dp-brand-primary-dark:#1d4ed8;
 --dp-brand-soft:#eff6ff;
 --dp-brand-border:#bfdbfe;
 --dp-text-main:#0f172a;
 --dp-text-secondary:#475569;
 --dp-text-muted:#64748b;
 --dp-border-subtle:#e2e8f0;
 --dp-border-strong:#cbd5e1;
 --dp-success-bg:#ecfdf5;
 --dp-success-fg:#047857;
 --dp-success-border:#a7f3d0;
 --dp-warning-bg:#fffbeb;
 --dp-warning-fg:#b45309;
 --dp-warning-border:#fde68a;
 --dp-danger-bg:#fef2f2;
 --dp-danger-fg:#b91c1c;
 --dp-danger-border:#fecaca;
 --dp-inactive-bg:#f1f5f9;
 --dp-inactive-fg:#475569;
 --dp-inactive-border:#cbd5e1;
 --dp-radius-md:10px;
 --dp-radius-lg:14px;
 --dp-shadow-subtle:0 1px 3px rgba(15,23,42,.06),0 1px 2px rgba(15,23,42,.04);
}
html[data-dp-design]{
 background:var(--dp-bg-canvas);
 color:var(--dp-text-main);
 overflow-x:hidden;
}
html[data-dp-design] body{
 background:var(--dp-bg-canvas);
 color:var(--dp-text-main);
 overflow-x:hidden;
}
html[data-dp-design] :focus-visible{
 outline:2px solid var(--dp-brand-primary);
 outline-offset:2px;
}
html[data-dp-design] button,
html[data-dp-design] a.btn,
html[data-dp-design] select,
html[data-dp-design] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]){
 min-height:44px;
}
/* Semantic Status Badges */
.dp-status-badge{
 display:inline-flex;
 align-items:center;
 gap:6px;
 padding:4px 10px;
 border-radius:999px;
 font-size:12px;
 font-weight:700;
 line-height:1.2;
 letter-spacing:.02em;
 border:1px solid transparent;
 white-space:nowrap;
}
.dp-status-badge--active,
.dp-status-badge--verified{
 background:var(--dp-success-bg);
 color:var(--dp-success-fg);
 border-color:var(--dp-success-border);
}
.dp-status-badge--inactive{
 background:var(--dp-inactive-bg);
 color:var(--dp-inactive-fg);
 border-color:var(--dp-inactive-border);
}
.dp-status-badge--pending{
 background:var(--dp-warning-bg);
 color:var(--dp-warning-fg);
 border-color:var(--dp-warning-border);
}
.dp-status-badge--rejected,
.dp-status-badge--suspended{
 background:var(--dp-danger-bg);
 color:var(--dp-danger-fg);
 border-color:var(--dp-danger-border);
}
.dp-badge-row{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:6px;
}
/* Notices & Banners */
.dp-inactive-notice-banner{
 display:flex;
 flex-wrap:wrap;
 align-items:flex-start;
 justify-content:space-between;
 gap:12px;
 padding:14px 16px;
 border-radius:var(--dp-radius-md);
 background:var(--dp-warning-bg);
 border:1px solid var(--dp-warning-border);
 color:var(--dp-text-main);
 margin:12px 0;
}
.dp-inactive-notice-banner strong{
 color:var(--dp-warning-fg);
 display:block;
 margin-bottom:2px;
}
.dp-inactive-notice-banner p{
 margin:0;
 color:var(--dp-text-secondary);
 font-size:14px;
 line-height:1.45;
}
.dp-payment-disabled-banner{
 display:flex;
 align-items:flex-start;
 gap:12px;
 padding:14px 16px;
 border-radius:var(--dp-radius-md);
 background:var(--dp-brand-soft);
 border:1px solid var(--dp-brand-border);
 color:var(--dp-text-main);
 margin:12px 0;
 font-size:14px;
 line-height:1.5;
}
.dp-payment-disabled-banner strong{
 color:var(--dp-brand-primary-dark);
}
/* Grouped Sidebar Navigation */
.dp-nav-group-label{
 font-size:11px;
 font-weight:700;
 text-transform:uppercase;
 letter-spacing:.06em;
 color:var(--dp-text-muted);
 padding:12px 12px 4px;
 margin-top:4px;
 user-select:none;
}
.dp-nav-group-label:first-child{
 margin-top:0;
 padding-top:4px;
}
/* Discovery Filters & Clinical Hospital Cards */
.dp-filter-bar{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
 gap:10px;
 padding:14px;
 background:var(--dp-bg-surface);
 border:1px solid var(--dp-border-subtle);
 border-radius:var(--dp-radius-lg);
 box-shadow:var(--dp-shadow-subtle);
 margin-bottom:14px;
}
.dp-status-filter-pills{
 display:flex;
 flex-wrap:wrap;
 gap:8px;
 margin:8px 0 12px;
}
.dp-status-pill{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 min-height:44px;
 padding:0 14px;
 border-radius:999px;
 border:1px solid var(--dp-border-strong);
 background:var(--dp-bg-surface);
 color:var(--dp-text-secondary);
 font-size:13px;
 font-weight:600;
 cursor:pointer;
}
.dp-status-pill[aria-pressed="true"],
.dp-status-pill.is-active{
 background:var(--dp-brand-primary);
 border-color:var(--dp-brand-primary);
 color:#ffffff;
}
.dp-kpi-grid{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
 gap:12px;
 margin-bottom:16px;
}
.dp-kpi-card{
 background:var(--dp-bg-surface);
 border:1px solid var(--dp-border-subtle);
 border-radius:var(--dp-radius-lg);
 padding:16px;
 box-shadow:var(--dp-shadow-subtle);
}
.dp-kpi-card .dp-kpi-label{
 font-size:12px;
 font-weight:600;
 color:var(--dp-text-muted);
 margin-bottom:6px;
}
.dp-kpi-card .dp-kpi-value{
 font-size:26px;
 font-weight:800;
 color:var(--dp-text-main);
 line-height:1.15;
 font-variant-numeric:tabular-nums;
}
.dp-hospital-card{
 background:var(--dp-bg-surface);
 border:1px solid var(--dp-border-subtle);
 border-radius:var(--dp-radius-lg);
 padding:16px;
 box-shadow:var(--dp-shadow-subtle);
 display:flex;
 flex-direction:column;
 gap:10px;
}
.dp-hospital-card--inactive{
 background:#fafbfd;
 border-color:var(--dp-inactive-border);
}
.dp-hospital-card-head{
 display:flex;
 flex-wrap:wrap;
 justify-content:space-between;
 align-items:flex-start;
 gap:10px;
}
.dp-hospital-card-actions{
 display:flex;
 flex-wrap:wrap;
 gap:8px;
 margin-top:4px;
}
.dp-btn-clinical{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 min-height:44px;
 padding:0 16px;
 border-radius:var(--dp-radius-md);
 border:1px solid var(--dp-brand-primary);
 background:var(--dp-brand-primary);
 color:#ffffff;
 font-weight:600;
 font-size:14px;
 cursor:pointer;
 text-decoration:none;
}
.dp-btn-clinical:hover{background:var(--dp-brand-primary-dark);border-color:var(--dp-brand-primary-dark);}
.dp-btn-clinical--secondary{
 background:var(--dp-bg-surface);
 color:var(--dp-text-main);
 border-color:var(--dp-border-strong);
}
.dp-btn-clinical--secondary:hover{background:var(--dp-bg-subtle);}
.dp-btn-clinical:disabled,
.dp-btn-clinical[aria-disabled="true"]{
 background:var(--dp-bg-subtle);
 color:var(--dp-text-muted);
 border-color:var(--dp-border-subtle);
 cursor:not-allowed;
}
/* 8-Step Booking Indicator & 6-State Queue Timeline */
.dp-step-bar{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(115px,1fr));
 gap:6px;
 margin:12px 0 16px;
}
.dp-step-chip{
 padding:8px 10px;
 border-radius:var(--dp-radius-md);
 border:1px solid var(--dp-border-subtle);
 background:var(--dp-bg-surface);
 color:var(--dp-text-muted);
 font-size:12px;
 font-weight:600;
 display:flex;
 align-items:center;
 gap:6px;
}
.dp-step-chip.is-done{
 background:var(--dp-success-bg);
 border-color:var(--dp-success-border);
 color:var(--dp-success-fg);
}
.dp-step-chip.is-current{
 background:var(--dp-brand-soft);
 border-color:var(--dp-brand-primary);
 color:var(--dp-brand-primary-dark);
}
.dp-queue-timeline{
 display:flex;
 flex-wrap:wrap;
 gap:6px;
 margin-top:8px;
}
.dp-queue-state{
 font-size:11px;
 font-weight:600;
 padding:4px 8px;
 border-radius:999px;
 border:1px solid var(--dp-border-subtle);
 background:var(--dp-bg-subtle);
 color:var(--dp-text-muted);
}
.dp-queue-state.is-done{
 background:var(--dp-success-bg);
 border-color:var(--dp-success-border);
 color:var(--dp-success-fg);
}
.dp-queue-state.is-current{
 background:var(--dp-brand-primary);
 border-color:var(--dp-brand-primary);
 color:#ffffff;
}
/* Clinical Modal & Profile Tabs */
.dp-modal-backdrop{
 position:fixed;
 inset:0;
 z-index:1200;
 background:rgba(15,23,42,.52);
 display:flex;
 align-items:center;
 justify-content:center;
 padding:16px;
}
.dp-modal-backdrop[hidden]{display:none!important;}
.dp-modal-card{
 width:100%;
 max-width:860px;
 max-height:90vh;
 overflow:auto;
 background:var(--dp-bg-surface);
 border:1px solid var(--dp-border-subtle);
 border-radius:16px;
 padding:20px;
 box-shadow:0 20px 50px rgba(15,23,42,.22);
}
.dp-modal-tabs{
 display:flex;
 flex-wrap:wrap;
 gap:6px;
 border-bottom:1px solid var(--dp-border-subtle);
 padding-bottom:10px;
 margin:12px 0 16px;
}
.dp-modal-tab{
 min-height:44px;
 padding:0 12px;
 border-radius:8px;
 border:1px solid var(--dp-border-subtle);
 background:var(--dp-bg-subtle);
 color:var(--dp-text-secondary);
 font-size:13px;
 font-weight:600;
 cursor:pointer;
}
.dp-modal-tab[aria-selected="true"],
.dp-modal-tab.is-active{
 background:var(--dp-brand-primary);
 border-color:var(--dp-brand-primary);
 color:#ffffff;
}
.dp-perm-matrix-wrap{
 width:100%;
 overflow-x:auto;
 border:1px solid var(--dp-border-subtle);
 border-radius:var(--dp-radius-md);
 background:var(--dp-bg-surface);
}
.dp-perm-matrix-wrap table{
 width:100%;
 border-collapse:collapse;
 min-width:640px;
 font-size:13px;
}
.dp-perm-matrix-wrap th,
.dp-perm-matrix-wrap td{
 padding:10px 12px;
 border-bottom:1px solid var(--dp-border-subtle);
 text-align:left;
}
/* Flat Minimal Overrides for Legacy Perspective Cards */
.dp-flat-card,
html[data-dp-design] .dp-otp-3d-box,
html[data-dp-design] .dp-3d-shield-wrap,
html[data-dp-design] .dp-3d-otp-slot{
 transform:none!important;
 perspective:none!important;
 transform-style:flat!important;
}
@media(max-width:1024px){
 .dp-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:768px){
 .dp-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
 .dp-modal-card{padding:16px;max-height:94vh;}
}
@media(max-width:480px){
 .dp-filter-bar,
 .dp-kpi-grid{grid-template-columns:1fr;}
 .dp-hospital-card-actions{flex-direction:column;}
 .dp-hospital-card-actions>*{width:100%;}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{
  animation-duration:.01ms!important;
  animation-iteration-count:1!important;
  transition-duration:.01ms!important;
  scroll-behavior:auto!important;
 }
}
