body{background:#8fd6cf;color:#293f43}a{color:inherit;text-decoration:none}.c2-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px max(20px,calc((100% - 1100px)/2));background:#fff4cf;border-bottom:3px solid #293f43}.c2-brand{font-weight:800;font-size:22px;white-space:nowrap}.c2-brand span{margin-left:8px}.c2-header>a:last-child{font-size:14px;text-decoration:underline}.c2-shell{max-width:1100px;margin:auto;padding:32px 24px}.c2-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.c2-heading h1{font-size:32px;margin:8px 0;line-height:1.4}.c2-heading p>span{margin-left:16px;font-size:13px}.c2-kicker{font-size:12px;font-weight:700;color:#824238;letter-spacing:.06em}.c2-stamp{background:#f7bf4f;border:2px solid #293f43;border-radius:14px;padding:12px 18px;text-align:center;transform:rotate(4deg);font-size:12px;flex-shrink:0}.c2-stamp b{font-size:30px}.c2-progress{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:20px 0 26px}.c2-progress li{padding:12px 8px;border-bottom:3px solid #588c86;font-size:14px;text-align:center}.c2-progress [aria-current]{background:#fff4cf;border:2px solid #293f43;border-radius:10px;font-weight:700;box-shadow:3px 3px 0 #293f43}.c2-card,.c2-dialogue{background:#fff9e8;border:3px solid #293f43;border-radius:18px;padding:28px;box-shadow:6px 7px 0 #293f4333}.c2-stage h2{font-size:25px;margin:8px 0 16px;line-height:1.5}.c2-stage h3{font-size:18px;margin:8px 0}.c2-stage p{line-height:1.85}.c2-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:24px;flex-wrap:wrap}.c2-actions>span{font-size:13px;color:#536b6d}.c2-actions a{display:inline-flex;align-items:center;justify-content:center}.c2-scene{position:relative;height:210px;background:linear-gradient(0deg,#b7be8c 0 22%,#e8ecc6 22%);border:3px solid #293f43;border-bottom:0;border-radius:18px 18px 0 0;overflow:hidden;margin:0 20px}.c2-window{position:absolute;left:8%;top:18px;width:40%;height:130px;border:8px solid #47696a;background:linear-gradient(130deg,#cceef1 48%,#93c6c6 49%);box-shadow:4px 5px 0 #293f4333}.c2-books{position:absolute;left:15%;bottom:10px;font-size:64px}.c2-person{position:absolute;right:15%;bottom:14px;display:grid;place-items:center;width:115px;height:132px;background:#f7bf4f;border:3px solid #293f43;border-radius:58px 58px 22px 22px;font-size:55px;font-weight:800;box-shadow:6px 6px 0 #293f4333}.c2-scene-caption{position:absolute;top:20px;right:20px;font-size:12px;background:#fff9e8;padding:4px 12px;border-radius:12px}.c2-dialogue{position:relative}.c2-dialogue>p:not(.c2-kicker){font-size:18px;min-height:70px}.c2-principles{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:24px 0}.c2-principles article{padding:18px;background:#edf4e5;border-radius:12px}.c2-principles article>b{font-size:24px;color:#ab4b3d}.c2-principles p{font-size:14px}.c2-note{padding:16px 18px;background:#fff0be;border-left:5px solid #d86955;border-radius:8px;margin:20px 0;font-size:14px}.c2-note p+p{margin-top:12px}.c2-quiz{border:0;margin:24px 0 12px}.c2-quiz legend{font-size:17px;font-weight:bold;margin-bottom:12px}.c2-quiz button{display:block;width:100%;text-align:left;padding:12px 16px;margin:8px 0;border:2px solid #829b91;border-radius:10px;background:white}.c2-quiz button[aria-pressed=true],.c2-candidates button[aria-pressed=true]{background:#dcefa9;border-color:#293f43;box-shadow:3px 3px 0 #293f43}.c2-two-col{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.c2-spec{padding-left:22px}.c2-spec li{margin:14px 0}.c2-candidates{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0 18px}.c2-candidates button{border:2px solid #829b91;border-radius:12px;padding:14px 10px;background:white;min-height:48px}.c2-link{text-decoration:underline;font-size:14px;min-height:44px}.c2-next{margin-top:20px;width:100%}#c2ObjectFeedback,#c2RelationFeedback,#c2QuizFeedback{white-space:pre-line;font-size:14px;color:#753d31;line-height:1.9}.c2-model{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:18px;margin:24px 0}.c2-model article{border:2px solid #293f43;border-radius:12px;background:#e6f5e9;overflow:hidden}.c2-model h3{margin:0;padding:10px;background:#ffe399;border-bottom:2px solid #293f43;text-align:center}.c2-model p{padding:12px 18px;font-size:14px}.c2-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.c2-fields label{display:block;font-size:15px;font-weight:600}.c2-fields select{width:100%;display:block;min-height:48px;padding:10px 12px;margin-top:8px;border:2px solid #829b91;background:white;border-radius:10px;font:16px system-ui;color:#293f43}.c2-result{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}.c2-result article{padding:22px;background:#e6f5e9;border-radius:12px}.c2-result span{display:block;color:#536b6d;font-size:13px}.c2-result strong{display:block;font-size:20px;margin:8px 0}.c2-result p{font-size:14px}.beta-panel{max-width:1052px}.beta-dialog{max-height:calc(100vh - 24px)}
@media(max-width:700px){.c2-header{padding:14px 16px}.c2-brand{font-size:18px}.c2-header>a:last-child{font-size:12px}.c2-shell{padding:24px 14px}.c2-heading h1{font-size:25px}.c2-heading>div>p:last-child{font-size:13px}.c2-stamp{display:none}.c2-kicker{font-size:10px}.c2-progress{gap:4px}.c2-progress li{font-size:11px;padding:10px 2px}.c2-card,.c2-dialogue{padding:20px 16px;box-shadow:3px 4px 0 #293f4333}.c2-stage h2{font-size:22px}.c2-scene{margin:0 8px;height:180px}.c2-person{right:10%;width:80px;height:105px;font-size:40px}.c2-scene-caption{top:10px;right:10px;font-size:10px}.c2-dialogue>p:not(.c2-kicker){font-size:16px}.c2-principles,.c2-two-col,.c2-fields,.c2-result{grid-template-columns:1fr}.c2-model{gap:5px;grid-template-columns:1fr 12px 1fr 12px 1fr}.c2-model h3{font-size:16px}.c2-model p{padding:10px 6px;font-size:12px}.c2-actions{gap:12px}.c2-actions button,.c2-actions a{padding:10px 12px;min-height:46px;flex:1;font-size:13px}.c2-actions>span{flex-basis:100%}.c2-candidates button{font-size:15px}.beta-panel{margin:0 14px 20px}.beta-dialog{width:calc(100% - 24px);padding:20px}.beta-dialog input:not([type=checkbox]),.beta-dialog textarea{font-size:16px}}
.c2-shell:has(#c2Story:not([hidden])) {
  max-width: none;
  padding-inline: 0;
}
.c2-shell:has(#c2Story:not([hidden])) > :is(.c2-heading, .c2-progress) {
  max-width: 1052px;
  margin-inline: auto;
  width: calc(100% - 32px);
}
#c2Story {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(405px, calc(100svh - 365px), 650px);
  padding: clamp(190px, 33svh, 330px) 0 20px;
}
.c2-library {
  position: absolute;
  inset: 0;
  z-index: -1;
  isolation: isolate;
  overflow: hidden;
  background: #9dc4af;
  border-block: 3px solid #293f43;
}
.c2-library-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.c2-library-location, .c2-library-task, .c2-evidence {
  background: #fff4cf;
  border: 2px solid #293f43;
  border-radius: 12px;
  box-shadow: 3px 4px #293f4344;
  padding: 10px 14px;
}
.c2-library-location { position: absolute; top: 18px; right: 24px; font-size: 13px; font-weight: 700; }
.c2-library-task { position: absolute; top: 18px; left: 24px; max-width: 42%; }
.c2-library-task small, .c2-terminal small { display: block; margin-bottom: 4px; font-size: 12px; }
.c2-library-task strong { display: block; font-size: 15px; }
.c2-actor {
  position: absolute;
  bottom: 17%;
  width: clamp(112px, 22vw, 310px);
  display: none;
}
.c2-actor svg { display: block; width: 100%; }
.c2-actor-manager { right: 11%; }
.c2-actor-mentor { left: 12%; }
.c2-library[data-speaker="manager"] .c2-actor-manager,
.c2-library[data-speaker="learner"] .c2-actor-manager,
.c2-library[data-speaker="mentor"] .c2-actor-mentor { display: block; }
.c2-library-counter {
  position: absolute;
  inset: auto 0 0;
  min-height: 22%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(12px, 5vw, 64px);
  padding: 12px 16px 24px;
  background: linear-gradient(#eabc85 0 62%, #a56d46 63%);
  border-top: 4px solid #79573c;
}
.c2-terminal {
  padding: 10px 14px;
  color: #eff9df;
  background: #2a4846;
  border: 5px solid #546e61;
  border-radius: 8px;
}
.c2-prop {
  min-height: 44px;
  padding: 8px 14px;
  background: #fff4cf;
  border: 2px solid #293f43;
  border-radius: 8px;
  box-shadow: 3px 4px #293f43;
  font-weight: 700;
}
.c2-evidence {
  position: absolute;
  bottom: 27%;
  left: 50%;
  transform: translateX(-50%);
  width: min(470px, calc(100% - 32px));
  font-size: 14px;
}
#c2Story > .c2-dialogue {
  width: min(1052px, calc(100% - 32px));
  margin: 0 auto;
  outline: 1px dashed #c8b888;
  outline-offset: -9px;
}
@media (max-width: 700px) {
  .c2-library-location { top: 12px; right: 10px; max-width: 48%; font-size: 11px; }
  .c2-library-task { top: 12px; left: 10px; padding: 8px; }
  .c2-library-task strong, .c2-terminal strong, .c2-prop { font-size: 13px; }
  .c2-actor { bottom: 23%; }
  .c2-actor-staff { right: 8%; }
  .c2-actor-mentor { left: 8%; }
}
.c2-library[data-stop="1"] .c2-library-counter {
  background: linear-gradient(#b7cda0 0 62%, #627e62 63%);
}
.c2-library[data-stop="2"] .c2-library-counter {
  background: linear-gradient(#c5d9da 0 62%, #668b94 63%);
}
.c2-topbar .c2-review-link { justify-self: end; }
.c2-topbar .chapter-line i { width: 20%; }
.c2-shell { padding-block: 16px; }
.c2-shell:has(#c2Story:not([hidden])) { padding-top: 0; }
.c2-library-counter {
  min-height: 0;
  height: 13%;
  padding: 0;
}
.c2-actor {
  top: clamp(34px, 8%, 55px);
  bottom: auto;
  width: auto;
  height: clamp(180px, 49svh, 445px);
}
.c2-actor svg { width: auto; height: 100%; }
#c2Story > .c2-dialogue {
  padding: 14px 22px;
}
.c2-stage h2 { margin: 4px 0 8px; }
.c2-dialogue > p:not(.c2-kicker) {
  min-height: 0;
  font-size: 16px;
  line-height: 1.65;
}
.c2-actions { margin-top: 12px; }
#c2Story .c2-actions { justify-content: flex-start; gap: 10px; }
.c2-intro-controls { display: flex; gap: 10px; margin-left: auto; }
.c2-intro-controls button { flex: none; }
.c2-clue-btn { padding: 7px 12px; }
.c2-quiz { margin: 10px 0 6px; }
.c2-quiz legend { margin-bottom: 4px; }
.c2-quiz button { padding: 8px 12px; margin: 5px 0; }
.c2-note { margin-block: 10px; }
#c2Reveal .c2-note { padding: 8px 14px; }
.c2-clue-dialog {
  margin: auto;
  width: min(480px, calc(100% - 32px));
  color: #293f43;
}
.c2-clue-dialog::backdrop { background: #20363899; }
.c2-clue-dialog h2 { margin-block: 6px 10px; }
.c2-clue-dialog p { line-height: 1.65; }
.c2-clue-dialog form { margin-top: 16px; }
body:has(.c2-topbar) > .beta-panel {
  margin-block: 8px;
  padding-block: 10px;
  gap: 6px 16px;
}
@media (min-width: 701px) {
  #c2Story:has(#c2CaseDialogue:not([hidden])) {
    padding-top: clamp(155px, 24svh, 255px);
  }
  .c2-dialogue .c2-quiz button {
    display: inline-block;
    width: calc(50% - 6px);
    vertical-align: top;
    margin-right: 6px;
  }
}
@media (max-width: 700px) {
  .c2-topbar { height: auto; min-height: 68px; padding-block: 8px; }
  .c2-topbar .chapter {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    margin-top: 4px;
  }
  .c2-topbar .chapter-line { display: none; }
  #c2Story { min-height: 0; padding-top: 215px; }
  #c2Story:has(#c2CaseDialogue:not([hidden])) { padding-top: 175px; }
  .c2-actor { top: 60px; height: 190px; }
  #c2Story > .c2-dialogue { padding: 12px 14px; outline-offset: -6px; }
  #c2Story .c2-actions > span { flex-basis: auto; }
}
@media (min-width: 701px) {
  #c2Story {
    min-height: calc(100dvh - 82px);
    padding: clamp(150px, 35dvh, 320px) 0 40px;
  }
  #c2Story:has(#c2CaseDialogue:not([hidden])) {
    padding-top: clamp(150px, 25dvh, 240px);
  }
  #c2Story > .c2-dialogue {
    width: min(1060px, calc(100% - 64px));
    padding: 22px 34px 16px;
  }
  .c2-library .c2-actor {
    top: auto;
    bottom: 224px;
    width: min(34vw, 440px);
    height: auto;
  }
  .c2-library .c2-actor svg { width: 100%; height: auto; max-height: 61vh; }
  .c2-library .c2-actor-manager { right: 5%; }
  .c2-library .c2-actor-mentor { left: 7%; }
  .c2-library-counter { height: 23%; }
}
.c2-shell:has(#c2Learn:not([hidden])) { max-width: none; padding: 0; }
#c2Learn .lesson-layout { min-height: 0; }
#c2Learn .lesson-nav button:disabled { opacity: .55; }
#c2Learn .lesson-page { padding-block: 28px; }
#c2Learn .lesson-footer { min-height: 64px; }
#c2Learn .c2-topic-demo {
  display: grid;
  align-content: center;
  gap: 20px;
  min-height: 320px;
  padding: 22px;
}
#c2TopicDiagram {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px 10px;
  border: 2px dashed #71948d;
  border-radius: 12px;
}
#c2TopicDiagram .c2-diagram-prompt { color: #536b6d; text-align: center; }
@media (max-width: 700px) {
  #c2Learn .lesson-nav ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #c2Learn .lesson-nav li button { gap: 4px; min-height: 38px; }
  #c2Learn .lesson-nav li button div { display: block; }
  #c2Learn .lesson-nav li small { display: none; }
  #c2Learn .lesson-page { padding-block: 16px; }
  #c2Learn .c2-topic-demo { min-height: 0; margin-top: 14px; padding: 14px; }
}
.c2-uml { display: block; width: 100%; max-width: 420px; margin-inline: auto; }
.c2-uml text { fill: currentColor; stroke: none; }
#c2TopicDiagram { width: 100%; align-content: center; }
#c2Learn .c2-topic-demo { grid-template-rows: auto 1fr; align-content: stretch; }
.c2-page .beta-panel { margin-block: 10px; }

@media (min-width: 1050px) {
  .c2-page { display: flex; flex-direction: column; min-height: 100svh; }
  .c2-page > :is(.course-picker, .topbar, .beta-panel) { flex-shrink: 0; }
  .c2-page .c2-shell {
    flex: 1;
    display: grid;
    align-items: center;
    width: 100%;
    max-width: 1180px;
    padding-block: clamp(16px, 3vh, 32px);
  }
  .c2-page .c2-shell:has(#c2Story:not([hidden]), #c2Learn:not([hidden])) {
    max-width: none;
    align-items: stretch;
    padding: 0;
  }
  #c2Story { min-height: clamp(430px, 57vh, 660px); }
  .c2-library .c2-actor { bottom: clamp(135px, 20vh, 224px); }
  .c2-library .c2-actor svg { max-height: min(46vh, 430px); }
  #c2Learn .lesson-layout { height: 100%; }
  #c2Learn .lesson-page { padding-block: clamp(16px, 3vh, 36px); }
  #c2Learn .c2-topic-demo {
    min-height: clamp(330px, 44vh, 480px);
  }
  #c2Learn .mentor-explain { padding: 10px 14px; }
  #c2Learn .mentor-explain p { line-height: 1.65; }
  #c2Learn .lesson-footer { min-height: 56px; }
  .c2-page .c2-stage.c2-card { padding: clamp(18px, 3vh, 30px); }
  .c2-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c2-fields label { display: flex; flex-direction: column; justify-content: space-between; }
  .c2-principles { gap: 14px; margin-block: 14px; }
  .c2-principles article { padding: 12px; }
}
@media (min-width: 1050px) and (max-height: 760px) {
  #c2Learn .lesson-page { padding-block: 12px; gap: 24px; }
  #c2Learn .c2-topic-demo { min-height: 275px; }
  #c2Learn .lesson-copy h2 { font-size: 24px; }
  #c2Learn .lesson-lead { line-height: 1.55; }
  #c2Learn .lesson-nav { padding-block: 14px; }
  #c2Learn .lesson-nav > p { margin-block: 12px; }
  #c2Learn .lesson-nav li button { min-height: 52px; }
}
#c2FinalModels article { display: flex; flex-direction: column; }
#c2FinalModels .c2-uml { margin-block: auto; }
#c2Learn .c2-topic-demo:has(#c2TopicExplanation:not([hidden])) {
  gap: 10px;
  grid-template-rows: auto auto 1fr;
}
#c2Learn #c2TopicExplanation { margin: 0; }
#c2Learn #c2Choice button.is-incorrect { background: #ffe0d7; border-color: #a94135; }
.c2-arrow-flash .c2-uml path { animation: c2-arrow-emphasis 2s ease-out; }
@keyframes c2-arrow-emphasis {
  0%, 70% { stroke: #a94135; stroke-width: 3; }
  100% { stroke: currentColor; stroke-width: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  .c2-arrow-flash .c2-uml path { animation: none; stroke: #a94135; stroke-width: 2.5; }
}
#c2TopicCue { font-size: 13px; }
#c2TopicCue:empty { display: none; }
#c2ExtendComparison > p { grid-column: 1 / -1; }
#c2ExtendComparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c2-recap { padding-left: 20px; line-height: 1.7; }
@media (max-width: 700px) {
  #c2ExtendComparison { grid-template-columns: 1fr; }
}
#c2IntroSpeaker {
  position: absolute;
  left: -3px;
  bottom: 100%;
  margin: 0;
}
