* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
}

button, input, select { font: inherit; color: inherit; }

a { color: var(--blue); }

a:hover { color: var(--navy); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  z-index: 5;
}

.skip-link:focus { top: 12px; }

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  background: linear-gradient(180deg, #092641, #0a2845 40%, #0d3a5c);
  color: white;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar > * { flex-shrink: 0; }

.brand-lockup { display: flex; gap: 12px; align-items: center; padding: 0 8px; }

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgb(81 215 255 / 14%);
  color: #51d7ff;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand-logo { height: 46px; width: auto; flex: 0 0 auto; object-fit: contain; }
.brand-lockup strong { display: block; font-size: 15px; }
.brand-lockup span { color: #d5e7f5; font-size: 12px; }

.nav { display: flex; flex-direction: column; gap: 6px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e7f3fb;
  text-decoration: none;
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 650;
}

.nav-link:hover, .nav-link.is-active { background: rgb(255 255 255 / 12%); color: white; }

.nav-link.is-active { outline: 1px solid rgb(81 215 255 / 45%); }

.nav-group {
  margin: 14px 0 2px;
  padding: 12px 12px 0;
  border-top: 1px solid rgb(255 255 255 / 14%);
  color: #8fc7ea;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav-link-export { border: 1px dashed rgb(143 199 234 / 45%); }

.icon { width: 18px; height: 18px; flex: 0 0 18px; }

.sidebar-note {
  margin-top: auto;
  color: #d5e7f5;
  font-size: 12px;
  padding: 12px;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.workspace { flex: 1; min-width: 0; }

.topbar {
  min-height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
}

.topbar h1 { margin: 0; font-size: 22px; color: var(--navy); }

.eyebrow, .topbar-title .eyebrow, .code {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.topbar-meta { display: flex; gap: 22px; margin-left: auto; }
.topbar-meta span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.topbar-meta strong { color: var(--navy); }

.menu-btn { display: none; }

.banner[hidden] { display: none; }

.banner {
  margin: 18px 28px 0;
  background: #f4f8fc;
  border-left: 4px solid var(--cyan);
  border-radius: 10px;
  padding: 12px 14px;
  color: #345066;
}

main { padding: 22px 28px 48px; outline: none; }

.hero {
  background: linear-gradient(115deg, #092641, #075a9b);
  color: white;
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow);
}

.hero h2 { margin: 8px 0; font-size: 32px; line-height: 1.15; }
.hero p { margin: 0; color: #d8eaf7; }
.hero .eyebrow { color: #90e6ff; }
.brand { text-align: right; }
.brand strong { display: block; font-size: 40px; letter-spacing: -2px; color: #51d7ff; }
.brand small { color: #d8eaf7; }
.brand-hero-logo { display: inline-block; height: 84px; width: auto; object-fit: contain; }

.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin: 28px 0 12px; }
.section-head h2, .panel h3, .detail-panel h3 { margin: 0; color: var(--navy); }
.section-head p, .muted { color: var(--muted); margin: 0; }

.kpis, .split, .card-grid, .project-grid, .track-grid, .mini-kpis {
  display: grid;
  gap: 14px;
}

.kpis { grid-template-columns: 1.3fr repeat(3, 1fr); }
.split { grid-template-columns: 1.15fr .85fr; }
.card-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.track-grid, .mini-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis-compact { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 8px 0 4px; }
.kpis-compact.kpis-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
