:root {
  --bg: #f7f7f6;
  --panel: #ffffff;
  --ink: #172333;
  --muted: #667085;
  --line: #e5e1da;
  --maroon: #7a1731;
  --maroon-2: #9f2446;
  --navy: #10273f;
  --gold: #c69a45;
  --teal: #1a7a78;
  --soft: #faf8f5;
  --shadow: 0 10px 24px rgba(23, 35, 51, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(229, 225, 218, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand-mark,
.icon-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--maroon), var(--navy));
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.menu-toggle,
.button,
.ghost-button {
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav a {
  padding: 10px 13px;
  color: #344054;
  font-size: 14px;
}

.nav a.active,
.nav a:hover {
  color: var(--maroon);
  background: #f8edf1;
}

.menu-toggle {
  display: none;
  padding: 10px 14px;
  color: var(--maroon);
  background: #f8edf1;
}

#app {
  min-height: calc(100vh - 130px);
}

#app:focus {
  outline: none;
}

.page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 38px 0 58px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.eyebrow,
.kicker {
  margin: 0 0 10px;
  color: var(--maroon);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  font-size: clamp(32px, 5vw, 52px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(24px, 3.2vw, 34px);
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 16px;
}

.lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: #475467;
  font-size: clamp(17px, 2.3vw, 21px);
}

.hero-side,
.panel,
.card,
.lab-card,
.download-panel,
.empty-state {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-side {
  padding: 24px;
}

.stats-grid,
.card-grid,
.day-grid,
.schema-grid,
.overview-grid,
.quick-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.stat strong {
  display: block;
  color: var(--maroon);
  font-size: 28px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card,
.panel,
.download-panel,
.empty-state {
  padding: 22px;
}

.card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 23, 49, 0.28);
}

.card p,
.panel p,
.lab-card p,
.empty-state p {
  color: var(--muted);
}

.icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.card .arrow {
  margin-top: auto;
  color: var(--maroon);
  font-weight: 800;
}

.section {
  margin-top: 32px;
}

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

.section-head p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
}

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  text-align: center;
  white-space: normal;
}

.button {
  color: #fff;
  background: var(--maroon);
  box-shadow: 0 10px 22px rgba(122, 23, 49, 0.2);
}

.button:hover {
  background: var(--maroon-2);
}

.ghost-button {
  color: var(--maroon);
  border: 1px solid #ead1da;
  background: #fff7fa;
}

.badge-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge {
  color: var(--maroon);
  background: #f8edf1;
}

.tag {
  color: #175c5a;
  background: #e8f4f3;
}

.overview-grid {
  grid-template-columns: 1fr 1fr;
}

.agenda-list {
  display: grid;
  gap: 14px;
}

.agenda-card,
.schema-card,
.slide-summary,
.workbook-name {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.agenda-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  overflow: hidden;
}

.agenda-day {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  font-weight: 900;
}

.agenda-card div:last-child {
  padding: 18px;
}

ul.clean {
  margin: 12px 0 0;
  padding-left: 18px;
}

ul.clean li {
  margin: 6px 0;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.schema-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.schema-card {
  padding: 16px;
}

.schema-card strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.field-list {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.day-grid,
.quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.day-card {
  min-height: 180px;
}

.roadmap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 2px 18px;
}

.roadmap-item {
  flex: 0 0 170px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.lab-card {
  margin-bottom: 18px;
  overflow: hidden;
}

.lab-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fff, #fbf7f8);
}

.lab-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
  padding: 22px;
}

.mini-section {
  margin-top: 18px;
}

.mini-section:first-child {
  margin-top: 0;
}

.mini-section h4 {
  margin-bottom: 8px;
  color: var(--navy);
}

.step-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.visual-box,
.callout,
.checkpoint,
.wireframe {
  border-radius: 12px;
  padding: 16px;
}

.visual-box {
  border: 1px dashed #d8c0ca;
  background: #fff9fb;
}

.visual-box pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  color: var(--navy);
  font: 13px/1.45 "Cascadia Mono", Consolas, monospace;
}

.callout {
  border: 1px solid #ead9b9;
  background: #fff9ea;
}

.checkpoint {
  border: 1px solid #cce4e2;
  background: #eef9f8;
}

.workbook-name {
  display: inline-flex;
  margin: 8px 8px 0 0;
  padding: 10px 12px;
  color: var(--navy);
  background: var(--soft);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.slide-toolbar {
  position: sticky;
  top: 72px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 0;
  background: var(--bg);
}

.slide-deck {
  display: grid;
  gap: 22px;
}

.slide {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  padding: clamp(26px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(122, 23, 49, 0.08), rgba(198, 154, 69, 0.08) 32%, rgba(255, 255, 255, 0) 33%),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.slide h2 {
  max-width: 78%;
  margin-bottom: 14px;
  font-size: clamp(28px, 4.2vw, 48px);
}

.slide-message {
  max-width: 760px;
  color: var(--maroon);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
}

.slide-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
  gap: 28px;
  margin-top: 28px;
}

.slide ul {
  margin: 0;
  padding-left: 22px;
  font-size: clamp(16px, 1.8vw, 22px);
}

.slide li {
  margin: 10px 0;
}

.diagram {
  min-height: 230px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.diagram-bars span,
.diagram-flow span,
.diagram-grid span {
  display: block;
  border-radius: 10px;
  background: var(--maroon);
}

.diagram-bars span {
  height: 16px;
}

.diagram-bars span:nth-child(2) {
  width: 82%;
  background: var(--teal);
}

.diagram-bars span:nth-child(3) {
  width: 64%;
  background: var(--gold);
}

.diagram-bars span:nth-child(4) {
  width: 44%;
  background: var(--navy);
}

.diagram-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diagram-flow span {
  padding: 12px;
  color: #fff;
  font-weight: 800;
}

.diagram-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
}

.diagram-grid span {
  min-height: 64px;
  background: #fff;
  border: 1px solid var(--line);
}

.slide-footer {
  position: absolute;
  left: 54px;
  right: 54px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

details.notes {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.empty-state {
  padding: 48px;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
}

.simple-hero {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.day-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.day-strip a,
.day-pill {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.day-strip a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
}

.day-strip span {
  color: var(--muted);
}

.lab-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.day-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--muted);
  font-weight: 800;
}

.day-pill.active {
  color: #fff;
  border-color: var(--maroon);
  background: var(--maroon);
}

.lab-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.lab-summary p {
  color: var(--muted);
}

.lab-jump-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.lab-jump-list a {
  flex: 0 0 190px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.lab-jump-list span {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--maroon);
}

.labs-stack {
  display: grid;
  gap: 18px;
}

.enhanced-lab {
  box-shadow: none;
}

.enhanced-lab .lab-header {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  padding: 20px 22px;
  background: #fff;
}

.enhanced-lab .lab-header p {
  margin-bottom: 0;
}

.lab-chip-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.enhanced-lab .badge-row {
  justify-content: flex-end;
}

.enhanced-lab .lab-body {
  grid-template-columns: minmax(0, 1fr) 330px;
  padding: 0;
}

.lab-main {
  padding: 22px;
}

.lab-aside {
  padding: 22px;
  border-left: 1px solid var(--line);
  background: #fbfbfa;
}

.info-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.info-box summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
}

.chart-preview {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-head strong {
  color: var(--maroon);
}

.chart-preview svg {
  display: block;
  width: 100%;
  height: 190px;
}

.chart-preview rect:nth-child(1),
.chart-preview rect:nth-child(4) {
  fill: var(--maroon);
}

.chart-preview rect:nth-child(2) {
  fill: var(--teal);
}

.chart-preview rect:nth-child(3) {
  fill: var(--gold);
}

.dash-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dash-preview span,
.dash-preview b,
.kpi-preview span {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.dash-preview span {
  padding: 18px;
  color: var(--maroon);
  font-weight: 900;
}

.dash-preview b {
  min-height: 104px;
}

.dash-preview b:nth-of-type(1) {
  grid-column: span 2;
}

.donut-preview {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
  min-height: 190px;
}

.donut-preview div {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--maroon) 0 45%, var(--teal) 45% 75%, var(--gold) 75% 100%);
  position: relative;
}

.donut-preview div::after {
  content: "";
  position: absolute;
  inset: 36px;
  border-radius: 50%;
  background: #fff;
}

.donut-preview ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 800;
}

.map-preview {
  position: relative;
  min-height: 190px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(26, 122, 120, 0.12), rgba(198, 154, 69, 0.1)),
    #eef2f2;
}

.map-preview span {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--maroon);
  box-shadow: 0 6px 12px rgba(23, 35, 51, 0.2);
}

.kpi-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 190px;
  align-content: center;
}

.kpi-preview span {
  padding: 18px;
  color: var(--muted);
}

.kpi-preview strong {
  display: block;
  color: var(--maroon);
  font-size: 22px;
}

.formula-preview {
  min-height: 190px;
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
}

.formula-preview code {
  display: block;
  padding: 18px;
  border-radius: 12px;
  color: var(--navy);
  background: var(--soft);
  font-size: 17px;
}

.formula-preview span {
  color: var(--maroon);
  font-weight: 900;
}

.flow-preview {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.flow-preview span {
  padding: 14px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--navy);
  font-weight: 900;
}

.flow-preview i {
  width: 34px;
  height: 2px;
  background: var(--gold);
}

.stack-preview {
  min-height: 190px;
  display: grid;
  align-content: center;
  gap: 14px;
}

.stack-preview span {
  display: block;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--maroon), var(--teal));
}

.step-heading {
  color: var(--maroon);
  background: #fff !important;
  font-weight: 900;
}

.compact-checklist summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.compact-hero {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  max-width: 980px;
  font-size: clamp(28px, 4vw, 42px);
}

.compact-hero .lead {
  max-width: 940px;
  font-size: 17px;
}

.lab-page .section {
  margin-top: 22px;
}

@media (max-width: 1040px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schema-grid,
  .day-grid,
  .quick-grid,
  .day-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .overview-grid,
  .lab-body,
  .slide-content,
  .download-panel,
  .lab-summary,
  .enhanced-lab .lab-body {
    grid-template-columns: 1fr;
  }

  .lab-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .lab-chip-wrap,
  .enhanced-lab .badge-row {
    justify-content: flex-start;
  }

  .enhanced-lab .lab-header {
    grid-template-columns: 1fr;
  }

  .download-panel .button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 68px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: grid;
  }

  .brand {
    min-width: auto;
  }

  .card-grid,
  .schema-grid,
  .day-grid,
  .quick-grid,
  .stats-grid,
  .day-strip,
  .kpi-preview,
  .donut-preview {
    grid-template-columns: 1fr;
  }

  .lab-header {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .hero-actions .ghost-button {
    width: 100%;
  }

  .lab-jump-list a {
    flex-basis: 165px;
  }

  .flow-preview i {
    display: none;
  }

  .slide {
    min-height: auto;
  }

  .slide h2 {
    max-width: none;
  }

  .slide-footer {
    left: 26px;
    right: 26px;
  }
}

@media print {
  .topbar,
  .site-footer,
  .slide-toolbar,
  details.notes {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .slide {
    width: 100vw;
    height: 56.25vw;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    page-break-after: always;
  }

  .lab-card,
  .panel,
  .card {
    box-shadow: none;
    page-break-inside: avoid;
  }
}

/* Simple site reset for the final trainee-facing portal */
body {
  background: #fafafa;
}

.topbar {
  min-height: 64px;
  border-bottom: 1px solid #e6e6e6;
  background: #fff;
}

.brand-mark {
  border-radius: 8px;
  background: var(--maroon);
}

.nav a {
  background: transparent;
}

.page {
  width: min(1040px, calc(100% - 36px));
  padding: 32px 0 56px;
}

.plain-hero,
.hero-panel,
.compact-hero {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.plain-hero h1,
.compact-hero h1,
.hero-panel h1 {
  max-width: 900px;
  font-size: clamp(30px, 4.2vw, 44px);
}

.lead {
  max-width: 760px;
  font-size: 18px;
}

.simple-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.simple-links a {
  display: block;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.simple-links strong,
.simple-links span {
  display: block;
}

.simple-links strong {
  font-size: 20px;
}

.simple-links span {
  margin-top: 8px;
  color: var(--muted);
}

.day-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.simple-download,
.simple-agenda,
.simple-lab,
.simple-slide {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.simple-download {
  max-width: 620px;
  padding: 24px;
}

.simple-download p {
  color: var(--muted);
}

.simple-agenda {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  padding: 20px;
}

.simple-agenda > strong {
  color: var(--maroon);
}

.lab-toolbar {
  margin-top: 22px;
}

.simple-tabs .ghost-button,
.simple-tabs .day-pill {
  border-radius: 8px;
  box-shadow: none;
}

.simple-lab-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.simple-lab-nav a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.simple-labs {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.simple-lab {
  padding: 28px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.simple-lab * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.day1-lab {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.day1-lab + .day1-lab {
  margin-top: 22px;
}

.day1-lab-head {
  padding: 26px 30px 22px;
  border-bottom: 1px solid var(--line);
}

.day1-lab-head h2 {
  max-width: 900px;
  margin-bottom: 10px;
  font-size: clamp(26px, 3.2vw, 36px);
}

.day1-lab-head p:last-child {
  max-width: 820px;
  color: var(--muted);
  font-size: 17px;
}

.day1-lab-grid {
  display: block;
}

.day1-visual-panel,
.day1-work-panel {
  padding: 28px 30px;
}

.day1-visual-panel {
  position: static;
  border-bottom: 1px solid var(--line);
  background: #fbfbfa;
}

.day1-work-panel {
  border-left: 0;
}

.day1-visual-panel h3,
.day1-work-panel h3,
.day1-result h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.tableau-preview {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(23, 35, 51, 0.04);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.preview-toolbar strong {
  font-size: 15px;
}

.preview-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.preview-filters button.active {
  color: #fff;
  border-color: var(--maroon);
  background: var(--maroon);
}

.preview-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 4px;
}

.preview-filters button {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #ead1da;
  border-radius: 999px;
  color: var(--maroon);
  background: #fff7fa;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: default;
}

.model-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 220px;
  padding: 22px;
}

.table-node {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.table-node span {
  color: var(--maroon);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
}

.table-node small {
  color: var(--muted);
}

.model-link {
  position: relative;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.model-link::before {
  content: "";
  display: block;
  width: 92px;
  height: 2px;
  margin-bottom: 8px;
  background: var(--maroon);
}

.field-roles {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.field-roles div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.field-roles strong,
.field-roles span {
  display: block;
}

.field-roles strong {
  margin-bottom: 10px;
  color: var(--maroon);
}

.field-roles span {
  margin: 6px 0;
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
}

.bar-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  margin: 14px 16px;
  transition: transform 140ms ease;
}

.bar-row:hover {
  transform: translateX(4px);
}

.bar-row span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.bar-row div {
  height: 18px;
  border-radius: 999px;
  background: #eee9e2;
  overflow: hidden;
}

.bar-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--maroon);
  transition: width 180ms ease, filter 140ms ease;
}

.bar-row:hover b {
  filter: brightness(1.08);
}

.bar-row:nth-of-type(3) b {
  background: var(--teal);
}

.bar-row:nth-of-type(4) b {
  background: var(--gold);
}

.bar-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.real-line-visual svg {
  width: 100%;
  height: auto;
  padding: 0 12px 10px;
}

.real-line-visual line {
  stroke: #d8d4ce;
  stroke-width: 2;
}

.real-line-visual polyline {
  stroke: var(--maroon);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.real-line-visual circle {
  fill: #fff;
  stroke: var(--maroon);
  stroke-width: 5;
}

.real-line-visual text {
  fill: var(--muted);
  font-size: 15px;
}

.dashboard-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
}

.dashboard-visual > div {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.dashboard-visual .dash-title,
.dashboard-visual .dash-filter {
  grid-column: 1 / -1;
  min-height: auto;
}

.dashboard-visual .dash-title {
  color: var(--ink);
  background: #fff7fa;
}

.guided-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guided-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--maroon);
  font-weight: 900;
}

.guided-step h4 {
  margin: 4px 0 8px;
  font-size: 16px;
}

.guided-step ul {
  margin: 0;
  padding-left: 18px;
}

.guided-step li {
  margin: 6px 0;
  color: #344054;
}

.day1-result {
  padding: 22px 30px 26px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-item {
  position: relative;
  padding: 12px 14px 12px 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfa;
  color: #344054;
}

.result-item::before {
  content: "✓";
  position: absolute;
  left: 13px;
  top: 12px;
  color: var(--maroon);
  font-weight: 900;
}

.modern-lab {
  box-shadow: 0 14px 34px rgba(23, 35, 51, 0.05);
}

.lab-workbench {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.lab-preview-column,
.lab-steps-column {
  padding: 28px 30px;
}

.lab-preview-column {
  background: #fbfbfa;
}

.lab-steps-column {
  border-left: 1px solid var(--line);
}

.lab-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.lab-panel-title h3 {
  margin: 0;
  font-size: 19px;
}

.lab-panel-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.modern-preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(23, 35, 51, 0.05);
}

.preview-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.preview-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.step-tool {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.step-tabs {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfa;
}

.step-tabs button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.step-tabs button.active {
  color: #fff;
  border-color: var(--maroon);
  background: var(--maroon);
}

.step-stage {
  min-height: 280px;
}

.step-page {
  display: none;
  padding: 26px;
}

.step-page.active {
  display: block;
}

.step-page h4 {
  margin: 0 0 18px;
  font-size: 28px;
}

.action-list {
  display: grid;
  gap: 12px;
}

.action-list div {
  position: relative;
  padding: 14px 14px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfa;
  color: #26364a;
}

.action-list div::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--maroon);
}

.step-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fbfbfa;
}

.step-controls button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.step-controls button:last-child {
  color: #fff;
  border-color: var(--maroon);
  background: var(--maroon);
}

.clean-role-view {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clean-role-view span {
  overflow-wrap: anywhere;
}

.filter-board,
.tree-view,
.set-list,
.parameter-box,
.target-bars,
.lod-boxes,
.risk-grid {
  padding: 18px;
}

.filter-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.filter-board div:not(.mini-bars),
.set-list div,
.risk-grid div,
.lod-boxes div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfa;
}

.filter-board span,
.filter-board b,
.set-list b {
  display: block;
}

.filter-board span {
  color: var(--muted);
  font-size: 12px;
}

.filter-board b {
  margin-top: 4px;
  color: var(--maroon);
}

.mini-bars {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.mini-bars i {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: var(--maroon);
}

.tree-view {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.tree-view div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfa;
  text-align: center;
  font-weight: 900;
}

.tree-view span {
  width: 34px;
  height: 2px;
  background: var(--maroon);
}

.set-list,
.lod-boxes,
.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.parameter-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.parameter-box button {
  padding: 8px 10px;
  border: 1px solid #ead1da;
  border-radius: 999px;
  background: #fff7fa;
  color: var(--maroon);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.parameter-box button.active {
  color: #fff;
  background: var(--maroon);
}

.clean-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
}

.clean-kpi div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfa;
}

.clean-kpi strong,
.clean-kpi span {
  display: block;
}

.clean-kpi strong {
  color: var(--maroon);
  font-size: 22px;
}

.clean-kpi span {
  color: var(--muted);
}

.target-bars {
  display: grid;
  gap: 14px;
}

.target-bars div {
  display: grid;
  grid-template-columns: 110px 1fr 42px;
  gap: 12px;
  align-items: center;
}

.target-bars b {
  height: 18px;
  border-radius: 999px;
  background: #eee9e2;
  overflow: hidden;
}

.target-bars i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.map-preview-card .map-preview {
  min-height: 260px;
  border-radius: 0;
}

.day1-page {
  width: min(1180px, calc(100% - 36px));
}

.day1-shell {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}

.day1-menu {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 8px;
}

.back-link,
.day1-menu button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.back-link {
  display: block;
  padding: 12px 14px;
  color: var(--maroon);
  font-weight: 900;
}

.day1-menu button {
  padding: 14px;
  font: inherit;
  cursor: pointer;
}

.day1-menu button span,
.day1-menu button strong {
  display: block;
}

.day1-menu button span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.day1-menu button strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.day1-menu button.active {
  border-color: #d9b8c3;
  background: #fff7fa;
}

.day1-menu button.active span,
.day1-menu button.active strong {
  color: var(--maroon);
}

.day1-reader {
  min-width: 0;
}

.day1-module {
  display: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(23, 35, 51, 0.05);
}

.day1-module.active {
  display: block;
}

.module-hero {
  padding: 30px 34px;
  border-bottom: 1px solid var(--line);
}

.module-hero h2 {
  max-width: 850px;
  margin-bottom: 10px;
  font-size: clamp(28px, 3.4vw, 40px);
}

.module-hero p:last-child {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.module-layout {
  display: block;
}

.module-visual,
.module-steps,
.module-check {
  padding: 28px 34px;
}

.module-visual {
  background: #fbfbfa;
  border-bottom: 1px solid var(--line);
}

.module-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border-left: 0;
}

.module-visual h3,
.module-steps h3,
.module-check h3 {
  margin: 0 0 16px;
  font-size: 19px;
}

.module-steps h3 {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.module-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.module-step:first-of-type {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.module-step > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--maroon);
  font-weight: 900;
}

.module-step h4 {
  margin: 4px 0 10px;
  font-size: 18px;
}

.module-step .action-list {
  gap: 8px;
}

.module-step .action-list div {
  padding: 0 0 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.module-step .action-list div::before {
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
}

.module-check {
  border-top: 1px solid var(--line);
}

.module-check .result-grid {
  grid-template-columns: 1fr;
}

.module-check .result-item {
  background: #fff;
}

.module-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.module-actions button {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--maroon);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(122, 23, 49, 0.16);
}

.module-actions button:hover {
  background: var(--maroon-2);
}

.day1-module .tableau-preview,
.day1-module .modern-preview {
  box-shadow: none;
}

.day1-module .real-bar-visual .bar-row {
  grid-template-columns: 160px minmax(0, 1fr) 44px;
}

@media (max-width: 980px) {
  .day1-shell,
  .module-steps {
    grid-template-columns: 1fr;
  }

  .day1-menu {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .back-link {
    grid-column: 1 / -1;
  }

  .module-steps {
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .day1-menu {
    grid-template-columns: 1fr;
  }

  .module-hero,
  .module-visual,
  .module-steps,
  .module-check {
    padding: 22px;
  }

  .filter-board,
  .tree-view,
  .set-list,
  .lod-boxes,
  .risk-grid,
  .clean-kpi,
  .target-bars div {
    grid-template-columns: 1fr;
  }

  .tree-view span {
    width: 2px;
    height: 24px;
    justify-self: center;
  }
}

/* Modern visual polish */
:root {
  --bg: #f7f7f8;
  --panel: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --maroon: #8a1538;
  --maroon-2: #6f102d;
  --soft: #f9fafb;
  --shadow: 0 18px 48px rgba(16, 24, 40, 0.08);
}

body {
  background:
    linear-gradient(180deg, #ffffff 0, #f7f7f8 320px),
    var(--bg);
}

.topbar {
  min-height: 68px;
  padding-inline: clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(228, 231, 236, 0.9);
  background: rgba(255, 255, 255, 0.92);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--maroon);
}

.nav {
  gap: 8px;
}

.nav a {
  border-radius: 999px;
  color: #344054;
}

.nav a.active,
.nav a:hover {
  color: var(--maroon);
  background: #fff1f5;
}

.page {
  width: min(1180px, calc(100% - 40px));
  padding-top: 42px;
}

.button,
.ghost-button {
  border-radius: 12px;
}

.button {
  background: var(--maroon);
  box-shadow: 0 12px 28px rgba(138, 21, 56, 0.18);
}

.ghost-button {
  border-color: #f0c8d5;
  background: #fff7fa;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 340px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 34px;
}

.home-hero > div:first-child,
.home-start,
.home-links a,
.home-days a,
.day1-module,
.simple-download,
.simple-agenda {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.home-hero > div:first-child {
  padding: clamp(34px, 5vw, 58px);
}

.home-hero h1 {
  max-width: 720px;
  font-size: clamp(44px, 7vw, 78px);
  letter-spacing: 0;
}

.home-hero .lead {
  max-width: 620px;
  margin-top: 14px;
  font-size: clamp(18px, 2vw, 22px);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.home-start {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 26px;
}

.home-start span {
  color: var(--maroon);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-start a {
  display: block;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  font-weight: 800;
}

.home-section {
  margin-top: 26px;
}

.home-section h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.home-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.home-links a,
.home-days a {
  min-height: 132px;
  padding: 20px;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.home-links a:hover,
.home-days a:hover {
  transform: translateY(-2px);
  border-color: #e5b7c6;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.08);
}

.home-links strong,
.home-links span,
.home-days strong,
.home-days span {
  display: block;
}

.home-links strong {
  font-size: 22px;
}

.home-links span,
.home-days span {
  margin-top: 8px;
  color: var(--muted);
}

.home-days {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-days a {
  min-height: 120px;
}

.home-days strong {
  color: var(--maroon);
  font-size: 20px;
}

.day1-page .plain-hero {
  padding-bottom: 10px;
}

.day1-page .plain-hero h1 {
  max-width: 880px;
  font-size: clamp(36px, 5vw, 58px);
}

.day1-shell {
  gap: 26px;
}

.day1-menu {
  top: 92px;
}

.day1-menu button,
.back-link {
  border-radius: 14px;
}

.day1-module {
  border-radius: 22px;
}

.module-hero {
  padding: 36px 40px;
}

.module-visual,
.module-steps,
.module-check {
  padding: 32px 40px;
}

.module-visual {
  background: linear-gradient(180deg, #fbfbfc, #ffffff);
}

.module-step {
  border-radius: 16px;
  background: #fcfcfd;
}

.result-item {
  border-radius: 14px;
}

@media (max-width: 1040px) {
  .home-hero,
  .home-links,
  .home-days {
    grid-template-columns: 1fr 1fr;
  }

  .home-hero > div:first-child {
    grid-column: 1 / -1;
  }

  .home-start {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 28px, 1180px);
    padding-top: 28px;
  }

  .home-hero,
  .home-links,
  .home-days {
    grid-template-columns: 1fr;
  }

  .home-hero h1 {
    font-size: 42px;
  }

  .home-actions .button,
  .home-actions .ghost-button {
    width: 100%;
  }

  .module-hero,
  .module-visual,
  .module-steps,
  .module-check {
    padding: 24px;
  }
}

/* Final simplified portal treatment */
body {
  background:
    radial-gradient(circle at 14% 12%, rgba(138, 21, 56, 0.08), transparent 30%),
    radial-gradient(circle at 86% 22%, rgba(26, 122, 120, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0, #f6f7f9 360px);
}

.topbar {
  box-shadow: none;
}

.portal-hero {
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(48px, 8vw, 92px) 0 28px;
}

.portal-copy {
  max-width: 820px;
}

.portal-hero::after {
  content: "";
  min-height: clamp(280px, 31vw, 430px);
  border: 1px solid rgba(152, 162, 179, 0.28);
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.2)),
    url("assets/hero_cover.png") center / cover no-repeat;
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.12);
}

.portal-copy h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.portal-copy .lead {
  max-width: 680px;
  margin-top: 22px;
  color: #475467;
  font-size: clamp(19px, 2.2vw, 25px);
}

.portal-panel {
  margin-top: 30px;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 55px rgba(16, 24, 40, 0.05);
}

.resource-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.resource-bar a {
  min-height: clamp(150px, 17vw, 205px);
  display: grid;
  align-content: center;
  justify-items: start;
  align-items: center;
  gap: 20px;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  color: #1d2939;
  background: #f8fafc;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  line-height: 1.05;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: background 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.resource-bar a:nth-child(1) {
  background: #fff7ed;
}

.resource-bar a:nth-child(2) {
  background: #ecfdf3;
}

.resource-bar a:nth-child(3) {
  background: #fff1f5;
}

.resource-bar a:nth-child(4) {
  background: #eff6ff;
}

.resource-bar a:nth-child(5) {
  background: #f5f3ff;
}

.resource-bar a:hover {
  transform: translateY(-3px);
  color: var(--maroon);
  background: #fff;
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.08);
}

.resource-icon,
.day-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
}

.resource-icon {
  width: 58px;
  height: 58px;
  color: var(--maroon);
  background: rgba(255, 255, 255, 0.78);
}

.resource-icon svg,
.day-icon svg {
  width: 28px;
  height: 28px;
}

.slide-download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.slide-download-card {
  min-height: 250px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: clamp(22px, 2.3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.05);
}

.slide-download-card:nth-child(1) {
  background: linear-gradient(145deg, #fff, #fff7ed);
}

.slide-download-card:nth-child(2) {
  background: linear-gradient(145deg, #fff, #eff6ff);
}

.slide-download-card:nth-child(3) {
  background: linear-gradient(145deg, #fff, #ecfdf3);
}

.slide-download-card:nth-child(4) {
  background: linear-gradient(145deg, #fff, #fff1f5);
}

.slide-download-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.05;
}

.slide-download-icon {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: var(--maroon);
  background: rgba(255, 255, 255, 0.78);
}

.slide-download-icon svg {
  width: 28px;
  height: 28px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 6px 14px;
}

.panel-title h2 {
  margin: 0;
  font-size: 24px;
}

.panel-title a {
  color: var(--maroon);
  font-weight: 900;
}

.day-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.day-picker a {
  min-height: 128px;
  padding: 20px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: #fff;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.day-picker a:nth-child(1) {
  background: linear-gradient(145deg, #fff, #fff7ed);
}

.day-picker a:nth-child(2) {
  background: linear-gradient(145deg, #fff, #eff6ff);
}

.day-picker a:nth-child(3) {
  background: linear-gradient(145deg, #fff, #ecfdf3);
}

.day-picker a:nth-child(4) {
  background: linear-gradient(145deg, #fff, #fff1f5);
}

.day-picker a:hover {
  transform: translateY(-2px);
  border-color: #e5b7c6;
  box-shadow: 0 16px 35px rgba(16, 24, 40, 0.07);
}

.day-picker strong,
.day-picker span {
  display: block;
}

.day-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: #fff;
  background: var(--maroon);
}

.day-picker a:nth-child(2) .day-icon {
  background: #2563eb;
}

.day-picker a:nth-child(3) .day-icon {
  background: #0f766e;
}

.day-picker a:nth-child(4) .day-icon {
  background: #b45309;
}

.day-picker strong {
  color: var(--maroon);
  font-size: 24px;
}

.day-picker span {
  max-width: 230px;
  margin-top: 12px;
  color: #667085;
}

@media (max-width: 900px) {
  .portal-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portal-hero::after {
    min-height: 260px;
  }

  .resource-bar,
  .day-picker,
  .slide-download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-bar a {
    min-height: 150px;
  }
}

@media (max-width: 560px) {
  .portal-hero {
    padding-top: 34px;
  }

  .portal-copy h1 {
    font-size: 54px;
  }

  .resource-bar,
  .day-picker,
  .slide-download-grid {
    grid-template-columns: 1fr;
  }
}

.simple-lab h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 32px);
}

.simple-lab h3 {
  margin-top: 22px;
  font-size: 18px;
}

.simple-lab .chart-preview {
  max-width: 760px;
  margin: 12px 0 22px;
  background: #fff;
}

.simple-lab .preview-head {
  text-transform: none;
  letter-spacing: 0;
}

.simple-lab .preview-head span {
  color: var(--muted);
}

.simple-lab .preview-head strong {
  font-size: 13px;
}

.simple-lab .chart-preview svg,
.simple-lab .map-preview,
.simple-lab .kpi-preview,
.simple-lab .formula-preview,
.simple-lab .flow-preview,
.simple-lab .stack-preview,
.simple-lab .donut-preview {
  min-height: 160px;
}

.lab-question {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.simple-steps {
  margin: 12px 0 0;
  padding-left: 22px;
}

.simple-steps li {
  margin: 8px 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.simple-slide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.simple-slide-top h1 {
  font-size: clamp(32px, 5vw, 44px);
}

.simple-slide-list {
  display: grid;
  gap: 28px;
}

.simple-slide {
  padding: 32px;
  page-break-after: always;
}

.present-slide {
  aspect-ratio: 16 / 9;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 36px;
  align-items: center;
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(122, 23, 49, 0.06), rgba(255, 255, 255, 0) 38%),
    #fff;
  page-break-after: always;
}

.present-slide h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.05;
}

.present-slide .slide-message {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--maroon);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  line-height: 1.35;
}

.present-slide ul {
  margin: 0;
  padding-left: 24px;
}

.present-slide li {
  margin: 10px 0;
  font-size: clamp(17px, 1.5vw, 22px);
}

.present-slide-visual .diagram {
  min-height: 330px;
  box-shadow: none;
}

.present-slide-visual .diagram-flow span {
  font-size: 15px;
}

.simple-slide h2 {
  max-width: 880px;
  margin-bottom: 12px;
  font-size: clamp(26px, 4vw, 38px);
}

.simple-slide .slide-message {
  max-width: 860px;
  margin-bottom: 18px;
  color: var(--maroon);
  font-size: 20px;
  font-weight: 800;
}

.simple-slide ul {
  max-width: 780px;
  margin: 0;
  padding-left: 22px;
}

.simple-slide li {
  margin: 8px 0;
  font-size: 18px;
}

@media (max-width: 900px) {
  .simple-links,
  .day-links,
  .simple-lab-nav {
    grid-template-columns: 1fr;
  }

  .simple-agenda {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .simple-slide-top {
    display: block;
  }

  .simple-slide-top .button {
    margin-top: 12px;
  }

  .present-slide {
    aspect-ratio: auto;
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .present-slide-visual .diagram {
    min-height: 220px;
  }

  .lab-workbench,
  .clean-role-view {
    grid-template-columns: 1fr;
  }

  .lab-steps-column {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .model-visual {
    grid-template-columns: 1fr;
  }

  .day1-visual-panel {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .day1-work-panel {
    border-left: 0;
  }

  .guided-steps {
    grid-template-columns: 1fr;
  }

  .model-link::before {
    width: 2px;
    height: 34px;
    margin: 0 auto 8px;
  }

  .bar-row {
    grid-template-columns: 92px minmax(0, 1fr) 38px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media print {
  .topbar,
  .site-footer,
  .simple-slide-top .button {
    display: none !important;
  }

  .simple-slide {
    border: 0;
    border-radius: 0;
  }

  .present-slide {
    width: 100vw;
    height: 56.25vw;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }
}
