:root{
  --bg:#050504;
  --panel:rgba(255,255,255,.04);
  --text:#f4f4f4;
  --muted:#d6d6d2;
  --gold:#c9ad35;
  --gold2:#e6cd5c;
  --border:rgba(255,255,255,.12);
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --radius:18px;
  --max:1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1100px 600px at 20% 10%, rgba(201,173,53,.10), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(230,205,92,.07), transparent 55%),
    var(--bg);
  overflow-x:hidden;
}

/* subtle grid */
body:before{
  content:"";
  position:fixed; inset:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(650px 420px at 50% 18%, rgba(0,0,0,1), rgba(0,0,0,.15));
  opacity:.35;
  pointer-events:none;
}

a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}

.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(5,5,4,.65);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.08em}
.brand-dot{
  width:10px; height:10px; border-radius:999px;
  background:var(--gold);
  box-shadow:0 0 20px rgba(201,173,53,.45);
}
.brand-title{font-weight:900}
.brand-sub{color:var(--muted); font-weight:800}

.nav-links{display:flex; gap:18px; color:var(--muted); font-size:14px}
.nav-links a:hover{color:var(--text)}

.nav-actions{display:flex; gap:10px; align-items:center}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
  user-select:none;
}
.btn:hover{background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18)}
.btn:active{transform: translateY(1px)}
.btn-primary{
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color:#0b0b0a;
  border:none;
  box-shadow: 0 12px 30px rgba(201,173,53,.20);
}
.btn-ghost{background:transparent}

.hero{padding:60px 0 26px}
.hero-card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:44px 28px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.hero-card:after{
  content:"";
  position:absolute; inset:-120px -220px auto auto;
  width:520px; height:520px;
  background: radial-gradient(circle at 30% 30%, rgba(201,173,53,.25), transparent 60%);
  transform: rotate(18deg);
  opacity:.55;
  pointer-events:none;
}
.pill{
  display:inline-block;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-size:13px;
}
.hero-title{
  margin:14px 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  text-transform:uppercase;
  letter-spacing:.03em;
  line-height:1.05;
  font-weight:900;
}
.gold{color:var(--gold)}
.hero-sub{max-width:860px; color:var(--muted); font-size:16px; line-height:1.6}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:22px}

.modules{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.module-card{
  grid-column: span 6;
  display:flex; align-items:center; gap:14px;
  padding:18px;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  position:relative;
}
.module-card:hover{border-color: rgba(201,173,53,.28)}
.module-icon{
  width:42px; height:42px;
  display:grid; place-items:center;
  border-radius:14px;
  border:1px solid rgba(201,173,53,.25);
  color:var(--gold);
  background: rgba(201,173,53,.06);
  font-weight:900;
}
.module-card h3{margin:0 0 6px; font-size:16px}
.module-card p{margin:0; color:var(--muted); font-size:14px; line-height:1.5}
.module-cta{margin-left:auto; color:rgba(201,173,53,.95); font-weight:800; font-size:13px}

.section{padding:28px 0}
.section-title{
  margin:0 0 10px;
  font-size:22px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.section-sub{margin:0 0 16px; color:var(--muted); line-height:1.6}

.how-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.how-card{
  grid-column: span 4;
  padding:18px;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.how-num{
  width:34px; height:34px;
  display:grid; place-items:center;
  border-radius:999px;
  background: rgba(201,173,53,.10);
  border:1px solid rgba(201,173,53,.25);
  color:var(--gold2);
  font-weight:900;
  margin-bottom:10px;
}
.how-card h4{margin:0 0 6px}
.how-card p{margin:0; color:var(--muted); line-height:1.6}

.kpi-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.kpi{
  grid-column: span 3;
  padding:14px;
  border-radius: 16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.kpi-label{color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em}
.kpi-value{margin-top:8px; font-size:22px; font-weight:900}
.kpi-hint{margin-top:6px; color:var(--muted); font-size:13px}

.panel{
  padding:16px;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
}
.list{margin:0; padding-left:18px; color:var(--muted); line-height:1.8}

.footer{
  padding:26px 0 40px;
  border-top:1px solid var(--border);
  margin-top:30px;
}
.footer-inner{
  display:flex; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
  color:var(--muted);
}
.muted{color:var(--muted)}

@media (max-width: 900px){
  .module-card{grid-column: span 12}
  .how-card{grid-column: span 12}
  .kpi{grid-column: span 6}
  .nav-links{display:none}
}
/* Submit panel */
.submit-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.submit-title{font-weight:900; font-size:18px; letter-spacing:.03em}

/* Modal */
.modal-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.65);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:100;
}
.modal{
  width:min(980px, 100%);
  max-height: 90vh;
  overflow:auto;
  background: rgba(10,10,9,.92);
  border:1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  box-shadow: 0 30px 120px rgba(0,0,0,.65);
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 18px;
  border-bottom:1px solid rgba(255,255,255,.10);
  position:sticky;
  top:0;
  background: rgba(10,10,9,.92);
  backdrop-filter: blur(10px);
}
.modal-title{
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.modal-close{
  border:none;
  background:transparent;
  color:var(--muted);
  font-size:22px;
  cursor:pointer;
}
.modal-close:hover{color:var(--text)}
.modal-body{padding:18px}

/* Wizard header chips */
.wizard-steps{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.wstep{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-size:13px;
  font-weight:800;
}
.wstep.active{
  border-color: rgba(201,173,53,.45);
  color: var(--text);
}

/* Form layout */
.form-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.field{
  grid-column: span 6;
  display:grid;
  gap:6px;
}
.field.full{grid-column: span 12}
label{font-size:13px; color:var(--muted)}
input, select, textarea{
  width:100%;
  padding:12px 12px;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color:var(--text);
  outline:none;
}
/* Fix select dropdown readability */
select {
  color: var(--text);
  background-color: rgba(255,255,255,.03);
}

/* Most important: options background */
select option {
  background-color: #0b0b0a;  /* dark */
  color: #f4f4f4;             /* light text */
}

/* Optional: improve placeholder look for first option */
select:invalid {
  color: var(--muted);
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(201,173,53,.45);
}
textarea{min-height: 92px; resize: vertical}
.hint{color:var(--muted); font-size:12px; line-height:1.5}

/* Module selector cards */
.check-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}
.check-card{
  grid-column: span 6;
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  cursor:pointer;
}
.check-card:hover{border-color: rgba(201,173,53,.28)}
.check-card input{margin-top:4px; width:18px; height:18px}
.check-title{font-weight:900}
.check-sub{color:var(--muted); font-size:13px; line-height:1.5}

/* Review */
.review-card{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:14px;
}
.review-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.review-title{font-weight:900; font-size:16px}
.review-actions{display:flex; gap:10px}
.summary-box{
  margin:12px 0 0;
  padding:12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font-size:13px;
  line-height:1.7;
  white-space:pre-wrap;
}

/* Wizard nav */
.wizard-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:12px;
}
.wizard-right{display:flex; gap:10px}
.hidden{display:none !important}

/* Responsive */
@media (max-width: 900px){
  .field{grid-column: span 12}
  .check-card{grid-column: span 12}
  .submit-panel{flex-direction:column; align-items:flex-start}
}
.dashboard-container{
padding:0;
overflow:hidden;
}

.powerbi-frame{
width:100%;
height:80vh;
min-height:720px;
border:0;
display:block;
background:#0b0b0a;
}
.dashboard-loading{
display:flex;
align-items:center;
justify-content:center;
height:120px;
color:var(--muted);
font-weight:600;
letter-spacing:.05em;
}
.user-chip{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background: rgba(255,255,255,.03);
}

.user-initials{
  width:34px;
  height:34px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#0b0b0a;
  background: var(--gold, #a4ff3c);
}

.user-meta{line-height:1.1}
.user-name{font-weight:800; font-size:13px}
.user-email{color:rgba(255,255,255,.65); font-size:12px}
.hidden{display:none !important;}

/* SDG Goals Styling */
.sdg-container {
  padding: 10px 0;
}

.sdg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.sdg-card {
  background: #1e2434;
  border: 1px solid #2d3548;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.sdg-card:hover {
  border-color: #c9a05c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sdg-card input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #c9a05c;
}

.sdg-card input[type="checkbox"]:checked + .sdg-content .sdg-number {
  background: #c9a05c;
  color: #0b1120;
}

.sdg-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.sdg-number {
  background: #2d3548;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.sdg-title {
  color: white;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

/* Selected state */
.sdg-card:has(input:checked) {
  border-color: #c9a05c;
  background: #2a3142;
}

.sdg-card:has(input:checked) .sdg-number {
  background: #c9a05c;
  color: #0b1120;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sdg-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .sdg-title {
    font-size: 12px;
  }
}

/* Impact update notifications below dashboard */
.impact-updates-wrap {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
}

.updates-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.updates-title {
  margin: 0 0 6px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.updates-sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.update-alert {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(201,173,53,.35);
  background: rgba(201,173,53,.10);
  color: var(--text);
}

.updates-table-wrap {
  overflow-x: auto;
}

.updates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.updates-table th,
.updates-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  text-align: left;
  vertical-align: top;
}

.updates-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.empty-updates {
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.submitted-email {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.status-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-pending {
  color: #0b0b0a;
  background: var(--gold);
}

@media (max-width: 900px) {
  .updates-head {
    flex-direction: column;
  }
}

.reason-cell {
  max-width: 260px;
  color: var(--muted);
  line-height: 1.5;
}


/* Status filter buttons for submitted update table */
.status-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}

.status-filter-btn {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.status-filter-btn:hover {
  color: var(--text);
  border-color: rgba(201,173,53,.30);
  background: rgba(201,173,53,.08);
}

.status-filter-btn.active {
  color: #0b0b0a;
  background: var(--gold);
  border-color: var(--gold);
}

.updates-filter-summary {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
}

.status-pending-review,
.status-pending {
  color: #0b0b0a;
  background: var(--gold);
}

.status-needs-clarification {
  color: #0b0b0a;
  background: #f0b35a;
}

.status-approved {
  color: #07140b;
  background: #7ddc91;
}

.status-rejected {
  color: #210909;
  background: #ef7d7d;
}

.status-updated-in-power-bi {
  color: #07111f;
  background: #8ebcff;
}


/* Standard evidence step */
.evidence-note {
  color: #d6d6d2;
  line-height: 1.6;
}

/* Improved readability for dark background */
.section-sub,
.updates-sub,
.muted,
.hint,
.empty-updates,
.submitted-email,
.kpi-hint,
.module-card p,
.how-card p,
.list {
  color: #d6d6d2 !important;
}

.updates-table th {
  color: #e8e8e3 !important;
  font-weight: 900;
}

.updates-table td {
  color: #ffffff;
}

.reason-cell {
  color: #e2e2dd !important;
}

#updateFilterSummary {
  color: #e2e2dd !important;
}


/* Submission review governance note */
.governance-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 12px 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(201,173,53,.32);
  background: linear-gradient(180deg, rgba(201,173,53,.12), rgba(201,173,53,.055));
}

.governance-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #0b0b0a;
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
}

.governance-title {
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}

.governance-text {
  color: #f0f0eb;
  line-height: 1.55;
  font-size: 14px;
}

.review-governance-note {
  margin-top: 14px;
  margin-bottom: 12px;
}

@media (max-width: 700px) {
  .governance-note {
    flex-direction: column;
  }
}


/* Local testing actions */
.updates-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.btn-danger-soft {
  color: #ffd7d7;
  border-color: rgba(239,125,125,.35);
  background: rgba(239,125,125,.08);
}

.btn-danger-soft:hover {
  color: #ffffff;
  border-color: rgba(239,125,125,.60);
  background: rgba(239,125,125,.16);
}

@media (max-width: 900px) {
  .updates-actions {
    width: 100%;
    justify-content: flex-start;
  }
}


/* Portal mode indicator */
.portal-mode-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 12px 0 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.035);
}

.portal-mode-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.portal-mode-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  flex: 0 0 auto;
  margin-top: 4px;
  box-shadow: 0 0 18px rgba(255,255,255,.15);
}

.portal-mode-dot-test {
  background: #ffcf66;
  box-shadow: 0 0 18px rgba(255,207,102,.35);
}

.portal-mode-dot-live {
  background: #6df09c;
  box-shadow: 0 0 18px rgba(109,240,156,.35);
}

.portal-mode-title {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: .02em;
}

.portal-mode-text {
  color: #f0f0eb;
  line-height: 1.5;
  margin-top: 4px;
  font-size: 14px;
}

.portal-mode-pill {
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.18);
}

.portal-mode-test .portal-mode-pill {
  color: #0b0b0a;
  background: #ffcf66;
  border-color: #ffcf66;
}

.portal-mode-live .portal-mode-pill {
  color: #06220f;
  background: #6df09c;
  border-color: #6df09c;
}

@media (max-width: 700px) {
  .portal-mode-card {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =====================================================
   Accessibility / contrast improvements for dark theme
   Keeps the Amini black-and-gold style but improves readability.
   ===================================================== */
:root {
  --text: #ffffff;
  --muted: #d6d6d2;
  --muted-strong: #e8e8e3;
  --muted-soft: #c8c8c2;
  --input-bg: rgba(255,255,255,.075);
  --input-border: rgba(255,255,255,.28);
}

body {
  color: var(--text);
}

/* General supporting text */
.section-sub,
.hero-sub,
.module-card p,
.how-card p,
.kpi-hint,
.list,
.muted,
.hint,
.updates-sub,
.empty-updates,
.submitted-email,
.check-sub,
.sdg-title,
.portal-mode-text,
.governance-note-text,
.filter-summary,
#updateFilterSummary {
  color: var(--muted) !important;
}

/* Headings and important labels */
.section-title,
.updates-title,
.submit-title,
.review-title,
.modal-title,
.check-title,
.portal-mode-title,
.governance-note-title,
.kpi-value,
.module-card h3,
.how-card h4 {
  color: #ffffff !important;
}

/* Form labels and inputs */
label,
.kpi-label,
.updates-table th {
  color: var(--muted-strong) !important;
  font-weight: 800;
}

input,
select,
textarea {
  color: #ffffff !important;
  background: var(--input-bg) !important;
  border-color: var(--input-border) !important;
}

input::placeholder,
textarea::placeholder {
  color: #bdbdb7 !important;
  opacity: 1;
}

select option {
  background-color: #10100f !important;
  color: #ffffff !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(230,205,92,.75) !important;
  box-shadow: 0 0 0 3px rgba(201,173,53,.12);
}

/* Buttons and navigation */
.nav-links,
.nav-links a,
.btn,
.btn-ghost,
.module-cta {
  color: var(--muted-strong);
}

.nav-links a:hover,
.btn:hover,
.btn-ghost:hover,
.module-card:hover .module-cta {
  color: #ffffff;
}

.btn-primary {
  color: #0b0b0a !important;
}

/* Tables and submitted updates */
.updates-table td {
  color: #ffffff !important;
}

.updates-table th {
  background: rgba(255,255,255,.035);
}

.updates-table tr:hover td {
  background: rgba(255,255,255,.035);
}

.reason-cell,
.updates-table td.reason-cell {
  color: var(--muted-strong) !important;
}

/* Filter buttons */
.update-filter-btn {
  color: var(--muted-strong) !important;
  border-color: rgba(255,255,255,.30) !important;
  background: rgba(255,255,255,.055) !important;
}

.update-filter-btn:hover {
  color: #ffffff !important;
  border-color: rgba(230,205,92,.55) !important;
  background: rgba(201,173,53,.10) !important;
}

.update-filter-btn.active {
  color: #0b0b0a !important;
  background: var(--gold) !important;
  border-color: var(--gold) !important;
}

.update-filter-count {
  color: inherit !important;
  opacity: .95;
}

/* Status pills */
.status-pill {
  font-weight: 900;
}

.status-pending {
  color: #0b0b0a !important;
  background: #ffcf66 !important;
}

.status-clarification {
  color: #230b00 !important;
  background: #ffb070 !important;
}

.status-approved {
  color: #06220f !important;
  background: #78eda1 !important;
}

.status-rejected {
  color: #ffffff !important;
  background: #b84242 !important;
}

.status-updated {
  color: #061b24 !important;
  background: #78d9ff !important;
}

/* Cards, panels, and notes */
.panel,
.hero-card,
.module-card,
.how-card,
.review-card,
.impact-updates-wrap,
.portal-mode-card,
.governance-note,
.check-card,
.sdg-card {
  border-color: rgba(255,255,255,.18) !important;
}

.governance-note,
.portal-mode-card,
.update-alert {
  background: rgba(255,255,255,.055) !important;
}

.update-alert {
  color: #ffffff !important;
}

/* User chip */
.user-name {
  color: #ffffff !important;
}

.user-email {
  color: var(--muted) !important;
}

/* Review JSON box */
.summary-box {
  color: #ffffff !important;
  background: rgba(0,0,0,.45) !important;
  border-color: rgba(255,255,255,.20) !important;
}

/* Footer */
.footer,
.footer-inner {
  color: var(--muted) !important;
}


/* =====================================================
   LIVE SHAREPOINT SECTION STYLE FIX
   Force styling for the submitted updates area after deployment.
   ===================================================== */

.impact-updates-wrap {
  margin-top: 24px !important;
  padding: 24px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,.60) !important;
}

.updates-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 18px !important;
  margin-bottom: 18px !important;
}

.updates-title {
  margin: 0 0 8px !important;
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
}

.updates-sub {
  max-width: 760px !important;
  color: #d8d8d3 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.updates-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  min-width: 320px !important;
}

.updates-actions .btn,
#downloadPendingUpdates,
#refreshSharePointUpdates,
#clearLocalUpdates {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  background: rgba(255,255,255,.045) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

#downloadPendingUpdates:hover,
#refreshSharePointUpdates:hover {
  border-color: rgba(230,205,92,.65) !important;
  background: rgba(201,173,53,.13) !important;
}

#clearLocalUpdates {
  color: #ffdada !important;
  border-color: rgba(239,125,125,.40) !important;
  background: rgba(239,125,125,.08) !important;
}

#clearLocalUpdates:hover {
  color: #ffffff !important;
  background: rgba(239,125,125,.18) !important;
}

.portal-mode-card {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 18px 0 14px !important;
  padding: 16px 18px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(109,240,156,.32) !important;
  background: linear-gradient(180deg, rgba(109,240,156,.10), rgba(109,240,156,.045)) !important;
}

.portal-mode-left {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.portal-mode-dot {
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  border-radius: 999px !important;
  margin-top: 5px !important;
  background: #6df09c !important;
  box-shadow: 0 0 18px rgba(109,240,156,.50) !important;
}

.portal-mode-test .portal-mode-dot,
.portal-mode-dot-test {
  background: #ffcf66 !important;
  box-shadow: 0 0 18px rgba(255,207,102,.45) !important;
}

.portal-mode-live .portal-mode-dot,
.portal-mode-dot-live {
  background: #6df09c !important;
  box-shadow: 0 0 18px rgba(109,240,156,.50) !important;
}

.portal-mode-title {
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  letter-spacing: .03em !important;
}

.portal-mode-text {
  color: #eef2ee !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  margin-top: 4px !important;
}

.portal-mode-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  color: #06220f !important;
  background: #6df09c !important;
  border: 1px solid #6df09c !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.portal-mode-test .portal-mode-pill {
  color: #0b0b0a !important;
  background: #ffcf66 !important;
  border-color: #ffcf66 !important;
}

.governance-note {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 14px 0 16px !important;
  padding: 15px 18px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(201,173,53,.34) !important;
  background: linear-gradient(180deg, rgba(201,173,53,.12), rgba(201,173,53,.055)) !important;
}

.governance-icon {
  display: grid !important;
  place-items: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 999px !important;
  color: #0b0b0a !important;
  background: var(--gold) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  font-family: var(--font) !important;
}

.governance-title {
  margin: 0 0 4px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

.governance-text {
  color: #f1f1ec !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
}

.status-filter-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  margin: 16px 0 10px !important;
}

.status-filter-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid rgba(255,255,255,.26) !important;
  background: rgba(255,255,255,.055) !important;
  color: #e9e9e4 !important;
  border-radius: 999px !important;
  padding: 9px 13px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.status-filter-btn:hover {
  color: #ffffff !important;
  border-color: rgba(230,205,92,.65) !important;
  background: rgba(201,173,53,.12) !important;
}

.status-filter-btn.active {
  color: #0b0b0a !important;
  background: var(--gold) !important;
  border-color: var(--gold) !important;
}

.updates-filter-summary {
  color: #e5e5df !important;
  font-size: 14px !important;
  margin: 0 0 12px !important;
}

.updates-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 14px !important;
}

.updates-table th {
  color: #e8e8e3 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .10em !important;
  text-transform: uppercase !important;
  background: rgba(255,255,255,.035) !important;
}

.updates-table th,
.updates-table td {
  padding: 14px 12px !important;
  border-bottom: 1px solid rgba(255,255,255,.11) !important;
  text-align: left !important;
  vertical-align: top !important;
}

.updates-table td {
  color: #ffffff !important;
}

.submitted-email,
.reason-cell,
.empty-updates {
  color: #d8d8d3 !important;
}

.status-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 11px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.status-pending-review,
.status-pending {
  color: #0b0b0a !important;
  background: var(--gold) !important;
}

.status-needs-clarification,
.status-clarification {
  color: #230b00 !important;
  background: #ffb070 !important;
}

.status-approved {
  color: #06220f !important;
  background: #78eda1 !important;
}

.status-rejected {
  color: #ffffff !important;
  background: #b84242 !important;
}

.status-updated-in-power-bi,
.status-updated {
  color: #061b24 !important;
  background: #78d9ff !important;
}

@media (max-width: 900px) {
  .updates-head,
  .portal-mode-card,
  .governance-note {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .updates-actions {
    justify-content: flex-start !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}
