/* SKOPAS Workspace V18.19 - final all-page theme force */
:root{--sk-bg:#212121;--sk-nav:#171717;--sk-card:#2f2f2f;--sk-card2:#383838;--sk-green:#19c37d;--sk-green2:#10a37f;--sk-text:#f4f4f4;--sk-muted:#b7b7b7;--sk-line:#454545;--sk-warn:#d7a341}
html,body{background:var(--sk-bg)!important;color:var(--sk-text)!important}
body,main,.wrap,.content,.page,.page-shell,.main,.main-content,.dashboard-main{background:var(--sk-bg)!important;color:var(--sk-text)!important}
header,.top,.topbar,.sidebar,.nav,.workspace-header{background:var(--sk-nav)!important;color:var(--sk-text)!important;border-color:var(--sk-line)!important}
h1,h2,h3,h4,h5,h6,strong,label,legend,.big,.price,.billing-value,.company-user strong{color:var(--sk-text)!important}
p,small,.muted,.meta,.per,.limits,.eyebrow,.billing-label,.metric span,.panel p,.tile span,.hero p,.module p,.task-mini span,.deadline small{color:var(--sk-muted)!important}
a{color:var(--sk-green)!important}
.hero,.card,.panel,.status-card,.metric,.quick,.tool,.focusbar,.next-action,.tile,.module,.plan-card,.billing-card,.table-card,.company-box,.billing-item,.item,.bucket,.workspace-card,.stat-card,.summary-card,.action-card,.setup-card,.health-card,.attention-card,.subscription-card{background:var(--sk-card)!important;color:var(--sk-text)!important;border-color:var(--sk-line)!important;box-shadow:none!important}
.hero,.card{border-color:var(--sk-line)!important}
input,textarea,select,.search input,.global-search input{background:#292929!important;color:var(--sk-text)!important;border-color:#505050!important}
input::placeholder,textarea::placeholder{color:#8f8f8f!important}
button,.btn,.preset,.tabs a,.focus-pill,.global-search button,.search button{background:var(--sk-card2)!important;color:var(--sk-text)!important;border-color:#505050!important}
button:hover,.btn:hover,.preset:hover,.tabs a:hover{border-color:var(--sk-green)!important}
.btn.primary,.preset.primary,.tabs .on,button.primary,.primary{background:var(--sk-green2)!important;color:#071b13!important;border-color:var(--sk-green)!important}
table,thead,tbody,tr,th,td{color:var(--sk-text)!important;border-color:var(--sk-line)!important}
th{background:#272727!important;color:#d9d9d9!important}td{background:var(--sk-card)!important}tbody tr:nth-child(even) td{background:#333!important}
.notice,.note,.clear,.ok,.info,.warn,.warning,.alert{background:#29352f!important;color:#dff7eb!important;border-color:#3c6654!important}
.warn,.warning,.alert{background:#393328!important;color:#f1d7a2!important;border-color:#655538!important}
.err,.bad{background:#3a2929!important;color:#f0b7b7!important;border-color:#684242!important}
.badge,.tag,.status,.chip,.pill{border-color:#505050!important}
.badge.active,.status.good{background:#193d30!important;color:#6ee7b7!important}.status.warn{background:#40351f!important;color:#f2c568!important}.status.bad{background:#442828!important;color:#f2aaaa!important}
.meter{background:#444!important}.fill{background:var(--sk-green)!important}
.module.recommended{background:#343129!important;border-color:#6a5a34!important}.tag{background:#454033!important;color:#f2c568!important}
/* Remove remaining light panels from setup/modules/insights/subscription/dashboard */
[style*="background:#fff"],[style*="background: #fff"],[style*="background:white"],[style*="background: white"],[style*="background:#f8fafc"],[style*="background: #f8fafc"],[style*="background:#f9fafb"],[style*="background: #f9fafb"]{background:var(--sk-card)!important;color:var(--sk-text)!important}
/* Assistant follows SKOPAS */
.workspace-assistant-panel,.workspace-assistant-messages,.workspace-assistant-quick,.assistant-msg.bot{background:var(--sk-card)!important;color:var(--sk-text)!important;border-color:var(--sk-line)!important}.assistant-msg.user,.workspace-assistant-toggle{background:var(--sk-green2)!important;color:#071b13!important}
/* Keep warning/semantic colors readable without white surfaces */
[style*="color:#0f172a"],[style*="color: #0f172a"],[style*="color:#0b1725"],[style*="color: #0b1725"]{color:var(--sk-text)!important}
@media print{body{background:#fff!important;color:#000!important}}

/* SKOPAS Workspace V18.20 - contrast consistency patch
   Covers legacy page-specific light surfaces that were not part of the V18.19 selector set. */
.listbox,.score,.finish,.step,.flow .step,.panel-body,.health-item,.enterprise-box,.pricing-card,.faq-grid article,.secure-pill,
.rolebox + .listbox,.workspace-panel,.responsibility-card,.responsibilities-card{
  background:var(--sk-card)!important;
  color:var(--sk-text)!important;
  border-color:var(--sk-line)!important;
  box-shadow:none!important;
}
.listbox h1,.listbox h2,.listbox h3,.listbox h4,.listbox li,
.score strong,.score span,.finish,.step,.flow .step,.health-item strong,.health-item span{
  color:var(--sk-text)!important;
}
.listbox li{border-color:var(--sk-line)!important}
.score{background:#2a312d!important;border-color:#496153!important}
.score strong{color:var(--sk-green)!important}
.score span{color:#d7c28c!important}
.done .btn,.secondary,.tabs a,.preset{background:var(--sk-card2)!important;color:var(--sk-text)!important;border-color:#505050!important}
.done .dot{background:#183d2f!important;color:#7ce7b8!important}
.dot{color:inherit}
.flow .step{color:var(--sk-text)!important}
.note{color:#dff7eb!important}
.back{color:var(--sk-green)!important}
/* Legacy inline light backgrounds used by setup/role/productivity pages. */
[style*="background:#fff8e8"],[style*="background: #fff8e8"],
[style*="background:#fff6df"],[style*="background: #fff6df"],
[style*="background:#fffdf8"],[style*="background: #fffdf8"],
[style*="background:#edf1f5"],[style*="background: #edf1f5"],
[style*="background:#eef2f7"],[style*="background: #eef2f7"]{
  background:var(--sk-card2)!important;
  color:var(--sk-text)!important;
}
/* Prevent pale inherited text on forced-dark legacy surfaces. */
.listbox *, .score *, .finish *, .step *{text-shadow:none}
@media(max-width:560px){
  .listbox,.score,.finish,.step{min-width:0;max-width:100%}
  .listbox li{line-height:1.45}
}
