
/* Exclusively scoped: the four other themes are not modified. */
html[data-mp-theme="graphite"] { accent-color:var(--t-accent);scrollbar-color:#505050 #1c1c1c; }
html[data-mp-theme="graphite"] :is(.main,.content,.top,.sidebar,.panel,.tile,.stat,.admin-card,.settings-tile,.perm-card,.admin-panel,.lic-panel,.lic-stat,.lic-monitor-card,.mp-report,.mp-kpi,.mp-emp-card,.org-form,.mp-theme-dialog,.mp-theme-option,.mp50-panel,.mp50-kpi,.mp47-card,.mp47-metric,.mp5517-kpi,.mp5517-card,.mp5713-panel,.mp5713-toolbar,.mpden-form,.mpden-card,.mpden-panel,.mp-den-card) {border-color:var(--t-line)!important}
/* Default controls and secondary actions stay neutral. Actions marked primary are green. */
html[data-mp-theme="graphite"] :is(.primary,.mp-theme-save,.mp5517-btn.gold,.mp-nat-save,.mp50-action,.mp47-table button,.mp48-requests,.mp-nat-save,button.gold,button.mp-primary,button.btn-primary,.btn-primary,.settings-tile .settings-link, .mp45-tab.active,.mp45-tabs .mp45-tab.active,.mp55-active,.mp5517-actions .primary,.org-actions button:first-child) {background:#3ecf8e!important;color:#082316!important;border-color:#3ecf8e!important;box-shadow:none!important}
html[data-mp-theme="graphite"] :is(.primary,.mp-theme-save,.mp5517-btn.gold,.mp50-action,.mp47-table button,.mp48-requests,button.gold,button.mp-primary,button.btn-primary,.btn-primary,.mp45-tab.active):hover {background:#69e5a9!important;border-color:#69e5a9!important;color:#082316!important}
html[data-mp-theme="graphite"] :is(.primary,.mp-theme-save,.mp5517-btn.gold,.mp50-action,.mp47-table button,.mp48-requests,button.gold,button.mp-primary,button.btn-primary,.btn-primary):disabled {opacity:.45!important;cursor:not-allowed!important}
/* Navigation, selected tabs, selected theme, focus rings */
html[data-mp-theme="graphite"] :is(.sidebar .nav.active,.sidebar .nav:hover,.sidebar .nav-section,.admin-tabs button.selected,.org-tabs button.org-selected,.mp-theme-option[aria-pressed="true"],.mp-ind-menu.expanded>.nav,.mp45-tab.active) {border-color:#3ecf8e!important}
html[data-mp-theme="graphite"] :is(.sidebar .nav.active,.sidebar .nav:hover,.mp-ind-menu.expanded>.nav){background:#173b2b!important;color:#9af4c6!important}
html[data-mp-theme="graphite"] :is(.admin-tabs button.selected,.org-tabs button.org-selected){background:#193e2d!important;color:#8bf2bc!important}
html[data-mp-theme="graphite"] :is(button,input,select,textarea,a):focus-visible{outline:2px solid #3ecf8e!important;outline-offset:2px}
html[data-mp-theme="graphite"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.mp-report input,.mp-report select,.mp5517-dashboard input,.mp5517-dashboard select,.mp50-filters input,.mp50-filters select,.lic-field input,.lic-field select,.lic-field textarea){background:#252525!important;color:#f2f2f2!important;border-color:#484848!important}
html[data-mp-theme="graphite"] :is(input::placeholder,textarea::placeholder){color:#999!important}
html[data-mp-theme="graphite"] :is(.secondary,.back,.logout,.admin-tabs button:not(.selected),.org-tabs button:not(.org-selected),.mp-nat-icon,.mp-nat-bulk,.mp-nat-cancel,.mp5517-btn:not(.gold),.mp-theme-trigger,.mp-theme-footer button:not(.mp-theme-save)){background:#303030!important;color:#e7e7e7!important;border-color:#484848!important}
html[data-mp-theme="graphite"] :is(.secondary,.back,.logout,.mp5517-btn:not(.gold)):hover{background:#383838!important;border-color:#69e5a9!important}
/* Surfaces for legacy settings and organizational CRUD: avoid white panels. */
html[data-mp-theme="graphite"] :is(.settings-tile,.stat,.admin-card,.perm-card,.admin-panel,.admin-table-wrap,.lic-stat,.lic-monitor-card,.mp5517-logo-settings,.ticket-msg,.ticket-row,.ticket-alert,.feedback,.disabled-note,.setup){background:#242424!important;color:#f2f2f2!important;border-color:#3b3b3b!important;color-scheme:dark}
html[data-mp-theme="graphite"] :is(.settings-tile,.stat,.admin-card,.perm-card,.admin-panel,.admin-table-wrap,.lic-stat,.lic-monitor-card) :is(h1,h2,h3,h4,h5,h6,strong,b,td,span,label){color:#f2f2f2!important}
html[data-mp-theme="graphite"] :is(.settings-tile,.stat,.admin-card,.perm-card,.admin-panel,.lic-stat,.lic-monitor-card) :is(p,small,.admin-note,.mp-muted){color:#a9abad!important}
html[data-mp-theme="graphite"] :is(thead th,.admin-table th,.mp-emp-table-2029 th,.org-table th,.mp-report th,.mp50-table th,.mp5517-table th){background:#303030!important;color:#ededed!important;border-color:#484848!important}
html[data-mp-theme="graphite"] :is(td,tr,.admin-table td,.mp50-table td,.mp5517-table td){border-color:#3b3b3b!important}
/* Charts and dashboard surfaces use matching tokens, while alerts retain semantic red/amber. */
html[data-mp-theme="graphite"] .mp5517-dashboard{background:#171717!important;color:#f2f2f2!important;border-color:#3b3b3b!important}
html[data-mp-theme="graphite"] :is(.mp50-panel,.mp50-kpi,.mp47-card,.mp47-metric,.mp5517-card,.mp5517-kpi){background:#242424!important;border-color:#3b3b3b!important;box-shadow:none!important}
html[data-mp-theme="graphite"] :is(.mp47-track,.mp50-track,.mp5517-bar,.mp50-columnwrap){background-color:#333!important}
html[data-mp-theme="graphite"] :is(.mp50-bandchart,.mp47-track,.mp5517-bar,.mp50-track) .mp50-fill{background:#3ecf8e!important}
html[data-mp-theme="graphite"] .mp50-columnwrap{border-bottom-color:#526b5d!important}
html[data-mp-theme="graphite"] :is(.mp5517-donut:after,.mp48-ring-core,.mp50-panel .mp48-ring-core){background:#242424!important}
html[data-mp-theme="graphite"] :is(.mp5517-bar span,.mp50-track i:not([style]),.mp47-fill:not([style])){background:#3ecf8e!important}
html[data-mp-theme="graphite"] .mp47-priority{background:#292929!important;border-color:#4a4a4a!important}
html[data-mp-theme="graphite"] :is(.mp5517-links a,.tile span:last-child,.settings-link,.lic-module input,.perm-options input){accent-color:#3ecf8e!important}
html[data-mp-theme="graphite"] :is(.symbol,.chip,.settings-icon,.mp5517-fallback){background:#193e2d!important;color:#69e5a9!important}
html[data-mp-theme="graphite"] .mp-theme-option[data-theme="graphite"] .mp-theme-option-preview{box-shadow:inset 0 -3px 0 #3ecf8e}
/* Preserve intentional semantics for errors, overdue items and dangerous actions. */
html[data-mp-theme="graphite"] :is(.danger,.mp-nat-danger,.mp50-danger,.error){color:#ff8787!important}
html[data-mp-theme="graphite"] .mp-nat-danger{background:#302326!important;border-color:#673b45!important}
