/* An abstract evidence network: the review itself remains available in History. */
.neural-view{
  --neural-ink:#53664d;--neural-glow:#80966c;--neural-wire:#a4ad96;--neural-paper:#faf8f3;--neural-other:#b87a60;
  position:relative;background:radial-gradient(ellipse at 50% 42%,#b3c39a1c,transparent 65%);border-radius:50%;
}
.neural-view #tree-map{overflow:visible}
.neural-view .tree-node-title,.neural-view .tree-node-detail{display:none}
.neural-view .tree-node[data-node=question] .tree-node-title{display:block;fill:var(--neural-ink);font-size:14px;font-weight:500;letter-spacing:.015em}
.neural-view .neural-aura{transform-box:fill-box;fill:var(--neural-glow);opacity:.055;transform-origin:center}
.neural-view .neural-ring{transform-box:fill-box;transform-origin:center;fill:none;stroke:var(--neural-glow);stroke-width:.7;opacity:.28}
.neural-view .neural-orb{fill:var(--neural-paper);stroke:var(--neural-glow);stroke-width:1;transition:fill .5s,stroke .5s;filter:drop-shadow(0 0 6px #819a7035)}
.neural-view .neural-core{fill:var(--neural-glow);opacity:.7}
.neural-view .tree-node[data-state=active] .neural-aura{animation:neural-breathe 2.4s ease-in-out infinite}
.neural-view .tree-node[data-state=active] .neural-orb{fill:var(--neural-glow);fill-opacity:.18;filter:drop-shadow(0 0 9px #819a7060)}
.neural-view .tree-node[data-state=waiting]{opacity:.65}
.neural-view .tree-node[data-state=pass] .neural-orb{fill:var(--neural-glow);fill-opacity:.35}
.neural-view .tree-node[data-state=no]{--neural-glow:var(--neural-other)}
.neural-view .neural-filament,.neural-view .neural-association{fill:none;stroke:var(--neural-wire);stroke-width:1;stroke-opacity:.28;pointer-events:none}
.neural-view .neural-association{stroke-width:.6;stroke-opacity:.14}
.neural-view .tree-edge{stroke:var(--neural-glow);stroke-width:1.3;stroke-opacity:.65}
.neural-view .tree-edge[data-state=active]:not(.is-growing):not(.is-returning){stroke:var(--neural-glow);stroke-dasharray:.07 .93;animation:neural-signal 2.1s linear infinite;stroke-width:2.4;stroke-opacity:.9;filter:drop-shadow(0 0 3px #819a70a0)}
.neural-view .tree-edge[data-state=waiting]{stroke:var(--neural-wire);stroke-dasharray:none;stroke-opacity:.3}
.neural-view .tree-edge[data-state=no]{stroke:var(--neural-other);stroke-opacity:.45}
.neural-view .tree-edge.is-returning{stroke-dasharray:.1 .9;animation:neural-return 1.2s linear infinite}
.neural-view .tree-edge.is-decision-route{stroke-width:2;stroke-opacity:.85}
.neural-view .tree-branch-label{font-size:13px;font-weight:500;fill:var(--neural-ink);stroke:var(--neural-paper);stroke-width:7px}
.neural-view .tree-branch-label.branch-N{fill:var(--neural-other)}
.neural-view .tree-node .tree-root-verdict{font-size:26px;fill:var(--neural-ink)}
.neural-view[data-state=complete] .tree-node[data-node=question] .neural-core{display:none}
.neural-view .tree-driver-trail{stroke-width:1.6;filter:drop-shadow(0 0 3px #c4b17c80)}
.neural-view .tree-driver-dot{r:3}
.neural-view .tree-final-hit .neural-ring{animation:neural-arrive .8s ease-out}
.network-caption{margin:0;text-align:center;color:var(--neural-ink);font-size:12px;font-weight:400;letter-spacing:.06em;min-height:20px;opacity:.75}
:root[data-theme=dark] .neural-view{--neural-ink:#d5dfc8;--neural-glow:#b0c496;--neural-wire:#96a98a;--neural-paper:#242629;--neural-other:#daaa87;background:radial-gradient(ellipse at 50% 42%,#9db78412,transparent 65%)}
:root[data-theme=dark] .neural-view .tree-edge[data-state=active]{stroke:var(--neural-glow)}
:root[data-theme=dark] .neural-view .tree-branch-label{stroke:var(--neural-paper);fill:var(--neural-ink)}
:root[data-theme=dark] .neural-view .tree-branch-label.branch-N{fill:var(--neural-other)}
:root[data-theme=dark] .neural-view .tree-node[data-node=question] .tree-node-title{fill:var(--neural-ink)}
@keyframes neural-breathe{0%,100%{scale:.8;opacity:.055}50%{scale:1.35;opacity:.18}}
@keyframes neural-signal{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes neural-return{from{stroke-dashoffset:0}to{stroke-dashoffset:1}}
@keyframes neural-arrive{from{scale:1;opacity:.8}to{scale:2.2;opacity:0}}
@media(prefers-reduced-motion:reduce){.neural-view .neural-aura,.neural-view .tree-edge,.neural-view .neural-ring{animation:none!important;transition:none!important}.neural-view .tree-edge[data-state=active]{stroke-dasharray:none!important}}

/* Cyan / ultraviolet / hot pink, with empty slots shimmering until evidence arrives. */
.neural-view{
  --neural-ink:#28516d;--neural-glow:#14bace;--neural-wire:#9c7bd6;--neural-other:#d348a1;
  background:radial-gradient(ellipse at 30% 35%,#00d9ff0d,transparent 55%),radial-gradient(ellipse at 75% 65%,#d328ff0c,transparent 55%)
}
:root[data-theme=dark] .neural-view{
  --neural-ink:#c4f8ff;--neural-glow:#4deaff;--neural-wire:#9574e4;--neural-other:#ff70d1;
  background:radial-gradient(ellipse at 30% 35%,#00d9ff0c,transparent 55%),radial-gradient(ellipse at 75% 65%,#d328ff0e,transparent 55%)
}
.neural-view .neural-orb{filter:drop-shadow(0 0 6px #00daff55);transition:fill .6s,fill-opacity .6s,stroke .6s}
.neural-view .tree-node[data-state=active] .neural-orb{fill:var(--neural-glow);fill-opacity:.65;filter:drop-shadow(0 0 10px #00daff80)}
.neural-view .tree-node[data-state=pass] .neural-orb,.neural-view .tree-node[data-state=no] .neural-orb{fill:var(--neural-glow);fill-opacity:.95;stroke:var(--neural-glow)}
.neural-view .tree-node[data-state=no] .neural-orb{filter:drop-shadow(0 0 8px #ff36bd66)}
.neural-view .tree-node[data-state=waiting] .neural-orb{fill:var(--neural-glow);fill-opacity:.4}
.neural-view .neural-core{fill:var(--neural-ink);opacity:.9}
.neural-view .neural-ring{stroke-opacity:.75}
.neural-view .tree-edge[data-state=active]:not(.is-growing):not(.is-returning){filter:drop-shadow(0 0 4px #00dbff99)}
.neural-view .tree-edge[data-state=pass],.neural-view .tree-edge.is-decision-route{stroke:var(--neural-glow);filter:drop-shadow(0 0 3px #00dbff55)}
.neural-view .tree-edge[data-state=no]{stroke:var(--neural-other)}
.neural-view .tree-driver[data-side=Y],.neural-view .tree-driver.is-landed{color:var(--neural-glow)}
.neural-view .tree-driver[data-side=N]{color:var(--neural-other)}
.neural-view .tree-driver-trail[data-side=Y]{stroke:var(--neural-glow)}
.neural-view .tree-driver-trail[data-side=N]{stroke:var(--neural-other)}
.neural-view .tree-driver-trail{filter:drop-shadow(0 0 4px #b34dff80)}
.neural-ghost{pointer-events:none;animation:neural-shimmer 3.6s ease-in-out var(--shimmer-delay,0s) infinite;opacity:.15;transition:opacity .6s}
.neural-ghost .ghost-orb{fill:var(--neural-glow);fill-opacity:.15;stroke:var(--neural-glow);stroke-width:.8;stroke-opacity:.55}
.neural-ghost .ghost-ring{fill:none;stroke:var(--neural-wire);stroke-width:.7;stroke-opacity:.5;stroke-dasharray:2 5}
.neural-ghost[data-ghost^=N]{--neural-glow:var(--neural-other)}
.neural-view[data-state=complete] .neural-ghost,.neural-view[data-state=error] .neural-ghost{animation:none;opacity:0}
@keyframes neural-shimmer{0%,100%{opacity:.13}50%{opacity:.48}}
@media(prefers-reduced-motion:reduce){.neural-ghost{animation:none!important;opacity:.22}.neural-view .neural-orb{transition:none}}
:root[data-theme=dark] .neural-view .tree-edge[data-state=pass]{stroke:var(--neural-glow)}
:root[data-theme=dark] .neural-view .tree-edge[data-state=no]{stroke:var(--neural-other)}
:root .neural-view .tree-node[data-node=question] .tree-root-verdict{fill:#163347}

/* Match the reference: a dark midnight field with violet and electric blue filaments. */
.neural-view{
  --neural-ink:#bdeaff;--neural-glow:#49d9ff;--neural-wire:#8064c9;--neural-paper:#080b1c;--neural-other:#f06bcc;
  overflow:hidden;border:1px solid #6851a944;border-radius:22px;padding:10px 8px 2px;
  background:radial-gradient(ellipse at 50% 0%,#211044 0%,transparent 64%),radial-gradient(ellipse at 25% 45%,#071c38 0%,transparent 60%),linear-gradient(145deg,#09091d,#071426 60%,#10091f);
  box-shadow:inset 0 0 54px #4f23a51a,0 10px 34px #11102918
}
:root[data-theme=dark] .neural-view{--neural-ink:#bdeaff;--neural-glow:#49d9ff;--neural-wire:#8064c9;--neural-paper:#080b1c;--neural-other:#f06bcc}
.neural-view .tree-node[data-depth="1"] .tree-node-title,.neural-view .tree-node[data-depth="2"] .tree-node-title{
  display:block;fill:#bdeaff;font-size:9px;font-weight:500;letter-spacing:.01em;paint-order:stroke;stroke:#080b1c;stroke-width:3px;stroke-linejoin:round
}
.neural-view .tree-node[data-lane=N] .tree-node-title{fill:#f3a0df}
.neural-view .tree-edge[data-lane=Y],.neural-view .neural-filament[data-lane=Y]{--lane:#49d9ff}
.neural-view .tree-edge[data-lane=N],.neural-view .neural-filament[data-lane=N]{--lane:#f06bcc}
.neural-view .tree-edge[data-state=active]{stroke:var(--lane,var(--neural-glow))}
.neural-view .tree-edge[data-state=active]:not(.is-growing):not(.is-returning){filter:drop-shadow(0 0 5px var(--lane,#49d9ff))}
.neural-view .tree-edge[data-state=pass],.neural-view .tree-edge.is-decision-route{stroke:var(--lane,var(--neural-glow))}
.neural-view .tree-edge[data-state=no]{stroke:#f06bcc}
.neural-view .neural-ghost[data-lane=Y] .ghost-orb{fill:#49d9ff;stroke:#49d9ff}
.neural-view .neural-ghost[data-lane=N] .ghost-orb{fill:#f06bcc;stroke:#f06bcc}
.neural-view .tree-node[data-state=pass] .neural-orb{fill:#49d9ff}
.neural-view .tree-node[data-state=no] .neural-orb{fill:#f06bcc;stroke:#f06bcc}
.neural-view .tree-branch-label{fill:#7ce7ff;stroke:#080b1c}
.neural-view .tree-branch-label.branch-N{fill:#f3a0df}
.neural-view .tree-node[data-node=question] .tree-node-title{fill:#d4f3ff}
.neural-view .network-caption{color:#c0a7ff;letter-spacing:.12em;text-transform:uppercase;font-size:10px}
:root[data-theme=dark] .neural-view .tree-node[data-depth="1"] .tree-node-title,:root[data-theme=dark] .neural-view .tree-node[data-depth="2"] .tree-node-title{fill:#bdeaff;stroke:#080b1c}
:root[data-theme=dark] .neural-view .tree-node[data-lane=N] .tree-node-title{fill:#f3a0df}
:root[data-theme=dark] .neural-view .tree-branch-label{fill:#7ce7ff;stroke:#080b1c}
:root[data-theme=dark] .neural-view .tree-branch-label.branch-N{fill:#f3a0df}
:root[data-theme=dark] .neural-view .tree-node[data-node=question] .tree-node-title{fill:#d4f3ff}
:root .neural-view .tree-node[data-node=question] .tree-root-verdict{fill:#163347}
/* Keep the visualization on the page's own background; color only the network. */
.neural-view,:root[data-theme=dark] .neural-view{
  --neural-paper:transparent;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  padding-inline:0
}
.neural-view .tree-branch-label,.neural-view .tree-node[data-depth="1"] .tree-node-title,.neural-view .tree-node[data-depth="2"] .tree-node-title{stroke:var(--neural-paper)}

/* Daylight palette: ink-blue labels, muted violet, and softer filled nodes. */
:root[data-theme=light] .neural-view{
  --neural-ink:#354e64;--neural-glow:#478b9f;--neural-wire:#8c79ae;--neural-other:#a56895
}
:root[data-theme=light] .neural-view .tree-edge[data-lane=Y],:root[data-theme=light] .neural-view .neural-filament[data-lane=Y]{--lane:#478b9f}
:root[data-theme=light] .neural-view .tree-edge[data-lane=N],:root[data-theme=light] .neural-view .neural-filament[data-lane=N]{--lane:#a56895}
:root[data-theme=light] .neural-view .tree-node .tree-node-title{fill:#354e64;stroke:transparent}
:root[data-theme=light] .neural-view .tree-node[data-lane=N] .tree-node-title{fill:#875578}
:root[data-theme=light] .neural-view .tree-node[data-node=question] .tree-node-title{fill:#354e64}
:root[data-theme=light] .neural-view .tree-branch-label{fill:#356f85;stroke:transparent}
:root[data-theme=light] .neural-view .tree-branch-label.branch-N{fill:#875578}
:root[data-theme=light] .neural-view .neural-orb{stroke:#478b9f;filter:drop-shadow(0 0 4px #478b9f26)}
:root[data-theme=light] .neural-view .tree-node[data-state=active] .neural-orb{fill:#9dcbd8;fill-opacity:.7;filter:drop-shadow(0 0 6px #478b9f30)}
:root[data-theme=light] .neural-view .tree-node[data-state=waiting] .neural-orb{fill:#bad6df;fill-opacity:.45}
:root[data-theme=light] .neural-view .tree-node[data-state=pass] .neural-orb{fill:#b3d8e2;stroke:#478b9f}
:root[data-theme=light] .neural-view .tree-node[data-state=no] .neural-orb{fill:#e2c4da;stroke:#a56895;filter:drop-shadow(0 0 5px #a5689526)}
:root[data-theme=light] .neural-view .tree-edge[data-state=no]{stroke:#a56895}
:root[data-theme=light] .neural-view .tree-edge[data-state=active]:not(.is-growing):not(.is-returning){filter:drop-shadow(0 0 2px #738eb740)}
:root[data-theme=light] .neural-view .tree-edge[data-state=pass],:root[data-theme=light] .neural-view .tree-edge.is-decision-route{filter:drop-shadow(0 0 2px #478b9f26)}
:root[data-theme=light] .neural-view .neural-filament{stroke-opacity:.4}
:root[data-theme=light] .neural-view .neural-ghost[data-lane=Y] .ghost-orb{fill:#478b9f;stroke:#478b9f}
:root[data-theme=light] .neural-view .neural-ghost[data-lane=N] .ghost-orb{fill:#a56895;stroke:#a56895}
:root[data-theme=light] .neural-view .tree-driver-trail{filter:drop-shadow(0 0 2px #8c79ae40)}
:root[data-theme=light] .neural-view .network-caption{color:#6f6087}
:root[data-theme=light] .neural-view .tree-node[data-node=question] .tree-root-verdict{fill:#354e64}

/* Night palette: electric blue and violet, with lavender highlights. */
:root[data-theme=dark] .neural-view{
  --neural-ink:#cfdaff;--neural-glow:#728fff;--neural-wire:#8265cb;--neural-other:#ad83f4
}
:root[data-theme=dark] .neural-view .tree-edge[data-lane=Y],:root[data-theme=dark] .neural-view .neural-filament[data-lane=Y]{--lane:#728fff}
:root[data-theme=dark] .neural-view .tree-edge[data-lane=N],:root[data-theme=dark] .neural-view .neural-filament[data-lane=N]{--lane:#ad83f4}
:root[data-theme=dark] .neural-view .tree-node .tree-node-title{fill:#cfdaff;stroke:transparent}
:root[data-theme=dark] .neural-view .tree-node[data-lane=N] .tree-node-title{fill:#d5bdff}
:root[data-theme=dark] .neural-view .tree-node[data-node=question] .tree-node-title{fill:#e0e6ff}
:root[data-theme=dark] .neural-view .tree-branch-label{fill:#b0c0ff;stroke:transparent}
:root[data-theme=dark] .neural-view .tree-branch-label.branch-N{fill:#d5bdff}
:root[data-theme=dark] .neural-view .neural-orb{filter:drop-shadow(0 0 6px #728fff55)}
:root[data-theme=dark] .neural-view .tree-node[data-state=active] .neural-orb{filter:drop-shadow(0 0 10px #728fff80)}
:root[data-theme=dark] .neural-view .tree-node[data-state=pass] .neural-orb{fill:#728fff;stroke:#728fff}
:root[data-theme=dark] .neural-view .tree-node[data-state=no] .neural-orb{fill:#ad83f4;stroke:#ad83f4;filter:drop-shadow(0 0 8px #ad83f466)}
:root[data-theme=dark] .neural-view .tree-edge[data-state=pass]{stroke:var(--lane,#728fff);filter:drop-shadow(0 0 3px #728fff55)}
:root[data-theme=dark] .neural-view .tree-edge[data-state=no]{stroke:#ad83f4}
:root[data-theme=dark] .neural-view .tree-edge.is-decision-route{filter:drop-shadow(0 0 3px #8b7cff55)}
:root[data-theme=dark] .neural-view .neural-ghost[data-lane=Y] .ghost-orb{fill:#728fff;stroke:#728fff}
:root[data-theme=dark] .neural-view .neural-ghost[data-lane=N] .ghost-orb{fill:#ad83f4;stroke:#ad83f4}
:root[data-theme=dark] .neural-view .tree-driver-trail{filter:drop-shadow(0 0 4px #9478ef80)}
:root[data-theme=dark] .neural-view .network-caption{color:#bca7ee}
:root[data-theme=dark] .neural-view .tree-node[data-node=question] .tree-root-verdict{fill:#1c214a}

/* A separate heading cannot collide with growing SVG branches. */
.neural-view #tree-question{display:block;position:relative;max-width:100%;min-height:0;margin:0 0 20px;padding:0 4px;font-size:clamp(28px,4vw,36px);font-weight:650;line-height:1.2;text-align:left;overflow-wrap:anywhere;color:#354e64}
.neural-view #tree-question:empty{display:none}
.neural-view .tree-node[data-node=question] .tree-node-title{display:none}
.neural-view .tree-node[data-depth="1"] .tree-node-title,.neural-view .tree-node[data-depth="2"] .tree-node-title{font-size:11px;letter-spacing:0;text-anchor:middle;stroke:none}
.neural-view .neural-association{display:none}
:root[data-theme=dark] .neural-view #tree-question{color:#e0e6ff}

.spelling-confirmation{position:relative;z-index:3;margin:12px auto 20px;padding:18px;max-width:440px;border:1px solid #d5d7cc;border-radius:16px;background:#fffefa;color:#30382c;text-align:center}
.spelling-confirmation h3{margin:0 0 8px;font-size:17px}.spelling-confirmation p{margin:0 0 14px;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.spelling-confirmation>div{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.spelling-confirmation button{min-height:42px;padding:8px 14px;font-size:13px}
.spelling-confirmation #spelling-keep{background:transparent;border:1px solid #b7b9ae;color:inherit}
:root[data-theme=dark] .spelling-confirmation{background:#2e3135;border-color:#484d54;color:#f0e9dc}
/* Hold the network while the user chooses which wording to research. */
.neural-view:has(#spelling-confirmation:not([hidden])) #tree-map *{animation-play-state:paused!important}

@media(max-width:600px){.ask-with-tree .character-scene.phone-researching{padding-top:8px}.neural-view #tree-question{font-size:30px;margin-bottom:20px}}

/* Keep long question titles within three lines above the network. */
.neural-view #tree-question{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;text-overflow:ellipsis;max-height:3.6em}

/* Shared evidence dialog for inline and standalone Ask. */
.answer-details-toggle{display:block;width:fit-content;min-height:36px;margin:10px auto;padding:6px 14px;border:1px solid #cbd3bf;border-radius:18px;background:transparent;color:inherit;font:500 12px/1.4 system-ui;cursor:pointer}
.answer-details-toggle[hidden]{display:none!important}
.phone-result .answer-details-toggle{margin:0;min-height:32px;padding:4px 12px}
#ask-app.answer-details-available #round-usage[data-bubble-mode=usage]{display:none!important}
.answer-details-panel{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;border:1px solid #d5d7cc;border-radius:20px;background:#faf8f3;color:#30382c;box-shadow:0 16px 60px #0003;overflow:hidden}
.answer-details-panel::backdrop{background:#161d2966;backdrop-filter:blur(4px)}
.answer-details-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #d5d7cc}
.answer-details-panel h2{margin:0;font:600 18px/1.3 system-ui}
.answer-details-close{min-height:40px;padding:6px 12px;border:1px solid #cbd3bf;border-radius:12px;background:transparent;color:inherit;font:500 13px system-ui}
.answer-details-content{padding:16px 18px;max-height:calc(100dvh - 130px);overflow:auto;overscroll-behavior:contain;font:13px/1.6 system-ui}
.answer-details-panel #result{margin:0;width:100%}
.answer-details-panel #result:not([hidden]),.answer-details-panel #similar-feedback:not([hidden]),.answer-details-panel #search-attribution:not([hidden]){display:block!important}
.answer-details-panel #attachment-reading-usage:not([hidden]){display:block!important}
:root[data-theme=dark] .answer-details-panel{background:#2e3135;color:#f0e9dc;border-color:#484d54}
:root[data-theme=dark] .answer-details-panel>header{border-color:#484d54}

.answer-details-panel .decision-tree{display:block!important;position:relative;visibility:visible!important;opacity:1!important;translate:none!important;width:100%;max-width:100%;padding:12px 0;min-height:0;border-radius:12px}
.answer-details-panel #tree-map{display:block;width:100%;height:auto;overflow:hidden}
.answer-details-panel #tree-question{font-size:20px;overflow-wrap:anywhere}
body:has(.answer-details-panel .decision-tree[data-state=tracing]) #ask-form:not([aria-busy=true]){display:block}
