/* BUSINESS OS: Modern SaaS + Deep Ocean theme (approved 2026-10-07) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
  --sidebar-w: 240px;
  --topbar-h: 60px;
  --bg: #F6F8FA;
  --sidebar: #0A1C2B;
  --sidebar-text: #B8C7D6;
  --sidebar-sub: #8FA3B8;
  --sidebar-hover: rgba(255,255,255,.05);
  --sidebar-active: rgba(45,212,191,.12);
  --text: #0B1220;
  --text-muted: #4B5A6C;
  --border: #E6EAF0;
  --divider: #EEF1F5;
  --thead-bg: #F8FAFC;
  --card: #ffffff;
  --accent: #0F766E;
  --accent-hover: #0B5A54;
  --accent-bg: #E6F4F2;
  --accent-bright: #2DD4BF;
  --green: #15803D;
  --green-bg: #E8F5EC;
  --green-row: #F2F8F4;
  --amber: #D97706;
  --amber-bg: #FEF3E2;
  --amber-row: #FDF8EE;
  --red: #B91C1C;
  --red-bg: #FDECEC;
  --red-row: #FBF4F4;
  --grey: #CBD5E1;
  --grey-bg: #F1F5F9;
  /* numbers use the body font with fixed-width digits (easier to read than a mono face) */
  --mono: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  /* legacy aliases so older inline styles keep working */
  --blue: var(--accent);
  --blue-bg: var(--accent-bg);
}

html, body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── APP SHELL (authenticated pages) ── */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.sidebar-logo { padding: 20px 16px 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.logo-wave { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-logo .logo-mark { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.sidebar-logo .org-name { font-size: 11px; color: var(--sidebar-sub); margin-top: 1px; line-height: 1.4; }

.sidebar-nav { padding: 14px 10px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active { background: var(--sidebar-active); color: #fff; font-weight: 600; }
.nav-item.active svg { stroke: #5EEAD4; opacity: 1; }

.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  min-height: var(--topbar-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
}
.page-title { font-size: 15px; font-weight: 600; }
.topbar-right { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 14px; }
.topbar-right a { color: var(--text-muted); text-decoration: none; }
.topbar-right a:hover { color: var(--text); }
.role-chip {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-bg); color: var(--accent-hover);
  text-transform: capitalize;
}

.page-content { flex: 1; padding: 32px 40px 56px; max-width: 1280px; width: 100%; margin: 0 auto; }
.page-content.page-wide { max-width: none; }

/* ── GUEST LAYOUT (login/forgot/reset) ── */
.guest-wrap { max-width: 400px; margin: 90px auto; padding: 0 16px; }
.guest-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; font-size: 15px; font-weight: 700; color: var(--sidebar); }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(11,18,32,.04);
}
.card .card { border-radius: 12px; padding: 20px 22px; box-shadow: none; }
.card.card-critical { border: 1.5px solid var(--red); }
.card.card-critical .card-header { border-bottom-color: #F5D0D0; }
.card.card-info { border: 1.5px solid #2563EB; }
.card.card-info .card-header { border-bottom-color: #CFE0FB; }
.card.card-dark-outline { border: 1.5px solid var(--text); }
/* matches the "Coming soon" stat tiles */
.card.card-soon { border: 2px dotted #C3CCD8; background: #F3F5F8; box-shadow: none; text-align: center; padding: 20px 28px; }
.card.card-soon .card-title { justify-content: center; font-size: 13px; font-weight: 500; color: var(--text-muted); }
.card-soon-value { font-size: 32px; font-weight: 700; line-height: 1; color: #94A3B8; margin: 10px 0 6px; }
.card-soon-sub { font-size: 11px; color: var(--text-muted); }

h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 16px; color: var(--text); }
h2 { font-size: 14px; font-weight: 600; margin: 0 0 12px; color: var(--text); }
.eyebrow { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }

/* ── TABLES ── */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
thead th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); background: var(--thead-bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--divider); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #FAFBFC; }
.num { font-family: var(--mono); font-weight: 500; }

/* ── STATUS DOTS ── */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
.dot.green   { background: var(--green); }
.dot.amber   { background: var(--amber); }
.dot.red     { background: var(--red); }
.dot.missing { background: var(--grey); }

/* ── MINI MIX BAR (dept table) ── */
.mix-bar { display: inline-flex; width: 96px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--grey-bg); gap: 2px; vertical-align: middle; margin-left: 10px; }
.mix-bar i { display: block; height: 100%; }
.mix-bar i.green   { background: var(--green); }
.mix-bar i.amber   { background: var(--amber); }
.mix-bar i.red     { background: var(--red); }
.mix-bar i.missing { background: var(--grey); }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; text-transform: capitalize;
  white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-active   { background: var(--green-bg); color: #14532D; }
.badge-active::before { background: var(--green); }
.badge-inactive { background: var(--red-bg);   color: #991B1B; }
.badge-inactive::before { background: var(--red); }
.badge-amber    { background: var(--amber-bg); color: #7A4A06; }
.badge-amber::before { background: var(--amber); }
.badge-missing  { background: var(--grey-bg);  color: var(--text-muted); }
.badge-missing::before { background: #94A3B8; }

.variance-good { color: var(--green); font-weight: 600; font-size: 12px; white-space: nowrap; }
.variance-bad  { color: var(--red);   font-weight: 600; font-size: 12px; white-space: nowrap; }

/* ── KPI STATUS BAR ── */
.kpi-status-bar-wrap { margin-bottom: 20px; }
.kpi-status-bar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.kpi-status-bar-title { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi-status-bar-total { font-size: 18px; font-weight: 700; color: var(--text); border: 2px solid var(--text); border-radius: 999px; padding: 6px 18px; line-height: 1.3; }
.kpi-status-bar { display: flex; width: 100%; height: 10px; gap: 3px; }
.kpi-status-bar-seg { height: 100%; border-radius: 3px; }
.kpi-status-bar-seg.green   { background: var(--green); }
.kpi-status-bar-seg.amber   { background: var(--amber); }
.kpi-status-bar-seg.red     { background: var(--red); }
.kpi-status-bar-seg.missing { background: var(--grey); }
.kpi-status-bar-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.kpi-status-bar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.kpi-status-bar-legend b { font-family: var(--mono); font-weight: 600; color: var(--text); }
.kpi-status-bar-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.kpi-status-bar-legend i.green   { background: var(--green); }
.kpi-status-bar-legend i.amber   { background: var(--amber); }
.kpi-status-bar-legend i.red     { background: var(--red); }
.kpi-status-bar-legend i.missing { background: var(--grey); }

/* ── STAT CARDS ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.stat-label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 12px; }
.stat-value { font-family: var(--mono); font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--text); }
.stat-sub   { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.stat-card.green .stat-label::before,
.stat-card.amber .stat-label::before,
.stat-card.red   .stat-label::before,
.stat-card.grey  .stat-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.stat-card.green .stat-label::before { background: var(--green); }
.stat-card.amber .stat-label::before { background: var(--amber); }
.stat-card.red   .stat-label::before { background: var(--red); }
.stat-card.grey  .stat-label::before { background: var(--grey); }
/* count tiles: centred, bigger, number matches its dot colour */
.stat-card:not(.achieve) { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.stat-card:not(.achieve) .stat-label { justify-content: center; }
.stat-card.green .stat-value,
.stat-card.amber .stat-value,
.stat-card.red   .stat-value,
.stat-card.grey  .stat-value { font-size: 44px; font-weight: 700; }
.stat-card.green .stat-value { color: var(--green); }
.stat-card.amber .stat-value { color: var(--amber); }
.stat-card.red   .stat-value { color: var(--red); }
.stat-card.grey  .stat-value { color: #64748B; }
.stat-card.green, .stat-card.amber, .stat-card.red, .stat-card.grey { border-width: 1.5px; }
.stat-card.green { border-color: var(--green); }
.stat-card.amber { border-color: var(--amber); }
.stat-card.red   { border-color: var(--red); }
.stat-card.grey  { border-color: #94A3B8; }
.stat-card.soon { border: 2px dotted #C3CCD8; background: #F3F5F8; }
.stat-card.soon .stat-label::before { display: none; }
.stat-card.soon .stat-value { color: #94A3B8; }

/* achievement tile: dark, spans 2 columns, ring */
.stat-card.achieve {
  grid-column: span 2;
  background: var(--sidebar); border-color: var(--sidebar);
  display: flex; align-items: center; gap: 20px;
}
.stat-card.achieve .stat-label { color: #C9D6E3; margin-bottom: 6px; }
.stat-card.achieve .info-tip { background: rgba(255,255,255,.14); color: #fff; }
/* single-cell box, stacked: label top, ring middle, count bottom */
.stat-card.achieve { grid-column: auto; flex-direction: column; justify-content: center; gap: 8px; padding: 16px 18px; text-align: center; }
.stat-card.achieve .stat-label { justify-content: center; margin-bottom: 0; }
.achieve-ring { position: relative; width: 76px; height: 76px; flex-shrink: 0; }
.achieve-ring svg { width: 76px; height: 76px; }
.achieve-ring-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.achieve-ring-val small { font-size: 11px; font-weight: 600; color: #C9D6E3; margin-left: 1px; }
.achieve-sub { font-size: 12px; font-weight: 500; color: #C9D6E3; }
.ring { flex-shrink: 0; transform: rotate(-90deg); }
.ring .ring-track { stroke: rgba(255,255,255,.12); }
.ring .ring-fill  { stroke: var(--accent-bright); stroke-linecap: round; }
@media (max-width: 520px) { .stat-card.achieve { grid-column: span 1; } }

/* ── DATA ROWS (watchlist items inside cards) ── */
.data-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; background: var(--bg); border-radius: 10px;
}
.data-row-body { flex: 1; min-width: 0; }
.data-row + .data-row { margin-top: 6px; }
.data-row.red   { background: var(--red-row); }
.data-row.amber { background: var(--amber-row); }
.data-row.green { background: var(--green-row); }
.data-row-icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.data-row.red .data-row-icon   { stroke: var(--red); }
.data-row.amber .data-row-icon { stroke: var(--amber); }
.data-row.green .data-row-icon { stroke: var(--green); }
.data-row-title { font-size: 13px; font-weight: 600; color: var(--text); }
.data-row-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── CARD HEADER / GRID HELPERS ── */
.card-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--divider); margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.card-title { font-size: 15px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.card-title svg { width: 18px; height: 18px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── INFO TOOLTIP (hover, pure CSS) ── */
.info-tip {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grey-bg); color: var(--text-muted);
  font-size: 10px; font-weight: 700; font-style: normal;
  cursor: help; flex-shrink: 0;
}
.info-tip::before {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 0;
  width: max-content; max-width: 260px;
  background: var(--sidebar); color: #fff;
  font-size: 12px; font-weight: 500; line-height: 1.45;
  padding: 8px 10px; border-radius: 8px;
  box-shadow: 0 8px 20px rgba(10,28,43,.2);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .12s ease;
  z-index: 20;
  text-transform: none; letter-spacing: normal;
}
.info-tip:hover::before, .info-tip:focus::before { opacity: 1; visibility: visible; }
.card-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-muted { color: var(--text-muted); }

/* ── SHELL / COMING-SOON PLACEHOLDER ── */
.shell-placeholder {
  padding: 20px; text-align: center; border: 1px dashed #BFD6EE; border-radius: 10px;
  color: #3B5573; font-size: 12px; background: #EEF5FC;
}

/* ── BUTTONS (for <a> acting as buttons) ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent; font-family: inherit; text-decoration: none; transition: background .15s, border-color .15s; }
.btn-primary   { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); border-color: #D5DCE5; }
.btn-blue { background: #2563EB; color: #fff; border-color: #2563EB; }
.btn-blue:hover { background: #1D4ED8; border-color: #1D4ED8; }
.btn-gold { background: #B8892A; color: #fff; border: 2px solid #FDE68A; }
.btn-gold:hover { background: #9A6F18; }
/* logo treatment: solid teal, wave icon, soft glow */
.btn-wave { gap: 8px; padding: 0 18px 0 14px; background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 14px rgba(15,118,110,.35); }
.btn-wave:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 12px; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #991B1B; border-color: #991B1B; }
button.btn-danger { background: var(--red); color: #fff; }
button.btn-danger:hover { background: #991B1B; }
.btn-dark { background: var(--text); color: #fff; border-color: var(--text); }
.btn-dark:hover { background: #1E293B; }

/* ── CONSULTANT ASSIGNMENT (admin table cell) ── */
.consultant-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; margin-bottom: 8px;
}
.consultant-item form { margin: 0; }
.assign-form {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; margin-top: 4px;
}
.assign-form select { flex: 1; min-width: 0; margin-bottom: 0; }
.assign-form button { width: auto; flex-shrink: 0; }

/* ── BOARD REPORT HERO ── */
.board-hero {
  background: var(--sidebar);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  color: #fff;
}
.board-hero .eyebrow { color: var(--sidebar-sub); }
.board-hero .info-tip { background: rgba(255,255,255,.14); color: #fff; vertical-align: middle; margin-left: 4px; }
/* report hero: title left, counts middle, back button + ring right */
.board-hero.board-hero-row {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 48px;
  padding: 36px 40px;
  background:
    radial-gradient(520px 280px at 88% 10%, rgba(45,212,191,.20), transparent 65%),
    radial-gradient(480px 260px at 0% 110%, rgba(34,211,238,.10), transparent 60%),
    linear-gradient(135deg, #0A1C2B 0%, #0E2638 100%);
  box-shadow: 0 10px 30px rgba(10,28,43,.18);
}
/* faint wave lines along the bottom */
.board-hero.board-hero-row::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0 50 C150 20 300 80 450 50 S750 20 900 50 S1100 80 1200 45' fill='none' stroke='%232DD4BF' stroke-opacity='.18' stroke-width='2'/%3E%3Cpath d='M0 70 C150 45 300 95 450 70 S750 45 900 70 S1100 95 1200 65' fill='none' stroke='%2322D3EE' stroke-opacity='.10' stroke-width='2'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}
.board-hero-row > * { position: relative; z-index: 1; }
.board-hero-head h1 { font-size: 34px; letter-spacing: -.025em; }
.board-hero-head .board-hero-sub { display: inline-flex; margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #C9D6E3; font-size: 12px; font-weight: 500; }

.board-hero-row .board-stats { gap: 12px; flex-wrap: nowrap; }
.board-hero-row .board-stat {
  min-width: 104px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
}
.board-hero-row .board-stat .lbl { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 12px; font-weight: 500; color: #C9D6E3; }
.board-hero-row .board-stat .lbl i { width: 8px; height: 8px; border-radius: 50%; }
.board-hero-row .board-stat .val { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.board-stat.green .val { color: #4ADE80; }  .board-stat.green .lbl i { background: #4ADE80; box-shadow: 0 0 8px rgba(74,222,128,.6); }
.board-stat.amber .val { color: #FBBF24; }  .board-stat.amber .lbl i { background: #FBBF24; box-shadow: 0 0 8px rgba(251,191,36,.6); }
.board-stat.red .val   { color: #F87171; }  .board-stat.red .lbl i   { background: #F87171; box-shadow: 0 0 8px rgba(248,113,113,.6); }
.board-stat.missing .val { color: #E2E8F0; } .board-stat.missing .lbl i { background: #94A3B8; }

.board-hero-side { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.board-hero-side .board-ring { filter: drop-shadow(0 0 18px rgba(45,212,191,.18)); }
.board-hero-side .ring .ring-track { stroke: rgba(255,255,255,.08); }
.board-hero-side .ring .ring-fill  { stroke: url(#boardRingGrad); }
/* styled like the wave logo: solid teal, white text, wave icon */
.back-link.back-link-dark { min-height: 36px; padding: 0 16px 0 12px; gap: 8px; font-size: 13px; background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 14px rgba(15,118,110,.35); }
.back-link.back-link-dark:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

@media (max-width: 1100px) {
  .board-hero.board-hero-row { grid-template-columns: 1fr; gap: 24px; }
  .board-hero-row .board-stats { flex-wrap: wrap; }
  .board-hero-side { flex-direction: row-reverse; justify-content: space-between; align-items: center; }
}
.board-hero-sub { font-size: 13px; color: var(--sidebar-sub); }
.board-hero-body { display: flex; align-items: center; gap: 36px; margin-top: 22px; flex-wrap: wrap; }
.board-ring { position: relative; width: 150px; height: 150px; flex-shrink: 0; }
.board-ring svg { width: 150px; height: 150px; }
.board-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.board-ring-label .val { font-family: var(--mono); font-size: 34px; font-weight: 600; color: #fff; line-height: 1; }
.board-ring-label .lbl { font-size: 11px; color: var(--sidebar-sub); margin-top: 6px; }
.board-pending-banner {
  margin-top: 14px; padding: 10px 14px;
  background: rgba(251,191,36,.12);
  border: 1px solid rgba(251,191,36,.4);
  border-radius: 8px;
  font-size: 12px; color: #FBBF24;
}
.board-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.board-stat { text-align: left; }
.board-stat .val { font-family: var(--mono); font-size: 30px; font-weight: 600; color: #fff; line-height: 1; }
.board-stat .lbl { font-size: 12px; color: var(--sidebar-sub); margin-top: 6px; }

.win-item, .risk-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.win-item  { background: var(--green-row); color: #14532D; }
.risk-item { background: var(--red-row);   color: #7F1D1D; }
.win-item svg, .risk-item svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.win-item svg  { stroke: var(--green); }
.risk-item svg { stroke: var(--red); }

/* ── KPI REVIEW DIALOG ── */
.kpi-review-dialog {
  border: none; border-radius: 14px; padding: 0; overflow: hidden;
  max-width: 480px; width: 90vw; background: var(--card); color: var(--text);
  box-shadow: 0 20px 50px rgba(10,28,43,.25);
}
.kpi-review-dialog::backdrop { background: rgba(10,28,43,.55); }

.review-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 24px 16px; border-bottom: 1px solid var(--border);
}
.review-header h2 { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.review-header .card-subtitle { margin: 0; }
.review-close {
  width: auto; flex-shrink: 0; padding: 2px 6px;
  border: none; background: transparent; color: var(--text-muted);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.review-close:hover { background: var(--bg); color: var(--text); }

.review-body { padding: 20px 24px; }
.review-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 14px 0 0; font-size: 13px; }
.review-dl dt { color: var(--text-muted); font-weight: 600; }
.review-dl dd { margin: 0; }

.review-actions { padding: 16px 24px 20px; border-top: 1px solid var(--border); background: var(--bg); }
.review-actions .btn-approve { width: 100%; background: var(--green); }
.review-actions .btn-approve:hover { background: #166534; }
.review-actions .reject-row { display: flex; gap: 8px; margin-top: 10px; }
.review-actions .reject-row input[type=text] { flex: 1; margin-bottom: 0; }
.review-actions .btn-reject {
  width: auto; flex-shrink: 0;
  background: var(--card); color: var(--red); border: 1px solid var(--red);
}
.review-actions .btn-reject:hover { background: var(--red-bg); }

/* ── FORMS / INLINE ACTIONS ── */
details summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); }
details form { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
details form input, details form select {
  padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; font-family: inherit;
}
details form button { width: auto; padding: 6px 12px; font-size: 12px; }

.inline-form { display: inline; }
.inline-form button { width: auto; padding: 6px 12px; font-size: 12px; margin: 0; }

.section { margin-bottom: 32px; }

.form-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.form-row input, .form-row select {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit;
}
.form-row button { width: auto; padding: 8px 16px; }

label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }

input[type=email], input[type=password], input[type=text], input[type=file], select {
  width: 100%;
  padding: 9px 11px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,118,110,.12); }

button {
  width: 100%;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
button:hover { background: var(--accent-hover); }

.links { margin-top: 16px; font-size: 13px; text-align: center; }
.links a { color: var(--accent); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
}
.back-link:hover { background: var(--bg); border-color: #D5DCE5; }

/* ── FLASH / ALERTS ── */
.flashes { margin-bottom: 16px; }
.flash {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid;
  margin-bottom: 8px;
}
.flash-danger  { background: #FEF6F6; border-color: #F5C6C6; color: #7F1D1D; }
.flash-warning { background: #FFFBF0; border-color: #F3D9A4; color: #7A4A06; }
.flash-success { background: var(--green-row); border-color: #BFE3CB; color: #14532D; }
.flash-info    { background: #F0F9F8; border-color: #B7E1DC; color: var(--accent-hover); }
.flash .inline-form button { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.flash .inline-form button:hover { background: var(--bg); }

a { color: var(--accent); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

.link-blue { color: #2563EB; font-weight: 600; }
.link-blue:hover { color: #1D4ED8; }
