/* Themed hover clouds — distinct from panels, same design tokens */

.innet-tooltip {
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  box-sizing: border-box;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-lg, 16px);
  border: 2px solid var(--accent);
  background: var(--surface);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--text) 16%, transparent);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--text);
  text-align: start;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transform: none;
  transition: opacity 0.16s ease;
}

.innet-tooltip.is-visible {
  opacity: 1;
}

.innet-tooltip::after {
  content: "";
  position: absolute;
  left: var(--tip-arrow-x, 50%);
  bottom: -5px;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  background: var(--surface);
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  border-radius: 0 0 2px 0;
}

.innet-tooltip--below::after {
  bottom: auto;
  top: -5px;
  border-right: none;
  border-bottom: none;
  border-left: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  border-radius: 2px 0 0 0;
}

.innet-tooltip__mark {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-pop, var(--accent));
}

html[data-vision~="cb"] .innet-tooltip {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

html[data-vision~="cb"] .innet-tooltip__mark {
  color: var(--accent-pop);
}

@media (prefers-reduced-motion: reduce) {
  .innet-tooltip {
    transition: none;
  }
}

/* Header tool chips — visible “pressed” state */

.header-tools__display .tool-chip {
  /* Keep circular chips — do not flatten chrome-tools 999px */
  border-radius: 999px;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.15s ease;
}

.header-tools__display .tool-chip--idle {
  background: transparent;
  box-shadow: none;
}

.header-tools__display .tool-chip--active {
  background: color-mix(in srgb, var(--surface-muted) 40%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border-subtle) 70%, transparent);
  color: var(--text);
  opacity: 1;
}

.header-tools__display .theme-cycle-btn.tool-chip--active[data-theme-mode="light"],
.header-tools__display .theme-cycle-btn.tool-chip--active[data-theme-mode="dark"],
.header-tools__display .theme-cycle-btn.tool-chip--active[data-theme-mode="dim"] {
  background: color-mix(in srgb, var(--surface-muted) 40%, transparent);
}

.header-tools__lang .lang-dropdown__toggle.tool-chip--active {
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
}

@media (hover: hover) and (pointer: fine) {
.header-tools__display .tool-chip--idle:hover,
.header-tools__display .tool-chip--active:hover {
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  box-shadow: none;
}
}
