:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #253a3c;
  background: #f6f3ec;
  font-synthesis: none;
  --blue: #355d7d;
  --green: #366b5c;
  --clay: #9b5944;
  --muted: #6a7471;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #2e678a;
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
}
button[hidden],
[hidden] {
  display: none !important;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  max-width: 1540px;
  margin: auto;
  min-height: 100dvh;
}
.embedded .workspace {
  display: block;
}
.embedded .conversation {
  display: none;
}
main {
  min-width: 0;
  padding: 34px 36px 24px;
  background:
    radial-gradient(ellipse at 70% 24%, #f0e9d955, transparent 60%),
    radial-gradient(#61756816 0.7px, transparent 0.7px);
  background-size:
    auto,
    7px 7px;
}
.intro .eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
  color: #667777;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
h1 {
  font-family: Georgia, serif;
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 12px 0 8px;
}
h2 {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  margin: 7px 0;
}
p {
  line-height: 1.6;
}
.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.mode {
  font-size: 11px;
  background: #e4ece6;
  border: 1px solid #cfdcd3;
  padding: 8px 11px;
  border-radius: 100px;
}
.steps {
  padding: 22px 0 19px;
  margin: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #ccd1c9;
}
.steps li {
  font-size: 11px;
  color: #747d79;
  display: flex;
  gap: 8px;
  align-items: center;
}
.steps li.active {
  color: #235647;
  font-weight: 700;
}
.situation {
  margin: 23px auto 0;
  text-align: center;
  max-width: 540px;
}
.situation p {
  font-family: Georgia, serif;
  font-size: 20px;
  margin: 8px 0;
}
.situation small {
  font-size: 11px;
  color: var(--muted);
}
.triangle {
  position: relative;
  max-width: 760px;
  height: 425px;
  margin: 0 auto;
}
.connections {
  position: absolute;
  width: 100%;
  height: 100%;
  color: #97a8a1;
  overflow: visible;
}
.connections path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  marker-start: url(#arrow);
  marker-end: url(#arrow);
}
.connections path.selected {
  color: #305e53;
  stroke-width: 3;
  stroke-dasharray: 8 5;
}
.connections circle {
  fill: none;
  stroke: #91a99b;
  stroke-opacity: 0.15;
  stroke-width: 1;
}
.node {
  position: absolute;
  width: 39%;
  min-height: 137px;
  padding: 19px 21px;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 11px;
  border: 1px solid #cad4d6;
  border-radius: 17px;
  background: #edf2f5;
  color: var(--blue);
  box-shadow: 0 6px 20px #21382906;
  z-index: 2;
}
.node:disabled {
  opacity: 0.7;
}
.node.confirmed {
  opacity: 1;
  box-shadow: 0 9px 26px #2138290b;
}
.node:not(:disabled):hover {
  box-shadow: 0 9px 30px #21382918;
  border-color: currentColor;
}
.node.thought {
  top: 28px;
  left: 30.5%;
}
.node.emotion {
  bottom: 35px;
  left: 0;
  background: #f7ece5;
  border-color: #e3cbbf;
  color: var(--clay);
}
.node.behavior {
  bottom: 35px;
  right: 0;
  background: #eaf0e8;
  border-color: #cbd9c8;
  color: var(--green);
}
.node-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
}
.symbol {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}
.check {
  margin-left: auto;
}
.node-text {
  font-family: Georgia, serif;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.3;
  color: #2c4147;
  overflow-wrap: anywhere;
}
.node-hint {
  font-size: 10px;
  opacity: 0.8;
  letter-spacing: 0.01em;
}
.intensity {
  font-size: 11px;
}
.center-note {
  position: absolute;
  top: 48%;
  left: 39%;
  width: 22%;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  color: #74847a;
}
.status {
  text-align: center;
  font-size: 11px;
  color: #67776c;
  margin: -6px 0 15px;
}
.explore-tools {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.explore-tools button,
.toolbar button {
  border: 1px solid #c9d2c9;
  border-radius: 8px;
  background: #f9faf6;
  padding: 10px 12px;
  color: #344f45;
  font-size: 12px;
  min-height: 42px;
}
.explore-tools button:hover,
.toolbar button:hover {
  background: #e6eee4;
}
.comparison {
  border: 1px solid #c6d3c7;
  background: #eff4ed;
  border-radius: 16px;
  padding: 23px;
  margin: 15px 0 25px;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 17px;
}
.compare-grid article {
  background: #ffffffa3;
  border: 1px solid #d7e0d5;
  border-radius: 11px;
  padding: 16px;
}
.compare-grid p {
  font-family: Georgia, serif;
  font-size: 19px;
  margin: 9px 0;
}
.compare-grid small {
  display: block;
  color: #66746a;
  line-height: 1.5;
}
.footnote {
  font-size: 11px;
  margin: 15px 0 0;
  color: #596d61;
}
.takeaway {
  padding: 22px 0 15px;
  border-top: 1px solid #ccd1c9;
}
.takeaway h2 {
  font-size: 22px;
}
.takeaway p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0 7px;
}
.toolbar button:disabled {
  opacity: 0.45;
}
.toolbar #download {
  background: #294f42;
  color: white;
  border-color: #294f42;
}
.sources {
  border-top: 1px solid #d6dcd4;
  padding: 16px 0;
  font-size: 12px;
  color: #657169;
}
.sources summary {
  cursor: pointer;
}
.sources a {
  color: #315c64;
}
.conversation {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #e9eee5;
  border-left: 1px solid #cdd7c8;
  padding: 24px 19px;
  color: #253a3c;
}
.conversation header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #cbd6c8;
}
.conversation header small {
  display: block;
  font-size: 11px;
  color: #687669;
  margin-top: 4px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #d0decf;
  font-family: Georgia, serif;
  font-size: 23px;
}
.thread {
  overflow-y: auto;
  flex: 1;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 20px 0;
  overscroll-behavior: contain;
}
.bubble {
  font-size: 14px;
  line-height: 1.6;
  background: #fbfcf8;
  border: 1px solid #dbe2d6;
  padding: 16px;
  border-radius: 3px 16px 16px 16px;
  max-width: 96%;
  white-space: pre-line;
}
.bubble.user {
  align-self: flex-end;
  background: #dce8da;
  border-color: #c4d7bf;
  border-radius: 16px 3px 16px 16px;
}
.choices {
  display: grid;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid #ced9c8;
  max-height: 53%;
  overflow: auto;
}
.choices button {
  background: #f8faf4;
  border: 1px solid #c9d8c2;
  padding: 12px 14px;
  text-align: left;
  border-radius: 10px;
  color: #314e3b;
  font-size: 13px;
  min-height: 46px;
}
.choices button:hover {
  background: #dcebd5;
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  main {
    padding: 25px 22px;
  }
  .node {
    padding: 15px;
  }
  .steps li {
    font-size: 10px;
  }
  .steps li span {
    max-width: 100px;
  }
}
@media (max-width: 720px) {
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .conversation {
    position: relative;
    order: -1;
    height: 440px;
    border-left: 0;
    border-bottom: 1px solid #cdd7c8;
    padding: 17px;
  }
  .conversation header {
    padding-bottom: 12px;
  }
  .conversation .thread {
    padding: 12px 0;
  }
  .embedded main {
    padding: 20px 15px;
  }
  .steps li {
    font-size: 10px;
  }
  .steps {
    padding: 17px 0;
  }
  .title-row {
    gap: 4px;
  }
  .mode {
    font-size: 10px;
    padding: 5px 9px;
  }
  h1 {
    font-size: 30px;
  }
  .triangle {
    height: 415px;
  }
  .node {
    width: 45%;
    padding: 14px 12px;
    min-height: 145px;
  }
  .node.thought {
    width: 65%;
    left: 17.5%;
    top: 22px;
    min-height: 122px;
  }
  .node.emotion,
  .node.behavior {
    bottom: 25px;
  }
  .node-label {
    font-size: 9px;
    gap: 6px;
  }
  .node-text {
    font-size: 17px;
  }
  .node-hint {
    font-size: 9px;
  }
  .center-note {
    top: 44%;
    left: 32%;
    width: 36%;
    font-size: 10px;
  }
  .connections circle {
    display: none;
  }
  .situation p {
    font-size: 18px;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .status {
    margin: 0 0 14px;
  }
  .comparison {
    padding: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .conversation,
  .toolbar,
  .sources,
  .explore-tools,
  .steps {
    display: none !important;
  }
  .workspace {
    display: block;
  }
  main {
    padding: 0;
  }
  .triangle {
    height: 380px;
  }
  .takeaway {
    display: none;
  }
  button {
    color: #253a3c !important;
  }
  .comparison {
    break-inside: avoid;
  }
}
