:root {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #263e35;
  background: #f6f5ef;
  font-synthesis: none;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a.button {
  font: inherit;
  cursor: pointer;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid #d0963b;
  outline-offset: 4px;
}
a {
  color: inherit;
}
header {
  height: 80px;
  border-bottom: 1px solid #dcded3;
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 0 4.5%;
}
.wordmark {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -1.5px;
  text-decoration: none;
}
.wordmark span {
  font-size: 21px;
  font-weight: 400;
  color: #788477;
  letter-spacing: -0.7px;
}
.header-note {
  flex: 1;
  font-size: 13px;
  color: #7d867b;
}
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9ded1;
  background: #f1f3eb;
  color: #52664e;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pill.example {
  background: #e9eddc;
  letter-spacing: 0.1em;
}
.intro {
  padding: 38px 4.5% 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eyebrow {
  display: block;
  letter-spacing: 0.13em;
  font-size: 10px;
  font-weight: 800;
  color: #7a8674;
}
h1,
h2 {
  font-family: Manrope, system-ui, sans-serif;
  letter-spacing: -0.045em;
  margin: 8px 0 10px;
}
h1 {
  font-size: 43px;
  line-height: 1.15;
  font-weight: 700;
}
h1 > span {
  color: #b28b48;
}
p {
  line-height: 1.65;
  color: #788073;
  margin: 8px 0;
}
.intro p {
  font-size: 14px;
}
.quiet {
  background: transparent;
  border: 1px solid #d7ddcf;
  border-radius: 7px;
  color: #52634d;
  padding: 10px 16px;
  font-size: 12px;
}
.roles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 4.5% 26px;
  border: 1px solid #dce0d5;
  border-radius: 10px;
  overflow: hidden;
  background: #fdfcf7;
}
.roles button {
  background: transparent;
  padding: 16px 20px;
  text-align: left;
  position: relative;
  border-right: 1px solid #e5e8dd;
  color: #606f5b;
  font-weight: 600;
}
.roles button:last-child {
  border: 0;
}
.roles button[aria-pressed='true'] {
  background: #e8eddd;
  color: #294d35;
  box-shadow: inset 0 -3px #607f4e;
}
.role-icon {
  margin-right: 10px;
  font-size: 17px;
}
.roles small {
  display: block;
  padding-left: 28px;
  font-size: 11px;
  color: #8b9385;
  font-weight: 400;
  margin-top: 4px;
}
.layout {
  margin: 0 4.5%;
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}
.site-panel {
  border: 1px solid #dce0d4;
  border-radius: 12px;
  overflow: hidden;
  background: #fffef9;
}
.panel-heading {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  border-bottom: 1px solid #e8e9de;
  align-items: center;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a7ac9e;
  margin-right: 9px;
}
.live-dot.on {
  background: #708a52;
  box-shadow: 0 0 0 4px #edf1e4;
}
.muted {
  color: #8b9383;
  font-size: 11px;
}
.time {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 600;
}
.site {
  background: #d7dfc8;
  line-height: 0;
}
.site svg {
  display: block;
  width: 100%;
  height: auto;
}
.map-heading {
  font: 700 20px system-ui;
  letter-spacing: 4px;
  fill: #8f9588;
}
.map-small {
  font: 10px system-ui;
  letter-spacing: 1px;
  fill: #6b7c69;
}
.map-label {
  font: 600 10px system-ui;
  fill: #56634d;
}
.person-label {
  font: 600 11px system-ui;
  fill: #53624a;
}
.working .body {
  animation: work 1.1s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: 50% 90%;
}
.working:nth-of-type(2) .body {
  animation-delay: 0.4s;
}
@keyframes work {
  to {
    transform: rotate(5deg) translateY(-3px);
  }
}
.scene-footer {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e4e7db;
  font-size: 9px;
  color: #849078;
}
.scene-footer strong {
  margin-left: auto;
  color: #57684e;
  font-size: 10px;
}
.legend {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 2px;
}
.yellow {
  background: #dfc066;
}
.blue {
  background: #91b0b7;
}
.green {
  background: #83a798;
}
.playback {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: #fafbf5;
  border-bottom: 1px solid #e5e8dc;
}
.play {
  background: #e7eddd;
  color: #516744;
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.playback > span {
  font-size: 10px;
  color: #8a9582;
  white-space: nowrap;
}
.timeline {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.timeline button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 10px;
  background: #edf0e5;
  color: #87967a;
}
.timeline button.passed {
  background: #cbd9b9;
  color: #405f37;
}
.timeline button[aria-current='step'] {
  background: #577546;
  color: white;
  box-shadow: 0 0 0 3px #e3ead9;
}
.scene-card {
  padding: 24px 25px 26px;
}
h2 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.scene-card p {
  font-size: 12px;
  max-width: 570px;
}
.button {
  display: inline-flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  background: #3e5f42;
  color: #fff;
  border-radius: 7px;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  padding: 13px 18px;
  margin-top: 12px;
}
.button:hover {
  background: #2d4d31;
}
aside {
  display: grid;
  gap: 16px;
}
.role-card,
.results,
.allocation {
  background: #fffef9;
  border: 1px solid #dce0d4;
  border-radius: 10px;
  padding: 23px;
}
.role-card p,
.allocation p {
  font-size: 12px;
}
.role-card h2 {
  font-size: 23px;
  margin-top: 12px;
}
.role-card {
  border-top: 3px solid #98a888;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.section-title h2 {
  font-size: 15px;
  margin: 0;
}
.section-title .pill {
  font-size: 8px;
  padding: 4px 5px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
  margin: 22px 0 8px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.stat > span {
  font-size: 10px;
  color: #7f8b75;
}
.stat strong {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.2;
}
.stat small {
  font-size: 9px;
  color: #8d9685;
  line-height: 1.5;
}
.stat.total {
  grid-column: 1/-1;
  border-top: 1px solid #e6eadf;
  padding-top: 15px;
}
.stat.total strong {
  font-size: 30px;
  color: #477044;
}
.evidence-note {
  font-size: 10px;
  line-height: 1.6;
  margin-top: 18px;
  padding: 12px;
  background: #f4f5ed;
  border-radius: 5px;
}
.split {
  display: flex;
  gap: 40px;
  margin: 20px 0 8px;
}
.split > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.split span {
  font-size: 10px;
  color: #7d8972;
}
.split strong {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
}
.warning {
  background: #f5ead4;
  color: #a07832;
  border-color: #e8d4ac;
}
.tools {
  display: grid;
  gap: 7px;
  margin-top: 17px;
}
.tools button {
  font-size: 11px;
  text-align: left;
  padding: 10px 12px;
  background: #f0f3e8;
  color: #586d4d;
  border: 1px solid #e2e7d9;
  border-radius: 5px;
}
.tools button:hover {
  background: #e2ead6;
}
.explain {
  padding-top: 12px;
  border-top: 1px solid #e7eadf;
  margin-top: 16px !important;
  font-size: 11px !important;
}
.assignment {
  background: #edf1e5;
  padding: 16px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 18px;
}
.assignment > span:first-child {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #7f8b73;
}
.assignment strong {
  font-size: 20px;
}
.assignment p {
  font-size: 11px;
  margin: 0;
}
.assignment .pill {
  align-self: flex-start;
}
.discussion {
  margin: 34px 4.5% 0;
  border-top: 1px solid #d9dece;
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.discussion p {
  font-size: 12px;
  max-width: 390px;
}
.discussion label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}
textarea {
  font:
    12px/1.6 'DM Sans',
    system-ui,
    sans-serif;
  display: block;
  width: 100%;
  height: 90px;
  resize: vertical;
  border: 1px solid #d7decc;
  border-radius: 6px;
  background: #fffef9;
  color: #42583d;
  padding: 12px;
  margin-bottom: 12px;
}
.discussion .muted {
  margin-left: 12px;
  font-size: 9px;
}
footer {
  text-align: center;
  padding: 22px;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #96a08a;
  border-top: 1px solid #e2e6d8;
}
.login {
  max-width: 550px;
  padding: 60px 25px;
  margin: 8vh auto;
}
.login .wordmark {
  display: block;
  margin-bottom: 40px;
}
.login h1 {
  font-size: 48px;
}
.login .quiet {
  margin-top: 12px;
}
#session-notice {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-content: center;
  text-align: center;
  background: #f6f5eff5;
  padding: 30px;
}
#session-notice a {
  font-weight: 700;
}
@media (min-width: 1500px) {
  .layout {
    grid-template-columns: minmax(0, 2.1fr) minmax(340px, 1fr);
  }
  .intro {
    padding-top: 45px;
  }
  .site-panel {
    max-width: 1200px;
  }
  header,
  .intro {
    padding-left: max(4.5%, calc((100vw - 1600px) / 2));
    padding-right: max(4.5%, calc((100vw - 1600px) / 2));
  }
  .roles,
  .layout,
  .discussion {
    max-width: 1456px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr);
    gap: 15px;
  }
  .roles button {
    padding: 14px 10px;
  }
  .role-card,
  .results,
  .allocation {
    padding: 17px;
  }
  .timeline {
    gap: 4px;
  }
  .timeline button {
    width: 20px;
    height: 20px;
  }
  .playback {
    gap: 8px;
    padding: 15px 12px;
  }
  .scene-footer {
    flex-wrap: wrap;
  }
  .scene-footer strong {
    margin-left: 0;
  }
  .header-note {
    display: none;
  }
  header {
    justify-content: space-between;
  }
}
@media (max-width: 760px) {
  header {
    height: 65px;
  }
  .intro {
    padding-top: 25px;
    align-items: flex-start;
    gap: 12px;
  }
  h1 {
    font-size: 34px;
  }
  .intro p {
    font-size: 12px;
  }
  .intro .quiet {
    font-size: 10px;
    padding: 9px;
  }
  .roles {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 16px;
  }
  .roles button {
    font-size: 10px;
    padding: 12px 3px;
    text-align: center;
  }
  .roles small {
    display: none;
  }
  .role-icon {
    display: block;
    margin: 0 0 5px;
    font-size: 19px;
  }
  .layout {
    display: flex;
    flex-direction: column;
  }
  .site-panel,
  aside {
    width: 100%;
  }
  aside {
    grid-template-columns: 1fr;
  }
  .role-card h2 {
    font-size: 20px;
  }
  .site svg {
    min-height: 230px;
  }
  .scene-card {
    padding: 20px;
  }
  .playback {
    flex-wrap: wrap;
  }
  .timeline {
    min-width: 180px;
  }
  .timeline button {
    width: 23px;
    height: 23px;
  }
  .scene-card .button {
    width: 100%;
  }
  .discussion {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
  }
  .discussion .muted {
    display: block;
    margin: 9px 0;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .site-panel .muted {
    font-size: 10px;
  }
  .panel-heading {
    padding: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .working .body {
    animation: none;
  }
}
