:root {
  --bg: #080a09;
  --shell: #0c0f0e;
  --panel: #111513;
  --panel-2: #161b18;
  --panel-3: #1c221f;
  --ink: #f2f1e9;
  --ink-2: #bdc5be;
  --ink-3: #7e8982;
  --acid: #dfff72;
  --acid-soft: rgba(223, 255, 114, .12);
  --mint: #74e8c8;
  --amber: #ffc978;
  --coral: #ff796f;
  --line: rgba(235, 242, 235, .09);
  --line-strong: rgba(235, 242, 235, .17);
  --shadow: 0 26px 80px rgba(0, 0, 0, .32);
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --body: "Manrope", Inter, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .85, .2, 1);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, textarea, input { font: inherit; }
button { color: inherit; }
button:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.environment {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.mineral-glow {
  position: absolute;
  width: 64vw;
  height: 64vw;
  right: -28vw;
  top: -34vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 232, 200, .09), transparent 68%);
  filter: blur(20px);
  animation: mineral-drift 18s ease-in-out infinite alternate;
}

.field-lines {
  position: absolute;
  inset: 0;
  opacity: .15;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 72% 28%, #000, transparent 68%);
}

.noise {
  position: absolute;
  inset: -40%;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  animation: grain-shift .32s steps(2) infinite;
}

@keyframes mineral-drift {
  to { transform: translate(-8vw, 10vh) scale(1.15); }
}

@keyframes grain-shift {
  0% { transform: translate(1%, -1%); }
  50% { transform: translate(-1%, 1%); }
  100% { transform: translate(1%, 1%); }
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.desktop-rail,
.workspace {
  border: 1px solid var(--line);
  background: rgba(12, 15, 14, .94);
  box-shadow: var(--shadow);
}

.desktop-rail {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 14px;
  border-radius: 20px;
}

.brand {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-mark {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 5px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.brand-mark img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0,0,0,.32);
}

.brand-copy { min-width: 0; }
.brand-copy strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.brand-copy small {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font: 500 8px/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rail-nav {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}

.dock-item {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rail-nav .dock-item {
  position: relative;
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--ink-3);
  text-align: left;
  transition: color .2s, border-color .2s, background .2s, transform .25s var(--ease);
}

.rail-nav .dock-item::before {
  content: "";
  position: absolute;
  left: -13px;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: var(--acid);
  box-shadow: 0 0 12px rgba(223,255,114,.55);
  transition: height .28s var(--ease);
}

.rail-nav .dock-item:hover {
  color: var(--ink);
  background: rgba(255,255,255,.025);
  transform: translateX(2px);
}

.rail-nav .dock-item.active {
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel-2);
}

.rail-nav .dock-item.active::before { height: 28px; }

.rail-nav .dock-item span { min-width: 0; }
.rail-nav .dock-item strong {
  display: block;
  font-size: 11px;
  font-weight: 650;
}
.rail-nav .dock-item small {
  display: block;
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 8.5px;
  line-height: 1.2;
}

.dock-glyph {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}

.glyph-explore::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.glyph-explore::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: 6.5px;
  top: 6.5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(223,255,114,.08);
}

.glyph-map::before,
.glyph-map::after {
  content: "";
  position: absolute;
}
.glyph-map::before {
  width: 6px;
  height: 6px;
  left: 0;
  top: 1px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: 10px 9px 0 -1.5px var(--panel-2), 10px 9px 0 0 currentColor;
}
.glyph-map::after {
  width: 11px;
  height: 1.5px;
  left: 4px;
  top: 9px;
  background: currentColor;
  transform: rotate(37deg);
  transform-origin: left;
}

.glyph-takeaway::before {
  content: "";
  position: absolute;
  inset: 1px 3px 2px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.glyph-takeaway::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.5px;
  left: 6px;
  top: 6px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.rail-foot {
  margin-top: auto;
  padding: 14px 4px 0;
  border-top: 1px solid var(--line);
}

.local-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
  font: 500 8px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.local-indicator i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(116,232,200,.55);
}

.rail-settings {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 10px;
  cursor: pointer;
}
.rail-settings span { color: var(--ink-3); font-family: var(--mono); }

.workspace {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
}

.topbar {
  height: 60px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 0 18px 0 22px;
  border-bottom: 1px solid var(--line);
}

.mobile-brand { display: none; }

.workspace-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-3);
  font: 500 8px/1 var(--mono);
  letter-spacing: .13em;
}
.workspace-pulse {
  width: 7px;
  height: 7px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(223,255,114,.3);
  animation: workspace-pulse 2.4s infinite;
}

@keyframes workspace-pulse {
  60% { box-shadow: 0 0 0 7px rgba(223,255,114,0); }
}

.top-status {
  min-width: 0;
  color: var(--ink-3);
  font: 500 8px/1 var(--mono);
  letter-spacing: .08em;
  text-align: right;
}
.status-pulse {
  width: 5px;
  height: 5px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px rgba(223,255,114,.55);
}

.round-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.round-button i {
  width: 13px;
  height: 1px;
  display: block;
  background: var(--ink-2);
}
.round-button i:last-child { width: 8px; justify-self: end; }
.round-button:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
  transform: translateY(-1px);
}

.app-main {
  position: relative;
  height: calc(100% - 60px);
  min-height: 0;
}

.screen {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  animation: screen-in .46s var(--ease) both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
}

.experience-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 174px minmax(420px, 1fr) 250px;
  gap: 10px;
  padding: 10px;
}

.session-context,
.signal-rail,
.experience-stage {
  min-width: 0;
  min-height: 0;
}

.session-context-card,
.instrument-card,
.conversation-card {
  border: 1px solid var(--line);
  background: var(--panel);
}

.session-context-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 17px 15px;
  border-radius: 14px;
}

.context-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-3);
  font: 500 7.5px/1 var(--mono);
  letter-spacing: .1em;
}
.context-head b {
  color: var(--acid);
  font-weight: 500;
}

.rail-steps {
  position: relative;
  display: grid;
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.rail-steps::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line-strong);
}
.rail-steps li {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #59615d;
  font-size: 9px;
  font-weight: 600;
}
.rail-steps i {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-top: 1px;
  border: 1px solid #454c48;
  border-radius: 50%;
  background: var(--panel);
  transition: all .3s var(--ease);
}
.rail-steps .done { color: var(--ink-3); }
.rail-steps .done i {
  border-color: var(--mint);
  background: var(--mint);
  box-shadow: 0 0 10px rgba(116,232,200,.3);
}
.rail-steps .current { color: var(--ink); }
.rail-steps .current i {
  border-color: var(--acid);
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(223,255,114,.08), 0 0 16px rgba(223,255,114,.32);
}

.rail-copy {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 8.5px;
  line-height: 1.65;
}

.experience-stage { display: flex; }

.conversation-card {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(26px, 4.2vw, 62px);
  border-radius: 14px;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.conversation-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 1px;
  background: var(--acid);
  box-shadow: 0 0 16px rgba(223,255,114,.42);
}

.welcome-card {
  background:
    linear-gradient(115deg, rgba(223,255,114,.025), transparent 34%),
    var(--panel);
}

.overline {
  display: block;
  margin-bottom: 14px;
  color: var(--acid);
  font: 500 8px/1.2 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero-title,
.question-title,
.reveal-title,
.takeaway-title {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.hero-title {
  max-width: 15ch;
  font-size: clamp(35px, 4.1vw, 58px);
  line-height: 1.02;
}
.ink-gradient {
  color: var(--ink-3);
  font-weight: 400;
}

.hero-copy,
.question-copy,
.reveal-copy {
  max-width: 58ch;
  margin: 15px 0 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
}

.belief-composer {
  position: relative;
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr auto;
  margin-top: 30px;
  padding: 14px 14px 14px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #0b0e0d;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.belief-composer:focus-within {
  border-color: rgba(223,255,114,.48);
  box-shadow: 0 0 0 4px rgba(223,255,114,.045), 0 20px 50px rgba(0,0,0,.24);
  transform: translateY(-2px);
}
.belief-composer label {
  grid-column: 1 / -1;
  margin-bottom: 7px;
  color: var(--ink-3);
  font: 500 7px/1 var(--mono);
  letter-spacing: .12em;
}
.belief-composer textarea {
  min-width: 0;
  min-height: 58px;
  resize: none;
  padding: 5px 12px 5px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 500;
  line-height: 1.35;
}
.belief-composer textarea::placeholder { color: #434a46; }

.composer-submit {
  min-width: 164px;
  align-self: end;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 7px 0 17px;
  border: 0;
  border-radius: 10px;
  background: var(--acid);
  color: #11140f;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s, background .22s;
}
.composer-submit i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(10,13,12,.12);
  font-style: normal;
  font-size: 15px;
  transition: transform .22s var(--ease);
}
.composer-submit:hover {
  background: #e8ff96;
  box-shadow: 0 10px 30px rgba(223,255,114,.13);
  transform: translateY(-1px);
}
.composer-submit:hover i { transform: translate(1px, -1px); }
.composer-submit:active { transform: scale(.985); }

.prompt-row {
  max-width: 760px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
  margin-top: 17px;
}
.prompt-row > span {
  padding-top: 9px;
  color: var(--ink-3);
  font: 500 7px/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.prompt-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.prompt-chip {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  font-size: 8.5px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.prompt-chip:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--panel-2);
  transform: translateY(-1px);
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--ink-3);
  font: 400 7.5px/1.4 var(--mono);
}
.privacy-note i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--mint);
  border-radius: 2px;
}

.mobile-instrument { display: none; }

.instrument-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow: hidden;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, transform .3s var(--ease);
}
.instrument-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.peek-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
  font: 500 7px/1 var(--mono);
  letter-spacing: .12em;
}
.peek-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px rgba(223,255,114,.5);
}

.instrument-stage {
  position: relative;
  flex: 1;
  min-height: 220px;
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 10px;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #0b0e0d;
  background-size: 24px 24px;
}
.scan-line {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223,255,114,.65), transparent);
  box-shadow: 0 0 14px rgba(223,255,114,.24);
  animation: scan 5.4s ease-in-out infinite;
}
@keyframes scan {
  0%, 10% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  70% { opacity: .6; }
  85%, 100% { transform: translateY(190px); opacity: 0; }
}

.strata {
  position: absolute;
  left: 50%;
  height: 26px;
  border: 1px solid rgba(223,255,114,.17);
  background: rgba(223,255,114,.035);
  transform: translateX(-50%) skewX(-8deg);
}
.strata.s1 { width: 82px; top: 34%; }
.strata.s2 { width: 104px; top: calc(34% + 34px); }
.strata.s3 { width: 68px; top: calc(34% + 68px); }

.peek-ring {
  position: absolute;
  left: 50%;
  top: 52%;
  border: 1px solid rgba(116,232,200,.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.peek-ring.r1 {
  width: 144px;
  height: 144px;
  animation: ring-breathe 6s ease-in-out infinite;
}
.peek-ring.r2 {
  width: 190px;
  height: 190px;
  border-style: dashed;
  opacity: .45;
  animation: ring-turn 24s linear infinite;
}
@keyframes ring-breathe {
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: .55; }
}
@keyframes ring-turn {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.peek-core {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--acid);
  box-shadow: 0 0 0 8px rgba(223,255,114,.05), 0 0 32px rgba(223,255,114,.28);
  transform: translate(-50%, -50%) rotate(45deg);
  animation: core-breathe 2.8s ease-in-out infinite;
}
@keyframes core-breathe {
  50% { transform: translate(-50%, -50%) rotate(45deg) scale(1.14); }
}
.peek-node {
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  background: var(--panel);
  box-shadow: 0 0 12px rgba(116,232,200,.25);
}
.peek-node.n1 { left: 23%; top: 31%; animation: node-drift 4s ease-in-out infinite alternate; }
.peek-node.n2 { right: 20%; top: 43%; animation: node-drift 5s ease-in-out .5s infinite alternate-reverse; }
.peek-node.n3 { left: 31%; bottom: 24%; animation: node-drift 4.5s ease-in-out 1s infinite alternate; }
@keyframes node-drift { to { transform: translate(5px, -7px); } }

.peek-bottom {
  display: block;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.peek-bottom strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
}
.peek-bottom b {
  color: var(--acid);
  font-size: 13px;
  font-weight: 400;
}
.peek-bottom > span {
  display: block;
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 8px;
}

.belief-quote {
  max-width: 680px;
  margin-bottom: 16px;
  padding: 11px 0 11px 14px;
  border-left: 2px solid var(--line-strong);
  color: var(--ink-3);
  font: 400 9px/1.55 var(--mono);
}
.question-title {
  max-width: 18ch;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}
.question-copy { max-width: 56ch; }

.answer-box {
  width: 100%;
  min-height: 112px;
  margin-top: 23px;
  padding: 16px 17px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: 0;
  background: #0b0e0d;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  transition: border-color .22s, box-shadow .22s;
}
.answer-box:focus {
  border-color: rgba(223,255,114,.45);
  box-shadow: 0 0 0 4px rgba(223,255,114,.04);
}
.answer-box::placeholder { color: #555e59; }

.suggestion-label {
  margin-top: 13px;
  color: var(--ink-3);
  font: 500 7px/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.suggestions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-bottom: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.suggestions::-webkit-scrollbar { display: none; }
.suggestion {
  flex: 0 0 auto;
  max-width: 240px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  font-size: 8.5px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.suggestion:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.primary-button,
.secondary-button,
.quiet-button {
  border-radius: 9px;
  cursor: pointer;
  font-weight: 650;
  transition: transform .22s var(--ease), border-color .22s, color .22s, background .22s, box-shadow .22s;
}
.primary-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: #11140f;
  font-size: 10px;
}
.primary-button:hover {
  background: #e8ff96;
  box-shadow: 0 10px 30px rgba(223,255,114,.12);
  transform: translateY(-2px);
}
.primary-button:active { transform: scale(.985); }
.secondary-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--ink-2);
  font-size: 9px;
}
.secondary-button:hover {
  border-color: rgba(223,255,114,.32);
  color: var(--ink);
  transform: translateY(-1px);
}
.quiet-button {
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 8.5px;
}
.quiet-button:hover { color: var(--ink); }
.grow { flex: 1; }

.doorways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 24px;
}
.doorway {
  position: relative;
  min-height: 55px;
  padding: 11px 36px 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d100f;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease);
}
.doorway::after {
  content: "↗";
  position: absolute;
  right: 13px;
  top: 50%;
  color: var(--ink-3);
  transform: translateY(-50%);
}
.doorway:hover {
  color: var(--ink);
  border-color: rgba(223,255,114,.28);
  background: var(--panel-2);
  transform: translateY(-2px);
}
.doorway.wide { grid-column: 1 / -1; }
.doorway.custom { border-style: dashed; }

.reveal-card {
  background:
    radial-gradient(circle at 82% 18%, rgba(116,232,200,.07), transparent 30%),
    var(--panel);
}
.reveal-burst {
  position: relative;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  border: 1px solid rgba(223,255,114,.22);
  border-radius: 13px;
  background: #0b0e0d;
  box-shadow: 0 0 40px rgba(223,255,114,.06);
  animation: artifact-in .7s var(--ease) both;
}
.reveal-burst::before,
.reveal-burst::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  height: 8px;
  border: 1px solid var(--acid);
  transform: skewX(-12deg);
}
.reveal-burst::before { top: 17px; }
.reveal-burst::after {
  top: 34px;
  left: 9px;
  right: 9px;
  border-color: var(--mint);
}
@keyframes artifact-in {
  from { opacity: 0; transform: translateY(12px) rotate(-5deg); }
}
.reveal-title {
  max-width: 17ch;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04;
}
.signal-strip {
  max-width: 680px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 20px;
  padding: 13px 14px;
  border: 1px solid rgba(116,232,200,.16);
  border-radius: 10px;
  background: rgba(116,232,200,.04);
}
.signal-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(116,232,200,.25);
  border-radius: 8px;
  color: var(--mint);
  font: 500 12px/1 var(--mono);
}
.signal-strip strong { display: block; color: var(--ink); font-size: 9px; }
.signal-strip p {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: 8.5px;
  line-height: 1.5;
}

.assumption-stack {
  max-width: 680px;
  margin-top: 15px;
}
.assumption {
  position: relative;
  padding: 10px 12px 10px 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 9px;
  line-height: 1.55;
  animation: assumption-in .45s var(--ease) both;
}
.assumption::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 14px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--acid);
  border-radius: 50%;
}
.assumption:nth-child(2) { animation-delay: .07s; }
.assumption:nth-child(3) { animation-delay: .14s; }
@keyframes assumption-in {
  from { opacity: 0; transform: translateX(-8px); }
}
.micro-note {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--ink-3);
  font: 400 7.5px/1.6 var(--mono);
}

.repair-badge {
  align-self: flex-start;
  margin-bottom: 17px;
  padding: 7px 9px;
  border: 1px solid rgba(255,121,111,.2);
  border-radius: 7px;
  background: rgba(255,121,111,.06);
  color: var(--coral);
  font: 500 7.5px/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.checkpoint-grid {
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 20px;
}
.checkpoint-tile {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d100f;
}
.checkpoint-tile span {
  display: block;
  color: var(--ink-3);
  font: 500 6.5px/1 var(--mono);
  letter-spacing: .09em;
}
.checkpoint-tile strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.resume-thread {
  max-width: 700px;
  margin-top: 24px;
  padding: 17px;
  border: 1px solid rgba(223,255,114,.15);
  border-radius: 11px;
  background: var(--acid-soft);
}
.resume-thread span {
  display: block;
  color: var(--acid);
  font: 500 7px/1 var(--mono);
  letter-spacing: .1em;
}
.resume-thread strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.bottom-dock { display: none; }

.map-screen { overflow: hidden; }
.map-frame {
  position: absolute;
  inset: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 25% 18%, rgba(116,232,200,.12), transparent 34%),
    radial-gradient(circle at 78% 78%, rgba(223,255,114,.07), transparent 32%),
    #080b0a;
}
#mind-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.map-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(8,11,10,.64), transparent 28%, transparent 68%, rgba(8,11,10,.62));
  background-size: 42px 42px, 42px 42px, auto;
}
.map-topline {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 3vw, 42px);
  right: clamp(22px, 3vw, 42px);
  top: clamp(22px, 3vw, 38px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  pointer-events: none;
}
.overline.pale { color: var(--mint); }
.map-topline h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -.055em;
}
.map-stats { display: flex; gap: 6px; }
.map-stat {
  min-width: 72px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(12,15,14,.7);
  text-align: right;
  backdrop-filter: blur(12px);
}
.map-stat strong { display: block; color: var(--ink); font: 500 14px/1 var(--mono); }
.map-stat span {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font: 500 6px/1.2 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.map-legend {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 3vw, 42px);
  bottom: 25px;
  display: flex;
  gap: 17px;
  color: var(--ink-3);
  font: 500 7px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}
.legend-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
}
.bedrock-dot { background: var(--acid); box-shadow: 0 0 9px rgba(223,255,114,.5); }
.held-dot { background: var(--mint); }
.open-dot { border: 1px dashed var(--ink-2); }
.map-controls {
  position: absolute;
  z-index: 3;
  right: 18px;
  top: 50%;
  display: grid;
  gap: 5px;
  transform: translateY(-50%);
}
.map-controls button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(12,15,14,.78);
  color: var(--ink-2);
  font: 500 15px/1 var(--mono);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color .2s, color .2s, transform .2s;
}
.map-controls button:nth-child(2) {
  font-size: 7px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.map-controls button:hover {
  color: var(--acid);
  border-color: rgba(223,255,114,.28);
  transform: scale(1.04);
}
.node-card {
  position: absolute;
  z-index: 4;
  right: 70px;
  bottom: 20px;
  width: min(340px, calc(100% - 40px));
  padding: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(16,20,18,.9);
  box-shadow: 0 20px 60px rgba(0,0,0,.36);
  backdrop-filter: blur(18px);
  animation: card-up .3s var(--ease) both;
}
@keyframes card-up {
  from { opacity: 0; transform: translateY(10px); }
}
.node-card .node-label {
  color: var(--mint);
  font: 500 7px/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.node-card h2 {
  margin: 7px 28px 5px 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -.03em;
}
.node-card p { margin: 0; color: var(--ink-3); font-size: 9px; line-height: 1.55; }
.node-close {
  position: absolute;
  right: 9px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}

.takeaway-screen {
  padding: 20px 24px 36px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--panel-3) transparent;
}
.takeaway-wrap { width: min(1040px, 100%); margin: 0 auto; }
.takeaway-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin: 16px 0 22px;
}
.takeaway-title {
  max-width: 13ch;
  font-size: clamp(38px, 5vw, 66px);
  line-height: .98;
}
.takeaway-lead {
  max-width: 42ch;
  margin: 0 0 4px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.65;
}
.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 9px;
}
.insight-card {
  min-height: 180px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}
.insight-card.span-4 { grid-column: span 4; }
.insight-card.span-5 { grid-column: span 5; }
.insight-card.span-7 { grid-column: span 7; }
.insight-card.span-8 { grid-column: span 8; }
.insight-card.dark {
  border-color: rgba(223,255,114,.13);
  background: linear-gradient(145deg, rgba(223,255,114,.055), var(--panel) 52%);
}
.insight-card.action {
  border-color: rgba(116,232,200,.16);
  background: linear-gradient(145deg, rgba(116,232,200,.06), var(--panel) 54%);
}
.insight-card.coral {
  border-color: rgba(255,121,111,.14);
  background: linear-gradient(145deg, rgba(255,121,111,.055), var(--panel) 54%);
}
.insight-kicker {
  color: var(--acid);
  font: 500 7px/1 var(--mono);
  letter-spacing: .12em;
}
.insight-card h2 {
  max-width: 23ch;
  margin: 11px 0 0;
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 31px);
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.insight-card p {
  max-width: 55ch;
  margin: 11px 0 0;
  color: var(--ink-3);
  font-size: 9px;
  line-height: 1.7;
}
.big-number {
  margin-top: 16px;
  color: var(--acid);
  font: 500 clamp(44px, 6vw, 76px)/.9 var(--mono);
  letter-spacing: -.06em;
}
.big-number small {
  color: var(--ink-3);
  font: 500 8px/1 var(--body);
  letter-spacing: 0;
}
.source-bars { margin-top: 17px; }
.source-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  color: var(--ink-3);
  font-size: 7.5px;
}
.source-track {
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--panel-3);
}
.source-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
  transform-origin: left;
  animation: bar-grow .7s var(--ease) both;
}
@keyframes bar-grow { from { transform: scaleX(0); } }
.fault-row {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 8.5px;
  line-height: 1.5;
}
.fault-row i {
  width: 5px;
  height: 5px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 8px rgba(255,121,111,.32);
}
.empty-insights {
  min-height: 65vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.empty-insights h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -.05em;
}
.empty-insights p {
  max-width: 44ch;
  margin: 15px auto 0;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.65;
}

.sheet-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  background: rgba(0,0,0,.56);
  backdrop-filter: blur(5px);
  transition: opacity .25s;
}
.bottom-sheet {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 0;
  width: min(540px, 100%);
  max-height: min(80vh, 720px);
  padding: 12px 22px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: translate(-50%, 105%);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: rgba(17,21,19,.98);
  box-shadow: 0 -28px 80px rgba(0,0,0,.4);
  transition: transform .38s var(--ease);
}
body.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
body.sheet-open .bottom-sheet { transform: translate(-50%, 0); }
.sheet-handle {
  width: 38px;
  height: 3px;
  margin: 0 auto 18px;
  border-radius: 3px;
  background: #3b423e;
}
.sheet-title {
  margin: 0;
  color: var(--ink);
  font-size: 29px;
  font-weight: 520;
  letter-spacing: -.045em;
}
.sheet-copy { margin: 9px 0 18px; color: var(--ink-3); font-size: 10px; line-height: 1.65; }
.sheet-list { border-top: 1px solid var(--line); }
.sheet-row {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 3px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 9px;
  text-align: left;
  cursor: pointer;
}
.sheet-row span:last-child { color: var(--acid); }
.sheet-row.danger { color: var(--coral); }
.sheet-section-label {
  margin: 18px 0 7px;
  color: var(--ink-3);
  font: 500 7px/1 var(--mono);
  letter-spacing: .1em;
}

.modal {
  position: fixed;
  z-index: 210;
  left: 50%;
  top: 50%;
  width: min(520px, calc(100% - 28px));
  max-height: min(84vh, 700px);
  padding: clamp(23px, 4vw, 35px);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -47%) scale(.98);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(17,21,19,.98);
  box-shadow: 0 34px 100px rgba(0,0,0,.5);
  transition: opacity .25s, transform .32s var(--ease);
}
body.modal-open .modal-backdrop { opacity: 1; pointer-events: auto; }
body.modal-open .modal {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: -.05em;
}
.modal p { color: var(--ink-3); font-size: 10px; line-height: 1.7; }
.modal .answer-box { min-height: 110px; }
.gloss {
  margin-top: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0e0d;
  color: var(--ink-2);
  font-size: 9px;
  line-height: 1.7;
}

.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 28px;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--panel-3);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(0,0,0,.34);
  font-size: 9px;
  text-align: center;
  transition: opacity .22s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .experience-grid { grid-template-columns: minmax(420px, 1fr) 230px; }
  .session-context { display: none; }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 8px;
  }
  .desktop-rail { display: none; }
  .workspace { border-radius: 17px; }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .mobile-brand img { width: 30px; height: 30px; border-radius: 9px; }
  .mobile-brand strong { font-size: 15px; letter-spacing: -.04em; }
  .topbar { grid-template-columns: 1fr auto auto; padding-left: 14px; }
  .workspace-label { display: none; }
  .experience-grid { grid-template-columns: minmax(0, 1fr) 230px; }
  .bottom-dock {
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(390px, calc(100% - 28px));
    min-height: 58px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 5px;
    transform: translateX(-50%);
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    background: rgba(17,21,19,.9);
    box-shadow: 0 18px 50px rgba(0,0,0,.38);
    backdrop-filter: blur(22px);
  }
  .bottom-dock .dock-item {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    color: var(--ink-3);
    font-size: 8px;
  }
  .bottom-dock .dock-item.active {
    background: var(--panel-3);
    color: var(--acid);
  }
  .bottom-dock .dock-glyph { width: 16px; height: 16px; }
  .app-main { padding-bottom: 70px; }
}

@media (max-width: 680px) {
  html, body { background: var(--shell); }
  .app-shell { display: block; padding: 0; }
  .workspace {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .topbar {
    height: calc(55px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 13px 0;
  }
  .top-status { display: none; }
  .round-button { width: 32px; height: 32px; }
  .app-main { height: calc(100% - 55px - env(safe-area-inset-top)); }
  .experience-grid {
    display: block;
    height: 100%;
    padding: 8px;
  }
  .signal-rail { display: none; }
  .experience-stage { height: 100%; }
  .conversation-card {
    min-height: 100%;
    justify-content: flex-start;
    padding: 26px 20px 24px;
    overflow-y: auto;
    border-radius: 13px;
  }
  .welcome-card { justify-content: center; }
  .mobile-instrument {
    position: relative;
    width: 58px;
    height: 48px;
    display: block;
    margin-bottom: 20px;
  }
  .mobile-instrument span,
  .mobile-instrument i,
  .mobile-instrument b {
    position: absolute;
    left: 50%;
    height: 10px;
    border: 1px solid var(--acid);
    background: rgba(223,255,114,.04);
    transform: translateX(-50%) skewX(-10deg);
  }
  .mobile-instrument span { top: 0; width: 38px; }
  .mobile-instrument i { top: 17px; width: 49px; border-color: var(--mint); }
  .mobile-instrument b { top: 34px; width: 32px; }
  .hero-title { font-size: clamp(31px, 9.7vw, 43px); }
  .hero-copy { margin-top: 12px; font-size: 10.5px; line-height: 1.6; }
  .belief-composer {
    display: block;
    margin-top: 23px;
    padding: 13px;
  }
  .belief-composer textarea {
    width: 100%;
    min-height: 72px;
    font-size: 18px;
  }
  .composer-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 9px;
  }
  .prompt-row {
    display: block;
    margin-top: 14px;
  }
  .prompt-row > span { display: block; margin-bottom: 8px; }
  .prompt-row > div {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .prompt-chip {
    flex: 0 0 auto;
    max-width: 210px;
  }
  .privacy-note {
    align-items: flex-start;
    margin-top: 16px;
    font-size: 6.7px;
  }
  .question-title, .reveal-title { font-size: clamp(29px, 9vw, 40px); }
  .question-copy, .reveal-copy { font-size: 10px; line-height: 1.6; }
  .belief-quote { margin-bottom: 13px; font-size: 7.8px; }
  .answer-box {
    min-height: 105px;
    margin-top: 18px;
    padding: 13px;
    font-size: 13px;
  }
  .suggestion { max-width: 210px; }
  .card-actions {
    flex-wrap: wrap;
    margin-top: 15px;
  }
  .primary-button { min-height: 46px; }
  .secondary-button { min-height: 42px; }
  .doorways { display: block; margin-top: 18px; }
  .doorway { width: 100%; min-height: 50px; margin-top: 6px; }
  .reveal-burst { width: 54px; height: 54px; margin-bottom: 17px; }
  .signal-strip { margin-top: 15px; }
  .assumption { font-size: 8.5px; }
  .checkpoint-grid { gap: 5px; }
  .checkpoint-tile { padding: 10px 8px; }
  .checkpoint-tile strong { font-size: 10px; }
  .question-meta { flex-wrap: wrap; }
  .bottom-dock {
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
  }
  .map-frame { inset: 8px 8px 78px; }
  .map-topline { left: 17px; right: 17px; top: 17px; }
  .map-topline h1 { font-size: 30px; }
  .map-stats .map-stat:nth-child(n+2) { display: none; }
  .map-stat { min-width: 58px; }
  .map-controls { right: 11px; }
  .map-controls button { width: 37px; height: 37px; }
  .map-legend { left: 17px; bottom: 14px; gap: 10px; font-size: 5.8px; }
  .node-card { right: 13px; bottom: 44px; }
  .takeaway-screen { padding: 10px 10px 100px; }
  .takeaway-head { display: block; margin: 12px 3px 17px; }
  .takeaway-title { font-size: 38px; }
  .takeaway-lead { margin-top: 11px; font-size: 9px; }
  .takeaway-grid { display: block; }
  .insight-card {
    min-height: 0;
    margin-bottom: 8px;
    padding: 18px;
  }
  .insight-card h2 { font-size: 23px; }
  .big-number { font-size: 56px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (max-height: 700px) and (max-width: 680px) {
  .conversation-card { padding-top: 19px; padding-bottom: 18px; }
  .welcome-card { justify-content: flex-start; }
  .mobile-instrument { display: none; }
  .overline { margin-bottom: 9px; }
  .hero-title { font-size: 32px; }
  .hero-copy { font-size: 9px; }
  .belief-composer { margin-top: 15px; }
  .belief-composer textarea { min-height: 48px; }
  .prompt-row { margin-top: 9px; }
  .privacy-note { margin-top: 9px; }
  .question-title { font-size: 29px; }
  .question-copy { display: none; }
  .answer-box { min-height: 76px; margin-top: 13px; }
  .suggestion-label { margin-top: 8px; }
  .suggestions { margin-top: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
