/* ============================================
CSS VARIABLES & RESET (SAME THEME)
============================================ */
:root {
  /* ---- DARK MODE (default) ---- */
  --bg-base:    #0d0f14;
  --bg-surface: #131720;
  --bg-card:    #1a1f2e;
  --bg-card2:   #1f2537;
  --border:     rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --topbar-bg: rgba(13,15,20,0.92);
  --shadow: 0 2px 16px rgba(0,0,0,0.3);
  --amber:  #f5a623;
  --amber2: #ffcc60;
  --red:    #e85d5d;
  --green:  #3ecf8e;
  --blue:   #5b8dee;
  --purple: #9b7fe8;
  --teal:   #2dd4bf;
  --text-1: #f0f2f8;
  --text-2: #8892aa;
  --text-3: #525e78;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ---- LIGHT MODE ---- */
html.light {
  --bg-base:    #f0f2f7;
  --bg-surface: #e8eaf0;
  --bg-card:    #ffffff;
  --bg-card2:   #f5f6fa;
  --border:     rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
  --topbar-bg: rgba(255,255,255,0.92);
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --amber:  #d48806;
  --red:    #c0392b;
  --green:  #1a9e6d;
  --blue:   #2563eb;
  --purple: #7c3aed;
  --teal:   #0d9488;
  --text-1: #111827;
  --text-2: #4b5563;
  --text-3: #9ca3af;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(245,166,35,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(91,141,238,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}
html.light body::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(212,136,6,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(37,99,235,0.05) 0%, transparent 60%);
}

/* ============================================
THEME TOGGLE BUTTON
============================================ */
.theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--bg-card2);
  border: 1px solid var(--border-strong);
  transition: background 0.35s ease, border-color 0.35s ease;
  display: flex;
  align-items: center;
  padding: 0 4px;
  justify-content: space-between;
}
.toggle-track .icon-moon,
.toggle-track .icon-sun {
  font-size: 0.65rem;
  z-index: 1;
  transition: opacity 0.3s;
}
.toggle-track .icon-moon { color: #818cf8; }
.toggle-track .icon-sun  { color: #f59e0b; }
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), #e07b10);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), background 0.35s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: white;
}
html.light .toggle-thumb {
  transform: translateX(24px);
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
html.light .toggle-track {
  background: #fef3c7;
  border-color: #f59e0b;
}

/* ============================================
TOPBAR
============================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--amber), #e07b10);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #0d0f14;
  font-weight: 700;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--text-1);
}
.brand-text span {
  color: var(--amber);
}
.topbar-center {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-tab {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}
.nav-tab.active,
.nav-tab:hover {
  background: rgba(245,166,35,0.12);
  color: var(--amber);
  border-color: rgba(245,166,35,0.25);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.period-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text-2);
  font-family: var(--font-mono);
}
.period-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}
.btn-entry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--amber), #e07b10);
  color: #0d0f14;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}
.btn-entry:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.35);
}

/* --- NEW PROFILE STYLES --- */
.profile-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.35rem 0.9rem 0.35rem 0.35rem;
    font-size: 0.8rem;
    color: var(--text-2);
    font-family: var(--font-mono);
    transition: all var(--transition);
}
.profile-group:hover {
    border-color: var(--amber);
}
.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    font-size: 0.8rem;
    border: 1px solid var(--border-strong);
}
.profile-name {
    font-weight: 600;
    color: var(--text-1);
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-logout {
    color: var(--red);
    text-decoration: none;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all var(--transition);
}
.btn-logout:hover {
    background: rgba(232,93,93,0.1);
}
.btn-login {
    background: var(--bg-card2);
    border: 1px solid var(--border-strong);
    color: var(--text-1);
}
.btn-login:hover {
    background: var(--bg-card);
    border-color: var(--amber);
    color: var(--amber);
}
/* ------------------------ */

/* ============================================
MAIN LAYOUT
============================================ */
.main {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* ============================================
PAGE HEADER
============================================ */
.page-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page-title span {
  color: var(--amber);
}
.page-sub {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-top: 0.3rem;
}
.year-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
}

/* ============================================
KPI STRIP - TOP ROW
============================================ */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 1100px) { .kpi-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .kpi-strip { grid-template-columns: 1fr; } }
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), background 0.4s ease;
}
.kpi-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent, var(--amber));
}
.kpi-card.green   { --accent: var(--green); }
.kpi-card.red     { --accent: var(--red); }
.kpi-card.blue    { --accent: var(--blue); }
.kpi-card.purple  { --accent: var(--purple); }
.kpi-card.teal    { --accent: var(--teal); }
.kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.6rem;
}
.kpi-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1;
}
.kpi-value.large { font-size: 1.6rem; }
.kpi-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  font-size: 0.77rem;
}
.delta {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 600;
  font-family: var(--font-mono);
}
.delta.up   { color: var(--red); }   /* incident = up is bad */
.delta.down { color: var(--green); }  /* incident down = good */
.delta.neutral { color: var(--text-2); }
.kpi-icon {
  position: absolute;
  bottom: 1rem;
  right: 1.2rem;
  font-size: 2.2rem;
  opacity: 0.06;
}

/* ============================================
GRID LAYOUTS
============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
@media (max-width: 1100px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .col-span-2, .col-span-3 { grid-column: span 1; }
}

/* ============================================
CARD
============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
html.light .card,
html.light .kpi-card,
html.light .rate-card,
html.light .scorecard-item {
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.card-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}
.card-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
}
.badge-amber  { background: rgba(245,166,35,0.15);  color: var(--amber); }
.badge-green  { background: rgba(62,207,142,0.12);  color: var(--green); }
.badge-red    { background: rgba(232,93,93,0.12);   color: var(--red); }
.badge-blue   { background: rgba(91,141,238,0.12);  color: var(--blue); }
.badge-purple { background: rgba(155,127,232,0.12); color: var(--purple); }
.badge-teal   { background: rgba(45,212,191,0.12);  color: var(--teal); }

/* Chart container */
.chart-wrap {
  position: relative;
  width: 100%;
}

/* ============================================
SECTION DIVIDER
============================================ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1.25rem;
}
.section-divider h2 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-divider .icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.icon-amber  { background: rgba(245,166,35,0.15);  color: var(--amber); }
.icon-red    { background: rgba(232,93,93,0.12);   color: var(--red); }
.icon-green  { background: rgba(62,207,142,0.12);  color: var(--green); }
.icon-blue   { background: rgba(91,141,238,0.12);  color: var(--blue); }

/* ============================================
SAFETY RATE GAUGE
============================================ */
.rate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), background 0.4s ease;
}
.rate-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.rate-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.rate-value {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1;
}
.rate-value.zero { color: var(--green); }
.rate-value.low  { color: var(--amber); }
.rate-value.high { color: var(--red); }
.rate-formula {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  margin-top: 0.5rem;
}
.rate-vs {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

/* ============================================
METRICS TABLE
============================================ */
.metrics-table {
  width: 100%;
  border-collapse: collapse;
}
.metrics-table th {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0.5rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.metrics-table th:first-child { text-align: left; }
.metrics-table td {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-2);
  padding: 0.55rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.metrics-table td:first-child {
  text-align: left;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 0.82rem;
}
.metrics-table tr:hover td { background: rgba(255,255,255,0.02); }
.metrics-table .ytd-val {
  color: var(--text-1);
  font-weight: 500;
}
.progress-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}
.mini-progress {
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.mini-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--green);
}

/* ============================================
INCIDENT TIMELINE
============================================ */
.incident-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.4rem;
}
.incident-month {
  text-align: center;
}
.incident-month-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}
.incident-dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 500;
}
.dot-zero { background: rgba(62,207,142,0.1);  color: var(--green); border: 1px solid rgba(62,207,142,0.2); }
.dot-low  { background: rgba(245,166,35,0.15); color: var(--amber); border: 1px solid rgba(245,166,35,0.25); }
.dot-high { background: rgba(232,93,93,0.15);  color: var(--red);   border: 1px solid rgba(232,93,93,0.25); }
.dot-na   { background: rgba(255,255,255,0.03); color: var(--text-3); border: 1px solid var(--border); }

/* ============================================
MANPOWER ROW
============================================ */
.manpower-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.mp-label {
  font-size: 0.75rem;
  color: var(--text-2);
  width: 70px;
  flex-shrink: 0;
}
.mp-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.mp-fill {
  height: 100%;
  border-radius: 3px;
}
.mp-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-1);
  width: 35px;
  text-align: right;
}

/* ============================================
SCORECARD GRID
============================================ */
.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.scorecard-item {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  transition: border-color var(--transition), background 0.4s ease;
}
.scorecard-item:hover { border-color: var(--border-strong); }
.sc-name {
  font-size: 0.7rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-ytd {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1;
}
.sc-target {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  margin-top: 0.3rem;
}
.sc-pct {
  font-size: 0.68rem;
  margin-top: 0.4rem;
  font-weight: 600;
}

/* ============================================
FOOTER
============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}
.footer-text {
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* ============================================
ANIMATIONS
============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeUp 0.5s ease both; }
.kpi-strip > * { animation: fadeUp 0.5s ease both; }
.kpi-strip > *:nth-child(1) { animation-delay: 0.05s; }
.kpi-strip > *:nth-child(2) { animation-delay: 0.10s; }
.kpi-strip > *:nth-child(3) { animation-delay: 0.15s; }
.kpi-strip > *:nth-child(4) { animation-delay: 0.20s; }

/* ============================================
CHART TYPE TOGGLE BUTTON
============================================ */
.chart-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-card2);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.28rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.chart-type-btn i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}
.chart-type-btn:hover {
  background: rgba(245,166,35,0.1);
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-1px);
}
.chart-type-btn:hover i {
  transform: scale(1.15);
}
.chart-type-btn:active {
  transform: scale(0.96);
}
html.light .chart-type-btn {
  background: #f3f4f6;
  border-color: rgba(0,0,0,0.12);
  color: #6b7280;
}
html.light .chart-type-btn:hover {
  background: rgba(212,136,6,0.08);
  border-color: var(--amber);
  color: var(--amber);
}

/* ============================================
LANGUAGE TOGGLE BUTTON
============================================ */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.lang-toggle:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(245,166,35,0.08);
  transform: translateY(-1px);
}
.lang-flag { font-size: 0.9rem; line-height: 1; }
.lang-arrow {
  font-size: 0.55rem;
  color: var(--text-3);
  margin: 0 0.1rem;
}
.lang-next {
  color: var(--text-3);
  font-size: 0.72rem;
}

/* Translate animation - elements that are switching */
[data-i18n] {
  transition: opacity 0.2s ease;
}
.lang-switching [data-i18n] {
  opacity: 0;
}

/* ============================================
LIGHT MODE OVERRIDES
============================================ */
html.light .lang-toggle {
  background: #f3f4f6;
  border-color: rgba(0,0,0,0.15);
  color: #6b7280;
}
html.light .lang-toggle:hover {
  background: rgba(212,136,6,0.08);
  border-color: var(--amber);
  color: var(--amber);
}
html.light .metrics-table th {
  color: #9ca3af;
  border-bottom-color: rgba(0,0,0,0.08);
}
html.light .metrics-table td {
  color: #4b5563;
  border-bottom-color: rgba(0,0,0,0.04);
}
html.light .metrics-table td:first-child { color: #111827; }
html.light .metrics-table tr:hover td { background: rgba(0,0,0,0.02); }
html.light .section-divider::after { background: rgba(0,0,0,0.1); }
html.light .section-divider h2 { color: #9ca3af; }
html.light .footer { border-top-color: rgba(0,0,0,0.08); }
html.light .footer-text { color: #9ca3af; }
html.light .period-badge {
  background: #f3f4f6;
  border-color: rgba(0,0,0,0.1);
  color: #6b7280;
}
html.light .nav-tab { color: #6b7280; }
html.light .nav-tab.active,
html.light .nav-tab:hover {
  background: rgba(212,136,6,0.1);
  color: var(--amber);
  border-color: rgba(212,136,6,0.3);
}
html.light .page-title { color: #111827; }
html.light .page-sub   { color: #6b7280; }
html.light .year-label { color: #9ca3af; border-color: rgba(0,0,0,0.1); }
html.light .card-title { color: #6b7280; }
html.light .kpi-label  { color: #9ca3af; }
html.light .rate-label { color: #9ca3af; }
html.light .rate-formula { color: #9ca3af; }
html.light .sc-name    { color: #9ca3af; }
html.light .sc-target  { color: #9ca3af; }
html.light .mp-label   { color: #6b7280; }
html.light .icon-amber { background: rgba(212,136,6,0.12); }
html.light .icon-red   { background: rgba(192,57,43,0.1); }
html.light .icon-green { background: rgba(26,158,109,0.1); }
html.light .icon-blue  { background: rgba(37,99,235,0.1); }
html.light .badge-amber  { background: rgba(212,136,6,0.12);   color: var(--amber); }
html.light .badge-green  { background: rgba(26,158,109,0.1);   color: var(--green); }
html.light .badge-red    { background: rgba(192,57,43,0.1);    color: var(--red); }
html.light .badge-blue   { background: rgba(37,99,235,0.1);    color: var(--blue); }
html.light .badge-purple { background: rgba(124,58,237,0.1);   color: var(--purple); }
html.light .badge-teal   { background: rgba(13,148,136,0.1);   color: var(--teal); }
html.light .kpi-icon { opacity: 0.08; color: #000; }
html.light .dot-zero { background: rgba(26,158,109,0.1); border-color: rgba(26,158,109,0.2); }
html.light .dot-low  { background: rgba(212,136,6,0.12); border-color: rgba(212,136,6,0.25); }
html.light .dot-high { background: rgba(192,57,43,0.1);  border-color: rgba(192,57,43,0.2); }
html.light .dot-na   { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); color: #9ca3af; }
html.light .rate-vs { color: #6b7280; }
html.light .kpi-meta { color: #6b7280; }

/* ============================================
SCROLLBAR
============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
html.light ::-webkit-scrollbar-track { background: #e8eaf0; }
html.light ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }
