/* CENTRAL premium workspace. Screen-only appearance; layout and data stay with their modules. */
@media screen {
 :root{--central-black:var(--crm-bg);--central-charcoal:var(--crm-card);--central-gold:var(--crm-gold);--central-champagne:var(--crm-text);--central-paper:var(--crm-card);--green:var(--crm-gold)}
 body{background:var(--crm-bg)}
 body .workspace,body:is(.home-active,.full-org-active) .workspace,body:has(#orgView:not([hidden])) .workspace{position:relative;isolation:isolate;background:var(--crm-bg)}
 .workspace::before,.app-nav::after,.app-topbar::after{content:none;animation:none}
 body .app-nav{background:var(--crm-bg);border-right:1px solid var(--crm-line)}
 .app-nav .brand-name{color:var(--crm-text)}.app-nav .brand small,.app-nav .nav-caption,.app-nav .motto-label{color:var(--crm-muted)}
 body .app-nav nav button{color:var(--crm-muted);border-radius:11px;transition:background .2s,border-color .2s,box-shadow .2s}
 body .app-nav nav button span{color:var(--crm-muted)}
 body .app-nav nav button:hover{background:var(--crm-card);color:var(--crm-text)}
 body .app-nav nav button.active{color:var(--crm-text);border-color:var(--crm-gold-line);background:var(--crm-navy);box-shadow:inset 3px 0 var(--crm-gold);animation:none}
 body .app-nav nav button.active span{color:var(--crm-gold)}
 .app-nav .nav-note{border-color:var(--crm-line);color:var(--crm-text)}.app-nav .nav-note p,.app-nav .nav-bottom>div{color:var(--crm-muted)}
 body .workspace>.app-topbar{position:relative;isolation:isolate;overflow:clip;border-color:var(--crm-line);background:var(--crm-card);box-shadow:none}
 body .compact-toolbar .eyebrow{color:var(--crm-gold)}body .compact-toolbar h1{color:var(--crm-text)}
 body .compact-toolbar>p,body .workspace>footer{color:var(--crm-muted)}
 body .actions button:not(.danger):not(.delete),body .nav-bottom button{border-color:var(--crm-line);background:var(--crm-raised);color:var(--crm-text);box-shadow:none}
 body .actions button.primary,body .actions #add{background:var(--crm-gold);border-color:var(--crm-gold);color:var(--crm-bg);box-shadow:none}
 body .stats .stat{background:var(--crm-card);border-color:var(--crm-line);color:var(--crm-muted);box-shadow:var(--crm-shadow)}
 body .stats .stat strong{color:var(--crm-text)}body .stats .stat i{color:var(--crm-gold)}
 body .filterbar .search,body .filterbar select{background:var(--crm-bg);border-color:var(--crm-line);color:var(--crm-text)}
 body .table-panel{border-color:var(--crm-line);background:var(--crm-card);box-shadow:var(--crm-shadow)}
 body .table-heading{background:var(--crm-navy);border-color:var(--crm-line)}
 body .table-heading b{color:var(--crm-text)}body .table-heading span,body .table-heading .table-help{color:var(--crm-muted)}
 body #customerTable th{background:var(--crm-raised);color:var(--crm-muted);border-color:var(--crm-line)}
 body #customerTable td{background:var(--crm-card);color:var(--crm-text);border-color:var(--crm-line-soft)}
 body #customerTable .name-cell{background:var(--crm-card)}body #customerTable .name-link{color:var(--crm-text)}
 body #customerTable tr:hover td,body #customerTable tr:hover .name-cell{background:var(--crm-raised)}
 body :is(#targetView,#recruitView,#collectionView,#goalsView,#sitplanView,#incentivesView,#medicalView){--ops-gold:var(--crm-gold);--ops-line:var(--crm-line);--med-gold:var(--crm-gold);--med-line:var(--crm-line);--med-soft:var(--crm-raised)}
 body :is(.target-unified-heading,.recruit-heading,.collection-heading,.med-head,.inc-heading,.sit-heading){position:relative;isolation:isolate;background:var(--crm-navy);border:1px solid var(--crm-line);border-radius:18px;padding:20px 22px;box-shadow:var(--crm-shadow)}
 body :is(.target-unified-heading,.recruit-heading,.collection-heading,.med-head,.inc-heading,.sit-heading)::after{content:none;animation:none}
 body :is(.target-unified-heading,.recruit-heading,.collection-heading,.med-head,.inc-heading,.sit-heading) h2{color:var(--crm-text)}
 body :is(.target-unified-heading,.recruit-heading,.collection-heading,.med-head,.inc-heading,.sit-heading) p{color:var(--crm-muted)}
 body :is(#targetBoard .target-table-section,#recruitView .recruit-panel,#collectionView .collection-group,#collectionView .collection-overview>div,#goalsView .monthly-goals,#goalsView #performancePanel,#goalPerformance .gp-sales-panel,#goalPerformance .gp-sales-card,#goalPerformance .gp-w-panel,#sitplanView .sit-weekly-goals,#sitplanView .sit-calendar-events,#sitplanView .sit-activity-guide){border-color:var(--crm-line);border-radius:15px;background:var(--crm-card);box-shadow:var(--crm-shadow)}
 body :is(#recruitView .recruit-panel-head,#collectionView .collection-panel-head){background:var(--crm-raised);border-color:var(--crm-line)}
 body :is(#targetBoard .target-list-table,#collectionView .collection-table) th{background:var(--crm-raised);border-color:var(--crm-line);color:var(--crm-muted)}
 body :is(#targetBoard .target-list-table,#collectionView .collection-table) td{border-color:var(--crm-line-soft)}
 body #targetBoard .target-stage-filters{background:var(--crm-card);border-color:var(--crm-line)}
 body #targetBoard .target-stage-filters button{color:var(--crm-muted);border-color:var(--crm-line)}
 body #targetBoard .target-stage-filters button[aria-pressed=true]{background:var(--crm-navy);color:var(--crm-gold)}
 body #sitplanView .sit-grid{border-color:var(--crm-line);box-shadow:var(--crm-shadow)}
 body #sitplanView .sit-grid :is(th,.sit-day-head){background:var(--crm-raised);color:var(--crm-muted)}
 body :is(dialog:not(#centralMobileMenu):not(.db-dialog):not(#apEditDialog)){border-color:var(--crm-line);box-shadow:var(--crm-shadow)}
 body dialog::backdrop{background:var(--crm-overlay);backdrop-filter:blur(5px)}
 body :is(button,a,select,input,textarea):focus-visible{outline-color:var(--crm-gold)}
 body #centralMobileMenu{background:var(--crm-card);border-color:var(--crm-line)}
 body #centralMobileMenuToggle{background:var(--crm-card);border-color:var(--crm-line);color:var(--crm-text)}
 /* DB retains its existing console, ratio geometry and financial calculations. */
 #dbView{--db-ink:var(--crm-text);--db-muted:var(--crm-muted);--db-line:var(--crm-line);--db-gold:var(--crm-gold)}
 #dbView .db-console{background:var(--crm-card);border-color:var(--crm-line);box-shadow:var(--crm-shadow)}
 #dbView .db-console::before,#dbView .db-console::after{content:none;animation:none;box-shadow:none;background:none}
 #dbView :is(.db-heading h2,.db-overview-title h3,.db-section-heading){color:var(--crm-text)}
 #dbView :is(.db-heading p,.db-caption,.db-help,.db-kpi .db-kpi-label,.db-count-card>span,.db-rate-chart-head h3,.db-ring-label small,.db-rate-context p,.db-month-details summary){color:var(--crm-muted)}
 #dbView :is(.db-kpi .db-kpi-value,.db-count-card>strong,.db-count-card:first-child>strong,.db-ring-label strong){color:var(--crm-text)}
 #dbView :is(.db-kpi .db-kpi-foot,.db-count-card .db-step,.db-count-card>small,.db-section-heading small,.db-rate-context>small){color:var(--crm-muted)}
 #dbView .db-kpi:nth-child(2) .db-kpi-value{color:var(--crm-text)}#dbView .db-kpi:nth-child(3) .db-kpi-value{color:var(--crm-gold)}
 #dbView .db-kpi .db-kpi-value.db-negative,#dbView .db-table .db-negative{color:var(--crm-danger-text)}
 #dbView .db-table :is(th,td){background:var(--crm-card);border-color:var(--crm-line-soft);color:var(--crm-text)}
 #dbView .db-table th,#dbView .db-table :is(th,td):first-child{background:var(--crm-raised);color:var(--crm-muted);box-shadow:1px 0 var(--crm-line)}
 #dbView .db-table tbody tr:hover td{background:var(--crm-raised)}
 #dbView .db-table .db-summary-row :is(th,td){background:var(--crm-navy);color:var(--crm-text)}
 #dbView .db-table-wrap{scrollbar-color:var(--crm-muted) var(--crm-card)}
 #dbView .db-month-strip .has-entry i{background:var(--crm-success-text);box-shadow:none}
 #dbView .db-month-strip .has-entry{color:var(--crm-text)}
 #dbView .db-month-strip .selected{background:var(--crm-navy);color:var(--crm-gold)}
 #dbView .db-month-strip button{color:var(--crm-muted)}
 #dbView .db-tabs button[aria-selected=true]{color:var(--crm-gold);border-color:var(--crm-gold)}
 #dbView .db-toolbar :is(input,select){background:var(--crm-bg);border-color:var(--crm-line);color:var(--crm-text);color-scheme:dark}
 #dbView .db-toolbar .db-primary{background:var(--crm-gold);border-color:var(--crm-gold);color:var(--crm-bg)}
 #dbView .db-ring{--db-ring-track:var(--crm-line);--db-ring-color:var(--crm-gold)}
 #dbView .db-ring-track{stroke:var(--crm-line)}#dbView .db-ring-value{stroke:var(--crm-gold);filter:none}
 #dbView .db-ring svg{filter:none}
 #dbView .db-eyebrow i,#dbView .db-tabs button.active::after{background:var(--crm-gold);box-shadow:none}
 #dbView :is(.db-kpis,.db-counts,.db-rate-charts,.db-toolbar,.db-month-strip){border-color:var(--crm-line)}
 #dbView :is(.db-status,.db-rate,.db-panel){color:var(--crm-text);background:var(--crm-card);border-color:var(--crm-line);box-shadow:none}
 #dbView .db-warning{color:var(--crm-danger-text);background:var(--crm-danger-bg);border-color:var(--crm-danger)}
 #dbView :is(.db-heading-actions button,.db-table button){color:var(--crm-text);background:var(--crm-raised);border-color:var(--crm-line);box-shadow:none}
 #dbView :is(.db-heading-actions button,.db-table button):hover{color:var(--crm-text);background:var(--crm-navy);border-color:var(--crm-gold-line)}
 #dbView .db-heading-actions .db-primary{color:var(--crm-bg);background:var(--crm-gold);border-color:var(--crm-gold)}
 #dbView .db-segmented{background:var(--crm-bg);border-color:var(--crm-line)}
 #dbView .db-segmented button{color:var(--crm-muted)}
 #dbView .db-segmented button:is([aria-selected=true],[aria-pressed=true],.active){background:var(--crm-navy);color:var(--crm-gold);box-shadow:none}
 @media(max-width:650px){body :is(.target-unified-heading,.recruit-heading,.collection-heading,.med-head,.inc-heading,.sit-heading){padding:16px;border-radius:15px}}
}
