.response-reasoning.is-thinking>summary { height:112px;box-sizing:border-box;overflow:hidden; }
.response-reasoning.is-thinking .reasoning-preview { min-height:52px;max-height:52px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3; }
.ts-reasoning-organism { position:relative;width:100%;height:clamp(290px,43vw,380px);min-height:290px;margin:22px 0 26px;overflow:hidden;background:transparent;pointer-events:none;opacity:1;transition:opacity .32s ease;--organism-accent:var(--response-color,#70caff); }
.ts-reasoning-organism.is-complete { opacity:0; }
.ts-reasoning-organism svg { display:block;width:100%;height:100%; }
.organism-link { stroke:var(--organism-accent);stroke-width:1.45;stroke-opacity:.42;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--organism-accent) 24%,transparent));transition:stroke-opacity .5s ease; }
.organism-link.is-ghost { stroke-opacity:.075; }
.organism-node { transition:opacity .6s ease,filter .6s ease; }
.organism-haze { opacity:.68;filter:blur(18px) saturate(1.3); }
.organism-haze-hot { opacity:.45;filter:blur(22px) saturate(1.4); }
.organism-core { stroke:none;filter:blur(2px) drop-shadow(0 0 13px color-mix(in srgb,var(--organism-accent) 34%,transparent));mix-blend-mode:screen; }
.organism-inner { stroke:none;filter:blur(3px);mix-blend-mode:screen; }
.organism-flare-line { stroke:var(--organism-accent);stroke-width:1.4;stroke-linecap:round;filter:drop-shadow(0 0 8px var(--organism-accent)); }
.organism-flare-hot { fill:#fff;filter:drop-shadow(0 0 13px var(--organism-accent)); }
.organism-label { fill:#f4f7ff;font:620 11.5px/1.1 system-ui,sans-serif;paint-order:stroke;stroke:#080b12;stroke-width:5px;stroke-linejoin:round; }
.organism-dust { fill:var(--organism-accent);fill-opacity:.35;stroke:#fff;stroke-opacity:.1;stroke-width:.25; }
.organism-spark { fill:#fff;fill-opacity:.8;filter:drop-shadow(0 0 5px var(--organism-accent));animation:organism-spark 3.7s ease-in-out infinite; }
.organism-particle { fill:var(--organism-accent);fill-opacity:.76;filter:drop-shadow(0 0 6px var(--organism-accent)); }
.organism-particle.is-ghost,.organism-dust.is-ghost,.organism-spark.is-ghost { opacity:.08; }
.organism-spark:nth-child(3n) { animation-delay:-1.3s; }
.organism-spark:nth-child(5n) { animation-delay:-2.6s; }
@keyframes organism-spark { 0%,100%{fill-opacity:.22} 44%{fill-opacity:.95} }
.organism-node.is-ghost { opacity:.12;filter:blur(1.4px); }
.organism-node.is-ghost .organism-label { opacity:0; }
@media (prefers-reduced-motion:reduce) { .ts-reasoning-organism { transition:none; }.organism-spark{animation:none} }


/* Reasoning panel and progress notes. */
.response-boosted { --boost-glow: color-mix(in srgb, var(--response-color) 22%, transparent); }
.response-thinking-brief { margin:0 0 14px;padding:0;border:0;background:none;box-shadow:none;color:var(--ink);font:400 17px/1.7 system-ui,sans-serif; }
.response-thinking-brief::before { content:'✧ Exploring the question';display:block;margin-bottom:8px;color:var(--response-color);font:600 10px/1.3 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase; }
.thinking-progress-note { margin:0 0 12px;animation:thinking-brief-in .4s ease both; }
@keyframes thinking-brief-in { from { opacity:0;transform:translateY(5px); } to { opacity:1;transform:none; } }
@media(prefers-reduced-motion:reduce) { .response-thinking-brief { animation:none; } }
.response-reasoning {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-left: 2px solid color-mix(in srgb, var(--response-color) 65%, transparent);
  background: color-mix(in srgb, var(--response-color) 4%, transparent);
  border-radius: 0 10px 10px 0;
  color: #d3dbe7;
}
.response-reasoning summary {
  cursor: pointer;
  color: var(--response-color);
  font: 600 12px/1.5 system-ui, sans-serif;
}
.reasoning-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.reasoning-title { display:block; letter-spacing:.02em; }
.reasoning-answer-now { flex:0 0 auto; padding:5px 9px; border:1px solid color-mix(in srgb,var(--response-color) 55%,transparent); border-radius:999px; color:#f3f8ff; background:color-mix(in srgb,var(--response-color) 15%,#101b28); box-shadow:0 0 13px color-mix(in srgb,var(--response-color) 18%,transparent); font:600 10px/1.3 system-ui,sans-serif; cursor:pointer; transition:background 180ms ease,box-shadow 180ms ease,transform 180ms ease; }
.reasoning-answer-now:hover,.reasoning-answer-now:focus-visible { background:color-mix(in srgb,var(--response-color) 28%,#101b28); box-shadow:0 0 21px color-mix(in srgb,var(--response-color) 35%,transparent); transform:translateY(-1px); }
.reasoning-answer-now[hidden] { display:none; }
.reasoning-preview { display:block; margin-top:5px; color:#d3dbe7; font:italic 13px/1.6 ui-serif,Georgia,serif; font-weight:400; }
.response-reasoning[open] .reasoning-preview,
.response-reasoning.is-complete .reasoning-preview,
.response-reasoning.is-answering-now .reasoning-preview { display:none; }
.response-reasoning.is-thinking .reasoning-title { background:linear-gradient(105deg,var(--response-color) 30%,#f3f7ff 50%,var(--response-color) 70%); background-size:250% 100%; background-clip:text; -webkit-background-clip:text; color:transparent; animation:reasoning-shimmer 3s ease-in-out infinite; }
@keyframes reasoning-shimmer { from { background-position:150% 0; } to { background-position:-100% 0; } }
@media(prefers-reduced-motion:reduce) { .response-reasoning.is-thinking .reasoning-title { animation:none; background:none; color:var(--response-color); } }
.reasoning-text {
  margin-top: 8px;
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: italic 15px/1.75 ui-serif, Georgia, serif;
}
