/* Nexus adaptation of the user-supplied Multikart admin assets.
   Functional Nexus styles load first; the template and this integration layer
   supply the complete visual system without changing routes or form actions. */
html[data-theme="light"] body.nexus-template {
  --bg:#f8f8f9;--bg-soft:#f8f8f9;--surface:#f8f8f9;
  --panel:#fff;--panel-2:#fff;--panel-3:#f6f6f7;
  --line:#e9e9ed;--border:#e9e9ed;--field-border:#dedfe5;
  --text:#252830;--heading:#202124;--muted:#63676f;--muted-2:#6c7078;
  --blue:#2465c7;--blue-2:#1d56ae;--cyan:#2465c7;
  --portal-primary:#2465c7;--portal-secondary:#252525;
  --shadow:1px 5px 24px rgba(68,102,242,.05);
  --shadow-soft:1px 5px 24px rgba(68,102,242,.05);
  display:block!important;background:#f8f8f9!important;background-image:none!important;
  font-family:"Source Sans 3",Arial,sans-serif!important;color:#252830!important;
}
html[data-theme="light"] body.nexus-template :is(button,input,select,textarea){font-family:"Source Sans 3",Arial,sans-serif!important}
html[data-theme="light"] body.nexus-template :is(h1,h2,h3,h4,h5,h6,p,span,label,small,strong,th,td,a,button,input,textarea,select):not(.fa):not([class^="icon-"]){font-family:"Source Sans 3",Arial,sans-serif!important}
html[data-theme="light"] body.nexus-template *{text-shadow:none!important}
html[data-theme="light"] body.nexus-template .nexus-page-wrapper,
html[data-theme="light"] body.nexus-template .nexus-page-body-wrapper{display:block;min-height:100vh}
html[data-theme="light"] body.nexus-template .page-sidebar.sidebar{
  position:fixed!important;inset:0 auto 0 0!important;width:320px!important;height:100vh!important;
  padding:0 15px 18px!important;overflow-y:auto!important;overflow-x:hidden!important;
  background:#202020 url('../vendor/multikart/images/dashboard/nexus-marketing-sidebar.png') center bottom/cover no-repeat!important;
  border:0!important;box-shadow:none!important;backdrop-filter:none!important;z-index:50!important;
}
html[data-theme="light"] body.nexus-template .sidebar-brand-row{
  display:flex!important;align-items:center!important;height:80px!important;min-height:80px!important;
  padding:10px 17px!important;margin:0 -15px 14px!important;border-bottom:1px solid #3a3a3a!important;
  background:#202020!important;
}
html[data-theme="light"] body.nexus-template .sidebar .brand{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;min-width:0}
html[data-theme="light"] body.nexus-template .sidebar .brand img{height:54px!important;width:auto!important;max-width:190px!important;object-fit:contain!important;object-position:left center}
html[data-theme="light"] body.nexus-template .sidebar .sidebar-collapse{
  width:32px!important;height:32px!important;flex:0 0 32px!important;
  color:#fff!important;border:1px solid #555!important;border-radius:2px!important;
  background:#2d2d2d!important;transform:none!important;box-shadow:none!important;
}
html[data-theme="light"] body.nexus-template .sidebar .sidebar-collapse:hover{background:#383838!important;transform:none!important}
html[data-theme="light"] body.nexus-template .sidebar :is(.workspace-label,.nav-section){
  margin:20px 0 8px!important;padding:7px 15px!important;color:#a7a7a7!important;
  font-size:11px!important;line-height:1.25!important;letter-spacing:.09em!important;font-weight:700!important;
}
html[data-theme="light"] body.nexus-template .sidebar nav{display:flex!important;flex-direction:column!important;gap:1px!important;min-width:0}
html[data-theme="light"] body.nexus-template .sidebar :is(.nav-link,.nav-sub-link){
  display:flex!important;align-items:center!important;gap:12px!important;min-height:42px!important;
  padding:9px 13px!important;margin:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;color:#e5e5e5!important;font-size:14px!important;font-weight:550!important;
  box-shadow:none!important;transform:none!important;transition:color .15s ease,background .15s ease!important;
}
html[data-theme="light"] body.nexus-template .sidebar :is(.nav-link,.nav-sub-link):hover{
  background:rgba(255,255,255,.07)!important;color:#fff!important;
}
html[data-theme="light"] body.nexus-template .sidebar :is(.nav-link,.nav-sub-link).active{
  background:rgba(36,101,199,.22)!important;color:#79aeff!important;font-weight:700!important;
}
html[data-theme="light"] body.nexus-template .sidebar .nav-link.active:before{display:none!important}
html[data-theme="light"] body.nexus-template .sidebar :is(.nav-icon,.nav-sub-icon){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:20px!important;height:20px!important;flex:0 0 20px!important;
  background:none!important;color:inherit!important;border:0!important;border-radius:0!important;
}
html[data-theme="light"] body.nexus-template .sidebar :is(.nav-icon,.nav-sub-icon) svg{
  width:17px!important;height:17px!important;max-width:17px!important;max-height:17px!important;
  fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;
}
html[data-theme="light"] body.nexus-template .sidebar .nav-link b{color:#fff!important;background:#2465c7!important;border:0!important;border-radius:2px!important;font-size:9px!important}
html[data-theme="light"] body.nexus-template .sidebar .nav-submenu{background:rgba(0,0,0,.16)!important;border:0!important;border-radius:0!important}
html[data-theme="light"] body.nexus-template .sidebar :is(.nav-parent-row,.nav-group){min-width:0}
html[data-theme="light"] body.nexus-template .sidebar .sidebar-footer{
  margin-top:auto!important;border-top:1px solid #484848!important;background:transparent!important;
  padding:12px 0 0!important;
}
html[data-theme="light"] body.nexus-template .sidebar .sidebar-user{color:#fff!important}
html[data-theme="light"] body.nexus-template .sidebar .sidebar-user :is(strong,small){color:#f2f2f2!important}
html[data-theme="light"] body.nexus-template .sidebar .sidebar-profile-link,
html[data-theme="light"] body.nexus-template .sidebar .sidebar-profile-link:hover,
html[data-theme="light"] body.nexus-template .sidebar .sidebar-profile-link:focus-visible,
html[data-theme="light"] body.nexus-template .sidebar .sidebar-profile-link.active{
  background:rgba(24,31,42,.92)!important;border:1px solid rgba(105,142,185,.32)!important;
  color:#fff!important;border-radius:2px!important;box-shadow:none!important;
  transform:none!important;transition:border-color .15s ease,background-color .15s ease!important;
}
html[data-theme="light"] body.nexus-template .sidebar .sidebar-profile-link:hover,
html[data-theme="light"] body.nexus-template .sidebar .sidebar-profile-link:focus-visible{
  background:#2a3544!important;border-color:#659be5!important;
}
html[data-theme="light"] body.nexus-template .sidebar .sidebar-profile-link :is(strong,small){color:#f1f4f9!important}
html[data-theme="light"] body.nexus-template.sidebar-collapsed .page-sidebar.sidebar{width:76px!important}
html[data-theme="light"] body.nexus-template.sidebar-collapsed .main.page-body{margin-left:76px!important;width:calc(100% - 76px)!important}
html[data-theme="light"] body.nexus-template.sidebar-collapsed .sidebar-brand-row{justify-content:center!important;padding:9px 10px!important}
html[data-theme="light"] body.nexus-template.sidebar-collapsed .sidebar-brand-row .brand{display:none!important}
html[data-theme="light"] body.nexus-template.sidebar-collapsed .sidebar .nav-link{justify-content:center!important;padding:9px!important}
html[data-theme="light"] body.nexus-template.sidebar-collapsed .sidebar .nav-link .nav-icon{margin:0!important}
html[data-theme="light"] body.nexus-template.sidebar-collapsed .sidebar .sidebar-footer{display:none!important}

html[data-theme="light"] body.nexus-template .main.page-body{
  position:relative!important;display:block!important;width:calc(100% - 320px)!important;
  min-width:0!important;min-height:100vh!important;margin:0 0 0 320px!important;
  padding:0!important;grid-column:auto!important;background:#f8f8f9!important;
}
html[data-theme="light"] body.nexus-template .main .topbar.page-main-header{
  position:sticky!important;top:0!important;z-index:30!important;margin:0!important;
  width:100%!important;min-height:80px!important;height:80px!important;
  padding:14px 28px!important;background:#fff!important;backdrop-filter:none!important;
  border:0!important;box-shadow:0 0 10px rgba(34,41,47,.1)!important;
}
html[data-theme="light"] body.nexus-template .topbar-left{display:flex!important;gap:18px!important;align-items:center!important}
html[data-theme="light"] body.nexus-template .nexus-toolbar-name{color:#252525;font-weight:800;font-size:18px;line-height:1}
html[data-theme="light"] body.nexus-template .nexus-toolbar-name small{display:block;margin-top:5px;color:#777;font-size:11px;font-weight:500;letter-spacing:.03em}
html[data-theme="light"] body.nexus-template .topbar .menu,
html[data-theme="light"] body.nexus-template .topbar .icon-btn{
  width:38px!important;height:38px!important;border:0!important;border-radius:0!important;
  color:#2465c7!important;background:#fff!important;box-shadow:none!important;
}
html[data-theme="light"] body.nexus-template .topbar .menu svg,
html[data-theme="light"] body.nexus-template .topbar .icon-btn svg{width:19px!important;height:19px!important}
html[data-theme="light"] body.nexus-template .topbar .menu:hover,
html[data-theme="light"] body.nexus-template .topbar .icon-btn:hover{background:#f3f5fa!important}
html[data-theme="light"] body.nexus-template .nexus-page-header{
  display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:104px;
  padding:28px 30px 22px;margin:0;background:#f8f8f9;
}
html[data-theme="light"] body.nexus-template .nexus-page-header h1{
  color:#202124!important;font-size:25px!important;font-weight:800!important;
  line-height:1.2!important;text-transform:uppercase;letter-spacing:0!important;margin:0!important;
}
html[data-theme="light"] body.nexus-template .nexus-page-header small{display:block;margin-top:5px;color:#73777f;font-size:12px}
html[data-theme="light"] body.nexus-template .nexus-page-header .breadcrumb{
  display:flex;align-items:center;gap:8px;margin:0!important;padding:0!important;
  color:#787b84!important;font-size:12px!important;font-weight:600!important;
  letter-spacing:0!important;text-transform:none!important;background:transparent!important;
}
html[data-theme="light"] body.nexus-template .nexus-page-header .breadcrumb strong{color:#2465c7!important}
html[data-theme="light"] body.nexus-template .content{
  position:relative;z-index:0;max-width:none!important;min-height:calc(100vh - 184px);
  padding:0 30px 45px!important;margin:0!important;background:#f8f8f9!important;
}
html[data-theme="light"] body.nexus-template.content-heading-present .content{
  min-height:calc(100vh - 80px);padding-top:24px!important;
}
html[data-theme="light"] body.nexus-template .nexus-sr-only{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
  margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;border:0!important;
}

/* Match the supplied template's square white cards and restrained shadow. */
html[data-theme="light"] body.nexus-template :is(.panel,.portal-panel,.hero-panel,.page-hero,.moc-hero,.calendar-hero,.metric,.metric-card,.moc-stat,.workspace-card,.moc-client-card,.nx-content-card,.request-ticket-card,.asset-grid article,.report-grid article,.billing-plan-card,.billing-step-card,.billing-metrics-grid article,.integration-card,.approval-card,.ir-context,.ir-hero,.ir-card,.ir-fact,.advisor-calendar-row,.team-overview-stats>div){
  background:#fff!important;border:0!important;border-radius:0!important;
  color:#252830!important;box-shadow:1px 5px 24px rgba(68,102,242,.05)!important;
  backdrop-filter:none!important;transform:none!important;
}
html[data-theme="light"] body.nexus-template :is(.panel,.portal-panel,.hero-panel,.page-hero,.moc-hero,.calendar-hero,.workspace-card,.moc-client-card,.nx-content-card,.approval-card,.ir-card) :is(h2,h3,h4,strong){color:#24262c!important}
html[data-theme="light"] body.nexus-template :is(.panel,.portal-panel,.hero-panel,.page-hero,.moc-hero,.calendar-hero,.workspace-card,.moc-client-card,.nx-content-card,.approval-card,.ir-card) :is(p,small){color:#5c626e!important}
html[data-theme="light"] body.nexus-template :is(.hero-panel,.page-hero,.moc-hero,.calendar-hero){border-left:0!important;min-height:0!important}
html[data-theme="light"] body.nexus-template :is(.hero-panel,.moc-hero,.calendar-hero){padding:24px 26px!important}
html[data-theme="light"] body.nexus-template :is(.hero-panel,.moc-hero,.calendar-hero)::after{display:none!important}
html[data-theme="light"] body.nexus-template :is(.hero-panel,.moc-hero,.calendar-hero) h2{font-size:24px!important;font-weight:750!important;line-height:1.25!important}
html[data-theme="light"] body.nexus-template .eyebrow{color:#2465c7!important;letter-spacing:.09em;font-size:11px!important}
html[data-theme="light"] body.nexus-template .metric-grid{gap:22px!important;margin:22px 0!important;align-items:stretch}
html[data-theme="light"] body.nexus-template .metric-grid .metric{padding:20px 24px!important;min-height:148px!important;gap:6px!important}
html[data-theme="light"] body.nexus-template .metric-grid .metric>span:not(.metric-icon){font-size:13px!important;color:#666b73!important}
html[data-theme="light"] body.nexus-template .metric-grid .metric strong{font-size:29px!important;font-weight:750!important;color:#262830!important}
html[data-theme="light"] body.nexus-template .metric-grid .metric em{color:#717781!important;font-size:11px!important}
html[data-theme="light"] body.nexus-template .metric-grid .metric-icon{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;
  min-height:42px!important;max-height:42px!important;padding:8px!important;
  border-radius:2px!important;background:#ecf2fc!important;color:#2465c7!important;
  align-self:start!important;overflow:hidden!important;
}
html[data-theme="light"] body.nexus-template .metric-grid .metric-icon svg{
  display:block!important;width:22px!important;height:22px!important;max-width:22px!important;max-height:22px!important;
  fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;
}
html[data-theme="light"] body.nexus-template :is(.metric,.metric-card,.moc-stat){border-left:0!important;border-top:0!important}
html[data-theme="light"] body.nexus-template :is(.metric,.metric-card,.moc-stat) :is(strong,b){color:#252830!important}

/* Template-style actions, tables, forms, badges and empty states on all pages. */
html[data-theme="light"] body.nexus-template .btn{
  display:inline-flex;justify-content:center;align-items:center;gap:7px;
  min-height:38px!important;padding:8px 16px!important;border-radius:2px!important;
  box-shadow:none!important;transform:none!important;font-size:13px!important;font-weight:650!important;
}
html[data-theme="light"] body.nexus-template .btn.primary{background:#2465c7!important;border:1px solid #2465c7!important;color:#fff!important}
html[data-theme="light"] body.nexus-template .btn.primary:hover{background:#1955ae!important;border-color:#1955ae!important}
html[data-theme="light"] body.nexus-template .btn.ghost,
html[data-theme="light"] body.nexus-template .btn:not(.primary):not(.btn-primary):not(.danger):not(.btn-danger):not(.danger-solid){background:#fff!important;border:1px solid #e0e2e8!important;color:#24569a!important}
html[data-theme="light"] body.nexus-template .btn.ghost:hover{background:#f4f6fb!important}
html[data-theme="light"] body.nexus-template :is(input:not([type=checkbox]):not([type=radio]),select,textarea){
  background:#fff!important;border:1px solid #dedfe5!important;border-radius:2px!important;
  color:#252830!important;box-shadow:none!important;min-width:0;
}
html[data-theme="light"] body.nexus-template :is(input,textarea)::placeholder{color:#737983!important}
html[data-theme="light"] body.nexus-template :is(label,.moc-field-label,.nexus-form-label){color:#303740!important}
html[data-theme="light"] body.nexus-template :is(.table-wrap,.billing-table-wrap,.nx-billing-table-wrap){border:0!important;border-radius:0!important;background:#fff!important;overflow-x:auto!important}
html[data-theme="light"] body.nexus-template :is(.table-wrap,.billing-table-wrap,.nx-billing-table-wrap) th{background:#f7f7f8!important;color:#414650!important;border-bottom:1px solid #e9e9ed!important;font-size:12px!important}
html[data-theme="light"] body.nexus-template :is(.table-wrap,.billing-table-wrap,.nx-billing-table-wrap) td{background:#fff!important;color:#303641!important;border-bottom:1px solid #e9e9ed!important}
html[data-theme="light"] body.nexus-template :is(.table-wrap,.billing-table-wrap,.nx-billing-table-wrap) tbody tr:hover td{background:#fafbfe!important}
html[data-theme="light"] body.nexus-template :is(.status,.status-pill,.status-dot,.moc-status,.billing-status-pill,.advisor-calendar-count,.ir-status,.ir-summary span){
  border-radius:2px!important;box-shadow:none!important;font-weight:700!important;
}
html[data-theme="light"] body.nexus-template .empty,
html[data-theme="light"] body.nexus-template .empty-state{background:#fafafa!important;border:1px dashed #dedfe5!important;border-radius:0!important;color:#565c65!important}
html[data-theme="light"] body.nexus-template .portal-tabs{border:0!important;border-radius:0!important;background:#fff!important;box-shadow:var(--shadow)!important}
html[data-theme="light"] body.nexus-template .portal-tabs a{border-radius:0!important;color:#515a67!important}
html[data-theme="light"] body.nexus-template .portal-tabs a.active{background:#2465c7!important;color:#fff!important}
html[data-theme="light"] body.nexus-template :is(.asset-preview,.asset-preview img){border-radius:0!important}
html[data-theme="light"] body.nexus-template .enterprise-assets .editable-asset-card{border-radius:0!important;box-shadow:var(--shadow)!important}
html[data-theme="light"] body.nexus-template .enterprise-assets .asset-preview img{object-fit:contain!important;background:#fff!important}
html[data-theme="light"] body.nexus-template .advisor-calendar-row{border-radius:0!important;border:0!important}

/* Every specialist module uses the same template card surface. */
html[data-theme="light"] body.nexus-template :is(
  .client-context-bar,.portal-hero,.account-profile-hero,.advisor-ops-hero,
  .ai-social-hero,.nx-revenue-hero,.nx-billing-hero,.nx-health-hero,
  .mi-hero,.advisor-module-hero,.metadata-hero,.keyword-delivery-hero,
  .email-builder-header,.moc-editor-top,.report-builder-hero,.seo-ops-hero,
  .client-selector-hero,.intelligence-hero,.client-workspace-hero,
  .calendar-command,.nx-billing-engine-bar,.advisor-global-context,
  .portal-kpis article,.client-hero-metrics>*,.account-security-state,
  .advisor-metric-card,.email-summary-grid>*,.advisor-kpi-grid>*,
  .nx-billing-progress,.nx-health-grid>*,.ops-stat-grid>*,
  .metadata-control-panel,.keyword-capacity-card,.delivery-capacity-grid>*,
  .enterprise-email-editor,.enterprise-email-sidebar,.enterprise-card-list>*,
  .editor-section,.editor-accordion,.workflow-step,.asset-guidance,
  .enterprise-upload,.upload-zone,.client-selector-grid>*,
  .request-message,.request-file,.report-client-grid>*,.nx-content-detail){
  background:#fff!important;background-image:none!important;color:#252830!important;
  border:0!important;border-radius:0!important;box-shadow:var(--shadow)!important;
  backdrop-filter:none!important;transform:none!important;
}
html[data-theme="light"] body.nexus-template :is(
  .client-context-bar,.portal-hero,.account-profile-hero,.advisor-ops-hero,
  .ai-social-hero,.nx-revenue-hero,.nx-billing-hero,.nx-health-hero,
  .mi-hero,.advisor-module-hero,.metadata-hero,.keyword-delivery-hero,
  .email-builder-header,.moc-editor-top,.report-builder-hero,.seo-ops-hero,
  .client-selector-hero,.intelligence-hero,.client-workspace-hero,
  .calendar-command,.nx-billing-engine-bar,.advisor-global-context) :is(h1,h2,h3,h4,strong){
  color:#252830!important;text-shadow:none!important;
}
html[data-theme="light"] body.nexus-template :is(
  .client-context-bar,.portal-hero,.account-profile-hero,.advisor-ops-hero,
  .ai-social-hero,.nx-revenue-hero,.nx-billing-hero,.nx-health-hero,
  .mi-hero,.advisor-module-hero,.metadata-hero,.keyword-delivery-hero,
  .email-builder-header,.moc-editor-top,.report-builder-hero,.seo-ops-hero,
  .client-selector-hero,.intelligence-hero,.client-workspace-hero,
  .calendar-command,.nx-billing-engine-bar,.advisor-global-context) :is(p,small){
  color:#606771!important;
}
html[data-theme="light"] body.nexus-template :is(.portal-hero,.mi-hero,.advisor-module-hero,.nx-billing-hero)::after{display:none!important}
html[data-theme="light"] body.nexus-template :is(.client-context-bar,.portal-hero,.advisor-module-hero,.mi-hero,.nx-billing-hero,.nx-revenue-hero){padding:24px 28px!important}
html[data-theme="light"] body.nexus-template :is(.portal-panel,.panel,.nx-revenue-hero,.nx-billing-hero,.advisor-module-hero,.mi-hero){margin-bottom:20px}
html[data-theme="light"] body.nexus-template :is(.editor-accordion,.workflow-step,.nx-content-detail,.upload-zone){border:1px solid #eee!important;box-shadow:none!important}

/* Inline Access Approvals styles otherwise retain the old dark Nexus cards. */
html[data-theme="light"] body.nexus-template .integration-review-page :is(.ir-context,.ir-hero,.ir-card,.ir-fact,.ir-empty){
  background:#fff!important;border:0!important;border-radius:0!important;color:#252830!important;
  box-shadow:var(--shadow)!important;
}
html[data-theme="light"] body.nexus-template .integration-review-page .ir-fact{background:#f8f8f9!important;border:1px solid #eee!important;box-shadow:none!important}
html[data-theme="light"] body.nexus-template .integration-review-page :is(.ir-context,.ir-hero,.ir-card,.ir-fact) :is(h2,h3,strong){color:#252830!important}
html[data-theme="light"] body.nexus-template .integration-review-page :is(.ir-context-copy small,.ir-card-head small,.ir-fact span,.ir-switch label,.ir-hero p,.ir-empty){color:#5c626e!important}
html[data-theme="light"] body.nexus-template .integration-review-page .ir-form label{color:#303740!important}
html[data-theme="light"] body.nexus-template .integration-review-page .ir-summary span{background:#ecf2fc!important;border:1px solid #d2e0f5!important;color:#24569a!important}
html[data-theme="light"] body.nexus-template .integration-review-page .ir-provider{border-radius:2px!important}
html[data-theme="light"] body.nexus-template .integration-review-page .ir-avatar{border-radius:2px!important;background:#2465c7!important}

/* The same light Multikart surfaces on every role-specific workspace. The
   legacy stylesheet contains many dark, module-local backgrounds and white
   text declarations; reset both together to keep every card legible. */
html[data-theme="light"] body.nexus-template .content :is(
  .mi-kpi,.mi-panel,.mi-copy-grid article,.mi-delivery-list article,
  .delivery-capacity-card,.delivery-item-card,.email-delivery-card,
  .keyword-usage-card,.keyword-client-card,.keyword-client-metrics>span,
  .advisor-operations-kpis>a,.advisor-kpi-grid>article,.advisor-client-card,
  .advisor-context-bar,.enterprise-record-card,.client-campaign-card,
  .campaign-performance-grid>div,.advisor-workload-card,.advisor-task-card,
  .advisor-client-summary,.advisor-client-calendar,.advisor-command-card,
  .client-workspace-summary article,.client-workspace-tool,
  .request-ticket-card,.ticket-dropzone,.ticket-queue-item,
  .nx-content-card,.moc-stat,.moc-client-card,.moc-hero,
  .nx-revenue-metric,.nx-billing-summary article,.nx-health-card,
  .report-card,.client-report-card,.report-kpis article,
  .report-metric-grid article,.report-score,.report-section,
  .portal-panel,.portal-card,.client-card,.billing-card,
  .delivery-section,.delivery-empty,.mi-empty){
  background:#fff!important;background-image:none!important;color:#252830!important;
  border:1px solid #e9e9ed!important;border-radius:2px!important;
  box-shadow:1px 5px 24px rgba(68,102,242,.05)!important;
  opacity:1!important;backdrop-filter:none!important;
}
html[data-theme="light"] body.nexus-template .content :is(
  .mi-kpi,.mi-panel,.mi-copy-grid article,.mi-delivery-list article,
  .delivery-capacity-card,.delivery-item-card,.email-delivery-card,
  .keyword-usage-card,.keyword-client-card,.keyword-client-metrics>span,
  .advisor-operations-kpis>a,.advisor-kpi-grid>article,.advisor-client-card,
  .advisor-context-bar,.enterprise-record-card,.client-campaign-card,
  .campaign-performance-grid>div,.advisor-workload-card,.advisor-client-calendar,
  .client-workspace-summary article,.client-workspace-tool,.request-ticket-card,
  .nx-content-card,.moc-stat,.moc-client-card,.moc-hero,
  .nx-revenue-metric,.nx-billing-summary article,.nx-health-card,
  .report-card,.client-report-card,.report-kpis article,
  .report-metric-grid article,.report-score,.report-section,
  .portal-panel,.portal-card,.client-card,.billing-card,.delivery-section
) :is(h1,h2,h3,h4,strong,b){color:#252830!important;text-shadow:none!important}
html[data-theme="light"] body.nexus-template .content :is(
  .mi-kpi,.mi-panel,.mi-copy-grid article,.mi-delivery-list article,
  .delivery-capacity-card,.delivery-item-card,.email-delivery-card,
  .keyword-usage-card,.keyword-client-card,.keyword-client-metrics>span,
  .advisor-operations-kpis>a,.advisor-kpi-grid>article,.advisor-client-card,
  .advisor-context-bar,.enterprise-record-card,.client-campaign-card,
  .campaign-performance-grid>div,.advisor-client-calendar,
  .client-workspace-summary article,.client-workspace-tool,.request-ticket-card,
  .nx-content-card,.moc-stat,.moc-client-card,.moc-hero,
  .nx-revenue-metric,.nx-billing-summary article,.nx-health-card,
  .report-card,.client-report-card,.report-kpis article,
  .report-metric-grid article,.report-section,.portal-panel,.delivery-section
) :is(p,small,time,li){color:#5b6572!important}
html[data-theme="light"] body.nexus-template .content .mi-kpi>span,
html[data-theme="light"] body.nexus-template .content .delivery-capacity-card>span,
html[data-theme="light"] body.nexus-template .content .keyword-usage-card>span{color:#5b6572!important}
html[data-theme="light"] body.nexus-template .content .mi-kpi>strong,
html[data-theme="light"] body.nexus-template .content .delivery-capacity-card>strong,
html[data-theme="light"] body.nexus-template .content .keyword-usage-card>strong{color:#252830!important}
html[data-theme="light"] body.nexus-template .content :is(.mi-section-head,.mi-delivery-section,.delivery-section-head){border-color:#e9e9ed!important}
html[data-theme="light"] body.nexus-template .content .mi-history-item{border-bottom:1px solid #e9e9ed!important;color:#252830!important}
html[data-theme="light"] body.nexus-template .content .mi-history-item :is(a,strong){color:#252830!important}
html[data-theme="light"] body.nexus-template .content .mi-history-item small{color:#5b6572!important}
html[data-theme="light"] body.nexus-template .content :is(.mi-client-chip,.mi-capacity-badge,.delivery-count,.mi-delivery-list article>span){background:#edf4ff!important;border:1px solid #cfe0fb!important;color:#21569a!important;border-radius:2px!important}
html[data-theme="light"] body.nexus-template .content .mi-history-download{background:#fff!important;border:1px solid #d9e0ec!important;color:#21569a!important;border-radius:2px!important}
html[data-theme="light"] body.nexus-template .content :is(.delivery-item-media,.email-delivery-icon,.advisor-metric-icon,.client-workspace-tool-icon){background:#edf4ff!important;border-color:#d7e5f7!important;color:#2465c7!important;border-radius:2px!important}
html[data-theme="light"] body.nexus-template .content :is(.delivery-empty,.mi-empty){background:#fafafa!important;border:1px dashed #dedfe5!important;box-shadow:none!important}
html[data-theme="light"] body.nexus-template .content :is(.delivery-empty,.mi-empty) :is(p,strong){color:#46505e!important}
html[data-theme="light"] body.nexus-template .content .asset-preview.asset-preview-missing::before{background:#f4f6fa!important;color:#4c586b!important}
html[data-theme="light"] body.nexus-template .content .asset-preview img{background:#fff!important;object-fit:contain!important}
html[data-theme="light"] body.nexus-template .content :is(.delivery-viewer,.delivery-viewer-meta){background:#fff!important;color:#252830!important;border-radius:2px!important}
html[data-theme="light"] body.nexus-template .content .delivery-viewer-body{color:#252830!important}
html[data-theme="light"] body.nexus-template .btn.btn-primary,
html[data-theme="light"] body.nexus-template .content .btn.btn-primary{
  background:#2465c7!important;border:1px solid #2465c7!important;color:#fff!important;
  border-radius:2px!important;box-shadow:none!important;
}
html[data-theme="light"] body.nexus-template .btn.btn-primary:hover{background:#1955ae!important;border-color:#1955ae!important}
html[data-theme="light"] body.nexus-template .btn.btn-secondary{background:#fff!important;border:1px solid #dedfe5!important;color:#24569a!important;border-radius:2px!important}
html[data-theme="light"] body.nexus-template .btn.btn-danger{background:#fff5f6!important;border:1px solid #efb9c0!important;color:#a52132!important;border-radius:2px!important}

/* Flatten legacy card treatments and respect browser keyboard focus. */
html[data-theme="light"] body.nexus-template .content :is(.mi-kpi,.delivery-capacity-card,.advisor-metric-card,.client-workspace-tool):hover{transform:none!important}
html[data-theme="light"] body.nexus-template :is(a,button,input,select,textarea):focus-visible{outline:2px solid #2465c7!important;outline-offset:2px!important}

/* Use the supplied template's authentication background with Nexus copy. */
html[data-theme="light"] body.auth-shell.nexus-template{background:#f8f8f9 url('../vendor/multikart/images/dashboard/login-bg.png') center/cover no-repeat!important}
html[data-theme="light"] body.auth-shell.nexus-template .login-card{background:#fff!important;border:0!important;border-radius:0!important;box-shadow:0 10px 38px rgba(34,41,47,.13)!important}
html[data-theme="light"] body.auth-shell.nexus-template .auth-brand{border-radius:0!important}
html[data-theme="light"] body.auth-shell.nexus-template .auth-wrap :is(h1,h2,strong){color:#24262c!important}

@media(max-width:900px){
  html[data-theme="light"] body.nexus-template .main.page-body{margin-left:0!important;width:100%!important}
  html[data-theme="light"] body.nexus-template .page-sidebar.sidebar{left:-320px!important}
  html[data-theme="light"] body.nexus-template.sidebar-open .page-sidebar.sidebar{left:0!important}
  html[data-theme="light"] body.nexus-template.sidebar-collapsed .main.page-body{margin-left:0!important;width:100%!important}
  html[data-theme="light"] body.nexus-template.sidebar-collapsed .page-sidebar.sidebar{width:320px!important}
  html[data-theme="light"] body.nexus-template .nexus-page-header{padding:22px 16px!important}
  html[data-theme="light"] body.nexus-template .content{padding:0 16px 30px!important}
  html[data-theme="light"] body.nexus-template.content-heading-present .content{padding-top:16px!important}
}
@media(max-width:600px){
  html[data-theme="light"] body.nexus-template .main .topbar.page-main-header{height:64px!important;min-height:64px!important;padding:9px 14px!important}
  html[data-theme="light"] body.nexus-template .nexus-page-header{align-items:flex-start;flex-direction:column;gap:4px}
  html[data-theme="light"] body.nexus-template .metric-grid{grid-template-columns:1fr!important}
  html[data-theme="light"] body.nexus-template .integration-review-page .ir-grid{grid-template-columns:1fr!important}
}
