﻿/* Themed hover clouds — distinct from panels, same design tokens */

.innet-tooltip {
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  max-width: min(14rem, calc(100vw - 1.25rem));
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--border-subtle) 90%, var(--accent-pop, var(--accent)) 10%);
  background: color-mix(in srgb, var(--surface) 96%, var(--bg-subtle, var(--bg)));
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--bg) 50%, black);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--text);
  text-align: center;
  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: color-mix(in srgb, var(--surface) 94%, var(--bg-subtle, var(--bg)));
  border-right: 1px solid color-mix(in srgb, var(--accent-pop, var(--accent)) 18%, var(--border-subtle));
  border-bottom: 1px solid color-mix(in srgb, var(--accent-pop, var(--accent)) 18%, var(--border-subtle));
  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: 1px solid color-mix(in srgb, var(--accent-pop, var(--accent)) 18%, var(--border-subtle));
  border-top: 1px solid color-mix(in srgb, var(--accent-pop, var(--accent)) 18%, var(--border-subtle));
  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);
}

.header-tools__display .tool-chip--idle:hover,
.header-tools__display .tool-chip--active:hover {
  background: color-mix(in srgb, var(--surface-muted) 50%, transparent);
  box-shadow: none;
}
