/* Final composer pass: small simple line icons, grey glass, neon accent. */
body.is-chat-home .chat-root--home .chat-compose {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

body.is-chat-home .chat-root--home .chat-form {
  order: 3 !important;
  align-items: center !important;
  grid-template-columns: auto minmax(0, 1fr) auto auto !important;
  gap: 0.26rem !important;
  min-height: 2.7rem !important;
  max-width: 735px !important;
  padding: 0.28rem 0.32rem !important;
  border-radius: 6px !important;
  background: rgba(238, 238, 238, 0.72) !important;
  background-image: none !important;
  border: 1px solid var(--pf-chat-neon) !important;
  box-shadow: none !important;
}

:root[data-manual-theme="dark"] body.is-chat-home .chat-root--home .chat-form {
  background: rgba(21, 21, 21, 0.78) !important;
  background-image: none !important;
}

body.is-chat-home .chat-root--home .chat-tool,
body.is-chat-home .chat-root--home .chat-send-icon {
  position: relative !important;
  align-self: center !important;
  justify-self: center !important;
  width: 2rem !important;
  min-width: 2rem !important;
  max-width: 2rem !important;
  height: 2rem !important;
  min-height: 2rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--pf-chat-neon) !important;
  box-shadow: none !important;
}

body.is-chat-home .chat-root--home .chat-send-icon {
  width: 2.18rem !important;
  min-width: 2.18rem !important;
  max-width: 2.18rem !important;
  height: 2.18rem !important;
  min-height: 2.18rem !important;
  border-radius: 999px !important;
  background: var(--pf-chat-neon) !important;
  color: #00161b !important;
}

body.is-chat-home .chat-root--home .chat-tool:hover,
body.is-chat-home .chat-root--home .chat-send-icon:hover {
  background: var(--pf-chat-neon-soft) !important;
  border-color: var(--pf-chat-neon) !important;
  box-shadow: none !important;
}

body.is-chat-home .chat-root--home .chat-tool::before,
body.is-chat-home .chat-root--home .chat-send-icon::before {
  content: "" !important;
  position: absolute !important;
  inset: 0.46rem !important;
  display: block !important;
  background: currentColor !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

body.is-chat-home .chat-root--home .chat-tool::after,
body.is-chat-home .chat-root--home .chat-send-icon::after {
  display: none !important;
}

body.is-chat-home .chat-root--home .chat-tool--upload::before {
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 17.5 9.2 13l3 3.2 2.2-2.4 4.6 4.8V6H5v11.5Zm3.2-8.9a1.6 1.6 0 1 1 0 3.2 1.6 1.6 0 0 1 0-3.2Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 17.5 9.2 13l3 3.2 2.2-2.4 4.6 4.8V6H5v11.5Zm3.2-8.9a1.6 1.6 0 1 1 0 3.2 1.6 1.6 0 0 1 0-3.2Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.is-chat-home .chat-root--home .chat-tool--dictate::before {
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 14a3 3 0 0 0 3-3V6a3 3 0 1 0-6 0v5a3 3 0 0 0 3 3Zm7-3a1 1 0 1 0-2 0 5 5 0 0 1-10 0 1 1 0 1 0-2 0 7 7 0 0 0 6 6.71V19H9a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2h-2v-1.29A7 7 0 0 0 19 11Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 14a3 3 0 0 0 3-3V6a3 3 0 1 0-6 0v5a3 3 0 0 0 3 3Zm7-3a1 1 0 1 0-2 0 5 5 0 0 1-10 0 1 1 0 1 0-2 0 7 7 0 0 0 6 6.71V19H9a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2h-2v-1.29A7 7 0 0 0 19 11Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.is-chat-home .chat-root--home .chat-tool--dictate.is-listening {
  background: transparent !important;
  color: var(--pf-chat-neon) !important;
  animation: pfDictateIdlePulse 1.8s ease-in-out infinite;
}

body.is-chat-home .chat-root--home .chat-tool--dictate.is-listening.is-hearing {
  background: transparent !important;
  color: #ff5d5d !important;
  animation: pfDictateHearPulse 0.75s ease-in-out infinite;
}

body.is-chat-home .chat-root--home .chat-tool--dictate.is-listening.is-hearing::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -3px !important;
  border: 2px solid color-mix(in srgb, #ff5d5d 55%, transparent) !important;
  border-radius: 8px !important;
  animation: pfDictateRing 0.9s ease-out infinite !important;
  pointer-events: none !important;
}

@keyframes pfDictateIdlePulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pf-chat-neon) 0%, transparent); }
  50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--pf-chat-neon) 28%, transparent); }
}

@keyframes pfDictateHearPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, #ff5d5d 40%, transparent); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 5px color-mix(in srgb, #ff5d5d 0%, transparent); }
}

@keyframes pfDictateRing {
  0% { opacity: 0.85; transform: scale(0.92); }
  100% { opacity: 0; transform: scale(1.35); }
}

@keyframes pfDictatePulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, #ff5d5d 35%, transparent); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, #ff5d5d 0%, transparent); }
}

body.is-chat-home .chat-root--home .chat-tool--account.is-scoped {
  background: var(--pf-chat-neon-soft) !important;
}

body.is-chat-home .chat-root--home .chat-tool--target::before {
  inset: 0.38rem !important;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 3h2v4h-2V3Zm0 14h2v4h-2v-4ZM3 11h4v2H3v-2Zm14 0h4v2h-4v-2Zm-5-2.8a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6Zm0 2.1a1.7 1.7 0 1 0 0 3.4 1.7 1.7 0 0 0 0-3.4Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 3h2v4h-2V3Zm0 14h2v4h-2v-4ZM3 11h4v2H3v-2Zm14 0h4v2h-4v-2Zm-5-2.8a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6Zm0 2.1a1.7 1.7 0 1 0 0 3.4 1.7 1.7 0 0 0 0-3.4Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.is-chat-home .chat-root--home .chat-send-icon::before {
  inset: 0.54rem 0.52rem 0.52rem 0.58rem !important;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.3 4.7 20 12l-7.7 7.3-1.6-1.7 4.8-4.4H4v-2.4h11.5l-4.8-4.4 1.6-1.7Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.3 4.7 20 12l-7.7 7.3-1.6-1.7 4.8-4.4H4v-2.4h11.5l-4.8-4.4 1.6-1.7Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.is-chat-home .chat-root--home .chat-form #chat-upload {
  grid-column: 1 !important;
}

body.is-chat-home .chat-root--home .chat-form textarea {
  grid-column: 2 !important;
  align-self: center !important;
  height: 1.9rem !important;
  min-height: 1.9rem !important;
  padding: 0.32rem 0.42rem !important;
  font-size: 0.74rem !important;
  line-height: 1.35 !important;
}

body.is-chat-home .chat-root--home .chat-form #chat-dictate {
  grid-column: 3 !important;
}

body.is-chat-home .chat-root--home .chat-send-icon {
  grid-column: 4 !important;
}

body.is-chat-home .chat-root--home .chat-account-panel {
  order: 2 !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.4rem 2rem;
  align-items: center;
  gap: 0.34rem;
  width: min(735px, calc(100vw - 2rem));
  margin: 0 auto 0.42rem;
  padding: 0.38rem;
  border: 1px solid var(--pf-chat-neon);
  border-radius: 6px;
  background: rgba(238, 238, 238, 0.72);
  color: var(--custom-copy);
  pointer-events: auto;
}

:root[data-manual-theme="dark"] body.is-chat-home .chat-root--home .chat-account-panel {
  background: rgba(21, 21, 21, 0.78);
}

body.is-chat-home .chat-root--home .chat-account-panel.hidden {
  display: none;
}

body.is-chat-home .chat-root--home .chat-account-panel label,
body.is-chat-home .chat-root--home .chat-account-panel p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--custom-muted);
  font-size: 0.6rem;
  line-height: 1.2;
}

body.is-chat-home .chat-root--home .chat-account-panel input {
  min-width: 0;
  height: 2.05rem;
  padding: 0.32rem 0.52rem;
  border: 1px solid var(--custom-line);
  border-radius: 6px;
  background: transparent;
  color: var(--custom-ink);
  font: inherit;
  font-size: 0.76rem;
  line-height: 1.2;
}

body.is-chat-home .chat-root--home .chat-account-panel input:focus {
  outline: 1px solid var(--pf-chat-neon);
  outline-offset: 0;
}

body.is-chat-home .chat-root--home .chat-account-panel button {
  height: 2.05rem;
  border: 1px solid var(--pf-chat-neon);
  border-radius: 6px;
  background: transparent;
  color: var(--pf-chat-neon);
  font: inherit;
  font-size: 0.66rem;
}

body.is-chat-home .chat-root--home #chat-account-clear {
  position: relative;
  width: 2rem;
  padding: 0;
}

body.is-chat-home .chat-root--home #chat-account-clear::before,
body.is-chat-home .chat-root--home #chat-account-clear::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.62rem;
  height: 1px;
  background: currentColor;
}

body.is-chat-home .chat-root--home #chat-account-clear::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

body.is-chat-home .chat-root--home #chat-account-clear::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

body.is-chat-home .chat-root--home .chat-account-panel p {
  grid-column: 1 / -1;
}

body.is-chat-home .chat-root--home .chat-agent-panel {
  order: 2 !important;
  display: grid;
  gap: 0.42rem;
  width: min(735px, calc(100vw - 2rem));
  margin: 0 auto 0.42rem;
  padding: 0.52rem 0.58rem;
  border: 1px solid var(--pf-chat-neon);
  border-radius: 8px;
  background: rgba(238, 238, 238, 0.72);
  color: var(--custom-copy);
  pointer-events: auto;
}

body.is-chat-home .chat-root--home .chat-agent-panel.is-collapsed {
  display: none !important;
}

body.is-chat-home .chat-root--home .chat-account-toolbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.34rem;
  align-items: center;
}

body.is-chat-home .chat-root--home .chat-account-toolbar .chat-mode-picker {
  grid-column: auto;
  width: 100%;
}

body.is-chat-home .chat-root--home .chat-account-panel .chat-agent-toggle {
  order: 0 !important;
  align-self: center !important;
  justify-self: end !important;
  width: 2rem !important;
  min-width: 2rem !important;
  max-width: 2rem !important;
  height: 2rem !important;
  min-height: 2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--pf-chat-neon) !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: var(--pf-chat-neon) !important;
  cursor: pointer;
}

body.is-chat-home .chat-root--home .chat-account-panel .chat-agent-toggle.is-active {
  background: var(--pf-chat-neon-soft) !important;
}

body.is-chat-home .chat-root--home .chat-account-panel .chat-agent-toggle::before {
  inset: 0.38rem !important;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a4 4 0 0 1 4 4v1h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h2V6a4 4 0 0 1 4-4Zm0 2a2 2 0 0 0-2 2v1h4V6a2 2 0 0 0-2-2Zm-1 8.2V11h2v1.2a1 1 0 1 1-2 0Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a4 4 0 0 1 4 4v1h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h2V6a4 4 0 0 1 4-4Zm0 2a2 2 0 0 0-2 2v1h4V6a2 2 0 0 0-2-2Zm-1 8.2V11h2v1.2a1 1 0 1 1-2 0Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.is-chat-home .chat-root--home .chat-account-panel .chat-agent-toggle.hidden {
  display: none !important;
}

body.is-chat-home .chat-root--home .chat-agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

body.is-chat-home .chat-root--home .chat-agent-collapse {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 1px solid var(--custom-line);
  border-radius: 4px;
  background: transparent;
  color: var(--custom-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

body.is-chat-home .chat-root--home .chat-agent-collapse:hover {
  color: var(--pf-chat-neon);
  border-color: var(--pf-chat-neon);
}

:root[data-manual-theme="dark"] body.is-chat-home .chat-root--home .chat-agent-panel {
  background: rgba(21, 21, 21, 0.78);
}

body.is-chat-home .chat-root--home .chat-agent-panel.hidden {
  display: none;
}

body.is-chat-home .chat-root--home .chat-agent-title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pf-chat-neon);
}

body.is-chat-home .chat-root--home .chat-agent-lead,
body.is-chat-home .chat-root--home .chat-agent-status {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.35;
  color: var(--custom-muted);
}

body.is-chat-home .chat-root--home .agent-mode-login-form,
body.is-chat-home .chat-root--home .agent-mode-loop-form {
  display: grid;
  gap: 0.34rem;
}

body.is-chat-home .chat-root--home .agent-mode-login-form label,
body.is-chat-home .chat-root--home .agent-mode-loop-form label {
  font-size: 0.58rem;
  color: var(--custom-muted);
}

body.is-chat-home .chat-root--home .agent-mode-login-form input,
body.is-chat-home .chat-root--home .agent-mode-loop-form textarea,
body.is-chat-home .chat-root--home .agent-mode-loop-form select {
  width: 100%;
  min-width: 0;
  padding: 0.34rem 0.48rem;
  border: 1px solid var(--custom-line);
  border-radius: 6px;
  background: transparent;
  color: var(--custom-ink);
  font: inherit;
  font-size: 0.72rem;
}

body.is-chat-home .chat-root--home .agent-mode-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.62rem;
  padding: 0.18rem 0;
  border-bottom: 1px solid var(--custom-line);
}

body.is-chat-home .chat-root--home .agent-mode-row:last-child {
  border-bottom: 0;
}

body.is-chat-home .chat-root--home .chat-agent-gmail,
body.is-chat-home .chat-root--home .chat-agent-logout,
body.is-chat-home .chat-root--home .agent-mode-login-form button,
body.is-chat-home .chat-root--home .agent-mode-loop-form button {
  justify-self: start;
  height: 2rem;
  padding: 0 0.62rem;
  border: 1px solid var(--pf-chat-neon);
  border-radius: 6px;
  background: transparent;
  color: var(--pf-chat-neon);
  font: inherit;
  font-size: 0.64rem;
  cursor: pointer;
}

body.is-chat-home .chat-root--home .agent-mode-loop-output {
  margin: 0;
  max-height: 9rem;
  overflow: auto;
  padding: 0.42rem;
  border-radius: 6px;
  border: 1px solid var(--custom-line);
  background: rgba(0, 0, 0, 0.04);
  font-size: 0.58rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

/* Compact thinking state */
body.is-chat-home .chat-root--home .chat-thinking {
  width: 100% !important;
  max-width: min(100%, 520px) !important;
  margin-top: 0.28rem !important;
}

body.is-chat-home .chat-root--home .chat-think-panel {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  min-height: 0 !important;
  padding: 0.42rem 0.55rem !important;
  border: 1px solid var(--custom-line) !important;
  border-radius: 8px !important;
  background: rgba(238, 238, 238, 0.72) !important;
  color: var(--custom-copy) !important;
  box-shadow: none !important;
}

body.is-chat-home .chat-root--home .chat-think-head {
  display: flex !important;
  align-items: center !important;
  gap: 0.42rem !important;
  min-width: 0 !important;
}

body.is-chat-home .chat-root--home .chat-think-panel--has-steps .chat-think-head {
  padding-bottom: 0.35rem !important;
}

body.is-chat-home .chat-root--home .chat-think-steps {
  margin: 0 !important;
  padding-top: 0.35rem !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

:root[data-manual-theme="dark"] body.is-chat-home .chat-root--home .chat-think-steps {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

:root[data-manual-theme="dark"] body.is-chat-home .chat-root--home .chat-think-panel {
  background: rgba(21, 21, 21, 0.78) !important;
}

body.is-chat-home .chat-root--home .chat-viewfinder {
  position: relative !important;
  width: 0.72rem !important;
  height: 0.72rem !important;
}

body.is-chat-home .chat-root--home .chat-viewfinder-corner,
body.is-chat-home .chat-root--home .chat-focus-ring {
  display: none !important;
}

body.is-chat-home .chat-root--home .chat-shutter-dot {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 0.46rem !important;
  height: 0.46rem !important;
  margin: -0.23rem 0 0 -0.23rem !important;
  border: 1px solid var(--pf-chat-neon) !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.34) !important;
  animation: pfThinkingPulse 1.35s ease-in-out infinite !important;
}

body.is-chat-home .chat-root--home .chat-shutter-dot::after {
  content: "" !important;
  position: absolute !important;
  inset: 0.13rem !important;
  border-radius: 999px !important;
  background: var(--pf-chat-neon) !important;
}

body.is-chat-home .chat-root--home .chat-think-sub {
  margin: 0 !important;
  color: var(--pf-chat-neon) !important;
  font-size: 0.64rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.is-chat-home .chat-root--home .chat-think-panel--has-steps .chat-think-sub {
  color: var(--pf-chat-neon) !important;
}

body.is-chat-home .chat-root--home .chat-tool--dictate {
  cursor: pointer !important;
  z-index: 2 !important;
}

body.is-chat-home .chat-root--home .chat-compose.is-dictating .chat-form {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pf-chat-neon) 55%, transparent) !important;
}

.chat-dictate-status {
  display: none;
  width: min(735px, calc(100vw - 2rem));
  margin: 0.35rem auto 0;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #9eb4c7;
  text-align: center;
}

.chat-dictate-status.is-visible {
  display: block;
}

.chat-dictate-status.is-listening {
  color: var(--pf-chat-neon, #00d9ff);
  background: color-mix(in srgb, var(--pf-chat-neon) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--pf-chat-neon) 28%, transparent);
}

.chat-dictate-status.is-error {
  color: #ffb4b4;
  background: color-mix(in srgb, #ff5d5d 12%, transparent);
  border: 1px solid color-mix(in srgb, #ff5d5d 35%, transparent);
}

.chat-dictate-status.is-ok {
  color: #b8f5c7;
  background: color-mix(in srgb, #39ff14 10%, transparent);
  border: 1px solid color-mix(in srgb, #39ff14 28%, transparent);
}

@keyframes pfThinkingPulse {
  0%, 100% {
    opacity: 0.55;
    box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.26);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(0, 217, 255, 0);
  }
}

/* Router decision-tree overlay */
.chat-router-toggle {
  position: relative;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 0.55rem;
  background: transparent;
  color: var(--pf-chat-neon, #00d9ff);
  cursor: pointer;
  padding: 0;
}

.chat-router-toggle:hover {
  border-color: rgba(0, 217, 255, 0.55);
  background: rgba(0, 217, 255, 0.08);
}

.chat-router-toggle.has-route::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #39ff14;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.chat-router-toggle-icon {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(var(--pf-chat-neon, #00d9ff), var(--pf-chat-neon, #00d9ff)) center/1px 62% no-repeat,
    linear-gradient(90deg, transparent 18%, var(--pf-chat-neon, #00d9ff) 18%, var(--pf-chat-neon, #00d9ff) 34%, transparent 34%) center 28%/100% 1px no-repeat,
    linear-gradient(90deg, transparent 18%, var(--pf-chat-neon, #00d9ff) 18%, var(--pf-chat-neon, #00d9ff) 50%, transparent 50%) center 72%/100% 1px no-repeat;
  opacity: 0.92;
}

.chat-router-overlay {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.chat-router-overlay.is-open {
  display: flex;
}

.chat-router-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(4px);
}

.chat-router-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(8, 14, 22, 0.98), rgba(5, 10, 16, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.chat-router-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0.65rem;
  border-bottom: 1px solid rgba(0, 217, 255, 0.14);
  position: sticky;
  top: 0;
  background: inherit;
}

.chat-router-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 217, 255, 0.72);
}

.chat-router-title {
  margin: 0.2rem 0 0;
  font-size: 1.1rem;
  color: #f4fbff;
}

.chat-router-close {
  border: 0;
  background: transparent;
  color: #9eb4c7;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.chat-router-body {
  padding: 0.9rem 1.1rem 1.2rem;
}

.route-overlay-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.route-overlay-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 217, 255, 0.22);
  background: rgba(0, 217, 255, 0.06);
  color: #d7f7ff;
  font-size: 0.72rem;
}

.route-overlay-ask {
  margin: 0 0 1rem;
  color: #9eb4c7;
  font-size: 0.82rem;
}

.route-overlay-section + .route-overlay-section {
  margin-top: 1.1rem;
}

.route-overlay-section h3 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 217, 255, 0.78);
}

.route-overlay-lead,
.route-tree-empty {
  margin: 0 0 0.55rem;
  color: #8fa4b8;
  font-size: 0.78rem;
}

.route-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.route-tree--pipeline {
  counter-reset: route-step;
}

.route-tree--pipeline > .route-tree-node {
  counter-increment: route-step;
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
}

.route-tree--pipeline > .route-tree-node::before {
  content: counter(route-step);
  position: absolute;
  left: 0;
  top: 0.12rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 217, 255, 0.35);
  color: #00d9ff;
  font-size: 0.62rem;
  line-height: 0.95rem;
  text-align: center;
}

.route-tree-node {
  border-left: 2px solid rgba(0, 217, 255, 0.12);
  padding: 0.35rem 0 0.35rem 0.7rem;
}

.route-tree-node--done,
.route-tree-node--matched {
  border-left-color: rgba(57, 255, 20, 0.55);
}

.route-tree-node--active,
.route-tree-node--running {
  border-left-color: rgba(0, 217, 255, 0.85);
  background: rgba(0, 217, 255, 0.05);
}

.route-tree-node--skipped,
.route-tree-node--idle {
  opacity: 0.62;
}

.route-tree-node--error {
  border-left-color: rgba(255, 96, 96, 0.8);
}

.route-tree-node-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.route-tree-status {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(159, 180, 199, 0.55);
  flex: 0 0 auto;
}

.route-tree-node--done .route-tree-status,
.route-tree-node--matched .route-tree-status {
  background: #39ff14;
}

.route-tree-node--active .route-tree-status,
.route-tree-node--running .route-tree-status {
  background: #00d9ff;
  box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.18);
}

.route-tree-label {
  color: #eef7ff;
  font-size: 0.82rem;
}

.route-tree-lane {
  margin-left: auto;
  color: #7ea0b8;
  font-size: 0.68rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.route-tree-detail {
  margin: 0.2rem 0 0;
  color: #9eb4c7;
  font-size: 0.74rem;
}

.route-tree-file {
  display: block;
  margin-top: 0.22rem;
  color: #67d4ff;
  font-size: 0.68rem;
  word-break: break-all;
}

.route-overlay-files {
  margin: 0;
  padding-left: 1rem;
  color: #9eb4c7;
  font-size: 0.72rem;
}

.route-overlay-files code {
  color: #67d4ff;
}

.chat-head-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
