:root {
  --mnu-red: #d20a11;
  --mnu-red-dark: #a8080d;
  --ink: #111827;
  --muted: #667085;
  --line: #e6e8ee;
  --soft: #f7f8fb;
  --surface: #ffffff;
  --success: #087443;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.portal-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 1) 340px),
    radial-gradient(circle at 12% 22%, rgba(210, 10, 17, 0.08), transparent 28%),
    #fff;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px min(8vw, 96px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.brand img,
footer img,
.login-panel img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--mnu-red);
  font-size: 24px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.portal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #242936;
  font-size: 14px;
  font-weight: 750;
}

.portal-nav a:hover,
.small-link:hover {
  color: var(--mnu-red);
}

.ghost-button,
.secondary-button,
.primary-button,
.tile-action,
.small-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
}

.ghost-button {
  border: 1px solid var(--line);
  padding: 9px 16px;
  color: var(--ink);
  background: white;
  cursor: pointer;
}

.primary-button {
  padding: 12px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--mnu-red), var(--mnu-red-dark));
  box-shadow: 0 14px 32px rgba(210, 10, 17, 0.22);
}

.secondary-button {
  padding: 11px 19px;
  color: var(--mnu-red);
  border: 1px solid rgba(210, 10, 17, 0.26);
  background: #fff;
}

main {
  padding: 0 min(8vw, 96px) 42px;
}

.portal-home-main {
  display: grid;
  align-content: start;
  min-height: calc(100vh - 104px);
  padding-top: 58px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
  gap: 54px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 56px 0;
}

.portal-home-hero {
  grid-template-columns: minmax(0, 1fr);
  min-height: auto;
  padding: 12px 0 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mnu-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  color: var(--mnu-red);
  font-size: clamp(76px, 10vw, 154px);
  line-height: 0.85;
}

.hero-copy h2 {
  margin: 14px 0 14px;
  font-size: 36px;
  line-height: 1.05;
}

.hero-copy p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.dashboard-count {
  display: inline-flex;
  width: fit-content;
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(210, 10, 17, 0.2);
  border-radius: 999px;
  color: var(--mnu-red);
  background: #fff5f5;
  font-size: 13px;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.dashboard-preview,
.dashboard-tile,
.viewer-section,
.two-column-band article,
.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.dashboard-preview {
  padding: 20px;
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.preview-topbar img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.preview-topbar span {
  font-weight: 900;
}

.preview-topbar small {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.metric-row article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-row span,
.chart-card span,
.donut-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-row strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 30px;
}

.metric-row small {
  color: var(--success);
  font-weight: 800;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 12px;
}

.chart-card,
.donut-card {
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.chart-card svg {
  width: 100%;
  height: 170px;
  margin-top: 12px;
}

.chart-card path {
  fill: none;
  stroke: var(--mnu-red);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-card circle {
  fill: white;
  stroke: var(--mnu-red);
  stroke-width: 4;
}

.donut {
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  margin: 20px auto 0;
  border-radius: 50%;
  background: conic-gradient(var(--mnu-red) 0 42%, #f5a524 42% 66%, #22a06b 66% 84%, #e8ebf0 84% 100%);
}

.donut strong {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #fff;
}

.section-band,
.viewer-section,
.two-column-band {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head h2,
.two-column-band h2 {
  margin: 0;
  font-size: 28px;
}

.small-link {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--mnu-red);
  border: 1px solid rgba(210, 10, 17, 0.26);
  background: #fff;
}

.dashboard-library {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  gap: 14px;
}

.dashboard-library-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.dashboard-tile {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.dashboard-tile h3 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.dashboard-tile p,
.two-column-band li,
.embed-placeholder,
footer {
  color: var(--muted);
  line-height: 1.55;
}

.tile-status {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--success);
  background: #ecfdf4;
  font-size: 12px;
  font-weight: 900;
}

.tile-status.draft {
  color: var(--mnu-red);
  background: #fff1f1;
}

.dashboard-tile dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

.dashboard-tile dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-tile dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.tile-action {
  justify-self: start;
  padding: 10px 14px;
  color: #fff;
  background: var(--mnu-red);
}

.tile-action.muted {
  color: var(--mnu-red);
  border: 1px solid rgba(210, 10, 17, 0.24);
  background: white;
}

.viewer-section {
  padding: 18px;
}

.viewer-section iframe {
  display: block;
  width: 100%;
  height: min(920px, 78vh);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0f19;
}

.dashboard-page-shell main {
  padding-top: 28px;
}

.powerbi-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.powerbi-page-head h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.1;
}

.powerbi-page-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.powerbi-frame-card {
  min-height: calc(100vh - 230px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.powerbi-frame-card iframe {
  display: block;
  width: 100%;
  height: calc(100vh - 254px);
  min-height: 620px;
  border: 0;
  border-radius: 6px;
  background: #f4f5f7;
}

.two-column-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.two-column-band article {
  padding: 24px;
}

.two-column-band code,
.dashboard-tile code {
  padding: 2px 5px;
  border-radius: 5px;
  color: var(--mnu-red);
  background: #fff1f1;
}

.embed-placeholder {
  display: grid;
  gap: 12px;
  min-height: 180px;
  place-items: center;
  padding: 22px;
  border: 1px dashed rgba(210, 10, 17, 0.34);
  border-radius: 8px;
  background: #fff7f7;
  text-align: center;
}

footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px min(8vw, 96px);
  border-top: 1px solid var(--line);
}

footer a {
  margin-left: auto;
  color: var(--mnu-red);
  font-weight: 800;
}

.login-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(210, 10, 17, 0.07), transparent 42%),
    #fff;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  padding: 34px;
}

.login-panel h1 {
  margin: 4px 0 8px;
  color: var(--mnu-red);
  font-size: 64px;
  line-height: 0.9;
}

.login-copy {
  margin: 0 0 22px;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.login-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

.login-form input:focus {
  border-color: rgba(210, 10, 17, 0.5);
  outline: 3px solid rgba(210, 10, 17, 0.12);
}

.login-message {
  min-height: 20px;
  margin: 0;
  color: var(--mnu-red);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .hero-section,
  .dashboard-library,
  .dashboard-library-compact,
  .two-column-band {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .portal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  main,
  .portal-header,
  footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .brand {
    min-width: 0;
  }

  .metric-row,
  .preview-grid,
  .dashboard-tile dl {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    font-size: 28px;
  }

  .section-head,
  .powerbi-page-head,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .powerbi-frame-card iframe {
    height: 72vh;
    min-height: 520px;
  }

  footer a {
    margin-left: 0;
  }
}
