:root {
  --bg: #f5f6f4;
  --ink: #172026;
  --muted: #5c6770;
  --paper: #ffffff;
  --panel: #ffffff;
  --line: #d9dfdd;
  --soft-line: #e9eeec;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --mint: #e7f4f0;
  --blue: #2563eb;
  --blue-soft: #e9f0ff;
  --amber: #b7791f;
  --amber-soft: #fff3d8;
  --red: #b42318;
  --red-soft: #fdecea;
  --graphite: #263238;
  --graphite-soft: #eef0f1;
  --shadow: 0 18px 45px rgba(23, 32, 38, 0.12);
  --stage-radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 94% 10%, rgba(15, 118, 110, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  font-family:
    "Plus Jakarta Sans",
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  letter-spacing: 0;
  overflow: hidden;
}

button {
  color: inherit;
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr) 0;
  height: 100%;
  transition: grid-template-columns 180ms ease;
}

.app-shell.notes-open {
  grid-template-columns: 292px minmax(0, 1fr) minmax(320px, 24vw);
}

.rail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 22px;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  background: #fbfcfb;
}

.brand-mark {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--soft-line);
}

.brand-mark__icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal) 0 50%, var(--graphite) 50% 100%);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}

.brand-mark__main {
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
}

.brand-mark__sub {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}

.slide-nav {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}

.slide-nav__item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.slide-nav__item:hover,
.slide-nav__item:focus-visible {
  background: var(--graphite-soft);
  outline: 0;
}

.slide-nav__item.is-active {
  background: var(--mint);
  color: var(--teal-dark);
}

.slide-nav__number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.slide-nav__item.is-active .slide-nav__number {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.slide-nav__title {
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.slide-nav__meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.rail-footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.rail-footer span:first-child {
  color: var(--ink);
  font-weight: 750;
}

.stage-wrap {
  display: grid;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  height: 100dvh;
  min-height: 0;
  padding: 14px 22px 12px;
  background:
    radial-gradient(circle at 94% 10%, rgba(15, 118, 110, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.topbar,
.footerbar,
.deck-actions,
.progress-meta,
.notes-panel__header,
.overview__header {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  overflow-wrap: normal;
  hyphens: none;
}

p {
  margin-top: 0;
  overflow-wrap: break-word;
  hyphens: none;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.02rem, 1.35vw, 1.42rem);
  line-height: 1.15;
}

.deck-actions {
  flex-shrink: 0;
  gap: 8px;
}

.icon-button,
.nav-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.07);
  cursor: pointer;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.12rem;
}

.icon-button--small {
  width: 34px;
  height: 34px;
  font-size: 1rem;
}

.nav-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.45rem;
}

.icon-button:hover,
.icon-button:focus-visible,
.nav-button:hover,
.nav-button:focus-visible {
  border-color: rgba(86, 138, 128, 0.55);
  color: var(--teal-dark);
  outline: 0;
  transform: translateY(-1px);
}

.nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.slide {
  display: grid;
  height: 100%;
  min-height: 0;
  overflow: auto;
  background: transparent;
  scrollbar-width: thin;
}

.slide--hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
}

.slide--agenda {
  grid-template-columns: minmax(0, 1fr);
}

.slide--agenda .slide-content {
  width: min(1060px, 100%);
  justify-self: center;
}

.slide--split {
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr);
}

.slide--image-left {
  grid-template-columns: minmax(420px, 0.92fr) minmax(0, 1.08fr);
}

.slide--image-left .slide-media {
  order: -1;
}

.slide--image-wide {
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.74fr);
}

.slide-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(18px, 2.2vw, 36px);
}

.slide-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 0;
  border-left: 0;
  background: transparent;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.slide-title {
  max-width: 14ch;
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 4vw, 3.85rem);
  font-weight: 850;
  line-height: 1;
}

.slide--hero .slide-title {
  max-width: 12ch;
}

.slide--split .slide-title,
.slide--image-left .slide-title,
.slide--image-wide .slide-title {
  max-width: 20ch;
  font-size: clamp(2.1rem, 2.9vw, 3.2rem);
  line-height: 1.05;
}

.slide-subtitle {
  max-width: 32rem;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  font-weight: 500;
  line-height: 1.55;
}

.slide--hero .slide-subtitle {
  font-size: clamp(1.2rem, 1.6vw, 1.65rem);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
}

.metric {
  padding: 14px 14px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.metric__value {
  display: block;
  color: var(--teal-dark);
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1;
}

.metric__label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.slide-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  align-self: center;
  height: min(62vh, 560px);
  margin: clamp(18px, 2.4vw, 34px) clamp(18px, 2.4vw, 34px) clamp(18px, 2.4vw, 34px) 0;
}

.slide-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(44, 52, 49, 0.08);
}

.slide-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.slide--image-left .slide-media {
  margin: clamp(18px, 2.4vw, 34px) 0 clamp(18px, 2.4vw, 34px) clamp(18px, 2.4vw, 34px);
}

.slide-media--contain {
  display: grid;
  place-items: center;
  padding: clamp(24px, 3vw, 54px);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 55%),
    #ffffff;
}

.slide-media--contain img {
  width: 100%;
  height: auto;
  max-height: 100%;
  border: 1px solid rgba(44, 52, 49, 0.12);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 18px 44px rgba(23, 32, 38, 0.12);
}

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

.point {
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(23, 32, 38, 0.05);
}

.point__icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-bg, var(--mint));
  color: var(--accent, var(--teal-dark));
  font-weight: 900;
}

.point h3 {
  margin-bottom: 6px;
  font-size: clamp(0.94rem, 1vw, 1.06rem);
  line-height: 1.2;
}

.point p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(0.8rem, 0.9vw, 0.92rem);
  font-weight: 550;
  line-height: 1.34;
}

.agenda-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agenda-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.agenda-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 850;
}

.agenda-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(0.96rem, 1.1vw, 1.12rem);
  line-height: 1.2;
}

.agenda-item span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.architecture {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.flow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.flow-node {
  display: grid;
  min-height: 92px;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.flow-node b {
  font-size: 1rem;
}

.flow-node span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  font-size: 1.35rem;
  font-weight: 900;
}

.chart-panel {
  display: grid;
  min-height: 220px;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: end;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.bars {
  display: flex;
  height: 160px;
  align-items: flex-end;
  gap: 10px;
  padding: 0 2px;
}

.bar {
  flex: 1;
  min-width: 18px;
  border-radius: 6px 6px 0 0;
  background: var(--teal);
}

.donut {
  width: min(170px, 100%);
  aspect-ratio: 1;
  place-self: center;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0 42%, var(--blue) 42% 68%, var(--amber) 68% 84%, var(--red) 84% 100%);
  box-shadow: inset 0 0 0 26px #ffffff;
}

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

.dashboard-card {
  min-height: 156px;
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(23, 32, 38, 0.05);
}

.dashboard-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.dashboard-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.insight-stack {
  display: grid;
  gap: 12px;
}

.insight {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--soft-line);
}

.insight::before {
  width: 10px;
  border-radius: 999px;
  background: var(--accent, var(--teal));
  content: "";
}

.insight h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.insight p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.next-steps {
  display: grid;
  gap: 14px;
  width: 100%;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.step::before {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-dark);
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  font-weight: 850;
}

.step h3 {
  margin-bottom: 7px;
  font-size: 1.02rem;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.42;
}

.footerbar {
  gap: 12px;
}

.progress-shell {
  min-width: 0;
  flex: 1;
}

.progress-meta {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-line);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transition: width 180ms ease;
}

.notes-panel {
  min-width: 0;
  overflow-y: auto;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: #ffffff;
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.app-shell.notes-open .notes-panel {
  transform: translateX(0);
}

.notes-panel__header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.notes-panel h2 {
  margin-bottom: 18px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.notes-panel p {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 560;
  line-height: 1.62;
}

.overview {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  padding: 28px;
  background: rgba(245, 246, 244, 0.96);
  backdrop-filter: blur(18px);
}

.overview[hidden] {
  display: none;
}

.overview__header {
  justify-content: space-between;
}

.overview__header h2 {
  margin-bottom: 0;
  font-size: 2.2rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 14px;
  overflow-y: auto;
}

.overview-card {
  display: grid;
  min-height: 190px;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.overview-card:hover,
.overview-card:focus-visible {
  border-color: rgba(86, 138, 128, 0.5);
  outline: 0;
}

.overview-card__thumb {
  height: 92px;
  overflow: hidden;
  border-radius: 6px;
  background: #eee9df;
}

.overview-card__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.overview-card__number {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.overview-card__title {
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
}

@media (max-width: 1180px) {
  .app-shell,
  .app-shell.notes-open {
    grid-template-columns: 0 minmax(0, 1fr) 0;
  }

  .rail {
    display: none;
  }

  .app-shell.notes-open .notes-panel {
    position: fixed;
    inset: auto 0 0;
    z-index: 10;
    max-height: 42vh;
    border-top: 1px solid var(--line);
    border-left: 0;
    transform: translateY(0);
  }

  .slide--hero,
  .slide--agenda,
  .slide--split,
  .slide--image-left,
  .slide--image-wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .slide-media,
  .slide--image-left .slide-media {
    order: 0;
    min-height: 32vh;
  }

  .slide-content {
    justify-content: start;
    padding: 24px;
  }

  .slide-title,
  .slide--split .slide-title,
  .slide--image-left .slide-title,
  .slide--image-wide .slide-title {
    max-width: 18ch;
    font-size: clamp(2rem, 7.6vw, 3.2rem);
  }

  .overview-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-height: 820px) and (min-width: 761px) {
  .stage-wrap {
    gap: 8px;
    padding: 10px 18px 10px;
  }

  .topbar .eyebrow {
    display: none;
  }

  h1 {
    font-size: 1.05rem;
  }

  .icon-button {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .nav-button {
    width: 40px;
    height: 40px;
  }

  .slide-content {
    padding: 14px 26px 12px;
  }

  .slide-title,
  .slide--split .slide-title,
  .slide--image-left .slide-title,
  .slide--image-wide .slide-title {
    font-size: clamp(1.85rem, 2.6vw, 2.85rem);
    margin-bottom: 10px;
  }

  .slide-kicker {
    margin-bottom: 10px;
    font-size: 0.72rem;
  }

  .slide-subtitle {
    margin-bottom: 14px;
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .slide--split {
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  }

  .point {
    min-height: 104px;
    padding: 12px;
  }

  .point__icon {
    width: 26px;
    height: 26px;
    margin-bottom: 8px;
  }

  .point h3 {
    font-size: 0.95rem;
  }

  .point p {
    font-size: 0.8rem;
    line-height: 1.28;
  }

  .slide-media {
    height: min(58vh, 470px);
    margin: 14px 20px 14px 0;
  }

  .slide--image-left .slide-media {
    margin: 14px 0 14px 20px;
  }

  .agenda-item,
  .step {
    min-height: 58px;
    padding: 10px 12px;
  }

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

  .step {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .step::before {
    width: 36px;
    height: 36px;
  }

  .step h3 {
    font-size: 0.95rem;
  }

  .step p {
    font-size: 0.78rem;
    line-height: 1.25;
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .app-shell,
  .app-shell.notes-open {
    min-height: 100%;
  }

  .stage-wrap {
    min-height: 100vh;
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar h1 {
    display: none;
  }

  .deck-actions {
    gap: 6px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .stage {
    overflow: visible;
  }

  .slide {
    display: block;
    min-height: auto;
  }

  .slide-content {
    width: calc(100vw - 32px);
    max-width: 100%;
    padding: 24px;
  }

  .point-grid,
  .agenda-list,
  .dashboard-map,
  .metric-strip,
  .chart-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

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

  .footerbar {
    gap: 12px;
  }

  .nav-button {
    width: 44px;
    height: 44px;
  }

  .overview {
    padding: 18px;
  }

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