/* COSMO presentation. Activity and source status remain owned by app.js. */
.cosmo-brand-logo { flex: 0 0 42px; width: 42px; height: 42px; object-fit: contain; }
.orb-stage::before, .orb-stage::after { display: none; }
.orb-stage,
body[data-conversation-layout="minimized"] .orb-stage {
  max-width: calc(100vw - 36px);
  transform: none;
}
.agent-orb,
body[data-conversation-layout="minimized"] .agent-orb,
body[data-agent-state] .agent-orb {
  --orb-layout-scale: 1;
  width: 100%;
  height: calc(100% - 66px);
  align-self: start;
  transform: none;
  filter: none;
}
.cosmo-aurora-orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  stroke-linecap: round;
  z-index: 0;
}
.cosmo-orbital-track { fill: none; stroke: rgba(96,224,211,.26); stroke-width: 1.15; vector-effect: non-scaling-stroke; }
.cosmo-orbital-track[data-ring="1"] { stroke: rgba(111,172,231,.32); }
.cosmo-orbital-track[data-ring="2"] { stroke: rgba(96,224,211,.18); }
.cosmo-orbital-energy {
  fill: none;
  stroke: #60e0d3;
  stroke-width: 1.9;
  stroke-dasharray: 5 95;
  opacity: .7;
  filter: drop-shadow(0 0 4px #60e0d3);
  animation: cosmo-aurora-travel 24s linear infinite;
  vector-effect: non-scaling-stroke;
}
.cosmo-orbital-energy[data-ring="1"] { stroke: #6face7; animation-duration: 30s; animation-delay: -13s; animation-direction: reverse; }
.cosmo-orbital-energy[data-ring="2"] { animation-duration: 21s; animation-delay: -7s; opacity: .48; }
body:is([data-agent-state="thinking"],[data-agent-state="working"]) .cosmo-orbital-energy { animation-duration: 7s; opacity: .95; }
body[data-agent-state="listening"] .cosmo-orbital-energy { animation-duration: 14s; }
body[data-agent-state="done"] .cosmo-orbital-energy { opacity: .9; }
.agent-orb .orb-halo {
  inset: auto;
  width: 176px;
  height: 176px;
  border: 1px solid rgba(96,224,211,.13);
  background: radial-gradient(circle, rgba(96,224,211,.09), transparent 70%);
  box-shadow: 0 0 52px rgba(96,224,211,.08);
}
.agent-orb .orb-core {
  width: 116px;
  height: 116px;
  border: 1px solid rgba(96,224,211,.27);
  background: radial-gradient(circle at 45% 38%, #18313a, #0b171d 70%);
  box-shadow: 0 0 42px rgba(96,224,211,.13), inset 0 0 20px rgba(96,224,211,.04);
  transition: box-shadow .3s ease;
}
.cosmo-core-logo { width: 88px; height: 88px; object-fit: contain; }
.agent-orb:hover .orb-core { box-shadow: 0 0 48px rgba(96,224,211,.2); }
body:is([data-agent-state="thinking"],[data-agent-state="working"]) .agent-orb .orb-core { box-shadow: 0 0 52px rgba(96,224,211,.24); }
.agent-orb .connector-node {
  left: var(--cosmo-x);
  top: var(--cosmo-y);
  width: 34px;
  height: 34px;
  min-height: 0;
  display: grid;
  grid-template-rows: none;
  transform: translate(-50%, -50%);
  animation: none;
  filter: none;
  opacity: .9;
  pointer-events: none;
}
.agent-orb .connector-node::before {
  inset: 0;
  border-radius: 11px;
  background: color-mix(in srgb, var(--connector-color) 9%, #0b171d);
  border-color: color-mix(in srgb, var(--connector-color) 54%, transparent);
  box-shadow: 0 0 0 3px #0b171d, 0 0 20px color-mix(in srgb, var(--connector-color) 8%, transparent);
}
.agent-orb .connector-node::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 2px;
  z-index: -2;
  background: linear-gradient(90deg, transparent, var(--connector-color) 28%, var(--connector-color) 72%, transparent);
  transform: translate(-50%, -50%) rotate(var(--cosmo-tangent, 0deg));
  opacity: .6;
  pointer-events: none;
}
.agent-orb .connector-node-icon { width: 20px; height: 20px; }
.agent-orb .connector-node small {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  max-width: none;
  overflow: visible;
  color: #adc7cf;
  background: #0b171d;
  border-radius: 3px;
  padding: 1px 3px;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}
.connector-node-jira3 { --connector-color: #91a8ff; }
body:is([data-agent-state="thinking"], [data-agent-state="working"])[data-connector-focus~="jira3"] .connector-node-jira3 {
  opacity: 1;
  filter: saturate(1.25) brightness(1.15) drop-shadow(0 0 12px color-mix(in srgb, var(--connector-color) 75%, transparent));
}
.agent-orb[data-motion-hidden="true"] *,
body.reduce-motion .cosmo-orbital-energy { animation-play-state: paused !important; }
@keyframes cosmo-aurora-travel { to { stroke-dashoffset: -100; } }
@media(max-width:1250px) { .cosmo-brand-logo { flex-basis: 34px; width: 34px; height: 34px; } }
@media(max-width:1100px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .top-actions { grid-column: 2; grid-row: 1; }
  .connector-strip { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; justify-content: flex-start; gap: 6px 10px; }
}
@media(max-width:390px) {
  .agent-orb .connector-node { width: 28px; height: 28px; }
  .agent-orb .connector-node-icon { width: 17px; height: 17px; }
  .agent-orb .connector-node small { font-size: 10px; }
  .agent-orb .orb-core { width: 88px; height: 88px; }
  .cosmo-core-logo { width: 66px; height: 66px; }
}
@media(prefers-reduced-motion:reduce) {
  .cosmo-orbital-energy, .agent-orb .orb-halo { animation: none !important; }
  .agent-orb *, .agent-orb *::before, .agent-orb *::after { transition: none !important; }
}
