/* Softened South African flag palette: sage, coral, blue, gold, cream and charcoal. */
:root[data-theme="south-africa"] {
  --canvas:#fbfaf6; --surface:#ffffff; --sidebar-surface:#eef4ef;
  --surface-soft:#edf3ef; --hover:#e0ece4; --selected:#d7e8de;
  --text:#2f3c36; --muted:#55665d; --placeholder:#52675c;
  --border:#dbe4dd; --control-border:#93a89a; --focus-ring:#42725b;
  --primary:#346c52; --primary-hover:#285640; --on-primary:#ffffff;
  --success:#35654a; --success-bg:#e6f0df; --warning:#806226; --warning-bg:#fff2d5;
  --chart:#6a88aa; --chart-track:#e1e8e0; --chart-success:#6a9475; --chart-waiting:#a2823f;
  --feedback-error:#a14e47; --feedback-error-bg:#fbe9e4;
  --shadow-color:#234b3412; --backdrop:#253c3155;
  --sa-sage:#e5f0e6; --sa-coral:#f8e6e0; --sa-blue:#e7eff9; --sa-gold:#fff2d1;
  color-scheme:light;
}
[data-theme="south-africa"] .sidebar .nav-item.active {background:var(--selected);color:var(--primary-hover);box-shadow:inset 0 0 0 1px #bfd4c5}
[data-theme="south-africa"] .sidebar .nav-item.active .icon {color:var(--primary-hover)}
[data-theme="south-africa"] .sidebar .nav-group[aria-labelledby="nav-group-act"] .nav-item:not(.active) .icon {color:#528168}
[data-theme="south-africa"] .sidebar .nav-group[aria-labelledby="nav-group-collect"] .nav-item:not(.active) .icon {color:#6485aa}
[data-theme="south-africa"] .sidebar .nav-group[aria-labelledby="nav-group-curation"] .nav-item:not(.active) .icon {color:#957223}
[data-theme="south-africa"] :is(.dash-agent,.module-agent-panel,.module-agent-head) {background:var(--sa-sage)}
[data-theme="south-africa"] .dash-workflows>.dash-rail-card:first-child {background:var(--sa-sage)}
[data-theme="south-africa"] .dash-workflows>.dash-rail-card:nth-child(2) {background:var(--sa-blue)}
[data-theme="south-africa"] .dashboard-approvals {background:var(--sa-coral)}
[data-theme="south-africa"] .dashboard-quick-start {background:var(--sa-gold)}
[data-theme="south-africa"] :is(.dash-workflow-card,.approval-card,.quick-card) {box-shadow:inset 0 0 0 1px #d3dfd280,0 2px 0 #bccfbe26}
[data-theme="south-africa"] :is(.btn.primary,.send-btn,.dash-send):not(:disabled) {box-shadow:0 2px 0 #28564026}
[data-theme="south-africa"] .avatar.blue {background:var(--sa-blue);color:#496b91}
[data-theme="south-africa"] :is(.avatar.mint,.avatar.lavender) {background:var(--selected);color:var(--primary-hover)}
[data-theme="south-africa"] .avatar.peach {background:var(--sa-gold);color:var(--warning)}
[data-theme="south-africa"] .dash-flow-avatar {background:var(--sa-blue);color:var(--text)}
[data-theme="south-africa"] :is(.from-user .dash-message-content,.module-agent-message.is-user,.agent-user) {background:var(--selected)}
