:root {
  --ink: #323544;
  --muted: #6b7280;
  --green: #8bc34a;
  --green-dark: #5d9724;
  --blue: #64b5f6;
  --mint: #a8d5ba;
  --cream: #fff8e7;
  --lavender: #c3b1e1;
  --aqua: #e9f6de;
  --paper: #f5f5f5;
  --line: #dedede;
  --shadow: 0 2.2rem 6rem #32354426;
}

@font-face { font-family: Poppins; src: url("assets/Poppins-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url("assets/Poppins-SemiBold.ttf"); font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url("assets/Poppins-Bold.ttf"); font-weight: 700 900; font-display: swap; }

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, #8bc34a42, transparent 30%),
    radial-gradient(circle at 85% 80%, #64b5f64a, transparent 32%),
    #e8e8e9;
  font-family: Poppins, Arial, Helvetica, sans-serif;
}

.deck {
  width: min(94vw, calc(90vh * 16 / 9));
  height: min(90vh, calc(94vw * 9 / 16));
  margin: 3vh auto 0;
  position: relative;
  background: var(--paper);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid #ffffff;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  overflow: auto;
  padding: clamp(2rem, 5vw, 5.25rem);
  background:
    radial-gradient(circle at 96% 4%, #d7f7b3 0 8%, transparent 25%),
    linear-gradient(145deg, transparent 0 73%, #edf7e3 73% 100%),
    var(--paper);
}

.slide.active { display: block; }

.slide.focus-active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: #f5f5f5d9;
  backdrop-filter: grayscale(.65);
  animation: focus-fade .22s ease both;
}

@keyframes focus-fade { from { opacity: 0; } to { opacity: 1; } }

.slide::after {
  content: attr(data-slide);
  position: absolute;
  right: 2.3rem;
  bottom: 1.65rem;
  font-weight: 800;
  color: #7b8da8;
}

.eyebrow {
  margin-bottom: .9rem;
  color: var(--green-dark);
  font-size: clamp(.72rem, 1.1vw, 1.05rem);
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 13ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.3rem, 5.4vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.055em;
}

h1 span { color: var(--green-dark); }

h2 {
  max-width: 19ch;
  margin-bottom: clamp(1.25rem, 3vw, 2.8rem);
  font-size: clamp(1.75rem, 3.25vw, 3.65rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}

h3 { font-size: clamp(1rem, 1.55vw, 1.5rem); }

p, li, dt, dd, figcaption, small {
  font-size: clamp(.78rem, 1.25vw, 1.2rem);
  line-height: 1.45;
}

ul { margin: 0; padding-left: 1.2em; }
li + li { margin-top: .65em; }

.lead { max-width: 39rem; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.55rem); }

.cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(5.5rem, 8vw, 7.8rem);
  color: var(--ink);
  background:
    linear-gradient(to bottom, transparent 70%, #f5f5f5 100%),
    linear-gradient(99deg, #f5f5f5 1%, #f5f5f5 57%, #d7f7b3 83%, #8cff00 100%);
}

.cover::after { color: #32354477; }
.cover .eyebrow { color: var(--green-dark); }
.cover .lead { color: #616675; }

.intro-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 5rem);
  background:
    radial-gradient(circle at 50% 45%, #d7f7b3 0%, #edf7e3 45%, #f5f5f5 75%);
}

.intro-slide .brand-logo,
.intro-slide .slide-icon {
  display: none;
}

.intro-emblem-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
  margin-bottom: 2rem;
}

.logo-circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(5.5rem, 11vw, 9.2rem);
  height: clamp(5.5rem, 11vw, 9.2rem);
  border-radius: 50% !important;
  overflow: hidden !important;
  clip-path: circle(50% at 50% 50%) !important;
  -webkit-clip-path: circle(50% at 50% 50%) !important;
  background: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: 0 1rem 3rem rgba(93, 151, 36, 0.22), 0 0 0 1px rgba(139, 195, 74, 0.35);
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-circle:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 1.4rem 3.5rem rgba(93, 151, 36, 0.3), 0 0 0 2px rgba(93, 151, 36, 0.6);
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ucsy-circle {
  padding: 0.75rem;
}

.ucsy-circle img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.resetspace-circle {
  padding: 0.75rem;
}

.resetspace-circle img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.emblem-cross {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--green-dark);
  opacity: 0.8;
  user-select: none;
}

.intro-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 58rem;
  margin: 0 auto;
}

.intro-body .eyebrow {
  margin-bottom: 1.2rem;
  font-size: clamp(.8rem, 1.2vw, 1.15rem);
  letter-spacing: .18em;
}

.intro-body h1 {
  max-width: 16ch;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5.2vw, 5.4rem);
  line-height: 1.05;
}

.cover-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 48rem;
  z-index: 2;
}

.start-presentation {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1rem;
  padding: .85rem 1.4rem;
  color: white;
  background: var(--green-dark);
  border: 0;
  border-radius: 99rem;
  box-shadow: 0 .8rem 2rem #5d972438;
  font: 700 clamp(.78rem, 1.1vw, 1.05rem)/1 Poppins, sans-serif;
  cursor: pointer;
  position: relative;
  z-index: 5;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.start-presentation:hover, .start-presentation:focus-visible { background: #477d19; transform: translateY(-2px); box-shadow: 0 1rem 2.4rem #5d972450; outline: 3px solid #ffffff; outline-offset: 3px; }

.ucsy-logo {
  position: absolute;
  right: clamp(2rem, 5vw, 5.25rem);
  top: clamp(1.5rem, 3.8vw, 3.2rem);
  z-index: 3;
  width: clamp(3.8rem, 6.5vw, 5.8rem);
  height: auto;
  object-fit: contain;
  background: white;
  padding: .35rem;
  border-radius: .75rem;
  border: 1px solid #8bc34a44;
  box-shadow: 0 .4rem 1.4rem #0000001a;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ucsy-logo:hover { transform: scale(1.06); box-shadow: 0 .6rem 1.8rem #00000026; }

.cover-mark {
  position: absolute;
  right: clamp(2rem, 5vw, 5.25rem);
  top: clamp(6rem, 11.5vw, 10.2rem);
  display: grid;
  width: clamp(3.8rem, 7vw, 6.2rem);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  font-size: clamp(1.3rem, 2.5vw, 2.5rem);
  font-weight: 900;
  background: #ffffff9c;
  border: .45rem solid #ffffff;
  box-shadow: inset 0 0 0 1px #8bc34a55, 0 1rem 2.5rem #8bc34a3d;
}

.cover-meta {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: 1rem;
  display: flex;
  gap: 1.4rem;
  justify-content: space-between;
  border-top: 1px solid #32354424;
  padding-top: 1rem;
  color: #616675;
  font-size: clamp(.65rem, 1vw, 1rem);
  z-index: 2;
}

.split { display: none; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4%; align-items: center; }
.split.active { display: grid; }

.diagram-frame, .wide-diagram {
  margin: 0;
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem #32354414;
}

.diagram-frame img, .wide-diagram img { display: block; width: 100%; max-height: 56vh; object-fit: contain; }
.diagram-frame figcaption { margin-top: .75rem; color: var(--muted); text-align: center; }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.7em; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green-dark); font-weight: 900; }

.objective-flow { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 5%; }
.objective-flow div { position: relative; min-height: 8rem; padding: 1.4rem 1rem; border-left: 2px solid var(--green); background: linear-gradient(135deg, white, #f1f8e9); }
.objective-flow div::after { content: "→"; position: absolute; right: -.7em; top: 42%; z-index: 2; color: var(--green-dark); font-size: 1.8rem; font-weight: 900; }
.objective-flow div:last-child::after { display: none; }
.objective-flow strong, .objective-flow span { display: block; }
.objective-flow strong { margin-bottom: .7rem; color: var(--green-dark); }
.objective-flow span { color: var(--muted); font-size: clamp(.7rem, 1.05vw, 1rem); }
.boundary { margin-top: 2rem; padding: 1rem 1.2rem; border-left: .35rem solid var(--green); background: var(--aqua); }

.constraint-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.constraint-grid article { min-height: 15rem; padding: 1.5rem; background: white; border-top: .45rem solid var(--green); border-radius: 1rem; box-shadow: 0 1rem 2.5rem #32354412; }
.constraint-grid article:nth-child(even) { border-color: var(--blue); transform: translateY(1.5rem); }
.constraint-grid .metric { display: block; margin-bottom: 2rem; color: var(--green-dark); font-size: clamp(1.7rem, 3vw, 3rem); font-weight: 900; letter-spacing: -.05em; }
.constraint-grid p { color: var(--muted); }

.role-list { list-style: none; padding: 0; }
.role-list li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.role-list b { color: var(--green-dark); }
.team-slide small, .cost-slide small { display: block; margin-top: 1rem; color: var(--muted); }

.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 7%; }
.two-column > div { padding: 2rem; }
.two-column h3 { color: var(--green-dark); }
.accent-panel { color: var(--ink); background: linear-gradient(145deg, #dff0cc, var(--mint)); border-radius: 1.2rem; box-shadow: 0 1.4rem 3.5rem #8bc34a2d; }
.accent-panel h3 { color: #3f7118; }

.money-list { margin: 0; }
.money-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.money-list dt { color: var(--muted); }
.money-list dd { margin: 0; color: var(--green-dark); font-weight: 850; }

.wbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; padding: 0; counter-reset: none; }
.wbs li { min-height: 8.2rem; margin: 0; padding: 1.2rem; background: white; border-bottom: .35rem solid var(--green); border-radius: 1rem; box-shadow: 0 .8rem 2rem #32354410; }
.wbs span, .wbs b, .wbs small { display: block; }
.wbs span { color: var(--green); font-weight: 900; }
.wbs b { margin: .45rem 0; color: var(--ink); font-size: 1.15em; }
.wbs small { color: var(--muted); }

.network-slide .wide-diagram img { max-height: 38vh; }
.critical-path { margin-top: 1.2rem; padding: .8rem; color: white; background: var(--green-dark); border-radius: 99rem; text-align: center; font-size: clamp(1rem, 1.8vw, 1.7rem); font-weight: 800; letter-spacing: .05em; }

.schedule-slide .wide-diagram img { max-height: 43vh; }
.schedule-visual { position: relative; }
.date-line { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: 1rem; color: var(--muted); font-size: clamp(.6rem, .95vw, .9rem); }
.date-line b { color: var(--green-dark); }

.quality-layout { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 6%; }
.big-number { display: flex; flex-direction: column; padding: 2rem; color: var(--ink); background: linear-gradient(145deg, var(--cream), #d7f7b3); border-radius: 1.2rem; border: 1px solid #8bc34a55; }
.big-number strong { font-size: clamp(4rem, 9vw, 9rem); line-height: .9; }
.big-number span { margin-top: 1rem; }
.warning { margin-top: 1.8rem; padding: .85rem 1rem; color: #7c3d00; background: #fff0d4; border-left: .35rem solid #e68a00; }

.risk-list { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.6rem; }
.risk-list div { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.risk-list b { color: var(--green-dark); }
.risk-list span { color: var(--muted); font-size: clamp(.7rem, 1.05vw, 1rem); }

.configuration-slide .diagram-frame img { max-height: 35vh; }

.problem-solution { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.problem-solution div { position: relative; min-height: 11rem; padding: 4.3rem 1.4rem 1.4rem; color: white; background: var(--ink); border-radius: 1rem; }
.problem-solution div::after { content: "↓"; position: absolute; right: 1rem; bottom: .5rem; color: #b9eb7f; font-size: 2rem; }
.problem-solution b, .problem-solution span { display: block; }
.problem-solution span { margin-top: 1.4rem; color: #cfe5ff; font-size: clamp(.72rem, 1.05vw, 1rem); }
.problem-solution .item-icon { position: absolute; top: 1.25rem; left: 1.4rem; margin: 0; color: #4f841f; }
.next-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.6rem; }
.next-actions span { padding: .65rem 1rem; color: #3f7118; background: var(--aqua); border-radius: 99rem; font-size: clamp(.7rem, 1vw, 1rem); font-weight: 750; }

.finale { color: var(--ink); text-align: center; background: radial-gradient(circle at 50% 44%, #d7f7b3, #f5f5f5 66%); }
.finale::after { color: #32354477; }
.finale .eyebrow { color: var(--green-dark); }
.finale h2 { max-width: none; }
.conclusion-ring { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; max-width: 58rem; margin: 1rem auto 2rem; }
.conclusion-ring > * { padding: .85rem; background: #ffffffc7; border: 1px solid #8bc34a52; border-radius: .7rem; }
.conclusion-ring strong { grid-column: 2 / 4; grid-row: 2; color: white; background: var(--green-dark); font-size: clamp(1.3rem, 2.5vw, 2.4rem); }
.closing { max-width: 50rem; margin: 0 auto; color: #4b5563; font-size: clamp(1rem, 1.6vw, 1.45rem); }

.end-slide { text-align: center; background: radial-gradient(circle at 50% 44%, #d7f7b3 0 18%, #f5f5f5 62%); }
.end-slide.active { display: grid; place-items: center; }
.end-slide .slide-icon { display: none; }
.end-content h2 { max-width: none; margin: .4rem 0; color: var(--green-dark); font-size: clamp(4rem, 10vw, 10rem); }
.end-content > p { color: var(--ink); font-size: clamp(1.15rem, 2vw, 2rem); }
.end-team { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; max-width: 52rem; margin: 2rem auto 0; }
.end-team span { padding: .55rem .85rem; color: #477d19; background: #ffffffc9; border: 1px solid #8bc34a55; border-radius: 99rem; font-size: clamp(.65rem, .9vw, .9rem); font-weight: 700; }

.presenter {
  position: fixed;
  top: calc(3vh + .8rem);
  right: max(4vw, calc((100vw - min(94vw, calc(90vh * 16 / 9))) / 2 + 1.2rem));
  z-index: 10;
  display: flex;
  gap: .8rem;
  color: #616675;
  font-size: clamp(.6rem, .8vw, .8rem);
  font-weight: 700;
}

.controls {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: .45rem;
  transform: translateX(-50%);
  padding: .4rem .85rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(139, 195, 74, 0.4);
  border-radius: 99rem;
  box-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.1), 0 0.2rem 0.6rem rgba(93, 151, 36, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.controls button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.2rem;
  padding: 0.35rem 0.75rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 99rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.controls button * {
  pointer-events: none;
}

.controls button:hover, .controls button:focus-visible {
  background: #edf7e3;
  color: var(--green-dark);
}

.controls button i {
  font-size: 0.85rem;
  color: var(--green-dark);
}

.filter-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  border-radius: 99rem;
  border: 1px solid rgba(139, 195, 74, 0.4);
  background: rgba(237, 247, 227, 0.65);
  transition: all 0.2s ease;
}

.filter-wrapper:hover, .filter-wrapper:focus-within {
  background: #edf7e3;
  border-color: var(--green-dark);
}

.filter-icon {
  font-size: 0.8rem;
  color: var(--green-dark);
  flex-shrink: 0;
  pointer-events: none;
}

.presenter-filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--green-dark);
  cursor: pointer;
}

.presenter-filter-select option {
  background: #ffffff;
  color: #1a202c;
  font-weight: 600;
}

.slide-jump-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  gap: 0.15rem;
  background: rgba(237, 247, 227, 0.75);
  border: 1px solid rgba(139, 195, 74, 0.45);
  border-radius: 99rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--green-dark);
  line-height: 1;
  transition: all 0.2s ease;
}

.slide-jump-wrapper:hover, .slide-jump-wrapper:focus-within {
  background: #edf7e3;
  border-color: var(--green-dark);
}

.slide-jump-input {
  width: 1.5rem;
  height: 1.2rem;
  line-height: 1.2rem;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--green-dark);
  text-align: center;
  padding: 0;
  margin: 0;
  -moz-appearance: textfield;
}

.slide-jump-input::-webkit-outer-spin-button,
.slide-jump-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.slide-jump-input:focus {
  background: #ffffff;
  border-radius: 0.3rem;
  box-shadow: 0 0 0 1.5px var(--green-dark);
}

.slide-jump-total {
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.progress { width: clamp(4rem, 10vw, 8rem); height: .32rem; overflow: hidden; background: #3235441f; border-radius: 99rem; }
.progress i { display: block; width: 6.667%; height: 100%; background: var(--green); transition: width .25s ease; }

body.notes-open .speaker-note {
  display: block;
  position: fixed;
  left: 50%;
  bottom: 4.7rem;
  z-index: 30;
  width: min(50rem, 90vw);
  max-height: 28vh;
  overflow: auto;
  transform: translateX(-50%);
  padding: 1rem 1.2rem;
  color: white;
  background: #323544f2;
  border: 1px solid #ffffff33;
  border-radius: .8rem;
  box-shadow: 0 1rem 3rem #0008;
  font-size: clamp(.75rem, 1vw, 1rem);
  line-height: 1.5;
}

.brand-logo {
  position: absolute;
  left: clamp(1.4rem, 2.4vw, 2.5rem);
  top: clamp(.8rem, 1.3vw, 1.25rem);
  bottom: auto;
  z-index: 3;
  width: clamp(6rem, 10vw, 9rem);
  height: auto;
  opacity: .82;
}

.cover .brand-logo { left: clamp(2rem, 5vw, 5.25rem); top: clamp(1.5rem, 4vw, 3.6rem); width: clamp(7rem, 13vw, 12rem); opacity: 1; }

.slide-icon {
  position: absolute;
  top: clamp(4rem, 6vw, 5.6rem);
  right: clamp(1.7rem, 3vw, 3rem);
  display: grid;
  width: clamp(2.8rem, 4.4vw, 4.2rem);
  aspect-ratio: 1;
  place-items: center;
  color: #4f841f;
  background: #e6f5d6;
  border: 1px solid #8bc34a4a;
  border-radius: 50%;
  box-shadow: 0 .8rem 2rem #8bc34a20;
}

.slide-icon svg { width: 52%; height: 52%; }
.cover .slide-icon { display: none; }

.item-icon {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 .55rem .35rem 0;
  place-items: center;
  color: #4f841f;
  background: #e9f6de;
  border: 1px solid #8bc34a45;
  border-radius: .65rem;
  vertical-align: middle;
}

.item-icon svg { width: 1rem; height: 1rem; }
.role-list .item-icon, .risk-list .item-icon { margin-bottom: 0; }
.constraint-grid .item-icon { float: right; margin: 0; }

.reveal-item {
  position: relative;
  visibility: hidden;
  opacity: 0;
  transform: translateY(.45rem);
  transition: opacity .28s ease, transform .28s ease, filter .28s ease;
}

.reveal-item.visible { visibility: visible; opacity: 1; transform: none; }
.reveal-item.past { opacity: .3; filter: saturate(.25); }
.reveal-item.current {
  z-index: 6;
  opacity: 1;
  filter: drop-shadow(0 1.1rem 1.35rem #32354442);
  transform: scale(1.035);
}

.reveal-item.current.zoomable { transform: scale(1.035); }
.slide.show-all::before { display: none; }
.slide.show-all .reveal-item { visibility: visible; opacity: 1; filter: none; transform: none; }
.step-counter { min-width: 3.7rem; color: #5d9724; font-size: .72rem; font-weight: 700; text-align: center; }

.zoomable { position: relative; cursor: zoom-in; transition: box-shadow .2s ease, transform .2s ease; }
.zoomable:hover { transform: translateY(-.15rem); box-shadow: 0 1.3rem 3.4rem #8bc34a2c; }
.zoomable:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.zoom-hint {
  position: absolute;
  right: .75rem;
  top: -.9rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .7rem;
  color: #3f7118;
  background: #fffffff0;
  border: 1px solid #8bc34a55;
  border-radius: 99rem;
  box-shadow: 0 .4rem 1rem #32354416;
  font: 700 clamp(.6rem, .8vw, .78rem)/1 Poppins, sans-serif;
}

.zoom-hint svg { width: 1rem; height: 1rem; }

.diagram-explain {
  display: none;
}

.diagram-modal {
  width: min(96vw, 92rem);
  height: min(92vh, 58rem);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: #f5f5f5;
  border: 1px solid #ffffff;
  border-radius: 1.2rem;
  box-shadow: 0 2rem 8rem #0008;
}

.diagram-modal::backdrop { background: #20222cdd; backdrop-filter: blur(7px); }
.diagram-toolbar { display: flex; align-items: center; gap: .55rem; padding: .8rem 1rem; background: white; border-bottom: 1px solid var(--line); }
.diagram-toolbar strong { margin-right: auto; }
.diagram-toolbar button { min-width: 2.35rem; height: 2.35rem; padding: 0 .7rem; color: var(--ink); background: #f5f5f5; border: 1px solid var(--line); border-radius: 99rem; font: inherit; cursor: pointer; }
.diagram-toolbar button:hover, .diagram-toolbar button:focus-visible { color: white; background: var(--green-dark); outline: none; }
.zoom-level { min-width: 3.5rem; color: var(--green-dark); font-size: .8rem; font-weight: 700; text-align: center; }
.diagram-stage { height: calc(100% - 8.4rem); overflow: hidden; touch-action: none; cursor: grab; background: radial-gradient(circle, #ffffff 0, #f5f5f5 70%); }
.diagram-stage.dragging { cursor: grabbing; }
.diagram-stage img { display: block; width: 100%; height: 100%; padding: 1.5rem; object-fit: contain; user-select: none; will-change: transform; }
.diagram-modal > p { margin: .35rem 1rem; color: var(--muted); font-size: .72rem; text-align: center; }
.diagram-description { color: var(--ink) !important; font-weight: 600; }
.diagram-help { opacity: .72; }

@media (max-width: 760px) {
  body { overflow: auto; background: #e8e8e9; }
  .deck { width: 100vw; height: calc(100dvh - 3.4rem); margin: 0; border-radius: 0; }
  .slide { padding: 2.4rem 1.4rem 4rem; }
  .slide::after { right: 1.2rem; bottom: 1rem; }
  .split.active { display: block; }
  .split .diagram-frame { margin-top: 1rem; }
  .diagram-frame img, .wide-diagram img { max-height: 37vh; }
  .cover-mark { opacity: .24; }
  .cover-meta { margin-top: auto; display: grid; gap: .35rem; }
  .objective-flow, .constraint-grid, .two-column, .wbs, .risk-list, .problem-solution { grid-template-columns: 1fr; }
  .objective-flow { margin-bottom: 1rem; }
  .objective-flow div { min-height: auto; }
  .objective-flow div::after { display: none; }
  .constraint-grid article { min-height: auto; }
  .constraint-grid article:nth-child(even) { transform: none; }
  .quality-layout { grid-template-columns: 1fr; }
  .big-number { margin-bottom: 1rem; }
  .risk-list div { grid-template-columns: 1fr; gap: .25rem; }
  .conclusion-ring { grid-template-columns: repeat(2, 1fr); }
  .conclusion-ring strong { grid-column: 1 / 3; grid-row: auto; }
  .presenter {
    top: 0.5rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(94vw, 24rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    z-index: 25;
  }

  .presenter-name {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .presenter-timer {
    padding: 0.2rem 0.45rem;
    font-size: 0.72rem;
    margin-right: 0;
  }

  .counter {
    font-size: 0.72rem;
    padding: 0.2rem 0.4rem;
  }

  .controls {
    bottom: 0.5rem;
    width: min(96vw, 26rem);
    padding: 0.3rem 0.4rem;
    gap: 0.18rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .controls button {
    flex-shrink: 0;
    padding: 0.35rem 0.4rem;
    min-height: 2.1rem;
    min-width: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .controls button span {
    display: none !important;
  }

  .slide-jump-wrapper {
    flex-shrink: 0;
    padding: 0.15rem 0.35rem;
    font-size: 0.72rem;
  }

  .slide-jump-input {
    width: 1.2rem;
    font-size: 0.72rem;
  }

  .slide-jump-total {
    font-size: 0.72rem;
  }

  .filter-wrapper {
    flex-shrink: 1;
    min-width: 3.2rem;
    max-width: 5.5rem;
    padding: 0.2rem 0.35rem;
    gap: 0.15rem;
    overflow: hidden;
  }

  .filter-icon {
    font-size: 0.72rem;
  }

  .presenter-filter-select {
    font-size: 0.72rem;
    max-width: 3.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .step-counter { display: none; }
  .diagram-modal { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
}

@media (max-width: 500px) {
  .progress {
    display: none !important;
  }

  .presenter-timer .timer-btn {
    display: none !important;
  }

  .filter-wrapper {
    max-width: 4.8rem;
  }

  .presenter-filter-select {
    max-width: 3.2rem;
  }

  .presenter-name {
    max-width: 5rem;
  }
}

@media print {
  @page { size: 13.333in 7.5in; margin: 0; }
  body { overflow: visible; background: white; }
  .deck { width: auto; height: auto; margin: 0; box-shadow: none; overflow: visible; }
  .slide, .split { position: relative; display: block !important; width: 13.333in; height: 7.5in; break-after: page; overflow: hidden; }
  .split { display: grid !important; }
  .controls, .presenter, .speaker-note { display: none !important; }
  .reveal-item { visibility: visible !important; opacity: 1 !important; transform: none !important; }
  .slide.focus-active::before { display: none !important; }
}

.presenter-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 195, 74, 0.45);
  border-radius: 9999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--green-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-right: 0.35rem;
  cursor: pointer;
}

.timer-icon {
  font-size: 0.78rem;
  color: var(--green-dark);
}

.timer-display {
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.timer-btn {
  background: transparent;
  border: none;
  color: var(--green-dark);
  padding: 0 0.2rem;
  font-size: 0.72rem;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.timer-btn:hover {
  background: #edf7e3;
}

.shortcuts-modal {
  width: min(92vw, 36rem);
  max-height: 85vh;
  border: none;
  border-radius: 1.25rem;
  padding: 0;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.28);
  background: #ffffff;
}

.shortcuts-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink);
  background: #f8faf6;
  border: 1px solid #e2ebd8;
  padding: 0.5rem 0.8rem;
  border-radius: 0.6rem;
}

.shortcut-item kbd {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-bottom: 2px solid #94a3b8;
  border-radius: 0.35rem;
  padding: 0.15rem 0.45rem;
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.presenter-name {
  display: inline-block;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 195, 74, 0.45);
  border-radius: 9999px;
  padding: 0.35rem 0.95rem;
  font-size: clamp(0.72rem, 1vw, 0.92rem);
  font-weight: 750;
  color: var(--green-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}



.presenter-modal {
  width: min(92vw, 42rem);
  max-height: 85vh;
  border: none;
  border-radius: 1.25rem;
  padding: 0;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.28);
  background: #ffffff;
}

.presenter-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eef2e6;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.modal-body {
  padding: 1.25rem 1.5rem;
  max-height: 58vh;
  overflow-y: auto;
}

.modal-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.section-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-dark);
  margin-bottom: 0.65rem;
}

.team-inputs-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px dashed #e2ebd8;
}

.team-members-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.5rem;
}

.member-input {
  width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid #d4e3c5;
  background: #fbfdf9;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--ink);
  box-sizing: border-box;
}

.member-input:focus {
  outline: none;
  border-color: var(--green-dark);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(93, 151, 36, 0.15);
}

.slide-groups-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.group-card {
  padding: 0.85rem 1rem;
  background: #f8faf5;
  border: 1px solid #e5efe0;
  border-radius: 0.8rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.group-card:hover {
  border-color: #c4e0b0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.group-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.group-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.group-range {
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--green-dark);
  letter-spacing: 0.05em;
}

.group-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--ink);
}

.group-member-select {
  padding: 0.4rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid #c2deaa;
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.group-topics-list {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.group-topics-list li {
  font-size: 0.81rem;
  color: #4a5568;
  line-height: 1.35;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #eef2e6;
  background: #fafcf8;
}

.btn-primary {
  padding: 0.55rem 1.3rem;
  border: none;
  border-radius: 0.6rem;
  background: var(--green-dark);
  font-weight: 750;
  color: #ffffff;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; }
  .progress i { transition: none; }
}
