/* Follow a concrete connection; keep the discovery in the foreground. */
body[data-lab="workspace"] {
  --discovery-ink: #283a51;
  --discovery-muted: #56687d;
  --discovery-line: #d7e0e9;
  --discovery-blue: #385d88;
  --discovery-orange: #a34b2f;
}
.ownership-card.example-mystery {
  display: flex;
  flex-direction: column;
  background: #eaf1f8;
  border-color: #ccdae8;
  padding: 29px 31px 25px;
  box-shadow: inset 0 1px 0 #f8fbff;
}
.example-mystery > .work-card-label {
  color: #5a718b;
  font-size: 10px;
  letter-spacing: 1px;
}
.example-mystery h2 {
  font: 500 35px/1.16 var(--display);
  letter-spacing: -1.35px;
  color: #314f73;
  margin: 24px 0 15px;
}
.example-mystery > p {
  font-size: 14px;
  color: #4c6581;
  line-height: 1.85;
  margin: 0 0 22px;
}
.example-mystery > p > code {
  font: 11px var(--mono);
  color: #415e7d;
  padding: 3px 5px;
  background: #f9fbff;
  border: 1px solid #d4dfeb;
  border-radius: 4px;
  white-space: pre;
}
.example-thread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 17px;
}
.example-thread > span {
  background: #f9fcff;
  border: 1px solid #c5d6e6;
  box-shadow: 0 3px 0 #d6e2ee;
  color: #416283;
  padding: 9px 12px;
  border-radius: 5px;
  font: 10px var(--mono);
}
.example-thread > span:nth-of-type(2) {
  background: #fff3e7;
  border-color: #d8bca2;
  color: #815736;
  box-shadow: 0 3px 0 #e3d4c6;
  transform: rotate(-3deg);
}
.example-thread > i {
  font-style: normal;
  color: #6c89a9;
  font-size: 18px;
}
.example-code {
  padding: 13px 15px;
  border: 1px dashed #b6cadd;
  border-radius: 6px;
  background: #e3edf7;
  overflow: hidden;
}
.example-code > span {
  display: block;
  font: 8px var(--mono);
  letter-spacing: 0.7px;
  color: #5c7794;
  margin-bottom: 7px;
}
.example-code > code {
  display: block;
  overflow-wrap: anywhere;
  color: #395b7f;
  font: 11px/1.7 var(--mono);
}
.example-mystery > .work-example {
  padding: 19px 0 0;
  margin-top: auto;
  border: 0;
  color: #355c86;
  min-height: 48px;
  font-size: 13px;
}
.example-mystery > .work-example:hover {
  color: #a65332;
}
.example-mystery > .work-example > span {
  transition: transform 160ms ease;
  font-size: 19px;
}
.example-mystery > .work-example:hover > span {
  transform: translate(3px, -3px);
}
.example-mystery > .work-example:focus-visible {
  outline: 3px solid #a3512d;
  outline-offset: 4px;
  border-radius: 2px;
}
.curiosity-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 39px 0 29px;
}
.curiosity-heading > div {
  min-width: 0;
}
.curiosity-heading .eyebrow,
.discovery-feature .eyebrow,
.curiosity-shelf .eyebrow,
.investigation-guide .eyebrow,
.evidence-turn .eyebrow,
.understanding-island .eyebrow {
  color: #617286;
  font-size: 10px;
  line-height: 1.65;
  letter-spacing: 1.15px;
}
.curiosity-heading h1 {
  margin: 13px 0 12px;
  max-width: 810px;
  font: 500 clamp(34px, 3.35vw, 47px) / 1.16 var(--display);
  letter-spacing: -1.8px;
  color: var(--discovery-ink);
  overflow-wrap: anywhere;
}
.curiosity-heading h1 > span {
  color: #ce6643;
}
.curiosity-heading p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--discovery-muted);
  margin: 0;
  max-width: 620px;
}
.map-shortcut {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  font-size: 12px;
  color: var(--discovery-blue);
  padding: 9px 0;
  transition: color 160ms ease;
}
.map-shortcut:hover {
  color: var(--discovery-orange);
}
.map-icon {
  display: grid;
  place-items: center;
  height: 31px;
  width: 31px;
  border: 1px solid #d3dee9;
  border-radius: 50%;
  color: #567291;
  background: #edf3f8;
  font-size: 21px;
}
.discovery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
  gap: 26px;
  align-items: start;
  margin: 27px 0 44px;
}
.discovery-feature {
  padding: 30px 32px 22px;
  border: 1px solid #d1dde8;
  border-radius: 12px;
  background: #edf3f8;
  min-width: 0;
  box-shadow: 0 5px 0 #e5ecf3;
}
.discovery-feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.discovery-count {
  font: 11px var(--mono);
  color: #536c89;
  border: 1px solid #ccd9e6;
  border-radius: 20px;
  padding: 6px 10px;
  white-space: nowrap;
}
.discovery-feature > h2 {
  margin: 26px 0 13px;
  font: 500 clamp(26px, 2.4vw, 35px) / 1.22 var(--display);
  letter-spacing: -1.15px;
  color: #2d496a;
  overflow-wrap: anywhere;
}
.discovery-question {
  font-size: 15px;
  line-height: 1.75;
  color: #4b6480;
  margin: 0 0 26px;
  max-width: 610px;
}
.thread-mini-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 25px 0;
  min-width: 0;
}
.thread-mini-trail > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 135px;
  padding: 11px;
  border: 1px solid #d4e0ea;
  border-radius: 7px;
  background: #f9fbfd;
}
.trail-dot {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  border: 1px solid #bfd0e2;
  border-radius: 50%;
  color: #3b638e;
  background: #edf3fa;
  font: 9px var(--mono);
}
.thread-mini-trail > div > span:last-child {
  min-width: 0;
}
.thread-mini-trail strong {
  display: block;
  color: #365372;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.thread-mini-trail small {
  display: block;
  margin-top: 4px;
  color: #60748b;
  font: 9px/1.4 var(--mono);
  overflow-wrap: anywhere;
}
.mini-connector {
  color: #7f98b3;
  font-size: 18px;
  flex-shrink: 0;
}
.discovery-peek {
  min-width: 0;
  overflow: hidden;
  margin-top: 23px;
  border: 1px solid #d0dce8;
  border-radius: 7px;
  background: #f9fbfe;
}
.discovery-peek > div {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 11px 14px;
  background: #e6edf5;
  border-bottom: 1px solid #d0dce8;
}
.discovery-peek > div > span {
  color: #586f8b;
  font: 9px var(--mono);
  letter-spacing: 0.7px;
}
.discovery-peek code {
  color: #476180;
  font: 10px/1.6 var(--mono);
  overflow-wrap: anywhere;
}
.discovery-peek pre {
  margin: 0;
  padding: 16px;
  max-height: 240px;
  overflow: auto;
  color: #344e6b;
  background: transparent;
  font: 11px/1.85 var(--mono);
  tab-size: 2;
}
.discovery-start {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px 20px;
  margin-top: 26px;
}
.discovery-start .primary-button,
.evidence-turn .primary-button {
  background: #3d618b;
  border-color: #3d618b;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  min-height: 44px;
  padding: 12px 17px;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}
.discovery-start .primary-button:hover,
.evidence-turn .primary-button:hover {
  background: #294e7a;
  border-color: #294e7a;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #cbd7e5;
}
.discovery-start .text-button {
  color: #4d657e;
  font-size: 11px;
  padding: 9px 0;
  min-height: 36px;
}
.discovery-proof {
  color: #596f87;
  font-size: 11px;
  line-height: 1.75;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid #d1deea;
  overflow-wrap: anywhere;
}
.curiosity-shelf {
  min-width: 0;
  padding-top: 6px;
}
.shelf-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 16px;
}
.shelf-heading > span:last-child {
  font: 10px var(--mono);
  color: #68798c;
  white-space: nowrap;
}
.curiosity-item {
  display: flex;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  gap: 12px;
  margin: 0 0 10px;
  padding: 17px 15px;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
  color: var(--discovery-ink);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}
.curiosity-item > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.curiosity-item > span:last-child {
  flex-shrink: 0;
  color: #637e9d;
  font-size: 17px;
}
.curiosity-item:hover {
  background: #f4f7fb;
  border-color: #94adc8;
  transform: translateX(-3px);
}
.curiosity-item.active {
  background: #fff0e6;
  border-color: #dcb59e;
  box-shadow: inset 3px 0 0 #ba6946;
}
.curiosity-item.active strong {
  color: #734a37;
}
.curiosity-index {
  flex-shrink: 0;
  padding-top: 2px;
  font: 10px/1.4 var(--mono);
  color: #657a92;
}
.curiosity-item strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.curiosity-item small {
  display: block;
  font: 10px/1.65 var(--mono);
  color: #627589;
  margin-top: 7px;
}
.curiosity-shelf > .text-button {
  display: inline-flex;
  color: #4c6480;
  font-size: 11px;
  padding: 12px 0;
}
.connection-boundary,
.trail-boundary {
  border-top: 1px solid var(--discovery-line);
  padding-top: 19px;
  margin-top: 18px;
}
.connection-boundary > span,
.trail-boundary > span {
  font: 9px/1.7 var(--mono);
  letter-spacing: 0.6px;
  color: #5d7188;
}
.connection-boundary p,
.trail-boundary p {
  font-size: 11px;
  line-height: 1.8;
  color: #5d6e81;
  margin: 7px 0 0;
}
.session-layout.discovery-session {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 23px;
}
.investigation-guide {
  display: block;
  padding: 20px 18px;
  background: #f0f4f8;
  min-width: 0;
}
.trail-intro p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #354e6b;
  overflow-wrap: anywhere;
}
.evidence-trail {
  margin: 24px 0 12px;
  position: relative;
}
.evidence-stop {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 76px;
  padding: 12px 8px 14px;
  text-align: left;
  color: #425d7b;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  transition:
    background 150ms ease,
    border-color 150ms ease;
}
.evidence-stop:not(:last-child)::after {
  position: absolute;
  content: "";
  left: 21px;
  top: 39px;
  bottom: -10px;
  border-left: 1px dashed #aabfd2;
  z-index: 0;
}
.evidence-stop.current {
  background: #fff;
  border-color: #c2d2e1;
}
.evidence-stop.revealed:hover {
  border-color: #7897b6;
  background: #fff;
}
.evidence-stop.unrevealed {
  opacity: 1;
  color: #66798e;
  cursor: default;
}
.evidence-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  height: 26px;
  width: 26px;
  border: 1px solid #b7c8d8;
  border-radius: 50%;
  font: 10px var(--mono);
  background: #edf3f8;
  color: #3c6189;
}
.evidence-stop.current .evidence-number {
  color: #fff;
  background: #42658a;
  border-color: #42658a;
}
.evidence-stop.unrevealed .evidence-number {
  border-style: dashed;
  background: #f3f6f9;
}
.evidence-stop > span:last-child {
  min-width: 0;
  padding-top: 2px;
}
.evidence-stop strong {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.evidence-stop small {
  display: block;
  font: 9px/1.6 var(--mono);
  color: #65788f;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.investigation-guide .guide-help {
  padding-top: 16px;
  margin-top: 14px;
}
.investigation-guide .guide-help > .secondary-button {
  color: #385d84;
  background: #fff;
  min-height: 42px;
}
.investigation-guide .guide-help > .text-button {
  color: #4e657d;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}
.discovery-session .source-toolbar {
  scroll-margin-top: 14px;
}
.evidence-turn {
  padding: 25px;
  border-top: 1px solid #d9e2ec;
  background: #fffaf5;
  min-width: 0;
}
.evidence-caption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}
.evidence-caption > span:last-child {
  font: 10px/1.6 var(--mono);
  color: #7b5d4d;
}
.evidence-reason {
  font-size: 13px;
  line-height: 1.8;
  color: #5c4c42;
  margin: 12px 0 20px;
  overflow-wrap: anywhere;
}
.prediction-echo {
  border-left: 2px solid #c9946f;
  padding: 2px 0 2px 13px;
  margin: 19px 0 14px;
}
.prediction-echo > span {
  color: #87644d;
  font: 9px var(--mono);
  letter-spacing: 0.6px;
}
.prediction-echo p {
  color: #6b5040;
  font-size: 13px;
  line-height: 1.7;
  margin: 7px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.evidence-reactions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 18px 0 25px;
}
.evidence-reactions button {
  min-height: 37px;
  padding: 8px 11px;
  border: 1px solid #dccabb;
  border-radius: 20px;
  background: #fffdf9;
  color: #71533f;
  font-size: 11px;
  transition:
    background 150ms ease,
    border-color 150ms ease;
}
.evidence-reactions button:hover {
  border-color: #ae7854;
  background: #fff0e2;
}
.evidence-reactions button.selected {
  border-color: #98643f;
  color: #583921;
  background: #f6e1ca;
}
.evidence-turn label {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  line-height: 1.6;
  color: #53483e;
  margin: 0 0 10px;
}
.evidence-turn label > span {
  font-size: 10px;
  color: #766557;
  padding-top: 2px;
}
.evidence-turn textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 83px;
  border: 1px solid #d9caba;
  border-radius: 6px;
  background: #fffefc;
  color: #4d4137;
  font: 13px/1.75 var(--sans);
  padding: 12px 14px;
  box-shadow: inset 0 1px 1px #70513605;
}
.evidence-turn textarea::placeholder {
  color: #7b736a;
  opacity: 1;
}
.next-evidence {
  margin-top: 25px;
  padding-top: 24px;
  border-top: 1px dashed #d9c8b6;
}
.next-evidence > label {
  max-width: 630px;
  color: #62452f;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.65;
}
.next-evidence > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px 20px;
  margin-top: 16px;
}
.next-evidence .text-button {
  color: #745039;
  min-height: 40px;
  font-size: 12px;
}
.end-evidence {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border-top: 1px dashed #d9c8b6;
  padding-top: 25px;
  margin-top: 25px;
}
.end-evidence-mark {
  color: #b36a40;
  font-size: 32px;
  line-height: 1;
  margin-top: 5px;
}
.end-evidence > div {
  min-width: 0;
}
.end-evidence strong {
  color: #66462f;
  font: 500 20px/1.35 var(--display);
  letter-spacing: -0.4px;
}
.end-evidence p {
  font-size: 13px;
  line-height: 1.75;
  color: #725944;
  margin: 9px 0 17px;
  max-width: 540px;
}
.end-evidence .text-button {
  display: block;
  padding: 11px 0 0;
  color: #73543f;
  font-size: 11px;
}
.understanding-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
  margin: 28px 0 0;
  padding: 28px;
  background-color: #f0f3f6;
  background-image: radial-gradient(#bfcbd7 0.8px, transparent 0.8px);
  background-size: 12px 12px;
  border: 1px solid #dce3ea;
  border-radius: 12px;
}
.understanding-island {
  position: relative;
  min-width: 0;
  background: #fffefb;
  border: 1px solid #d2dce6;
  border-radius: 9px;
  padding: 24px;
  box-shadow: 0 4px 0 #dfe6ed;
}
.understanding-island::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  position: absolute;
  left: 25px;
  top: -6px;
  background: #d7825d;
  border-radius: 50%;
  border: 3px solid #fff4e9;
  box-shadow: 0 0 0 1px #bd6b48;
}
.understanding-island:nth-child(even) {
  margin-top: 34px;
}
.understanding-island:nth-child(even)::before {
  background: #7392ac;
  border-color: #eff6fd;
  box-shadow: 0 0 0 1px #567898;
}
.island-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.island-top > span:last-child {
  color: #667384;
  font: 9px var(--mono);
  flex-shrink: 0;
}
.island-top .eyebrow {
  font-size: 8px;
  color: #7a664f;
  letter-spacing: 0.65px;
}
.understanding-island h2 {
  color: #334c67;
  font: 500 23px/1.35 var(--display);
  letter-spacing: -0.6px;
  margin: 17px 0 0;
  overflow-wrap: anywhere;
}
.thread-mini-trail.compact {
  gap: 5px;
  margin: 19px 0;
}
.thread-mini-trail.compact > div {
  background: #f5f8fa;
  padding: 8px;
  gap: 7px;
  flex-basis: 105px;
}
.thread-mini-trail.compact .trail-dot {
  width: 22px;
  height: 22px;
  font-size: 8px;
}
.thread-mini-trail.compact strong {
  font-size: 10px;
}
.thread-mini-trail.compact small {
  font-size: 8px;
}
.understanding-island blockquote {
  color: #4e5a64;
  font-size: 14px;
  line-height: 1.85;
  margin: 19px 0 0;
  padding: 0 0 0 14px;
  border-left: 2px solid #d5b093;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mind-changed {
  display: inline-block;
  margin: 18px 0 0;
  color: #825b3d;
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 4px;
  background: #fbf0df;
}
.island-actions {
  margin-top: 22px;
  padding-top: 13px;
  border-top: 1px solid #e2e6ea;
}
.island-actions .text-button {
  color: #385a7e;
  font-size: 11px;
  padding: 7px 0;
  min-height: 34px;
}
.island-actions p {
  color: #5f6b76;
  font-size: 12px;
  line-height: 1.8;
  margin: 13px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.island-actions p > span {
  display: block;
  font: 8px/1.5 var(--mono);
  color: #6c7680;
  letter-spacing: 0.7px;
  margin-bottom: 6px;
}
.empty-map {
  text-align: center;
  padding: 65px 24px 58px;
  margin-top: 26px;
  border: 1px solid #dce4eb;
  border-radius: 12px;
  background-color: #f3f6f8;
  background-image: radial-gradient(#c7d2dc 0.7px, transparent 0.7px);
  background-size: 14px 14px;
}
.empty-constellation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 30px;
  max-width: 340px;
}
.empty-constellation span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  font: 25px var(--display);
  color: #6f8bac;
  background: #f9fcfe;
  border: 1px dashed #90a8c0;
  border-radius: 50%;
  box-shadow: 0 4px 0 #e4eaf0;
}
.empty-constellation span:nth-of-type(2) {
  width: 68px;
  height: 68px;
  color: #a36844;
  border-color: #c69b7b;
  background: #fff3e7;
}
.empty-constellation i {
  display: block;
  flex: 1;
  border-top: 1px dashed #a9bccc;
  transform: rotate(-12deg);
}
.empty-constellation i:last-of-type {
  transform: rotate(12deg);
}
.empty-map h2 {
  color: #38516c;
  font: 500 27px/1.4 var(--display);
  letter-spacing: -0.6px;
  margin: 0 auto 13px;
  max-width: 600px;
}
.empty-map p {
  max-width: 515px;
  color: #5a6d80;
  font-size: 14px;
  line-height: 1.9;
  margin: 0 auto 23px;
}
.map-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 22px 0 30px;
}
.map-footer .text-button {
  color: #446483;
  font-size: 12px;
  white-space: nowrap;
}
.map-footer > span {
  font-size: 11px;
  line-height: 1.7;
  color: #5f7185;
  text-align: right;
}
.discovery-layout :is(button, a):focus-visible,
.curiosity-heading a:focus-visible,
.discovery-session :is(button, a, textarea, select):focus-visible,
.understanding-map :is(button, a):focus-visible,
.empty-map a:focus-visible,
.map-footer a:focus-visible {
  outline: 3px solid #a3512d;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .curiosity-heading {
    align-items: flex-start;
  }
  .curiosity-heading h1 {
    font-size: 38px;
  }
  .map-shortcut {
    font-size: 11px;
    margin-top: 24px;
  }
  .discovery-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(255px, 1fr);
    gap: 19px;
  }
  .discovery-feature {
    padding: 25px;
  }
  .discovery-feature > h2 {
    font-size: 29px;
  }
  .session-layout.discovery-session {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
  }
  .investigation-guide {
    padding: 19px 15px;
  }
  .understanding-map {
    padding: 22px;
    gap: 22px;
  }
  .understanding-island {
    padding: 21px;
  }
}
@media (max-width: 850px) {
  .curiosity-heading {
    display: block;
    padding: 30px 0 25px;
  }
  .map-shortcut {
    margin: 13px 0 0;
    width: fit-content;
  }
  .discovery-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 29px;
  }
  .discovery-feature > h2 {
    max-width: 610px;
  }
  .curiosity-shelf {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .shelf-heading,
  .curiosity-shelf > .text-button,
  .connection-boundary {
    grid-column: 1/-1;
  }
  .shelf-heading {
    margin-bottom: 4px;
  }
  .curiosity-item {
    margin: 0;
  }
  .curiosity-shelf > .text-button {
    padding: 6px 0;
  }
  .connection-boundary {
    margin-top: 0;
  }
  .session-layout.discovery-session {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .investigation-guide {
    display: contents;
  }
  .investigation-guide .trail-intro {
    order: 0;
    width: 100%;
  }
  .trail-intro .eyebrow {
    font-size: 9px;
  }
  .trail-intro p {
    font-size: 13px;
    margin: 7px 0 0;
    line-height: 1.65;
  }
  .evidence-trail {
    display: flex;
    order: 1;
    width: 100%;
    gap: 8px;
    margin: 0;
    overflow-x: auto;
    padding: 3px 3px 9px;
    scrollbar-width: thin;
  }
  .evidence-stop {
    flex: 1 0 180px;
    width: 180px;
    min-width: 0;
    min-height: 67px;
    padding: 11px;
    background: #edf2f7;
    border-color: #d9e2eb;
    gap: 9px;
  }
  .evidence-stop:not(:last-child)::after {
    display: none;
  }
  .evidence-stop small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 145px;
    margin-top: 4px;
  }
  .evidence-stop strong {
    font-size: 11px;
  }
  .evidence-number {
    width: 23px;
    height: 23px;
  }
  .discovery-session .session-work {
    order: 2;
    width: 100%;
  }
  .investigation-guide .guide-help {
    order: 3;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 8px 20px;
    width: 100%;
    margin: 3px 0 0;
    padding: 15px 0 0;
  }
  .investigation-guide .guide-help > .secondary-button {
    width: auto;
    min-width: 170px;
  }
  .investigation-guide .guide-help > .text-button {
    margin: 0;
    min-height: 40px;
  }
  .investigation-guide #clue-content:not(:empty) {
    order: 5;
    flex: 1 1 100%;
  }
  .investigation-guide .clue-copy {
    margin-top: 2px;
  }
  .trail-boundary {
    order: 4;
    width: 100%;
    margin: 0;
    padding-top: 14px;
  }
  .trail-boundary p {
    margin-top: 5px;
  }
  .discovery-session .source-scroll {
    min-height: 210px;
    max-height: 320px;
  }
  .evidence-turn {
    padding: 23px;
  }
  .understanding-map {
    gap: 20px;
    padding: 20px;
  }
  .understanding-island {
    padding: 20px;
  }
  .understanding-island h2 {
    font-size: 21px;
  }
}
@media (max-width: 600px) {
  .ownership-card.example-mystery {
    padding: 25px 23px 21px;
  }
  .example-mystery h2 {
    font-size: 31px;
    margin-top: 21px;
  }
  .example-mystery > .work-card-label {
    font-size: 9px;
  }
  .example-mystery > p {
    font-size: 13px;
  }
  .example-thread > span {
    font-size: 9px;
    padding: 8px 9px;
  }
  .example-thread > i {
    font-size: 14px;
  }
  .example-code > code {
    font-size: 10px;
  }
  .curiosity-heading {
    padding: 26px 0 21px;
  }
  .curiosity-heading h1 {
    font-size: 33px;
    letter-spacing: -1.2px;
    line-height: 1.18;
    margin: 11px 0 13px;
  }
  .curiosity-heading .eyebrow {
    font-size: 9px;
    letter-spacing: 0.8px;
  }
  .curiosity-heading p {
    font-size: 13px;
    line-height: 1.8;
  }
  .map-shortcut {
    font-size: 12px;
  }
  .curiosity-heading > .primary-button {
    margin-top: 18px;
  }
  .discovery-layout {
    margin-top: 21px;
    gap: 26px;
  }
  .discovery-feature {
    padding: 22px 18px 18px;
    border-radius: 9px;
  }
  .discovery-feature > h2 {
    font-size: 28px;
    letter-spacing: -0.8px;
    margin: 21px 0 13px;
  }
  .discovery-question {
    font-size: 14px;
    line-height: 1.75;
  }
  .discovery-feature .eyebrow {
    font-size: 8px;
    letter-spacing: 0.6px;
  }
  .discovery-count {
    font-size: 10px;
    padding: 5px 8px;
  }
  .thread-mini-trail {
    gap: 5px;
    margin: 21px 0;
  }
  .thread-mini-trail > div {
    flex-basis: calc(100% - 25px);
    padding: 10px;
  }
  .thread-mini-trail > .mini-connector {
    display: none;
  }
  .thread-mini-trail strong {
    font-size: 12px;
  }
  .thread-mini-trail small {
    margin-top: 3px;
    font-size: 10px;
  }
  .discovery-peek {
    margin-top: 19px;
  }
  .discovery-peek pre {
    font-size: 10px;
    padding: 13px;
  }
  .discovery-peek > div {
    padding: 10px 12px;
    gap: 5px;
  }
  .discovery-peek code {
    font-size: 9px;
  }
  .discovery-start {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    margin-top: 21px;
  }
  .discovery-start .primary-button {
    width: 100%;
    justify-content: space-between;
  }
  .discovery-start .text-button {
    align-self: flex-start;
    font-size: 11px;
  }
  .discovery-proof {
    margin-top: 16px;
    font-size: 10px;
  }
  .curiosity-shelf {
    display: block;
  }
  .shelf-heading {
    margin-bottom: 13px;
  }
  .shelf-heading .eyebrow {
    font-size: 9px;
  }
  .shelf-heading > span:last-child {
    font-size: 9px;
  }
  .curiosity-item {
    margin-bottom: 9px;
    padding: 16px 13px;
  }
  .curiosity-item strong {
    font-size: 13px;
  }
  .curiosity-item small {
    font-size: 10px;
  }
  .curiosity-shelf > .text-button {
    margin-top: 2px;
    min-height: 40px;
  }
  .connection-boundary {
    padding-top: 16px;
    margin-top: 11px;
  }
  .evidence-trail {
    margin-top: -1px;
    gap: 6px;
  }
  .evidence-stop {
    flex-basis: 160px;
    width: 160px;
    padding: 9px;
    min-height: 63px;
    gap: 8px;
  }
  .evidence-stop strong {
    font-size: 10px;
  }
  .evidence-stop small {
    font-size: 8px;
    max-width: 110px;
  }
  .evidence-number {
    width: 23px;
    height: 23px;
    font-size: 9px;
  }
  .discovery-session .source-scroll {
    min-height: 190px;
    max-height: 270px;
  }
  .discovery-session .source-foot {
    gap: 7px;
  }
  .evidence-turn {
    padding: 20px 16px;
  }
  .evidence-caption {
    gap: 6px;
  }
  .evidence-caption .eyebrow {
    font-size: 9px;
  }
  .evidence-caption > span:last-child {
    font-size: 9px;
  }
  .evidence-reason {
    font-size: 12px;
    margin: 11px 0 17px;
  }
  .prediction-echo p {
    font-size: 12px;
  }
  .evidence-turn label {
    font-size: 12px;
  }
  .evidence-turn textarea {
    font-size: 16px;
    line-height: 1.6;
    padding: 11px;
    min-height: 91px;
  }
  .next-evidence {
    margin-top: 22px;
    padding-top: 20px;
  }
  .next-evidence > label {
    font-size: 14px;
  }
  .next-evidence > div {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
  .next-evidence .primary-button {
    justify-content: space-between;
    padding: 12px;
    font-size: 12px;
  }
  .next-evidence .text-button {
    align-self: flex-start;
  }
  .evidence-reactions {
    gap: 6px;
    margin: 17px 0 22px;
  }
  .evidence-reactions button {
    font-size: 10px;
    padding: 8px 10px;
    min-height: 40px;
  }
  .end-evidence {
    gap: 12px;
    padding-top: 21px;
  }
  .end-evidence-mark {
    font-size: 26px;
  }
  .end-evidence strong {
    font-size: 18px;
  }
  .end-evidence p {
    font-size: 12px;
  }
  .end-evidence .primary-button {
    padding: 11px 12px;
    font-size: 11px;
  }
  .understanding-map {
    grid-template-columns: minmax(0, 1fr);
    padding: 19px 14px;
    gap: 23px;
    margin-top: 23px;
  }
  .understanding-island {
    padding: 21px 16px;
  }
  .understanding-island:nth-child(even) {
    margin-top: 0;
  }
  .island-top {
    gap: 9px;
  }
  .island-top .eyebrow {
    font-size: 7px;
    letter-spacing: 0.6px;
  }
  .island-top > span:last-child {
    font-size: 8px;
  }
  .understanding-island h2 {
    font-size: 22px;
  }
  .thread-mini-trail.compact > div {
    flex-basis: calc(100% - 25px);
  }
  .thread-mini-trail.compact strong {
    font-size: 11px;
  }
  .thread-mini-trail.compact small {
    font-size: 9px;
  }
  .understanding-island blockquote {
    font-size: 13px;
    padding-left: 12px;
  }
  .map-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .map-footer > span {
    text-align: left;
    font-size: 10px;
  }
  .empty-map {
    padding: 44px 18px 37px;
  }
  .empty-constellation {
    max-width: 260px;
    margin-bottom: 28px;
    gap: 8px;
  }
  .empty-constellation span {
    width: 43px;
    height: 43px;
    font-size: 21px;
  }
  .empty-constellation span:nth-of-type(2) {
    width: 57px;
    height: 57px;
  }
  .empty-map h2 {
    font-size: 24px;
  }
  .empty-map p {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .example-mystery > .work-example > span {
    transition: none;
  }
  .example-mystery > .work-example:hover > span {
    transform: none;
  }
  .discovery-layout *,
  .discovery-session *,
  .understanding-map * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .curiosity-item:hover,
  .discovery-start .primary-button:hover,
  .evidence-turn .primary-button:hover {
    transform: none;
  }
}

.island-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: baseline;
}
.island-actions p {
  flex-basis: 100%;
}
.local-selection-actions {
  margin: 12px 0;
  flex-wrap: wrap;
}
