* { box-sizing: border-box }
[hidden] { display: none !important }
body[data-agent=island] #prompt:not([data-state]) { visibility:hidden }

body {
  --paper: #f2efe6;
  --paper-rgb: 242,239,230;
  --ink: #282a27;
  --muted: #696b63;
  --line: #34392d36;
  --soft: #34392d0e;
  --agency: #866222;
  --conflict: #914037;
  --node: #3d4038;
  --evidence-node: #85877e;
  --grain: #4e534c;
  --dust: #585d52;
  --stem: #5c5f59;
  --twig: #91938b;
  --gold-stem: #967643;
  --gold-node: #88611f;
  --score-ink: #51554d;
  --score-paper: #e3e2da;
  --low-ink: #843e35;
  --low-paper: #efdbd4;
  --high-ink: #6b5324;
  --high-paper: #ebe2c9;
  --type: Georgia, serif;
  --ui-type: "Atlas Inter",system-ui,sans-serif;
  margin: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  color: var(--ink);
  background: var(--paper);
  font: 14px/1.4 var(--type);
}
html[data-theme=dark] { background: #1c1d1b; color-scheme: dark }
html[data-theme=dark] body {
  --paper: #1c1d1b;
  --paper-rgb: 28,29,27;
  --ink: #e8e5da;
  --muted: #b2b2a6;
  --line: #c1c2b538;
  --soft: #c1c2b514;
  --agency: #d3b479;
  --conflict: #ae4c40;
  --node: #dadacb;
  --evidence-node: #9c9f94;
  --grain: #c1c4b5;
  --dust: #c5c6b6;
  --stem: #a7aa9c;
  --twig: #919688;
  --gold-stem: #ad9364;
  --gold-node: #ceaf74;
  --score-ink: #c3c5b9;
  --score-paper: #353831;
  --low-ink: #e8a79a;
  --low-paper: #452f2c;
  --high-ink: #e4c990;
  --high-paper: #403a29;
}
#theme {
  position: fixed; top: 16px; right: 20px; z-index: 3;
  display: grid; place-items: center; width: 40px; height: 40px;
  padding: 0; border-radius: 50%; color: var(--muted);
}
#theme .sun, #theme[aria-pressed=true] .moon { display: none }
#theme[aria-pressed=true] .sun { display: inline }
body[data-mode=codex] {
  --paper: #171919;
  --paper-rgb: 23,25,25;
  --ink: #eceee9;
  --muted: #a4a8a3;
  --line: #d4d9cf38;
  --soft: #d4d9cf0c;
  --agency: #ddbb76;
  --conflict: #e69a90;
  font-family: -apple-system, system-ui, sans-serif;
}
button { appearance: none; border: 0; background: none; color: inherit; font: inherit; cursor: pointer }
button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px }

main { position: relative; min-height: 0; isolation: isolate; overflow: hidden }
.atlas-field-plane { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none }
body[data-mode=atlas] #conversation { position: relative }
main canvas, #labels { position: absolute; inset: 0; width: 100%; height: 100% }
#marks, #labels { pointer-events: none }
body[data-mode=atlas] main { pointer-events: none; user-select: none }
.tag {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 180px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(var(--paper-rgb), .88);
  color: var(--muted);
  text-align: left;
  font: 17px/1.16 var(--type);
}
.tag[data-kind=inference] {
  max-width: 250px;
  padding: 6px 8px;
  color: var(--ink);
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.14;
  letter-spacing: -.025em;
}
.tag[data-tone=agency] { color: var(--agency) }
.tag[data-tone=conflict] { color: var(--conflict) }

/* Reserve the finished line breaks while arrivals type the visible label. */
body[data-mode=atlas] .tag { width: max-content; padding: 0; background: transparent }
/* The flush text margin and confidence pill sit next to their own node. */
#labels [data-side=left] { text-align: right }
#labels [data-side=right] { text-align: left }
.atlas-name { display: grid }
.tag .atlas-name > span { -webkit-text-stroke: 2px var(--paper); paint-order: stroke fill }
/* The hidden measuring copy reserves the eventual height; the words that
   have arrived stay flush to the witness on either side of the branch. */
.atlas-name::before { content: attr(data-name); visibility: hidden; grid-area: 1 / 1 }
.atlas-name > span { grid-area: 1 / 1 }
.tag small {
  display: table;
  width: max-content;
  margin: 4px 0 0;
  padding: 1px 6px 2px;
  border-radius: 12px;
  color: var(--score-ink);
  background: var(--score-paper);
  font-size: 12px;
  line-height: 1.2;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: .015em;
}
.tag small:empty::before { content: '\00a0' }
.tag small[data-band=low] { background: var(--low-paper); color: var(--low-ink) }
.tag small[data-band=high] { background: var(--high-paper); color: var(--high-ink) }
.tag[data-side=left] small { margin-left: auto }
.evidence-quote {
  position: absolute; top: 0; left: 0;
  width: max-content; max-width: 170px; color: var(--muted); font: 13px/1.25 var(--type);
  -webkit-text-stroke: 2px var(--paper); paint-order: stroke fill; pointer-events: none;
}
.evidence-quote[data-form=quote] { font-style: italic }

#conversation { padding: 8px 24px 22px }
.page { max-width: 720px; margin: auto; text-align: center }
#battery, .navigation, #dock { display: flex; justify-content: center; align-items: center }
#battery { gap: 10px; color: var(--muted); font-size: 12px; letter-spacing: .02em }
.cell { width: 94px; height: 6px; overflow: hidden; border-radius: 2px; background: var(--line) }
.cell i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left }
#coverage { min-width: 30px; text-align: left; font-variant-numeric: lining-nums tabular-nums }
#question { margin: 11px auto 5px; font: normal clamp(20px, 2.3vw, 31px)/1.2 var(--type); letter-spacing: -.032em; text-wrap: balance }
#response { min-height: 1.6em; color: var(--muted); font-size: 16px; line-height: 1.55; text-wrap: pretty }
.phrase { display: inline; padding: 0; text-align: left; font: inherit }
.navigation { margin-top: 12px; min-height: 26px }
#dock { gap: 6px }
.navigation button { padding: 5px 8px; border-radius: 5px; font-size: 13px }
#mic { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 20px; padding: 7px 13px }
#mic svg { fill: currentColor }
#sample, #message { color: var(--muted) }
#message { margin: 6px 0; font-size: 13px }

body[data-mode=codex] .tag { pointer-events: auto; font: 15px/1.2 var(--type) }
body[data-mode=codex] .tag:is(:hover,:focus-visible,.picked) { color: var(--ink) }
body[data-mode=codex] .tag small { display: block; margin: 0 0 3px; padding: 0; background: none; color: var(--muted); font: 11px/1.4 ui-monospace, monospace }
body[data-mode=codex] .tag small.below { color: var(--conflict) }
body[data-mode=codex] .phrase:is(:hover,.marked) { color: var(--ink); text-decoration: underline; text-underline-offset: 4px }
body[data-mode=codex] .phrase.marked, body[data-mode=codex] .navigation button:hover { background: var(--soft) }
body[data-mode=codex] #battery { font: 11px/1.4 system-ui }
body[data-mode=codex] .navigation button, body[data-mode=codex] #message { font-size: 12px }

#sound { padding-inline: 8px }
#sound .off, #sound[aria-pressed=true] .on { display: none }
#sound[aria-pressed=true] .off { display: inline }

#prompt { display: grid; place-items: center; min-height: 2.8rem; margin: 0 auto }
#prompt > * { grid-area: 1 / 1 }
#prompt #question { margin: 0; width: fit-content }
#question-words {
  background-image: linear-gradient(90deg, var(--ink) calc(var(--answered) - 2%),
    var(--muted) calc(var(--answered) + 2%));
  background-clip: text; -webkit-background-clip: text; color: transparent;
}
#prompt[data-state=full] #question-words { color: var(--ink) }
#question-check { display: grid; place-items: center; color: var(--ink) }
#question-check path { stroke-dasharray: 17; animation: receipt-stroke .18s ease-out both }
@keyframes receipt-stroke { from { stroke-dashoffset: 17 } to { stroke-dashoffset: 0 } }
@media (prefers-reduced-motion: reduce) { #question-check path { animation: none } }
@media (forced-colors: active) { #question-words { color: CanvasText } }
@media (prefers-reduced-motion: no-preference) {
  #question-check rect { stroke-dasharray: 84; animation: close-receipt .24s ease-out both }
}
@keyframes close-receipt { from { stroke-dashoffset: 84 } to { stroke-dashoffset: 0 } }

body:is([data-question=center],[data-question=branch]) main { position: absolute; inset: 0 }
body:is([data-question=center],[data-question=branch]) #conversation {
  position: fixed; bottom: 0; width: 100%; pointer-events: none;
}
body:is([data-question=center],[data-question=branch]) #dock { pointer-events: auto }
main #prompt {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: max-content; max-width: min(260px,34vw); min-height: 36px;
  pointer-events: none; text-align: center;
}
main #question { font-size: clamp(20px,1.9vw,27px); line-height: 1.14 }

/* A conversational scale stays constant as the field grows. Reading order
   comes from tone, spacing and the handoff between speakers. */
body[data-question=branch] {
  --type-reading: 1.0625rem;
  --type-question: 1rem;
  --type-evidence: .875rem;
  --type-confidence: .75rem;
}
body[data-question=branch] .tag[data-kind=inference] {
  font-size: var(--type-reading);
  line-height: 1.26;
  letter-spacing: -.012em;
}
body[data-question=branch] .tag small {
  margin-top: 3px;
  padding: 1px 5px;
  font-size: var(--type-confidence);
  line-height: 1.12;
  letter-spacing: 0;
}
body[data-question=branch] .evidence-quote {
  font-size: var(--type-evidence);
  line-height: 1.3;
}
body:is([data-question=branch],[data-question=bottom]) .atlas-name > span::after {
  content: attr(data-pending);
  visibility: hidden;
}
body[data-question=bottom] .atlas-name > span::before {
  content: attr(data-leading);
  visibility: hidden;
}
body[data-question=branch] main #prompt { max-width: min(230px, 30vw); min-height: 23px }
body[data-question=branch] main #prompt[data-side=left] {
  transform: translate(-100%, -50%);
  text-align: right;
}
body[data-question=branch] main #prompt[data-side=right] {
  transform: translate(0, -50%);
  text-align: left;
}
body[data-question=branch] main #question {
  font-style: italic;
  text-wrap: pretty;
  font-size: var(--type-question);
  line-height: 1.3;
  letter-spacing: -.01em;
}
#question-node { display: none }
body[data-question=branch] #prompt {
  --question-ink: var(--ink);
  --unread-ink: var(--ink);
  transition: filter .26s ease, opacity .26s ease;
}
body[data-question=branch] #question-node {
  display: block;
  position: absolute;
  top: 50%;
  width: calc(2 * var(--host-radius)); height: calc(2 * var(--host-radius));
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--question-ink);
}
body[data-question=branch] #prompt[data-side=left] #question-node {
  right: calc(-1 * (var(--host-gap) + var(--host-radius)));
}
body[data-question=branch] #prompt[data-side=right] #question-node {
  left: calc(-1 * (var(--host-gap) + var(--host-radius)));
}
body[data-question=branch] #prompt[data-state=finished] #question-node { display: none }
body[data-question=branch] #prompt[data-state=asking] #question-words {
  background-image: linear-gradient(90deg, var(--question-ink) calc(var(--answered) - 2%),
    var(--unread-ink) calc(var(--answered) + 2%));
}
body[data-question=branch] #prompt:is([data-state=asking], [data-state=full])[data-listening] {
  --question-ink: color-mix(in srgb, var(--ink) 66%, var(--paper));
  --unread-ink: color-mix(in srgb, var(--ink) 50%, var(--paper));
  opacity: .78;
  filter: blur(.65px);
}
body[data-question=branch][data-phase=settle] #prompt[data-state=asking][data-listening] { opacity: .65 }
body[data-question=branch] #prompt[data-state=full] #question-words { color: var(--question-ink) }
body[data-question=branch] #question-check { color: var(--question-ink); justify-self: start }
@media (prefers-contrast: more), (forced-colors: active) {
  body[data-question=branch] #prompt:is([data-state=asking], [data-state=full])[data-listening] {
    --question-ink: var(--ink);
    --unread-ink: var(--muted);
    opacity: 1;
    filter: none;
  }
}
body[data-question=branch] #question-check svg { width: 18px; height: 18px }
body[data-question=branch] #world { opacity: .55 }
body[data-question=branch] #labels [data-emphasis=context] { color:var(--muted) }
body[data-question=branch] #labels > * { transition:color .22s ease }
@media (prefers-reduced-motion: reduce) {
  body[data-question=branch] #prompt,
  body[data-question=branch] #labels > * { transition: none }
}

@font-face {
  font-family: "Atlas Inter"; src: url("./assets/Inter-Regular.ttf") format("truetype");
  font-style: normal; font-weight: 400; font-display: swap;
}
body[data-question=bottom] #conversation { padding:8px 24px 12px }
body[data-question=bottom] #prompt {
  --status-base:rgba(38,39,37,.62); --status-highlight:#151614;
  display:flex; align-items:center; justify-content:center; gap:5px; isolation:isolate; position:relative;
  width:fit-content; max-width:min(660px,90vw); padding:0 14px 0 5px;
  height:40px; min-height:40px;
}
.agent-skin {
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:100%; height:40px; border-radius:999px; z-index:-1; background:rgba(255,255,255,.24);
  box-shadow:inset 0 0 0 1px rgba(44,47,54,.09);
}
html[data-theme=dark] body[data-question=bottom] #prompt {
  --status-base:rgba(251,251,251,.5); --status-highlight:white;
}
html[data-theme=dark] .agent-skin {
  background:rgba(29,29,29,.5); box-shadow:inset 0 0 0 1px rgba(44,47,54,.22);
}
body[data-question=bottom] .agent-orb { width:29px; height:29px; flex:none }
body[data-question=bottom] #prompt #question,
body[data-question=bottom] #prompt .agent-utterance,
body[data-question=bottom] .agent-departing {
  font:400 14px/19px var(--ui-type); letter-spacing:normal;
  color:var(--ink); text-align:start;
}
/* Libraries.dev's examples.css paints a moving band over a stationary text copy. */
body[data-question=bottom] #prompt .agent-utterance {
  position:relative; display:inline-block; color:var(--status-base);
}
.agent-utterance::before {
  content:attr(data-text); content:attr(data-text) / "";
  position:absolute; inset:0; pointer-events:none; color:transparent;
  background-image:linear-gradient(90deg,transparent 0%,transparent 40%,var(--status-highlight) 50%,transparent 60%,transparent 100%);
  background-size:400% 100%; background-repeat:no-repeat;
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  animation:agent-shimmer 2000ms linear infinite;
}
@keyframes agent-shimmer {
  from { background-position:100% 0 }
  to { background-position:0% 0 }
}
body[data-paused] .agent-utterance::before { animation-play-state:paused }
@media (prefers-reduced-motion:reduce) { .agent-utterance::before { animation:none } }
body[data-question=bottom] #question-words { background:none; color:inherit }
body[data-question=bottom] #prompt .agent-utterance:empty,
body[data-question=bottom] #prompt:is([data-state=received],[data-state=finished]) .agent-orb,
body[data-question=bottom] #prompt[data-state=finished] { visibility:hidden }
body[data-question=bottom] #prompt .agent-utterance:empty,
body[data-question=bottom] #prompt[data-state=received] .agent-orb { display:none }
body[data-question=bottom] #prompt:is([data-state=received],[data-state=full]) {
  padding:0; width:40px; height:40px;
}
.agent-departing { position:absolute; top:50%; white-space:nowrap; pointer-events:none; opacity:0 }
body[data-question=bottom] #question-check svg { width:24px; height:24px }
body[data-question=bottom] #question-check rect { display:none }
body[data-question=bottom] .navigation { margin-top:1px }
body[data-question=bottom] .navigation button {
  font:400 12px/1.4 "Avenir Next",system-ui,sans-serif;
  color:var(--muted); background:none; border:none; padding:5px 8px;
}

/* The observation, the reading and the examined belief keep their measures
   through typing, comparison, withdrawal and changes of focus. */
body[data-question=bottom] #labels {
  --type:var(--ui-type);
  font-family:var(--type);
  --caption-evidence:13px;
  --caption-meaning:15px;
  --caption-belief:17px;
  --caption-meta:color-mix(in srgb,var(--ink) 78%,var(--paper));
  --caption-stock:color-mix(in srgb,var(--ink) 8%,var(--paper));
}
body[data-question=bottom] #labels [data-family=evidence] { font-size:var(--caption-evidence) }
body[data-question=bottom] #labels .tag {
  font:400 var(--caption-meaning)/1.29 var(--type); letter-spacing:0;
  color:var(--ink);
}
body[data-question=bottom] #labels [data-family=belief] {
  font:500 var(--caption-belief)/1.25 var(--type); letter-spacing:0; min-width:min-content;
}
body[data-question=bottom] #labels .tag > small {
  padding:1px 6px;
  font:normal 11px/15px var(--type);
  font-variant-numeric:lining-nums tabular-nums;
  letter-spacing:0;
  color:var(--caption-meta);
  background:var(--caption-stock);
}

body[data-question=bottom] #labels [data-family=evidence][data-form=quote]:not([data-citation]) {
  font-size:12px;
}
body[data-question=bottom] #labels [data-emphasis=context] {
  color:color-mix(in srgb,var(--ink) 68%,var(--paper));
}
body[data-question=bottom] #labels :is([data-emphasis=subject],[data-emphasis=source]) {color:var(--ink)}
body[data-question=bottom] .opening-scan[data-delivered] .scan-row strong,
body[data-question=bottom] .opening-scan[data-delivered] .scan-row output { color:var(--muted) }
@media (prefers-reduced-motion:no-preference) {
  body[data-question=bottom] :is(.tag,.tag small,.evidence-quote,.scan-row strong,.scan-row output) {
    transition:color .22s ease,background-color .22s ease;
  }
}

.belief-summary {
  display:flex; flex-wrap:wrap; align-items:center; gap:3px 8px;
  width:fit-content; max-width:100%; min-height:15px; margin-top:5px;
  font-variant-numeric:tabular-nums;
}
[data-side=left] .belief-summary { margin-left:auto;justify-content:flex-end }
.tag .belief-summary > * {display:none;margin:0;white-space:nowrap}
.tag .belief-summary small:is([data-nonzero],[data-released]),
.tag .belief-summary > [data-set] {display:inline-flex;align-items:center}
body[data-question=bottom] #labels .belief-summary > * {
  padding:0;background:transparent;border-radius:0;
  font:400 11px/15px var(--ui-type);
  font-variant-numeric:tabular-nums;color:var(--caption-meta);
}
body[data-question=bottom] #labels .belief-summary small:is([data-nonzero],[data-released]) {
  background:var(--caption-stock);border-radius:8px;padding:0 5px;
}
.belief-summary > [data-set]::before {
  content:"";width:5px;height:5px;margin-right:4px;border-radius:50%;
  background:var(--gold-node);
}
.belief-summary > .contrary[data-set]::before {background:var(--conflict)}
.belief-caption .atlas-name { position:relative; text-wrap:balance }

body[data-agent=island] #labels .compact-belief {
  isolation:isolate;
  padding:8px 11px 7px;
  font:450 13.5px/1.34 var(--type);
}
/* One flat, translucent material for both reading surfaces. The scene
   supplies the softly displaced field, including under isolated captions. */
body[data-agent=island] {
  --glass-fill:rgb(251 250 245 / .59);
  --glass-edge:rgb(93 88 75 / .13);
  --glass-shadow:0 2px 6px rgb(52 48 36 / .045);
  --caption-stock:color-mix(in srgb,var(--ink) 8%,var(--paper));
  --meter-type:400 11px/16px var(--ui-type);
  --scan-key-width:54px;
}
html[data-theme=dark] body[data-agent=island] {
  --glass-fill:rgb(54 55 51 / .64);
  --glass-edge:rgb(230 229 214 / .14);
  --glass-shadow:0 2px 6px rgb(0 0 0 / .12);
}
body[data-agent=island] .compact-belief[data-glazed]::before,
body[data-agent=island] #prompt > .dock-paper {
  background:var(--glass-fill);
  box-shadow:inset 0 0 0 1px var(--glass-edge),var(--glass-shadow);
  -webkit-backdrop-filter:blur(1px);
  backdrop-filter:blur(1px);
}
.compact-belief[data-glazed]::before {
  content:"";position:absolute;inset:var(--glass-inset,0);z-index:-1;
  border-radius:11px;pointer-events:none;
}
.compact-belief .atlas-name > span {-webkit-text-stroke:0}
.compact-belief .belief-summary {gap:5px;margin-top:5px}
body[data-agent=island] #labels .belief-summary .relation-count,
body[data-agent=island] #labels .belief-summary .relation-segments {
  gap:4px;padding:0 5px;height:15px;
  border-radius:8px;background:var(--caption-stock);
}
.scan-instruments .relation-count::before,.compact-belief .relation-count::before {
  content:"";display:inline-block;
  width:11px;height:11px;margin:0;border-radius:0;background:currentColor;
  mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='m6.3 9.7 3.4-3.4M5.2 7.3 3.6 8.9a2.5 2.5 0 0 0 3.5 3.5l2-2M6.9 5.6l2-2a2.5 2.5 0 0 1 3.5 3.5l-1.6 1.6'/%3E%3C/svg%3E");
}
.belief-summary .relation-segments[data-set]::before {content:none}
body[data-agent=island] #labels .belief-summary .relation-segments {gap:2px}
.relation-segments i {width:6px;height:3px;border-radius:2px;background:color-mix(in srgb,var(--muted) 19%,transparent)}
.relation-segments {--strength:var(--gold-node)}
body[data-agent=island]:not([data-signed-edges]) .relation-segments {--strength:var(--muted);--conflict:var(--muted)}
.relation-segments .supports {background:var(--strength)}
.relation-segments .opposes {background:var(--conflict)}

body[data-agent=island] #labels .compact-belief .belief-summary > :is([data-set],small) {
  font:var(--meter-type);
  font-variant-numeric:tabular-nums lining-nums;
}
.opening-scan {
  position:absolute; inset:0 auto auto 0; z-index:2; pointer-events:none; isolation:isolate;
  display:grid; grid-template-columns:max-content minmax(0,1fr) 3.4ch; column-gap:8px;
  width:261px; padding:5px 10px 6px;
  color:var(--ink); text-align:left; font:400 12px/1.2 var(--ui-type);
}
.opening-scan[hidden] {display:none}
.opening-scan::before {
  content:"";position:absolute;inset:0;z-index:-1;
  background:var(--paper);opacity:var(--aperture,0);
}
.scan-outline,.scan-outline::before {position:absolute;inset:0}
.scan-outline::before {content:"";border:1px dotted color-mix(in srgb,var(--ink) 16%,transparent)}
.scan-outline i {position:absolute;width:5px;height:5px;border:solid color-mix(in srgb,var(--ink) 52%,transparent)}
.scan-outline i:nth-child(1){top:0;left:0;border-width:1px 0 0 1px}
.scan-outline i:nth-child(2){top:0;right:0;border-width:1px 1px 0 0}
.scan-outline i:nth-child(3){bottom:0;left:0;border-width:0 0 1px 1px}
.scan-outline i:nth-child(4){bottom:0;right:0;border-width:0 1px 1px 0}
.scan-flights {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.opening-scan header {position:absolute;left:10px;bottom:calc(100% + 5px);
  color:var(--muted);font:inherit;font-size:9px;letter-spacing:.025em;
  opacity:var(--aperture,0)}
.scan-row {
  position:relative;display:grid;grid-column:1/-1;grid-template-columns:subgrid;
  align-items:start;grid-template-rows:18px;column-gap:inherit;height:23px;padding:2px 0 3px;
}
.scan-key,.scan-row output {
  font:inherit;font-size:10px;line-height:18px;white-space:nowrap;color:var(--muted);
  opacity:calc(var(--categories,0) * var(--aperture,0));
}
.scan-key {grid-column:1}
.scan-row strong {
  position:relative;grid-column:2;height:18px;white-space:nowrap;
  font:inherit;font-size:13px;line-height:18px;letter-spacing:-.012em;
}
.scan-row strong span,.belief-ink .scan-ink {display:inline-block;position:relative;vertical-align:top}
.scan-row output {grid-column:3;text-align:right;font-variant-numeric:tabular-nums}
.scan-row[data-depth=intermediate] strong {font-size:11.5px;color:var(--muted)}
.scan-row[data-depth=core] output {color:var(--ink);font-size:11px}
.scan-row strong .scan-retiring,.belief-ink .scan-retiring {position:absolute;top:0}

/* The graph instrument keeps one baseline for the question, its status and
   the opening edge of the analysis. Quotes stay beside their source grains. */
body[data-agent=scan] main #prompt {
  position:absolute; transform:none; min-height:22px; height:auto; max-width:none;
  padding:0 0 0 19px; align-items:start; justify-content:start; text-align:left;
}
body[data-agent=scan] main #question {
  color:var(--ink); font:italic 16px/1.35 var(--type); text-align:left;
}
body[data-agent=scan] #prompt[data-listening] #question {opacity:.55}
body[data-agent=scan] main #prompt .agent-utterance {
  font:400 12px/22px var(--ui-type); color:var(--muted);
}
body[data-agent=scan] #prompt[data-examining] .agent-utterance {
  color:var(--ink); font:italic 15px/21px var(--type);
}
body[data-agent=scan] #prompt[data-examining] .agent-utterance::before {content:none}
.agent-seed {position:absolute;left:3px;top:9px;width:4px;height:4px;border-radius:50%;background:var(--ink)}
#prompt:is([data-state=received],[data-state=full]) .agent-seed {visibility:hidden}
body[data-agent=scan] #prompt .opening-scan {top:44px;left:0;transform:none}
body[data-agent=scan] .opening-scan::before {background:color-mix(in srgb,var(--paper) 97%,var(--ink))}
body[data-agent=scan] main #prompt[data-state=received] {padding:0}
.agent-sight {
  position:absolute;left:0;top:0;width:0;height:0;color:var(--ink);pointer-events:none;
}
.agent-sight::before,.agent-sight::after {
  content:"";position:absolute;width:3px;height:3px;opacity:.72;
  transition:width .18s,height .18s,translate .18s;
}
.agent-sight::before {translate:-4px -4px;border-left:1px solid;border-top:1px solid}
.agent-sight::after {translate:1px 1px;border-right:1px solid;border-bottom:1px solid}
.agent-sight[data-tracking]::before {width:5px;height:5px;translate:-8px -8px}
.agent-sight[data-tracking]::after {width:5px;height:5px;translate:3px 3px}
.agent-sight:not([data-tracking])::before {
  translate:-2px -2px; width:4px; height:4px; border:0; border-radius:50%; background:currentColor;
}
.agent-sight:not([data-tracking])::after {opacity:0}
body[data-agent=scan] main #prompt #question {font:italic 16px/1.35 var(--type)}

/* One dock, with a quiet conversation surface above its evidence history. */
body[data-agent=island] .page {position:relative;padding-top:46px}
body[data-agent=island] #prompt {
  --surface:color-mix(in srgb,var(--paper) 48%,white);
  --receipt-surface:var(--ink);
  --receipt-ink:var(--paper);
  position:absolute;bottom:calc(100% - 44px);left:50%;transform:translateX(-50%);
  display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;
  width:max-content;overflow:visible;white-space:nowrap;max-width:var(--dock-limit);height:40px;min-height:40px;
  padding:0 17px;border-radius:20px;isolation:isolate;
  font:400 13px/18px var(--ui-type);color:var(--ink);
  --dock-limit:min(calc(100vw - 32px), 56ch);
  --scan-limit:min(340px,90vw);
  --scan-rise:32px;
}
.dock-paper {
  position:absolute;bottom:0;left:50%;transform:translateX(-50%);z-index:-1;
  width:100%;height:100%;pointer-events:none;overflow:hidden;border-radius:inherit;
  background:var(--dock-face,var(--surface));
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink) 8%,transparent),0 3px 12px -5px #0002;
}
html[data-theme=dark] body[data-agent=island] #prompt {--surface:color-mix(in srgb,var(--paper) 94%,white)}
body[data-agent=island] #prompt > .dock-paper::before {
  content:"";position:absolute;inset:auto 5px 5px;height:30px;border-radius:15px;z-index:-1;
  background:transparent;transition:background-color .19s ease-out;
}
body[data-agent=island] #prompt .agent-utterance {
  flex:none;white-space:nowrap;text-align:left;
  font:inherit;letter-spacing:-.012em;color:var(--muted);
}
body[data-agent=island] #prompt .opening-scan {
  inset:0;width:100%;height:100%;padding:0;transform:none;overflow:hidden;
  color:var(--ink);font:inherit;display:block;
}
body[data-agent=island] #prompt .opening-scan[hidden] {display:none}
body[data-agent=island] .opening-scan::before,body[data-agent=island] .scan-outline,
body[data-agent=island] .scan-key {display:none}
body[data-agent=island] .scan-row {
  position:absolute;inset:auto 17px 11px 17px;height:18px;padding:0;display:grid;
  grid-template-columns:1fr 4ch;align-items:baseline;
}
body[data-agent=island] .scan-row strong {grid-column:1;font:inherit;color:inherit}
body[data-agent=island] .scan-row output {grid-column:2;font-size:11px}
body[data-agent=island] .opening-scan header {inset:auto 18px 47px auto;font:400 10px/14px var(--ui-type);font-variant-numeric:tabular-nums}
body[data-agent=island] #conversation {padding-bottom:22px}
body[data-agent=island] #dock.island-playback {
  position:fixed;z-index:4;top:57px;right:20px;display:flex;flex-direction:column;gap:0;
}
.island-playback button {
  width:40px;height:38px;display:grid;place-items:center;color:var(--muted);border-radius:50%;
}
.island-playback #sample {font-size:0;padding:0}
.island-playback #sample::before {content:"";grid-area:1/1}
.island-playback #sample[data-icon=play]::before {
  width:12px;height:14px;clip-path:polygon(15% 9%,95% 50%,15% 91%);background:currentColor;
}
.island-playback #sample[data-icon=pause]::before {
  width:5px;height:12px;border-inline:2px solid currentColor;box-sizing:content-box;
}
.island-playback #sample[data-icon=replay]::before {content:"↻";font:20px/1 system-ui}
.island-playback button:hover {background:var(--soft);color:var(--ink)}

/* The completed check releases at its own width as the next question unfolds. */
body[data-agent=island] #prompt:is([data-state=asking],[data-state=listening]) > .dock-paper::before {
  background:transparent;transition:none;
}

body[data-agent=island] #prompt:is([data-state=received],[data-state=full],[data-state=finished]) {
  width:102px;height:40px;padding:0 12px;justify-content:center;
}
/* The solid surface belongs to the speaker until the first detected syllable. */
body[data-agent=island] #prompt[data-state=asking]:not([data-action]) > .dock-paper {
  background:var(--ink);
}
body[data-agent=island] #prompt[data-state=asking]:not([data-action]) #question {
  color:var(--paper);
}
@media (prefers-reduced-motion:no-preference) {
  body[data-agent=island] #prompt > .dock-paper {
    transition:background-color .24s cubic-bezier(.25,.7,.25,1);
  }
  body[data-agent=island] #prompt #question {
    transition:color .20s cubic-bezier(.25,.7,.25,1);
  }
}
body[data-agent=island] #question-check {
  color:var(--ink);display:flex;align-items:center;gap:6px;white-space:nowrap;
}
body[data-agent=island] #question-check svg {width:17px;height:17px}
body[data-agent=island] #prompt[data-state=received]:has(.receipt-word:empty) {width:44px}
#answer-hold::before {content:"";width:5px;height:12px;border-inline:2px solid currentColor}
#answer-hold[data-held]::before {width:11px;height:6px;border:0;border-left:1.75px solid;border-bottom:1.75px solid;transform:rotate(-45deg)}
@media (max-width:680px), (pointer:coarse) {#answer-hold {order:-1}}
.receipt-word:empty {display:none}
.receipt-word {font:400 12px/18px var(--ui-type)}
body[data-agent=island] #prompt[data-state=processing] {
  align-items:flex-end;padding-bottom:11px;
}


body[data-agent=island] #prompt #question {
  margin:0;min-width:0;width:max-content;white-space:normal;text-wrap:balance;
  color:var(--ink);font:400 15px/1.35 var(--ui-type);
  letter-spacing:-.012em;
}
body[data-agent=island] #prompt:is([data-state=asking],[data-state=listening]) #question {
  max-width:var(--question-measure,none);
}
body[data-agent=island] #prompt #question-words {background:none;color:inherit}
body[data-agent=island] #prompt:not(:has(.opening-scan:not([hidden]), #question:not([hidden]) .island-ink, .agent-utterance:not(:empty), #question-check:not([hidden]))) {
  --dock-face:color-mix(in srgb,var(--surface) 68%,transparent);
}
body[data-agent=island] #prompt > .dock-paper::after {
  content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;
  background:linear-gradient(90deg,color-mix(in srgb,var(--ink) 7%,transparent) 0%,
    color-mix(in srgb,var(--ink) 8%,transparent) calc(100% - 18px),transparent);
  transform:translateX(calc((var(--answer-fill,0) - 1)*100%));
}
body[data-agent=island] #prompt:is([data-state=asking],[data-state=listening],[data-state=processing]):not(:has(.opening-scan:not([hidden]))) {
  width:max-content;
}
/* Intrinsic text determines both dimensions; the reveal changes only ink. */
body[data-agent=island] #prompt:is([data-state=asking],[data-state=listening]) {
  height:auto;min-height:40px;padding-block:9px;transition:none;
}
body[data-agent=island] .agent-utterance::before {content:none}
.island-ink {display:inline-block;vertical-align:bottom;max-width:100%}
.island-ink.word-register > .metric-in {display:inline-block;vertical-align:bottom}
@media (prefers-reduced-motion:no-preference) {
  body[data-agent=island] #prompt > .dock-paper::after {transition:transform .48s cubic-bezier(.22,.74,.24,1),opacity .24s}

}
/* A new question starts with an empty answer. Reset behind the paper
   before the next voice onset can expose the fill. */
body[data-agent=island] #prompt[data-state=asking] > .dock-paper::after {
  opacity:0;transform:translateX(-100%);transition:none;
}
body[data-agent=island] #prompt:is([data-state=received],[data-state=full],[data-state=finished]) > .dock-paper::after,
body[data-agent=island] #prompt:has(.opening-scan:not([hidden])) > .dock-paper::after {opacity:0}

#skip-analysis {position:fixed;left:20px;top:20px;z-index:4;padding:6px 9px;
  color:var(--muted);font:12px/18px var(--ui-type);border-radius:7px}
#skip-analysis:hover,#skip-analysis:focus-visible {color:var(--ink);background:var(--soft)}
body[data-seeking] :is(main,#conversation,#dock) {visibility:hidden}
body[data-agent=island] #prompt:has(.opening-scan:not([hidden])) .agent-utterance {display:none}
.scan-metrics {position:absolute;inset:auto 17px calc(42px + var(--scan-extra,0px));display:flex;justify-content:space-between;
  color:var(--muted);font:10px/16px var(--ui-type);opacity:var(--aperture,0)}
.scan-metrics output {display:inline-block;min-width:4ch;text-align:right;color:var(--ink);font-variant-numeric:tabular-nums}
body[data-agent=island] .opening-scan .scan-row {inset:auto 17px 11px;display:grid;
  grid-template-columns:max-content minmax(0,1fr);column-gap:9px;padding:0;height:calc(18px + var(--scan-extra,0px))}
body[data-agent=island] .opening-scan .scan-key {display:block;color:var(--muted);font:12px/18px var(--ui-type)}
body[data-agent=island] .opening-scan .scan-row strong {grid-column:2;white-space:normal;height:auto;padding-right:18px;color:var(--ink)}
body[data-agent=island] .opening-scan .scan-row strong {position:relative;font:400 13px/18px var(--ui-type);letter-spacing:-.012em}
body[data-agent=island] .scan-row[data-testing] strong {color:var(--muted)}
@media (prefers-reduced-motion:no-preference) {
  body[data-agent=island] .scan-ink {transition:color .18s ease-out}
}
body[data-agent=island] #prompt[data-state=processing]:not(:has(.opening-scan:not([hidden]))) {
  --dock-face:color-mix(in srgb,var(--ink) 4%,var(--surface));
}
body[data-agent=island] #prompt[data-state=processing] > .dock-paper::after {opacity:0}

/* The receiving surface changes material as the same line resolves. */
body[data-agent=island] #prompt[data-state=finished] {visibility:visible}
body[data-agent=island] #prompt:has(.opening-scan:not([hidden])) > .dock-paper::before {
  height:calc(30px + var(--scan-extra,0px));background:color-mix(in srgb,var(--ink) 7%,var(--surface));
}
body[data-agent=island] .opening-scan[data-reading=testing] .scan-row {
  text-shadow:0 0 calc(var(--contact,0)*1px) currentColor;
}
/* Vary the transmission of the existing reading row as its test resolves. */
body[data-agent=island] #prompt:has(.opening-scan[data-reading=testing]:not([hidden])) > .dock-paper::before {
  background:color-mix(in srgb,var(--ink) 6%,transparent);
}
body[data-agent=island] #prompt:has(.opening-scan:is([data-reading=statement],[data-reading=sending]):not([hidden])) > .dock-paper::before {
  background:color-mix(in srgb,var(--ink) 12%,transparent);
  box-shadow:inset 0 .75px 1px color-mix(in srgb,var(--ink) 10%,transparent);
}
body[data-agent=island] #prompt:has(.opening-scan[data-reading=received]:not([hidden])) > .dock-paper::before {
  background:color-mix(in srgb,var(--ink) 10%,var(--surface));
}
body[data-agent=island] .opening-scan[data-reading=received] .scan-row :is(.scan-key,strong) {color:var(--ink)}
/* Keep the content and the physical landing sites in settled coordinates.
   Reveal the upper shelf from the fixed conversational baseline. */
body[data-agent=island] #prompt:has(.opening-scan:not([hidden])) {
  transition:none;
  max-width:var(--scan-limit);align-items:flex-end;padding-bottom:11px;border-radius:18px;
  --from:min(var(--scan-start-width,200px),var(--scan-limit));
  width:calc(var(--from) + (var(--scan-limit) - var(--from)) * var(--scan-width,0));
  height:calc(40px + (var(--scan-rise) + var(--scan-extra,0px)) * var(--scan-height,0));
}
body[data-agent=island] #prompt:has(.opening-scan[data-admitting]:not([hidden])) .agent-utterance {
  display:block;max-width:100%;
}
body[data-agent=island] .scan-check {
  position:absolute;right:0;top:0;color:var(--muted);font:500 13px/18px var(--ui-type);
}
.scan-pass {font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:no-preference) {
  .scan-check:not([hidden]) {animation:scan-check-in .18s ease-out both}
  @keyframes scan-check-in {from{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}
  body[data-agent=island] #prompt[data-state=processing]:not(:has(.opening-scan:not([hidden]))) {transition:background-color .19s ease-out}
}

.scan-metrics {opacity:1;clip-path:inset(calc((1 - var(--shelf-open,1))*100%) 0 0)}
.scan-context,.scan-readout {display:flex;align-items:baseline;gap:6px;min-width:0}
.scan-readout {position:relative;flex:none;margin-left:12px}
.word-register {position:relative;overflow:hidden;white-space:nowrap}
#labels .percent-register {display:inline-flex;align-items:baseline;line-height:inherit;white-space:nowrap;vertical-align:top}
#labels .percent-register > .word-register {width:calc(3ch + .4em);min-width:0;height:1lh;text-align:right}
#labels .percent-register > .word-register > span {width:100%;text-align:right;text-overflow:clip}
#labels .percent-register > .word-register > .metric-out {inset-inline:0}
.scan-metrics .word-register {line-height:16px}
.word-register > .metric-in,.word-register > .metric-out {display:block;overflow:hidden;text-overflow:ellipsis}
.word-register > .metric-in {transform:translateY(calc((1 - var(--shift,1))*100%))}
.word-register > .metric-out {position:absolute;inset:0 auto auto 0;transform:translateY(calc(var(--shift,1)*-100%))}
:is(.scan-context > :last-child,.scan-value) {color:var(--ink);font-variant-numeric:tabular-nums}
.scan-metrics .scan-score-target {position:absolute;inset:0;width:100%;height:100%;min-width:0;margin:0;padding:0;visibility:hidden}
.scan-metrics:not([data-analyzing]) .scan-readout > .scan-value {font-weight:550}
@media (prefers-reduced-motion:reduce) {
  .word-register > .metric-in {transform:none}
  .word-register > .metric-out {display:none}
}

.scan-context {flex:1}
.scan-context > span:first-child {width:7.5ch;flex:none}
.scan-context > span:last-child {flex:1}
body[data-agent=island] .opening-scan[data-admitting] .scan-row {visibility:hidden}

@media (pointer:coarse) {
  body[data-agent=island] :is(#theme,#sample,#sound,#skip-analysis) {min-height:44px;min-width:44px}
}

/* Speech closes on the same surface the answer has been filling. */
body[data-agent=island] #prompt[data-captured] > .dock-paper::after {
  transform:none;opacity:.65;
}
@media (prefers-reduced-motion:no-preference) {
  body[data-agent=island] #prompt[data-captured] > .dock-paper::after {
    animation:answer-settle .46s ease-out both;
  }
  @keyframes answer-settle {
    from {opacity:.85}
    38% {opacity:1;filter:contrast(1.45)}
    to {opacity:.65}
  }
}

body[data-agent=island] .evidence-quote .atlas-name {position:relative}
.evidence-exchange {position:absolute;inset:0;pointer-events:none}
.evidence-exchange .word-register {position:absolute;text-align:left}
.evidence-exchange .from-quote .metric-out {font-style:italic;font-size:var(--outgoing-size)}
.island-playback #live[aria-pressed=true] {color:var(--ink);background:var(--soft)}

body[data-agent=island] #prompt[data-action] {cursor:pointer;min-height:44px;touch-action:manipulation}
body[data-agent=island] #prompt[data-action]:focus-visible {outline:2px solid var(--ink);outline-offset:3px}

@supports (height:100dvh) {
  body[data-mode=atlas] {height:100dvh}
  .atlas-field-plane {height:100dvh}
}
body[data-agent=island] #conversation {padding-bottom:max(18px,calc(env(safe-area-inset-bottom) + 10px))}
@media (max-width:680px), (pointer:coarse) {
  body[data-agent=island] {--tool-right:max(10px,env(safe-area-inset-right));--tool-top:max(6px,env(safe-area-inset-top))}
  body[data-agent=island] #theme {top:var(--tool-top);right:var(--tool-right);width:44px;height:44px}
  body[data-agent=island] #dock.island-playback {
    top:calc(var(--tool-top) + 44px);right:var(--tool-right);flex-direction:row;align-items:center;
  }
  body[data-agent=island] #dock button {height:44px;min-width:44px}
  #skip-analysis {top:var(--tool-top);left:max(8px,env(safe-area-inset-left));min-height:44px}
  body[data-agent=island] #prompt #question {font-size:16px;line-height:1.35;text-wrap:balance}
  body[data-agent=island] #prompt:is([data-state=asking],[data-state=listening]) {padding:10px 17px}

}
@media (max-width:550px) and (orientation:portrait) {
  body[data-agent=island] #prompt {--scan-rise:calc(30px + 16px * var(--evidence-lines,2));--scan-limit:min(360px,calc(100vw - 28px))}
  .scan-metrics {gap:16px;align-items:flex-start;line-height:15px}
  .scan-context,.scan-readout {display:grid;align-content:start;gap:2px}
  .scan-context {grid-template-columns:minmax(0,1fr)}
  .scan-context > span:first-child {width:auto}
  .scan-readout {margin-left:0;justify-items:end}
  :is(.scan-context > :last-child,.scan-value) {font-size:12px;line-height:16px}
  .scan-context .word-register:nth-child(2) {height:calc(16px * var(--evidence-lines,2));white-space:normal;overflow-wrap:anywhere}
  .scan-context .word-register:nth-child(2) > span {width:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
}
@media (max-height:480px) and (pointer:coarse) {
  body[data-agent=island] #conversation {padding-bottom:max(6px,env(safe-area-inset-bottom))}
  body[data-agent=island] #dock.island-playback {top:var(--tool-top);right:calc(var(--tool-right) + 45px)}
}

.scan-instruments,.scan-instruments > span {display:inline-flex;align-items:center;gap:3px}
.scan-instruments {gap:5px;color:var(--muted);font:var(--meter-type);font-variant-numeric:tabular-nums}
.scan-instruments > span {background:var(--caption-stock);border-radius:8px;padding:0 5px;height:16px}
.scan-instruments .relation-segments {gap:2px}
.scan-readout > .scan-instruments {display:flex}

/* The readout retains one typesetting baseline while its registers travel. */
body[data-agent=island] .scan-metrics {
  display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:12px;
  align-items:start;font:var(--meter-type);letter-spacing:0;
  font-variant-numeric:tabular-nums lining-nums;
}
body[data-agent=island] :is(.scan-context,.scan-readout) {
  display:flex;align-items:flex-start;gap:6px;margin:0;
}
body[data-agent=island] .scan-metrics .word-register {
  font:inherit;line-height:16px;
}
body[data-agent=island] .scan-context {gap:8px}
body[data-agent=island] .scan-context > span:first-child {width:var(--scan-key-width)}
body[data-agent=island] .opening-scan .scan-row {
  grid-template-columns:var(--scan-key-width) minmax(0,1fr);column-gap:8px;
}
@media (max-width:550px) and (orientation:portrait) {
  body[data-agent=island] #prompt {--scan-rise:calc(16px + 16px * var(--evidence-lines,1))}
}
@media (prefers-reduced-motion:reduce) {
  :is(.scan-instruments .relation-segments,.relation-segments[data-measuring]) i:is(.supports,.opposes)::after {transform:none}
}
body[data-agent=island] .scan-readout > .scan-value {
  width:7ch;text-align:right;font-weight:400;
}
body[data-agent=island] .scan-metrics .word-register > .metric-out {inset-inline:0}
body[data-agent=island] .scan-readout .scan-instruments {align-items:center}
.scan-instruments .meter-number {position:relative;display:block;min-width:1ch;line-height:16px}
:is(.scan-instruments .relation-segments,.relation-segments[data-measuring]) i {position:relative;overflow:hidden}
:is(.scan-instruments .relation-segments,.relation-segments[data-measuring]) i::after {
  content:"";position:absolute;inset:0;background:var(--vote-color,currentColor);
  transform:scaleX(var(--seated,0));transform-origin:left;
}
:is(.scan-instruments .relation-segments,.relation-segments[data-measuring]) i.supports {--vote-color:var(--strength)}
:is(.scan-instruments .relation-segments,.relation-segments[data-measuring]) i.opposes {--vote-color:var(--conflict)}
:is(.scan-instruments .relation-segments,.relation-segments[data-measuring]) i:is(.supports,.opposes) {background:var(--soft)}

.live-transcript .atlas-name {
  /* The window ends beyond the italic ink. Both faces keep their line measure. */
  padding-inline:8px;margin-inline:-8px;
}
.live-transcript[data-form="quote"] .atlas-name {
  display:block;max-height:4lh;overflow:hidden;overflow-wrap:anywhere;
}
.evidence-exchange .word-register {
  overflow:visible;clip-path:inset(0 -.32em);
}
.evidence-exchange .word-register > span {overflow:visible;text-overflow:clip}

.live-transcript[data-form="quote"] .atlas-name::before { content:none }
body[data-question=bottom] .live-transcript[data-form="quote"] .atlas-name > span::before,
body[data-question=bottom] .live-transcript[data-form="quote"] .atlas-name > span::after { content:none }

.compact-belief:not([data-glazed]) .belief-summary {visibility:hidden}

/* Each instrument has its seat from the first inscribed word. */
#labels .compact-belief {text-align:left}
#labels .compact-belief .belief-summary {margin-left:0;justify-content:flex-start;flex-wrap:nowrap}
.compact-belief .belief-summary .word-register {display:block;line-height:15px}
.compact-belief .belief-summary small .word-register {width:calc(3ch + 1.45em);text-align:start}
#labels .compact-belief .belief-summary > small {margin-inline:0}
#labels .compact-belief[data-glazed] .belief-summary > :is(small,.relation-count,.relation-segments) {
  display:inline-flex;align-items:center;
}
#labels .compact-belief[data-glazed] .relation-count::before {
  content:"";width:11px;height:11px;display:inline-block;background:currentColor;
}

/* Three calibrated positions describe the belief's effect. The adjacent link
   register counts sources independently. */
.relation-segments[data-impact] {--impact-ink:var(--muted)}
body[data-signed-edges] .relation-segments[data-impact=limiting] {--impact-ink:var(--conflict)}
body[data-signed-edges] .relation-segments[data-impact=empowering] {--impact-ink:var(--gold-node)}
.relation-segments[data-impact] .impact-seat {background:var(--impact-ink);--vote-color:var(--impact-ink)}
html[data-theme=dark] body[data-agent=island] :is(#labels,.scan-instruments) {
  --caption-stock:color-mix(in srgb,var(--ink) 16%,var(--paper));
}

body[data-agent=island] #labels .compact-belief[data-glazed] .belief-summary > :is(small,.relation-count,.relation-segments) {
  background:var(--caption-stock);border-radius:8px;padding:0 5px;
}

#labels [data-phone-reading=parked] {opacity:0!important;visibility:hidden;pointer-events:none!important}
#labels [data-phone-reading=current] {pointer-events:auto;touch-action:pan-y}
body[data-agent=island] #labels .tag[data-phone-reading] {box-sizing:border-box;max-width:none;text-align:left}

#unsupported-phone {display:none}
html[data-unsupported-phone] body > :not(#unsupported-phone) {display:none!important}
html[data-unsupported-phone] body {display:grid;place-items:center;grid-template-rows:1fr}
html[data-unsupported-phone] #unsupported-phone {
  display:block;margin:24px;max-width:23ch;text-align:center;
  font:400 18px/1.4 var(--ui-type);color:var(--ink);
}

/* The field owns the viewport. The island overlays its bottom edge, so a
   reading and its touch targets can extend into the conversation area. */
body[data-agent=island][data-phone-field] main {position:absolute;inset:0}
body[data-agent=island][data-phone-field] #conversation {
  position:absolute;bottom:0;left:0;right:0;pointer-events:none
}
body[data-phone-field] #prompt {pointer-events:auto}
.phone-reading-sheet {position:absolute;left:12px;right:12px;pointer-events:none}
body[data-agent=island][data-phone-field] #labels [data-family=evidence] {font-size:15px}
body[data-phone-field] #labels .live-transcript[data-form=quote] {font-size:15px}
body[data-phone-field] #dock.island-playback {top:var(--tool-top);right:calc(var(--tool-right) + 44px)}

/* The belief carries its own instruments. Use the island for the cited
   words and the current operation while that same belief is in view. */
body[data-agent=island][data-phone-belief-scan] .scan-metrics {grid-template-columns:minmax(0,1fr);gap:0}
body[data-agent=island][data-phone-belief-scan] .scan-readout {display:none}
body[data-agent=island][data-phone-belief-scan] .opening-scan .scan-key {display:none}
body[data-agent=island][data-phone-belief-scan] .opening-scan .scan-row {grid-template-columns:minmax(0,1fr);column-gap:0}
body[data-agent=island][data-phone-belief-scan] .opening-scan .scan-row strong {grid-column:1}
body[data-agent=island][data-phone-belief-scan] #prompt:has(.opening-scan:not([hidden])) > .dock-paper::before {background:none;box-shadow:none}
@media (max-width:550px) and (orientation:portrait) {
  body[data-agent=island][data-phone-belief-scan] #prompt {--scan-rise:calc(10px + 16px * var(--evidence-lines,1))}
  body[data-agent=island][data-phone-belief-scan] .scan-metrics {bottom:calc(36px + var(--scan-extra,0px))}
}

/* One surface grows from the conversation baseline; the existing label
   continues to own its words, score and touch gestures. */
.phone-reading-sheet::before {
  content:"";position:absolute;inset:var(--face-inset,0);border-radius:18px;
  background:var(--paper);box-shadow:inset 0 0 0 1px var(--glass-edge),var(--glass-shadow);
}
.phone-reading-sheet[data-layer=belief]::before {
  background:var(--glass-fill);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
body[data-agent=island][data-phone-sheet] #labels [data-phone-reading=current] {
  padding:0 0 7px;color:var(--ink);
}
body[data-phone-sheet] [data-phone-reading=current] {
  mask-image:linear-gradient(to bottom,transparent var(--phone-reveal,0px),black var(--phone-reveal,0px));
}
body[data-phone-sheet] .compact-belief[data-phone-reading]::before {display:none}
body[data-agent=island][data-phone-sheet] #prompt:not([data-state=asking]) > .dock-paper {
  background:transparent;box-shadow:none;backdrop-filter:none;
}

body[data-agent=island][data-phone-sheet] #prompt[data-state=processing]:not(:has(.opening-scan:not([hidden]))) {
  width:var(--scan-limit);max-width:var(--scan-limit);justify-content:flex-start;
}

body[data-agent=island][data-phone-sheet] .opening-scan .scan-row strong,
body[data-agent=island][data-phone-sheet] #prompt[data-state=processing] .agent-utterance {
  color:var(--muted);font-size:13px;
}
body[data-agent=island][data-phone-sheet] .opening-scan .scan-check {display:none}

body[data-agent=island][data-phone-closing] #prompt[data-state] > .dock-paper {
  background:transparent;box-shadow:none;backdrop-filter:none;transition:none;
}
body[data-agent=island][data-phone-closing] #prompt #question {
  color:var(--ink);
}
@media (prefers-reduced-motion:no-preference) {
  body[data-agent=island][data-phone-field] #prompt #question {
    transition:color 0s linear 45ms;
  }
}

body[data-agent=island] .compact-belief .relation-segments[data-impact]:not([data-linked]) {
  --impact-ink:var(--muted);
}
@media (prefers-reduced-motion:no-preference) {
  .relation-segments .impact-seat {transition:background-color .42s ease}
}
