/* NUVORA dark mode — shared across the authenticated application. */
html[data-theme="dark"]{
  color-scheme:dark;
  --paper:#071510;
  --white:#0d211a;
  --ink:#eef2ec;
  --muted:#9aa9a0;
  --green:#285b47;
  --line:#22382f;
  --lime:#314936;
  --gold:#d6b46a;
  --serif:Georgia,'Times New Roman',serif;
  background:#071510;
}
html.theme-transitioning *,
html.theme-transitioning *:before,
html.theme-transitioning *:after{
  transition:background-color .28s ease,color .28s ease,border-color .28s ease,box-shadow .28s ease,fill .28s ease,stroke .28s ease!important;
}
html[data-theme="dark"] body{background:#071510;color:#eef2ec}
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .main-shell,
html[data-theme="dark"] main{background:#071510}
html[data-theme="dark"] .sidebar{background:#091a14;border-color:#20362d}
html[data-theme="dark"] .topbar{background:#0b1d17;border-color:#20362d}
html[data-theme="dark"] .profile-preview-bar{background:#0a1a15!important;border-color:#20362d!important}
html[data-theme="dark"] footer{color:#82958a}
html[data-theme="dark"] footer span{color:#667a70}
html[data-theme="dark"] .breadcrumb{color:#73877b}
html[data-theme="dark"] .breadcrumb strong,
html[data-theme="dark"] .top-clinic{color:#c9d5cc}
html[data-theme="dark"] .clinic-picker{background:#10251e;border-color:#233d32}
html[data-theme="dark"] .clinic-picker small,
html[data-theme="dark"] .nav-label,
html[data-theme="dark"] .side-profile small{color:#7e9186}
html[data-theme="dark"] .clinic-picker strong,
html[data-theme="dark"] .side-profile strong{color:#dce4de}
html[data-theme="dark"] .sidebar nav button{color:#92a39a}
html[data-theme="dark"] .sidebar nav button:hover{background:#10251e}
html[data-theme="dark"] .sidebar nav button.active{background:#173126;color:#f2efe5}
html[data-theme="dark"] .sidebar .side-profile{border-color:#20362d}
html[data-theme="dark"] .help-link,
html[data-theme="dark"] .text-button{color:#94b09f}
html[data-theme="dark"] #out-top{background:#10241d;border-color:#294338;color:#cbd8d0}
html[data-theme="dark"] .demo-tag{background:#10271f;border-color:#203a2f;color:#94af9c}
html[data-theme="dark"] .demo-tag span{background:#75a980}
html[data-theme="dark"] .workspace-menu{background:#10241d;border-color:#294338;color:#a9c4b0}
html[data-theme="dark"] .workspace-drawer-close{background:#132c23;border-color:#294338;color:#a9c4b0}

.theme-pilot-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:34px;
  padding:0 11px;
  border:1px solid #dfe6d7;
  border-radius:999px;
  background:#fbfcf9;
  color:#5e7468;
  font-size:10px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  white-space:nowrap;
  box-shadow:0 4px 14px rgba(23,63,53,.035);
}
.theme-pilot-toggle svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.theme-pilot-toggle:hover{background:#f2f5ee;border-color:#cfdacb}
.theme-pilot-toggle:focus-visible{outline:3px solid rgba(183,196,140,.5);outline-offset:3px}
html[data-theme="dark"] .theme-pilot-toggle{background:#10271f;border-color:#294438;color:#d8e2dc;box-shadow:0 4px 16px rgba(0,0,0,.16)}
html[data-theme="dark"] .theme-pilot-toggle:hover{background:#173126;border-color:#385247;color:#f4efe4}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .field-search,
html[data-theme="dark"] .date-input,
html[data-theme="dark"] .period-select,
html[data-theme="dark"] .clinic-modal input,
html[data-theme="dark"] .clinic-modal select,
html[data-theme="dark"] .clinic-modal textarea,
html[data-theme="dark"] .inline-form textarea{
  background:#10271f!important;
  border-color:#2a4338!important;
  color:#e7eee9!important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#6f8479}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus{border-color:#607f6d!important;box-shadow:0 0 0 3px rgba(111,147,123,.12)!important}
html[data-theme="dark"] option{background:#10271f;color:#eef2ec}

html[data-theme="dark"] .button,
html[data-theme="dark"] .secondary,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .row-button{
  background:#10251e;
  border-color:#294137;
  color:#c6d4cb;
}
html[data-theme="dark"] .button:hover,
html[data-theme="dark"] .secondary:hover,
html[data-theme="dark"] .chip:hover{background:#173126}
html[data-theme="dark"] .primary,
html[data-theme="dark"] .button.primary{background:#285b47;border-color:#285b47;color:#fff}
html[data-theme="dark"] .primary:hover,
html[data-theme="dark"] .button.primary:hover{background:#326a54}
html[data-theme="dark"] .eyebrow{color:#b89d64}
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4{color:#f0f2ec}
html[data-theme="dark"] .muted,
html[data-theme="dark"] .subtitle{color:#91a299}

html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .inline-form,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .metric{
  background:#0d211a!important;
  border-color:#213a30!important;
  color:#e7eee9;
  box-shadow:0 10px 28px rgba(0,0,0,.12);
}
html[data-theme="dark"] .stat-card span{color:#94a69b}
html[data-theme="dark"] .stat-card strong{color:#f0f2ec}
html[data-theme="dark"] .panel-heading,
html[data-theme="dark"] .panel-footer,
html[data-theme="dark"] .day-strip,
html[data-theme="dark"] .lower-strip{
  background:#10241d;
  border-color:#20392f;
}
html[data-theme="dark"] .panel-heading p,
html[data-theme="dark"] .panel-footer{color:#83978b}
html[data-theme="dark"] .appointment{border-color:#20372e}
html[data-theme="dark"] .appointment:hover{background:#112820}
html[data-theme="dark"] .appointment-person strong,
html[data-theme="dark"] .appointment-time{color:#dfe7e1}
html[data-theme="dark"] .appointment-person p,
html[data-theme="dark"] .appointment-time small{color:#7e9187}

html[data-theme="dark"] .table-wrap{border-color:#223a31}
html[data-theme="dark"] table{color:#dfe7e1}
html[data-theme="dark"] th{background:#10241d;color:#82958a}
html[data-theme="dark"] td{border-color:#20372e;color:#cbd7d0}
html[data-theme="dark"] td small{color:#82958a}
html[data-theme="dark"] tr:hover td{background:#10251e}

html[data-theme="dark"] dialog,
html[data-theme="dark"] .clinic-modal,
html[data-theme="dark"] .team-detail,
html[data-theme="dark"] .clinic-profile-confirm,
html[data-theme="dark"] .my-ai-modal{
  background:#0d211a!important;
  border-color:#294137!important;
  color:#e8eee9!important;
  box-shadow:0 28px 90px rgba(0,0,0,.48)!important;
}
html[data-theme="dark"] dialog::backdrop{background:rgba(0,7,5,.72)}
html[data-theme="dark"] .modal-head{border-color:#243d33}
html[data-theme="dark"] .modal-head p{color:#8fa095}

html[data-theme="dark"] .admin-home-hero{
  border-color:#203a30;
  background:linear-gradient(135deg,#10271f 0%,#0d211a 54%,#122c23 100%);
  box-shadow:0 18px 45px rgba(0,0,0,.18)
}
html[data-theme="dark"] .admin-home-hero h1{color:#f4efe4}
html[data-theme="dark"] .admin-home-hero h1 em{color:#9caf9f}
html[data-theme="dark"] .admin-home-hero>div>p:not(.eyebrow){color:#9baba1}
html[data-theme="dark"] .admin-home-date{background:#132a22;border-color:#294238;color:#9eaea4}
html[data-theme="dark"] .admin-home-metric,
html[data-theme="dark"] .admin-priorities,
html[data-theme="dark"] .admin-home-panel,
html[data-theme="dark"] .admin-quick{
  background:#0d211a;
  border-color:#213a30;
  box-shadow:0 10px 28px rgba(0,0,0,.14)
}
html[data-theme="dark"] .admin-home-metric-icon{background:#152e25;color:#90b09c}
html[data-theme="dark"] .admin-home-metric.attention .admin-home-metric-icon,
html[data-theme="dark"] .admin-home-metric.support .admin-home-metric-icon,
html[data-theme="dark"] .admin-priority-icon{background:#30291d;color:#d8b66c}
html[data-theme="dark"] .admin-home-metric small,
html[data-theme="dark"] .admin-home-metric p,
html[data-theme="dark"] .admin-priorities>header>span,
html[data-theme="dark"] .admin-timeline-row small,
html[data-theme="dark"] .admin-team-list small{color:#7f9287}
html[data-theme="dark"] .admin-home-metric strong,
html[data-theme="dark"] .admin-priorities h2,
html[data-theme="dark"] .admin-home-panel h2,
html[data-theme="dark"] .admin-quick h2,
html[data-theme="dark"] .admin-timeline-row strong,
html[data-theme="dark"] .admin-team-list strong{color:#eef2ec}
html[data-theme="dark"] .admin-priority-card{background:#10251e;border-color:#243d33;color:#d9e3dc}
html[data-theme="dark"] .admin-priority-card strong{color:#cbd8d0}
html[data-theme="dark"] .admin-priority-card strong b{color:#f1efe7}
html[data-theme="dark"] .admin-priority-card p{color:#82958a}
html[data-theme="dark"] .admin-priority-arrow{background:#30291d;color:#d8b66c}
html[data-theme="dark"] .admin-priority-clear{background:#10281f;border-color:#345242}
html[data-theme="dark"] .admin-priority-clear>span{background:#173126}
html[data-theme="dark"] .admin-timeline-row,
html[data-theme="dark"] .admin-team-list article,
html[data-theme="dark"] .admin-home-finance dl div{border-color:#20382f}
html[data-theme="dark"] .admin-timeline-row>i{border-color:#0d211a}
html[data-theme="dark"] .admin-status{background:#162b24;color:#9cad9f}
html[data-theme="dark"] .admin-status.confirmed,
html[data-theme="dark"] .admin-status.progress,
html[data-theme="dark"] .admin-status.arrived{background:#163123;color:#81b88e}
html[data-theme="dark"] .admin-status.waiting{background:#31291c;color:#d0ad65}
html[data-theme="dark"] .admin-team-avatar{background:linear-gradient(145deg,#183329,#202b22);border-color:#294238;color:#bfd0c5}
html[data-theme="dark"] .admin-team-state{background:#142a22;color:#8fa096}
html[data-theme="dark"] .admin-finance-highlight{background:linear-gradient(135deg,#29251b,#10231c);border-color:#4c4028}
html[data-theme="dark"] .admin-finance-highlight>span{background:#342d1f;color:#d8b66c}
html[data-theme="dark"] .admin-finance-highlight strong,
html[data-theme="dark"] .admin-home-finance dd{color:#eef2ec}
html[data-theme="dark"] .admin-empty-state span{background:#152d24}
html[data-theme="dark"] .admin-quick-action{background:#10251e;border-color:#243d33}
html[data-theme="dark"] .admin-quick-action strong{color:#dbe5de}
html[data-theme="dark"] .admin-quick-action small{color:#809389}

html[data-theme="dark"] .na-workspace{--na-line:#263f34}
html[data-theme="dark"] .na-toolbar,
html[data-theme="dark"] .na-board-heading{background:linear-gradient(110deg,#10251e,#0d211a);border-color:#263f34}
html[data-theme="dark"] .na-workspace .secondary,
html[data-theme="dark"] .na-date-controls input,
html[data-theme="dark"] .na-professional-filter select,
html[data-theme="dark"] .na-quick-filters button,
html[data-theme="dark"] .na-view-switch button.active,
html[data-theme="dark"] .na-grid-head,
html[data-theme="dark"] .na-hour,
html[data-theme="dark"] .na-list-view{
  background:#0d211a!important;
  border-color:#294237!important;
  color:#cbd8d0!important;
}
html[data-theme="dark"] .na-hour{box-shadow:-20px 0 #0d211a}
html[data-theme="dark"] .na-date-controls button{background:#152d24;border-color:#2b463a;color:#9fb4a7}
html[data-theme="dark"] .na-slot{background:#10251e;border-color:#314b3f;color:#9bb19f}
html[data-theme="dark"] .na-slot:hover{background:#173126;border-color:#52725e}
html[data-theme="dark"] .na-unavailable{background:repeating-linear-gradient(135deg,#101f1a,#101f1a 5px,#0c1915 5px,#0c1915 6px);border-color:#22362e;color:#64776c}
html[data-theme="dark"] .na-unavailable.na-blocked{background:#242119;border-color:#4a3c29;color:#ad9664}
html[data-theme="dark"] .na-status-waiting{background:#30291c;border-color:#493e2b;border-left-color:#c0a05f}
html[data-theme="dark"] .na-status-completed{background:#162820;border-left-color:#66806d}

html[data-theme="dark"] .team-overview,
html[data-theme="dark"] .team-detail-header{background:linear-gradient(110deg,#132b22,#0d211a 70%);border-color:#294137}
html[data-theme="dark"] .team-workspace .secondary,
html[data-theme="dark"] .team-workspace .team-fields input,
html[data-theme="dark"] .team-workspace .team-fields select,
html[data-theme="dark"] .team-workspace .team-discount input,
html[data-theme="dark"] .team-workspace .schedule-day,
html[data-theme="dark"] .team-workspace .schedule-day input[type=time],
html[data-theme="dark"] .team-profile-aside,
html[data-theme="dark"] .team-permission,
html[data-theme="dark"] .team-audit,
html[data-theme="dark"] #member-permissions-form>.team-form-footer{
  background:#10251e!important;
  border-color:#294137!important;
  color:#cbd8d0!important;
}
html[data-theme="dark"] .team-practitioner-option,
html[data-theme="dark"] .team-role-summary{background:#152d24;border-color:#304a3e;color:#9eb2a4}
html[data-theme="dark"] .team-permission:has(input:checked){background:#173126;border-color:#3b5949}
html[data-theme="dark"] .team-workspace fieldset:disabled .team-fields input{background:#0f201a;color:#74877c}
html[data-theme="dark"] .team-empty{background:#0f211a;border-color:#2c463a;color:#788b80}

html[data-theme="dark"] .metric,
html[data-theme="dark"] .finance-secondary-head,
html[data-theme="dark"] .finance-management-grid>button,
html[data-theme="dark"] .finance-own-payout,
html[data-theme="dark"] .finance-own-payout-values article{
  background:#0d211a!important;
  border-color:#294137!important;
  color:#c9d7cf!important;
}
html[data-theme="dark"] .period-shortcuts button,
html[data-theme="dark"] .workspace-tabs button,
html[data-theme="dark"] .row-actions button{background:#10251e;border-color:#294137;color:#a6b9ae}
html[data-theme="dark"] .workspace-tabs button.active{background:#2c604a;color:#fff;border-color:#2c604a}
html[data-theme="dark"] #fp .patient-insurance-fields{background:linear-gradient(135deg,#2b271c,#10231c);border-color:#4c4028}
html[data-theme="dark"] #fp .patient-insurance-fields select,
html[data-theme="dark"] #fp .patient-insurance-fields input{background:#10271f!important}

html[data-theme="dark"] .odontogram-tooth{background:#10251e!important;border-color:#294238!important}
html[data-theme="dark"] .odontogram-tooth:hover{background:#173126!important;border-color:#466454!important}
html[data-theme="dark"] .odonto-condition,
html[data-theme="dark"] .odonto-face{background:#10251e;border-color:#294238;color:#cbd8d0}
html[data-theme="dark"] .odonto-surfaces{background:#122a21;border-color:#294238}
html[data-theme="dark"] .odonto-face-count{background:#173126;color:#9fb49f}

html[data-theme="dark"] .appointment-summary{background:linear-gradient(120deg,#152f25,#0f211a);border-color:#2b4639}
html[data-theme="dark"] .appointment-stage{background:#152a22;color:#9bad9f}
html[data-theme="dark"] .appointment-stage-arrived{background:#30291c;color:#d0ad65}
html[data-theme="dark"] .appointment-stage-cancelled{background:#301f1d;color:#cf9081}
html[data-theme="dark"] .appointment-option{background:#10251e;border-color:#294137;color:#9fbea8}
html[data-theme="dark"] .appointment-option:not(:disabled):hover{background:#173126;border-color:#486a55}
html[data-theme="dark"] .appointment-option:disabled{background:#0f201a}
html[data-theme="dark"] .appointment-registration-ready{background:#162f24;color:#88b48d}
html[data-theme="dark"] .appointment-cancellation-history,
html[data-theme="dark"] .appointment-cancel-note{background:#2a261b;border-color:#4b402c;color:#c9af76}

html[data-theme="dark"] .encounter-shortcuts article,
html[data-theme="dark"] .encounter-item{background:#10251e;border-color:#294137}
html[data-theme="dark"] .clinical-alerts{background:#29261c;border-color:#4d432d}
html[data-theme="dark"] .encounter-desk-fields,
html[data-theme="dark"] .empty-encounter{background:#122a21;color:#95a89d}

html[data-theme="dark"] .patient-summary-hero{background:linear-gradient(135deg,#10271f 0%,#0d211a 62%,#162a21 100%);border-color:#233c32}
html[data-theme="dark"] .patient-summary-avatar{background:linear-gradient(145deg,#193329,#2b291f);border-color:#294137;color:#c6d7cc}
html[data-theme="dark"] .patient-summary-avatar i{border-color:#0d211a}
html[data-theme="dark"] .patient-summary-detail{border-color:#20382f}
html[data-theme="dark"] .patient-summary-detail>span{background:#152d24;color:#91b09d}
html[data-theme="dark"] .patient-summary-detail strong{color:#cbd8d0}
html[data-theme="dark"] .patient-summary-metric,
html[data-theme="dark"] .patient-summary-card,
html[data-theme="dark"] .patient-summary-side{background:#0d211a;border-color:#223a31;box-shadow:0 9px 26px rgba(0,0,0,.15)}
html[data-theme="dark"] .patient-summary-card>header,
html[data-theme="dark"] .patient-summary-side>header{border-color:#20382f}
html[data-theme="dark"] .patient-summary-card header button{background:#10251e;border-color:#294137;color:#9caf9f}
html[data-theme="dark"] .patient-history-head{background:#10241d;color:#7f9287}
html[data-theme="dark"] .patient-history-row{background:#0d211a;border-color:#20382f;color:#cbd8d0}
html[data-theme="dark"] .patient-history-row:hover{background:#10251e}

html[data-theme="dark"] .clinic-profile-card{background:linear-gradient(135deg,#10271f,#0d211a 60%,#25251c);border-color:#294137}
html[data-theme="dark"] .clinic-profile-completeness,
html[data-theme="dark"] .clinic-profile-note{background:#152d24;border-color:#304a3e;color:#98aa9f}
html[data-theme="dark"] .clinic-profile-fact{background:#10251e;border-color:#294137}
html[data-theme="dark"] .clinic-profile-edit-warning,
html[data-theme="dark"] .clinic-profile-confirm-note{background:#2b261b;border-color:#4c402b;color:#c6ad77}
html[data-theme="dark"] .clinic-profile-confirm-summary{background:#10251e;border-color:#294137}

html[data-theme="dark"] #my-ai-root{
  --ai-ink:#eef2ec;
  --ai-muted:#94a79c;
  --ai-line:#263f34;
  --ai-paper:#0d211a;
  --ai-cream:#122820;
  --ai-gold:#d1ad64;
}
html[data-theme="dark"] .my-ai-shell{background:radial-gradient(circle at 65% 0,#172e24 0,#0d211a 42%,#091813 100%);border-color:#223a31}
html[data-theme="dark"] .my-ai-new,
html[data-theme="dark"] .my-ai-icon-btn,
html[data-theme="dark"] .my-ai-suggestion,
html[data-theme="dark"] .my-ai-composer,
html[data-theme="dark"] .my-ai-action{background:#10251e;border-color:#334a3f;color:#cbd8d0}
html[data-theme="dark"] .my-ai-history button{color:#96a89d}
html[data-theme="dark"] .my-ai-history button:hover{background:#132b22}
html[data-theme="dark"] .my-ai-bubble{background:#162e25;color:#d7e1da}
html[data-theme="dark"] .my-ai-message.user .my-ai-bubble{background:#285b47;color:#fff}
html[data-theme="dark"] .my-ai-pill,
html[data-theme="dark"] .my-ai-sources a{background:#2d281d;color:#d4b36d}
html[data-theme="dark"] .my-ai-action .action-fact,
html[data-theme="dark"] .my-ai-toggle{background:#142b22;color:#9eb1a5}
html[data-theme="dark"] .my-ai-billing-gate{background:linear-gradient(145deg,#0d211a,#091813)}
html[data-theme="dark"] .my-ai-billing-card{background:rgba(13,33,26,.9);border-color:#5b4b2f}

html[data-theme="dark"] .my-plan-current,
html[data-theme="dark"] .my-plan-card:not(.featured),
html[data-theme="dark"] .my-plan-assurance,
html[data-theme="dark"] .my-plan-loading,
html[data-theme="dark"] .my-plan-error,
html[data-theme="dark"] .my-plan-manual{background:#0d211a;border-color:#223a31}
html[data-theme="dark"] .my-plan-mark{background:linear-gradient(145deg,#173126,#332e20);color:#d6b46a}
html[data-theme="dark"] .my-plan-fact{border-color:#20382f}
html[data-theme="dark"] .my-plan-billing{background:#10251e;border-color:#294137}

html[data-theme="dark"] .internal-support-launcher{background:rgba(13,33,26,.96);border-color:rgba(214,180,106,.3);color:#e7eee9}
html[data-theme="dark"] .internal-support-panel{background:#0d211a;border-color:#294137;box-shadow:0 28px 75px rgba(0,0,0,.48)}
html[data-theme="dark"] .internal-support-panel>header{background:linear-gradient(135deg,#152d24,#29251b);border-color:#20382f}
html[data-theme="dark"] .internal-support-panel header button,
html[data-theme="dark"] .internal-support-quick button,
html[data-theme="dark"] .internal-support-cases{background:#10251e;border-color:#294137;color:#a9baaf}
html[data-theme="dark"] .internal-support-context{background:#10241d;border-color:#20382f}
html[data-theme="dark"] .internal-support-warning,
html[data-theme="dark"] .internal-support-case-action{background:#2b261b;border-color:#4d422d;color:#c5ad77}
html[data-theme="dark"] .internal-support-message.bot{background:#142b22;border-color:#294137;color:#a7b8ae}
html[data-theme="dark"] .internal-support-error-note{background:#2b1f1c}
html[data-theme="dark"] .internal-support-case-action.success{background:#142b22;border-color:#365444}
html[data-theme="dark"] .internal-support-panel form{border-color:#20382f}
html[data-theme="dark"] .internal-support-panel form input{background:#10251e;color:#e8eee9;border-color:#294137}
html[data-theme="dark"] .internal-support-cases article{border-color:#20382f}
html[data-theme="dark"] .internal-support-cases article strong{color:#e7eee9}

html[data-theme="dark"] .sh-metric,
html[data-theme="dark"] .sh-directory,
html[data-theme="dark"] .platform-support-metrics article{background:#0d211a;border-color:#223a31}
html[data-theme="dark"] .sh-metric-top>i{background:#152d24;color:#95ac9e}
html[data-theme="dark"] .sh-attention .sh-metric-top>i{background:#30291c;color:#d0ad65}
html[data-theme="dark"] .sh-attention-banner{background:linear-gradient(90deg,#2e291d,#171d17);border-color:#4c422d;color:#c9ad72}
html[data-theme="dark"] .sh-tabs b{background:#142a22;color:#8ea095}
html[data-theme="dark"] .sh-search input,
html[data-theme="dark"] .sh-toolbar select{background:#10251e!important;border-color:#294137!important;color:#dce5df!important}
html[data-theme="dark"] .sh-table-head{background:#10241d;border-color:#20382f;color:#7e9186}
html[data-theme="dark"] .sh-row:hover{background:#10251e}
html[data-theme="dark"] .sh-avatar{background:linear-gradient(135deg,#173126,#2e2a1e);border-color:#294137;color:#a7b9ae}

@media(max-width:620px){
  .theme-pilot-toggle{width:36px;height:36px;min-height:36px;padding:0;border-radius:10px}
  .theme-pilot-label{display:none}
}
@media(prefers-reduced-motion:reduce){
  html.theme-transitioning *,
  html.theme-transitioning *:before,
  html.theme-transitioning *:after{transition:none!important}
}

/* Agenda dark refinement */
html[data-theme="dark"] .na-workspace{
  --na-paper:#0b1f18;
  --na-line:#254036;
  --na-muted:#8fa197;
}
html[data-theme="dark"] .na-toolbar{
  background:linear-gradient(115deg,#10271f 0%,#0d211a 62%,#112a21 100%);
  border-color:#284238;
  box-shadow:0 10px 28px rgba(0,0,0,.10);
}
html[data-theme="dark"] .na-period>p{color:#dbe4de}
html[data-theme="dark"] .na-professional-filter label,
html[data-theme="dark"] .na-week-note,
html[data-theme="dark"] .na-legend,
html[data-theme="dark"] .na-quick-filters>span{color:#82988b}
html[data-theme="dark"] .na-view-switch{
  background:#0a1b15;
  border-color:#294238;
}
html[data-theme="dark"] .na-view-switch button{color:#82968a}
html[data-theme="dark"] .na-view-switch button.active{
  background:#f2f3ea!important;
  color:#173f35!important;
  box-shadow:0 5px 14px rgba(0,0,0,.16);
}
html[data-theme="dark"] .na-quick-filters button{
  background:#10261f;
  border-color:#294238;
  color:#91a69a;
}
html[data-theme="dark"] .na-quick-filters button.selected{
  background:#193429;
  border-color:#3f5d4d;
  color:#dce6df;
}

html[data-theme="dark"] .na-board{
  background:#0b1f18;
  border-color:#29443a;
  box-shadow:0 16px 38px rgba(0,0,0,.16);
}
html[data-theme="dark"] .na-board-heading{
  background:linear-gradient(105deg,#10271f 0%,#0c211a 70%,#11281f 100%);
  border-bottom-color:#284238;
}
html[data-theme="dark"] .na-board-heading h2{color:#f1efe7}
html[data-theme="dark"] .na-board-heading .eyebrow{color:#d0aa5d}
html[data-theme="dark"] .na-hour-badge{
  background:#f0f2e9;
  border-color:#e5e8de;
  color:#617267;
}
html[data-theme="dark"] .na-scroll{
  background:#0b1f18;
  scrollbar-color:#486759 #10231c;
}
html[data-theme="dark"] .na-grid{background:#0b1f18}
html[data-theme="dark"] .na-grid-head{
  background:#0e241c!important;
  border-bottom-color:#29443a!important;
  box-shadow:0 7px 16px rgba(0,0,0,.12);
}
html[data-theme="dark"] .na-time-head{color:#779083}
html[data-theme="dark"] .na-column-heading{border-left-color:#678c6d}
html[data-theme="dark"] .na-column-heading:nth-child(3n){border-left-color:#c0a260}
html[data-theme="dark"] .na-column-heading:nth-child(3n+1){border-left-color:#708b80}
html[data-theme="dark"] .na-column-heading strong{color:#c6d4cb}
html[data-theme="dark"] .na-column-heading small{color:#718a7c}

html[data-theme="dark"] .na-hour-row{
  background:#0b1f18!important;
  border-bottom:1px solid #1e352c!important;
}
html[data-theme="dark"] .na-hour{
  background:#0e241c!important;
  box-shadow:-20px 0 #0e241c!important;
  border-radius:8px;
  padding-left:10px;
}
html[data-theme="dark"] .na-hour strong{color:#a9c0b1}
html[data-theme="dark"] .na-hour small{color:#6f887a}
html[data-theme="dark"] .na-cell{background:transparent}
html[data-theme="dark"] .na-slot{
  background:#102a21!important;
  border:1px solid #28483a!important;
  color:#a9c0b2!important;
  box-shadow:inset 0 1px rgba(255,255,255,.015);
}
html[data-theme="dark"] .na-slot strong{color:#aec5b6}
html[data-theme="dark"] .na-slot strong>span{color:#7fa088}
html[data-theme="dark"] .na-slot small{color:#718b7c}
html[data-theme="dark"] .na-slot:hover{
  background:#17372b!important;
  border-color:#547660!important;
  transform:translateY(-1px);
}
html[data-theme="dark"] .na-unavailable{
  background:repeating-linear-gradient(135deg,#0c1c16,#0c1c16 5px,#0a1813 5px,#0a1813 7px)!important;
  border-color:#1f352c!important;
  color:#61776b!important;
}
html[data-theme="dark"] .na-unavailable small{color:#53685d}
html[data-theme="dark"] .na-unavailable.na-blocked{
  background:#252218!important;
  border-color:#493d29!important;
  color:#b19a68!important;
}
html[data-theme="dark"] .na-blocked small{color:#8f7c56}

html[data-theme="dark"] .na-booking{
  background:#173126!important;
  border-color:#355342!important;
  border-left-color:#7fa06d!important;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}
html[data-theme="dark"] .na-booking-open{color:#b8cbbd}
html[data-theme="dark"] .na-booking-open strong{color:#d7e2db}
html[data-theme="dark"] .na-booking-time,
html[data-theme="dark"] .na-treatment{color:#8da396}
html[data-theme="dark"] .na-booking-status{color:#89a779}
html[data-theme="dark"] .na-booking-open:hover{background:rgba(255,255,255,.025)}
html[data-theme="dark"] .na-status-waiting{
  background:#2d281c!important;
  border-color:#4d412d!important;
  border-left-color:#c0a05f!important;
}
html[data-theme="dark"] .na-status-waiting .na-booking-open strong{color:#dec789}
html[data-theme="dark"] .na-status-waiting .na-booking-time,
html[data-theme="dark"] .na-status-waiting .na-treatment,
html[data-theme="dark"] .na-status-waiting .na-booking-status{color:#aa9362}
html[data-theme="dark"] .na-status-in_progress{
  background:#173228!important;
  border-left-color:#68a17a!important;
}
html[data-theme="dark"] .na-status-completed{
  background:#182b22!important;
  border-color:#31473b!important;
  border-left-color:#8da779!important;
}
html[data-theme="dark"] .na-status-completed .na-booking-open strong{color:#c8d8cb}
html[data-theme="dark"] .na-status-completed .na-booking-time,
html[data-theme="dark"] .na-status-completed .na-booking-status{color:#809a7d}

html[data-theme="dark"] .na-board-footer{
  background:#0e241c!important;
  border-top-color:#29443a!important;
  color:#70887b;
}
html[data-theme="dark"] .na-list-view,
html[data-theme="dark"] .na-empty,
html[data-theme="dark"] .na-block-list{
  background:#0d211a!important;
  border-color:#294137!important;
}
html[data-theme="dark"] .na-empty h2{color:#e8eee9}
html[data-theme="dark"] .na-empty p,
html[data-theme="dark"] .na-block-list summary{color:#8ea196}
html[data-theme="dark"] .na-block-list .block-list-row{border-color:#20382f}

@media(max-width:760px){
  html[data-theme="dark"] .na-hour-row{background:#0b1f18!important}
  html[data-theme="dark"] .na-hour{
    background:transparent!important;
    box-shadow:none!important;
    padding-left:0;
  }
  html[data-theme="dark"] .na-week-picker{
    background:#0e241c!important;
    border-color:#294238;
  }
  html[data-theme="dark"] .na-week-picker button{
    background:#102a21!important;
    border-color:#29483a!important;
    color:#93a99b!important;
  }
  html[data-theme="dark"] .na-week-picker button>span{
    background:#183328!important;
    color:#91a891!important;
  }
  html[data-theme="dark"] .na-week-picker button[aria-pressed=true]{
    background:#2b6049!important;
    border-color:#2b6049!important;
    color:#f0f3ea!important;
  }
  html[data-theme="dark"] .na-mobile-day-label{
    background:#0e241c!important;
    border-color:#294238!important;
    color:#97aa9e!important;
  }
  html[data-theme="dark"] .na-cell-label{color:#8ba094}
}

/* Support center dark refinement */
html[data-theme="dark"] .sc-page{color:#e9eee9}
html[data-theme="dark"] .sc-hero{
  border-color:#294238;
  background:
    radial-gradient(ellipse at 100% 0%,rgba(184,146,82,.12) 0,transparent 54%),
    linear-gradient(125deg,#10271f,#0d211a 62%,#122b22);
  box-shadow:0 18px 48px rgba(0,0,0,.18)
}
html[data-theme="dark"] .sc-kicker{color:#d0ad66}
html[data-theme="dark"] .sc-hero h1{color:#f2efe7}
html[data-theme="dark"] .sc-hero h1 em{color:#9bb09e}
html[data-theme="dark"] .sc-hero p{color:#97a99f}
html[data-theme="dark"] .sc-hero>div>small{color:#7f9388}
html[data-theme="dark"] .sc-button{background:#2b5f49;border-color:#2b5f49;color:#fff}
html[data-theme="dark"] .sc-button:hover{background:#356d55;box-shadow:0 8px 20px rgba(0,0,0,.18)}
html[data-theme="dark"] .sc-button.ghost,
html[data-theme="dark"] .sc-button.outline{
  background:#10271f;
  border-color:#345044;
  color:#dfe8e2
}
html[data-theme="dark"] .sc-button.ghost:hover,
html[data-theme="dark"] .sc-button.outline:hover{background:#173126}
html[data-theme="dark"] .sc-orb:before,
html[data-theme="dark"] .sc-orb:after{border-color:rgba(214,180,106,.16)}
html[data-theme="dark"] .sc-orb i{
  border-color:rgba(214,180,106,.26);
  background:rgba(16,39,31,.9);
  box-shadow:0 16px 38px rgba(0,0,0,.24)
}
html[data-theme="dark"] .sc-orb span{color:#e8eee9}
html[data-theme="dark"] .sc-orb b{color:#d0ad66}

html[data-theme="dark"] .sc-metrics article{
  background:#0d211a;
  border-color:#223a31;
  box-shadow:0 8px 24px rgba(0,0,0,.12)
}
html[data-theme="dark"] .sc-metrics span{color:#80948a}
html[data-theme="dark"] .sc-metrics strong{color:#edf1ec}
html[data-theme="dark"] .sc-metrics small{color:#84988d}

html[data-theme="dark"] .sc-channel-grid>button{
  background:#0d211a;
  border-color:#223a31;
  color:#e2e9e4;
  box-shadow:0 7px 20px rgba(0,0,0,.08)
}
html[data-theme="dark"] .sc-channel-grid>button:hover{
  background:#10271f;
  border-color:#6f6544;
  box-shadow:0 10px 26px rgba(0,0,0,.14)
}
html[data-theme="dark"] .sc-channel-grid>button>span{
  background:#29261c;
  color:#d2b26e
}
html[data-theme="dark"] .sc-channel-grid small{color:#82958a}
html[data-theme="dark"] .sc-channel-grid b{color:#6f8579}

html[data-theme="dark"] .sc-tickets{
  background:#0d211a;
  border-color:#223a31;
  box-shadow:0 10px 28px rgba(0,0,0,.10)
}
html[data-theme="dark"] .sc-tickets h2{color:#eef2ec}
html[data-theme="dark"] .sc-tickets header p{color:#82958a}
html[data-theme="dark"] .sc-tools input,
html[data-theme="dark"] .sc-tools select{
  background:#10271f!important;
  border-color:#2a4338!important;
  color:#e3ebe5!important
}
html[data-theme="dark"] .sc-ticket{
  background:#0d211a;
  border-top-color:#20382f;
  color:#dce6df
}
html[data-theme="dark"] .sc-ticket:hover{background:#10271f}
html[data-theme="dark"] .sc-ticket-icon{
  background:#29261c;
  color:#d1af67
}
html[data-theme="dark"] .sc-ticket strong{color:#dfe8e2}
html[data-theme="dark"] .sc-ticket small,
html[data-theme="dark"] .sc-ticket div>span{color:#7f9287}
html[data-theme="dark"] .sc-empty{color:#81958a}
html[data-theme="dark"] .sc-empty>span{color:#d0ad66}
html[data-theme="dark"] .sc-empty h3{color:#e6ece7}

html[data-theme="dark"] .sc-overlay{
  background:rgba(2,12,9,.72);
  color:#e9eee9
}
html[data-theme="dark"] .sc-dialog{
  background:#0d211a;
  border-color:#294137;
  box-shadow:0 36px 100px rgba(0,0,0,.5)
}
html[data-theme="dark"] .sc-dialog>header{
  background:rgba(16,39,31,.96);
  border-bottom-color:#243d33
}
html[data-theme="dark"] .sc-dialog h2{color:#eef2ec}
html[data-theme="dark"] .sc-close{
  background:#10271f;
  border-color:#294137;
  color:#cbd8d0
}
html[data-theme="dark"] .sc-intro{color:#8fa096}
html[data-theme="dark"] .sc-form label{color:#a9b8af}
html[data-theme="dark"] .sc-form label>span{color:#d0ad66}
html[data-theme="dark"] .sc-form input:not([type=file]),
html[data-theme="dark"] .sc-form textarea,
html[data-theme="dark"] .sc-form select{
  background:#10271f!important;
  border-color:#2a4338!important;
  color:#e5ece7!important
}
html[data-theme="dark"] .sc-form input:focus,
html[data-theme="dark"] .sc-form textarea:focus,
html[data-theme="dark"] .sc-form select:focus{
  border-color:#607f6d!important;
  box-shadow:0 0 0 3px rgba(111,147,123,.12)!important
}
html[data-theme="dark"] .sc-upload{
  background:#10251e;
  border-color:#3a5548;
  color:#d7e1da
}
html[data-theme="dark"] .sc-upload p,
html[data-theme="dark"] .sc-file-list small{color:#81958a}
html[data-theme="dark"] .sc-privacy{
  background:#2b261b;
  border-color:#4d412d;
  color:#c5ad77
}
html[data-theme="dark"] .sc-form>footer{border-color:#20382f}
html[data-theme="dark"] .sc-form>footer>span,
html[data-theme="dark"] .sc-case-meta>span,
html[data-theme="dark"] .sc-muted{color:#80948a}

html[data-theme="dark"] .sc-report{
  background:#10251e;
  border-color:#294137
}
html[data-theme="dark"] .sc-report p,
html[data-theme="dark"] .sc-thread p{color:#9aaca1}
html[data-theme="dark"] .sc-report h4{color:#798c81}
html[data-theme="dark"] .sc-attachment-list>button{
  background:#10251e;
  border-color:#294137;
  color:#dce5df
}
html[data-theme="dark"] .sc-attachment-list small{color:#7f9287}
html[data-theme="dark"] .sc-thread h3{color:#edf1ec}
html[data-theme="dark"] .sc-thread>article{
  background:#10251e;
  border-color:#294137
}
html[data-theme="dark"] .sc-thread>article.staff{
  background:#173126;
  border-color:#3a5949
}
html[data-theme="dark"] .sc-thread strong{color:#e1e9e4}
html[data-theme="dark"] .sc-thread small{color:#80948a}
html[data-theme="dark"] .sc-master-conversation{border-color:#20382f}

html[data-theme="dark"] .support-kind{background:#162a22;color:#9fb1a6}
html[data-theme="dark"] .support-kind.feature,
html[data-theme="dark"] .support-kind.implementation{background:#2b261b;color:#d2b26e}
html[data-theme="dark"] .support-kind.issue{background:#2b1f1c;color:#cf9385}
html[data-theme="dark"] .support-kind.access{background:#1b2530;color:#91a8c1}
html[data-theme="dark"] .support-status{background:#162a22;color:#8fa096}
html[data-theme="dark"] .support-status.new{background:#2e281c;color:#d0ad66}
html[data-theme="dark"] .support-status.progress{background:#182733;color:#8fa9bd}
html[data-theme="dark"] .support-status.resolved{background:#173126;color:#87b68f}

@media(max-width:620px){
  html[data-theme="dark"] .sc-hero{background:linear-gradient(145deg,#10271f,#0d211a)}
}

/* Pulse dark refinement */
html[data-theme="dark"] .nuvora-pulse{
  border-color:#294238;
  background:
    radial-gradient(circle at 90% 8%,rgba(214,180,106,.10),transparent 30%),
    radial-gradient(circle at 8% 90%,rgba(77,112,91,.10),transparent 32%),
    linear-gradient(145deg,#10271f,#0d211a 62%,#0b1d17);
  box-shadow:0 18px 46px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.02)
}
html[data-theme="dark"] .nuvora-pulse-glow{
  border-color:rgba(214,180,106,.14);
  box-shadow:0 0 0 35px rgba(214,180,106,.022),0 0 0 74px rgba(214,180,106,.012)
}
html[data-theme="dark"] .nuvora-pulse-head .eyebrow{color:#d0ad66}
html[data-theme="dark"] .nuvora-pulse-head h2{color:#f0f2ec}
html[data-theme="dark"] .nuvora-pulse-head>div>p:not(.eyebrow){color:#91a49a}
html[data-theme="dark"] .nuvora-pulse-live{
  background:#10271f;
  border-color:#2a4338;
  box-shadow:0 8px 20px rgba(0,0,0,.12)
}
html[data-theme="dark"] .nuvora-pulse-live span{color:#cfe0d5}
html[data-theme="dark"] .nuvora-pulse-live small{color:#7f9388}
html[data-theme="dark"] .nuvora-pulse-summary{
  background:#0f251e;
  border-color:#294238;
  box-shadow:0 10px 28px rgba(0,0,0,.14)
}
html[data-theme="dark"] .nuvora-pulse-mark{
  background:linear-gradient(145deg,#2c5f4a,#173f35);
  color:#e2c985;
  box-shadow:0 12px 26px rgba(0,0,0,.18)
}
html[data-theme="dark"] .nuvora-pulse-summary small{color:#d0ad66}
html[data-theme="dark"] .nuvora-pulse-summary strong{color:#dfe9e3}
html[data-theme="dark"] .nuvora-pulse-summary p{color:#82968a}
html[data-theme="dark"] .nuvora-pulse-ai{
  background:#2b5f49;
  border-color:#2b5f49;
  color:#fff;
  box-shadow:0 9px 20px rgba(0,0,0,.14)
}
html[data-theme="dark"] .nuvora-pulse-ai:hover{background:#356d55}
html[data-theme="dark"] #nuvora-pulse-refresh{
  background:#10271f;
  border-color:#2a4338;
  color:#b8cbbf;
  box-shadow:0 8px 18px rgba(0,0,0,.12)
}
html[data-theme="dark"] #nuvora-pulse-refresh:hover{
  background:#173126;
  border-color:#5b6147
}
html[data-theme="dark"] .nuvora-pulse-signal{
  background:#0f251e;
  border-color:#294238;
  box-shadow:0 8px 22px rgba(0,0,0,.11)
}
html[data-theme="dark"] .nuvora-pulse-signal:hover{
  background:#122a21;
  border-color:#5b6147;
  box-shadow:0 15px 30px rgba(0,0,0,.15)
}
html[data-theme="dark"] .nuvora-pulse-signal-icon{background:#173126;color:#91b09c}
html[data-theme="dark"] .nuvora-pulse-signal.urgent .nuvora-pulse-signal-icon{background:#2b1f1c;color:#cf9385}
html[data-theme="dark"] .nuvora-pulse-signal.attention .nuvora-pulse-signal-icon{background:#2d281c;color:#d0ad66}
html[data-theme="dark"] .nuvora-pulse-signal.finance .nuvora-pulse-signal-icon{background:#172d25;color:#8eb2a0}
html[data-theme="dark"] .nuvora-pulse-signal.opportunity .nuvora-pulse-signal-icon{background:#173126;color:#88b691}
html[data-theme="dark"] .nuvora-pulse-signal.ai .nuvora-pulse-signal-icon{background:#241f2a;color:#b59bc4}
html[data-theme="dark"] .nuvora-pulse-signal small{color:#81948a}
html[data-theme="dark"] .nuvora-pulse-signal strong{color:#dce6df}
html[data-theme="dark"] .nuvora-pulse-signal p{color:#879a8f}
html[data-theme="dark"] .nuvora-pulse-signal b{color:#9bb2a5}
html[data-theme="dark"] .nuvora-pulse-compare article{
  background:#0f251e;
  border-color:#294238
}
html[data-theme="dark"] .nuvora-pulse-compare small{color:#d0ad66}
html[data-theme="dark"] .nuvora-pulse-compare strong{color:#dce6df}
html[data-theme="dark"] .nuvora-pulse-compare span{color:#81948a}
html[data-theme="dark"] .nuvora-pulse-insight{
  background:#0f251e;
  border-color:#294238
}
html[data-theme="dark"] .nuvora-pulse-insight>span{background:#2d281c;color:#d0ad66}
html[data-theme="dark"] .nuvora-pulse-insight small{color:#d0ad66}
html[data-theme="dark"] .nuvora-pulse-insight strong{color:#dbe5df}
html[data-theme="dark"] .nuvora-pulse-insight p{color:#81948a}
html[data-theme="dark"] .nuvora-pulse-clear{
  background:#10271f;
  border-color:#2c453a
}
html[data-theme="dark"] .nuvora-pulse-clear>span{background:#173126;color:#88b691}
html[data-theme="dark"] .nuvora-pulse-clear strong{color:#cfe0d5}
html[data-theme="dark"] .nuvora-pulse-clear p{color:#81948a}
html[data-theme="dark"] .nuvora-pulse-foot{color:#7c9185}

/* Team dark refinement */
html[data-theme="dark"] .team-workspace{
  --team-line:#294238;
  --team-muted:#84998d;
  --team-surface:#0d211a;
  color:#e7eee9
}
html[data-theme="dark"] .team-heading h1{color:#eef2ec}
html[data-theme="dark"] .team-heading h1 em{color:#9eb2a4}
html[data-theme="dark"] .team-heading>div>p:last-child,
html[data-theme="dark"] .team-heading .eyebrow{color:#84998d}
html[data-theme="dark"] .team-workspace .primary{
  background:#2b5f49;
  border-color:#2b5f49;
  color:#fff
}
html[data-theme="dark"] .team-workspace .primary:hover{background:#356d55}
html[data-theme="dark"] .team-workspace .secondary{
  background:#10271f!important;
  border-color:#2a4338!important;
  color:#cbd8d0!important
}
html[data-theme="dark"] .team-overview{
  background:linear-gradient(110deg,#132b22,#0d211a 70%);
  border-color:#294137
}
html[data-theme="dark"] .team-overview-intro{color:#91a49a}
html[data-theme="dark"] .team-overview-intro>svg{background:#173126;color:#8fb09b}
html[data-theme="dark"] .team-overview-intro strong{color:#d7e2db}
html[data-theme="dark"] .team-stat{border-color:#294238}
html[data-theme="dark"] .team-stat strong{color:#e8eee9}
html[data-theme="dark"] .team-stat span{color:#82968a}
html[data-theme="dark"] .team-workspace h2,
html[data-theme="dark"] .team-workspace h3{color:#e7eee9}
html[data-theme="dark"] .team-workspace h4{color:#a0b1a7}
html[data-theme="dark"] .team-directory-title>span{
  background:#10271f;
  border-color:#294238;
  color:#91a49a
}
html[data-theme="dark"] .team-search,
html[data-theme="dark"] .team-filter{
  background:#0f251e;
  border-color:#294238
}
html[data-theme="dark"] .team-search svg{color:#8aa092}
html[data-theme="dark"] .team-workspace .team-search input{
  color:#e7eee9!important;
  background:transparent!important;
  border:0!important
}
html[data-theme="dark"] .team-workspace .team-search input::placeholder{color:#687d71}
html[data-theme="dark"] .team-filter>span{color:#81958a}
html[data-theme="dark"] .team-filter select{
  color:#d8e2dc!important;
  background:transparent!important;
  border:0!important
}
html[data-theme="dark"] .team-member{
  background:#0f251e;
  border-color:#294238;
  box-shadow:0 7px 20px rgba(0,0,0,.08)
}
html[data-theme="dark"] .team-member:hover{
  background:#122a21;
  border-color:#415d4f;
  box-shadow:0 12px 30px rgba(0,0,0,.14)
}
html[data-theme="dark"] .team-avatar{background:#173126;color:#9fbea9}
html[data-theme="dark"] .team-avatar-admin,
html[data-theme="dark"] .team-avatar-platform{background:#163126;color:#a9c5b3}
html[data-theme="dark"] .team-avatar-reception{background:#2b281f;color:#d3b875}
html[data-theme="dark"] .team-member-identity strong{color:#e2eae5}
html[data-theme="dark"] .team-member-identity>span{color:#81958a}
html[data-theme="dark"] .team-status{color:#7f9087}
html[data-theme="dark"] .team-status.is-active{color:#88b691}
html[data-theme="dark"] .team-status.is-active i{background:#7faf7d;box-shadow:0 0 0 3px rgba(127,175,125,.08)}
html[data-theme="dark"] .team-role{background:#173126;color:#9fbea9}
html[data-theme="dark"] .team-owner{background:#2d281c;color:#d1b36c}
html[data-theme="dark"] .team-practitioner{background:#162a22;color:#91a49a}
html[data-theme="dark"] .team-member-footer{border-color:#20382f}
html[data-theme="dark"] .team-member-footer>span{color:#80948a}
html[data-theme="dark"] .team-member-footer button{color:#a9c5b3}
html[data-theme="dark"] .team-registration,
html[data-theme="dark"] .team-detail{
  background:#0d211a;
  border-color:#294137;
  box-shadow:0 10px 34px rgba(0,0,0,.12)
}
html[data-theme="dark"] .team-section-icon{background:#173126;color:#91b09c}
html[data-theme="dark"] .team-section-heading p:last-child,
html[data-theme="dark"] .team-detail-header p:last-child{color:#83978b}
html[data-theme="dark"] .team-form-section{border-color:#20382f}
html[data-theme="dark"] .team-form-section h3>span{background:#173126;color:#8fa196}
html[data-theme="dark"] .team-fields label,
html[data-theme="dark"] .team-discount label,
html[data-theme="dark"] .team-temp-password label{color:#a1b2a7}
html[data-theme="dark"] .team-workspace .team-fields input,
html[data-theme="dark"] .team-workspace .team-fields select,
html[data-theme="dark"] .team-workspace .team-discount input,
html[data-theme="dark"] .team-temp-password input{
  background:#10271f!important;
  border-color:#2a4338!important;
  color:#e5ece7!important
}
html[data-theme="dark"] .team-hint{color:#82968a}
html[data-theme="dark"] .team-practitioner-option,
html[data-theme="dark"] .team-role-summary{
  background:#152d24!important;
  border-color:#304a3e!important;
  color:#9eb2a4!important
}
html[data-theme="dark"] .team-role-summary p{color:#92a69a}
html[data-theme="dark"] .team-workspace .schedule-day{
  background:#10251e!important;
  border-color:#294137!important;
  color:#cbd8d0
}
html[data-theme="dark"] .team-workspace .schedule-day>label:not(.check-label){color:#899d91}
html[data-theme="dark"] .team-workspace .schedule-day input[type=time]{
  background:#10271f!important;
  border-color:#2a4338!important;
  color:#e3ebe5!important
}
html[data-theme="dark"] .team-detail-header{
  background:linear-gradient(100deg,#132b22,#0d211a);
  border-color:#294137
}
html[data-theme="dark"] .team-workspace .team-close{
  background:#10271f;
  border-color:#2a4338;
  color:#a5b7ac
}
html[data-theme="dark"] .team-profile-aside{
  background:#0f251e!important;
  border-color:#20382f!important
}
html[data-theme="dark"] .team-profile-aside dt{color:#7f9287}
html[data-theme="dark"] .team-profile-aside dd{color:#c8d5cd}
html[data-theme="dark"] .team-profile-note{
  background:#152d24;
  border-color:#304a3e
}
html[data-theme="dark"] .team-profile-note p{color:#92a69a}
html[data-theme="dark"] .team-profile-schedule{border-color:#20382f;color:#8ea196}
html[data-theme="dark"] .team-profile-schedule small{color:#74877c}
html[data-theme="dark"] .team-tabs{border-color:#20382f}
html[data-theme="dark"] .team-tabs button{color:#82968a}
html[data-theme="dark"] .team-tabs button[aria-selected=true]{color:#cfe0d5}
html[data-theme="dark"] .team-panel-heading p{color:#81958a}
html[data-theme="dark"] .team-audit{
  background:#0f251e!important;
  border-color:#294238!important
}
html[data-theme="dark"] .team-audit summary svg{color:#91b09c}
html[data-theme="dark"] .team-audit strong{color:#cfe0d5}
html[data-theme="dark"] .team-audit small,
html[data-theme="dark"] .team-audit-open{color:#80948a}
html[data-theme="dark"] .team-audit>div{border-color:#20382f}
html[data-theme="dark"] .team-access-method{
  background:#10251e;
  border-color:#294137
}
html[data-theme="dark"] .team-access-method:hover{background:#173126;border-color:#3e5b4c}
html[data-theme="dark"] .team-access-method:has(input:checked){
  background:#173126;
  border-color:#4b6a58;
  box-shadow:0 0 0 3px rgba(111,147,123,.08)
}
html[data-theme="dark"] .team-access-method strong{color:#cfe0d5}
html[data-theme="dark"] .team-access-method small{color:#82968a}
html[data-theme="dark"] .team-practitioner-admin{
  background:linear-gradient(135deg,#2b281f,#10251e);
  border-color:#4f422e;
  box-shadow:0 10px 26px rgba(0,0,0,.10)
}
html[data-theme="dark"] .team-practitioner-toggle{background:#294238}
html[data-theme="dark"] .team-practitioner-copy strong{color:#dce6df}
html[data-theme="dark"] .team-practitioner-copy small{color:#81958a}
html[data-theme="dark"] .team-practitioner-badge{background:#2d281c;color:#d0ad66}
html[data-theme="dark"] .team-delete-warning{
  background:#2b1f1c;
  border-color:#4a302a
}
html[data-theme="dark"] .team-delete-icon{background:#38241f;color:#d19a8d}
html[data-theme="dark"] .team-delete-warning strong{color:#e2c7bf}
html[data-theme="dark"] .team-delete-warning p,
html[data-theme="dark"] .team-delete-detail{color:#a88f87}


/* NUVORA · refinamento de contraste no modo escuro */
html[data-theme="dark"]{
  --nuvora-dark-line-strong:rgba(117,145,129,.24);
  --nuvora-dark-line-soft:rgba(117,145,129,.14);
}

/* Tabelas: evita divisórias brancas no dark mode e preserva hierarquia visual */
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .panel{
  border-color:#213a30!important;
}
html[data-theme="dark"] table,
html[data-theme="dark"] thead,
html[data-theme="dark"] tbody,
html[data-theme="dark"] tr{
  border-color:var(--nuvora-dark-line-soft)!important;
}
html[data-theme="dark"] th{
  border-color:var(--nuvora-dark-line-strong)!important;
  border-bottom-color:var(--nuvora-dark-line-strong)!important;
}
html[data-theme="dark"] td{
  border-color:var(--nuvora-dark-line-soft)!important;
  border-bottom-color:var(--nuvora-dark-line-soft)!important;
}
html[data-theme="dark"] .table-wrap tr,
html[data-theme="dark"] .content-card tr{
  border-bottom-color:var(--nuvora-dark-line-soft)!important;
}
html[data-theme="dark"] .table-wrap thead tr,
html[data-theme="dark"] .content-card thead tr{
  border-bottom-color:var(--nuvora-dark-line-strong)!important;
}

/* Nuvora Care: balão permanece claro, mas com texto legível no modo escuro */
html[data-theme="dark"] .sc-care-bubble{
  background:rgba(248,249,245,.97)!important;
  border-color:rgba(23,63,53,.14)!important;
  box-shadow:0 16px 38px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] .sc-care-bubble:before{
  background:#f8f9f5!important;
  border-left-color:rgba(23,63,53,.14)!important;
  border-bottom-color:rgba(23,63,53,.14)!important;
}
html[data-theme="dark"] .sc-care-bubble strong{
  color:#173f35!important;
  opacity:1!important;
}
html[data-theme="dark"] .sc-care-bubble span{
  color:#5f7168!important;
  opacity:1!important;
}

/* Dentist clinical mode · dark */
html[data-theme="dark"] .my-ai-mode-switch{background:#10251e;border-color:#30493e;box-shadow:none}
html[data-theme="dark"] .my-ai-mode-switch button{color:#8fa196}
html[data-theme="dark"] .my-ai-mode-switch button:hover,html[data-theme="dark"] .my-ai-mode-switch button.active{background:#173027;color:#d9e4dd}
html[data-theme="dark"] .my-ai-mode-switch button.clinical.active{background:linear-gradient(135deg,#2a6049,#39745b);color:#fff}
html[data-theme="dark"] .my-ai-clinical-welcome{background:radial-gradient(circle at 50% 0,rgba(48,84,65,.24),rgba(13,33,26,0) 64%)}
html[data-theme="dark"] .my-ai-clinical-mark{background:linear-gradient(145deg,#173027,#2d2a20);border-color:#385144;box-shadow:none}
html[data-theme="dark"] .my-ai-clinical-kicker{color:#d0ad66}
html[data-theme="dark"] .my-ai-suggestion.clinical{background:linear-gradient(145deg,#10251e,#112a21);border-color:#2c4439}
html[data-theme="dark"] .my-ai-suggestion.clinical:hover{border-color:#6c5b39;box-shadow:none}
html[data-theme="dark"] .my-ai-clinical-trust{border-color:#253d33;color:#82968a}
html[data-theme="dark"] .my-ai-clinical-trust span{color:#a8bcae}
html[data-theme="dark"] .my-ai-clinical-trust small{color:#7e9186}
html[data-theme="dark"] .my-ai-clinical-tools{background:#10271f;border-color:#2c4439}
html[data-theme="dark"] .my-ai-clinical-tools strong{color:#cbd9d0}
html[data-theme="dark"] .my-ai-clinical-tools small{color:#788c80}
html[data-theme="dark"] .my-ai-attach{background:#142d24;border-color:#385246;color:#c2d3c8}
html[data-theme="dark"] .my-ai-attach:hover{background:#1a372c;border-color:#4f6c5c}
html[data-theme="dark"] .my-ai-image-preview{background:#10251e;border-color:#2c4439;box-shadow:none}
html[data-theme="dark"] .my-ai-image-preview img{background:#0a1b15;border-color:#30493d}
html[data-theme="dark"] .my-ai-image-preview strong{color:#cbd9d0}
html[data-theme="dark"] .my-ai-image-preview small{color:#778b7f}
html[data-theme="dark"] .my-ai-image-preview button{background:#172f26;color:#8fa197}
html[data-theme="dark"] .my-ai-composer.clinical{border-color:#3a5648;box-shadow:none}
html[data-theme="dark"] .my-ai-disclaimer.clinical{color:#758a7e}
html[data-theme="dark"] .my-ai-message-image{background:#0b1d17;border-color:#30483d;box-shadow:none}


/* Master Operations Control Center · dark */
html[data-theme="dark"] .platform-command-hero{border-color:#315044;background:linear-gradient(115deg,#10271f 0%,#17372b 58%,#24483a 100%);box-shadow:0 18px 42px rgba(0,0,0,.18)}
html[data-theme="dark"] .platform-command-hero.attention{background:linear-gradient(115deg,#10271f 0%,#253c2f 58%,#574b30 130%)}
html[data-theme="dark"] .platform-command-hero.degraded{background:linear-gradient(115deg,#29231e,#49382d)}
html[data-theme="dark"] .platform-ops-metrics article,
html[data-theme="dark"] .platform-ops-panel{background:#0d211a;border-color:#263f34;box-shadow:none}
html[data-theme="dark"] .platform-ops-metrics article.attention{background:linear-gradient(145deg,#151f19,#2a261a);border-color:#4d412a}
html[data-theme="dark"] .platform-metric-icon,
html[data-theme="dark"] .platform-service-icon{background:#142d24;color:#9eb1a4}
html[data-theme="dark"] .platform-ops-metrics article.attention .platform-metric-icon{background:#30291c;color:#d2ad64}
html[data-theme="dark"] .platform-ops-metrics small,
html[data-theme="dark"] .platform-ops-metrics p,
html[data-theme="dark"] .platform-service-grid small,
html[data-theme="dark"] .platform-ops-row small,
html[data-theme="dark"] .platform-support-preview-list small,
html[data-theme="dark"] .platform-system-events span,
html[data-theme="dark"] .platform-system-events time{color:#7f9186}
html[data-theme="dark"] .platform-ops-metrics strong,
html[data-theme="dark"] .platform-ops-panel>header h2,
html[data-theme="dark"] .platform-service-grid strong,
html[data-theme="dark"] .platform-ops-row b,
html[data-theme="dark"] .platform-support-preview-list strong,
html[data-theme="dark"] .platform-system-events strong,
html[data-theme="dark"] .platform-management-heading h2{color:#dce6df}
html[data-theme="dark"] .platform-ops-panel>header,
html[data-theme="dark"] .platform-service-grid article,
html[data-theme="dark"] .platform-health-panel>footer,
html[data-theme="dark"] .platform-support-preview-list>button,
html[data-theme="dark"] .platform-system-events article,
html[data-theme="dark"] .platform-ops-row{border-color:#20382f}
html[data-theme="dark"] .platform-health-panel>footer,
html[data-theme="dark"] .platform-ops-table-head{background:#10241d;color:#7e9186}
html[data-theme="dark"] .platform-health-pill{background:#173027;color:#9fc1a2}
html[data-theme="dark"] .platform-health-pill.attention{background:#30291c;color:#d0ad65}
html[data-theme="dark"] .platform-health-pill.degraded{background:#35231f;color:#d49b8f}
html[data-theme="dark"] .platform-service-grid b.ok{background:#173027;color:#9fc1a2}
html[data-theme="dark"] .platform-service-grid b.attention{background:#30291c;color:#d0ad65}
html[data-theme="dark"] .platform-service-grid b.danger{background:#35231f;color:#d49b8f}
html[data-theme="dark"] .platform-service-grid b.pending{background:#172820;color:#879a8f}
html[data-theme="dark"] .platform-radar-count{background:#30291c;color:#d0ad65}
html[data-theme="dark"] .platform-radar-item{color:#dce6df}
html[data-theme="dark"] .platform-radar-item:hover,
html[data-theme="dark"] .platform-ops-row:hover,
html[data-theme="dark"] .platform-support-preview-list>button:hover{background:#10271f}
html[data-theme="dark"] .platform-radar-item+.platform-radar-item{border-color:#20382f}
html[data-theme="dark"] .platform-radar-icon{background:#142d24;color:#9eb1a4}
html[data-theme="dark"] .platform-radar-item.warning .platform-radar-icon{background:#30291c;color:#d0ad65}
html[data-theme="dark"] .platform-radar-item.critical .platform-radar-icon{background:#35231f;color:#d49b8f}
html[data-theme="dark"] .platform-radar-item strong{color:#dce6df}
html[data-theme="dark"] .platform-radar-item small{color:#7f9186}
html[data-theme="dark"] .platform-ops-link{color:#9db4a5}
html[data-theme="dark"] .platform-ops-link:hover{color:#d1ad64}
html[data-theme="dark"] .platform-ops-row{background:#0d211a}
html[data-theme="dark"] .platform-ops-operation i{background:#142d24;color:#a1b5a7}
html[data-theme="dark"] .platform-billing-badge.manual,
html[data-theme="dark"] .platform-billing-badge.muted{background:#172820;color:#879a8f}
html[data-theme="dark"] .platform-billing-badge.active{background:#173027;color:#9fc1a2}
html[data-theme="dark"] .platform-billing-badge.trialing{background:#292d1e;color:#b4bd77}
html[data-theme="dark"] .platform-billing-badge.attention{background:#30291c;color:#d0ad65}
html[data-theme="dark"] .platform-billing-badge.danger{background:#35231f;color:#d49b8f}
html[data-theme="dark"] .platform-support-preview-list em{background:#172820;color:#879a8f}
html[data-theme="dark"] .platform-support-preview-list em.new{background:#30291c;color:#d0ad65}
html[data-theme="dark"] .platform-support-preview-list em.progress{background:#173027;color:#9fc1a2}
html[data-theme="dark"] .platform-ops-empty{color:#7f9186}
html[data-theme="dark"] .platform-ops-empty>span{background:#173027;color:#9fc1a2}
html[data-theme="dark"] .platform-ops-empty strong{color:#cbd8d0}
html[data-theme="dark"] .platform-management-heading p:last-child{color:#7f9186}

html[data-theme="dark"] .platform-health-pill.checking{background:#172820;color:#879a8f}html[data-theme="dark"] .platform-health-pill.checking i{background:#7f9186}html[data-theme="dark"] .platform-command-hero.checking{background:linear-gradient(115deg,#10271f,#243b31)}


/* Radar checkout triage · dark */
html[data-theme="dark"] .platform-radar-item.checkout:hover{background:#10271f}
html[data-theme="dark"] .platform-radar-type.test{background:#172820;color:#879a8f}
html[data-theme="dark"] .platform-radar-type.checkout{background:#30291c;color:#d0ad65}
html[data-theme="dark"] .platform-radar-type.client{background:#173027;color:#9fc1a2}
html[data-theme="dark"] .platform-radar-actions button{background:#142d24;border-color:#30493d;color:#b9cabe}
html[data-theme="dark"] .platform-radar-actions button:hover{background:#19372b;border-color:#466153}
html[data-theme="dark"] .platform-radar-actions button.muted{background:#172820;border-color:transparent;color:#879a8f}
html[data-theme="dark"] .platform-alert-backdrop{background:rgba(2,12,8,.68)}
html[data-theme="dark"] .platform-alert-modal{background:#0d211a;border-color:#304a3e;box-shadow:0 32px 90px rgba(0,0,0,.42)}
html[data-theme="dark"] .platform-alert-modal>header{background:linear-gradient(135deg,#10271f,#132b22);border-color:#294137}
html[data-theme="dark"] .platform-alert-modal>header h2{color:#e5ede8}
html[data-theme="dark"] .platform-alert-modal>header p:last-child{color:#819388}
html[data-theme="dark"] .platform-alert-modal>header>button{background:#173027;border-color:#355044;color:#9eb0a5}
html[data-theme="dark"] .platform-alert-state{background:#10271f;border-color:#294137}
html[data-theme="dark"] .platform-alert-state>span{background:#173027;color:#9fc1a2}
html[data-theme="dark"] .platform-alert-state.checkout>span{background:#30291c;color:#d0ad65}
html[data-theme="dark"] .platform-alert-state.client>span{background:#173027;color:#9fc1a2}
html[data-theme="dark"] .platform-alert-state strong{color:#d5e0d9}
html[data-theme="dark"] .platform-alert-state p{color:#7f9186}
html[data-theme="dark"] .platform-alert-details article{background:#10251e;border-color:#294137}
html[data-theme="dark"] .platform-alert-details small{color:#798c81}
html[data-theme="dark"] .platform-alert-details strong{color:#cbd8d0}
html[data-theme="dark"] .platform-alert-error{background:#282316;border-color:#4b4029}
html[data-theme="dark"] .platform-alert-error>span{color:#d0ad65}
html[data-theme="dark"] .platform-alert-error>strong{color:#e0d7c5}
html[data-theme="dark"] .platform-alert-error code{background:#372f1f;color:#d5b46d}
html[data-theme="dark"] .platform-alert-error p{color:#9b9079}
html[data-theme="dark"] .platform-alert-modal>footer{border-color:#294137}


/* NUVORA · Sidebar premium cards · dark mode */
html[data-theme="dark"] .clinic-picker.clinic-picker-premium{
  background:transparent;
  border-color:transparent
}
html[data-theme="dark"] .workspace-identity-card{
  background:
    radial-gradient(circle at 94% 8%,rgba(214,180,106,.08),transparent 30%),
    linear-gradient(145deg,#10271f 0%,#0d211a 100%);
  border-color:#294238;
  box-shadow:0 13px 30px rgba(0,0,0,.16),inset 0 1px rgba(255,255,255,.025)
}
html[data-theme="dark"] .workspace-identity-card:hover{
  border-color:#385247;
  box-shadow:0 17px 36px rgba(0,0,0,.20),inset 0 1px rgba(255,255,255,.03)
}
html[data-theme="dark"] .workspace-identity-orbit{
  border-color:rgba(214,180,106,.13)
}
html[data-theme="dark"] .workspace-identity-orbit.orbit-b{
  border-color:rgba(143,178,157,.09)
}
html[data-theme="dark"] .workspace-identity-mark{
  background:linear-gradient(145deg,#173f35,#285b47);
  color:#efd89d;
  box-shadow:0 9px 20px rgba(0,0,0,.18)
}
html[data-theme="dark"] .workspace-identity-status{
  background:#173126;
  border-color:#29483b;
  color:#9fc3aa
}
html[data-theme="dark"] .workspace-identity-status i{
  background:#75a980;
  box-shadow:0 0 0 3px rgba(117,169,128,.10)
}
html[data-theme="dark"] .workspace-identity-label{
  color:#d1ad64!important
}
html[data-theme="dark"] .workspace-identity-name{
  color:#eef2ec!important;
  text-shadow:0 1px 0 rgba(0,0,0,.12)
}
html[data-theme="dark"] .workspace-identity-meta span{
  background:#152d24;
  border-color:#294238;
  color:#b7c8bd
}

html[data-theme="dark"] .care-card{
  background:linear-gradient(135deg,#10271f 0%,#0d211a 100%);
  border-color:#294238;
  color:#dfe8e2
}
html[data-theme="dark"] .care-card:after{
  border-color:rgba(214,180,106,.12);
  box-shadow:
    0 0 0 12px rgba(23,49,38,.74),
    0 0 0 13px rgba(214,180,106,.08),
    0 0 0 27px rgba(16,39,31,.82),
    0 0 0 28px rgba(214,180,106,.08)
}
html[data-theme="dark"] .care-card .mini-stars{
  color:#d6b46a
}
html[data-theme="dark"] .care-card p{
  color:#e4ebe6!important
}
html[data-theme="dark"] .care-card em{
  color:#d6b46a!important
}
html[data-theme="dark"] .care-card small{
  color:#91a299!important
}
