/* Theyia nav chrome — hors canvas, pointer-events locaux uniquement */

.og-zoomin-button,
.og-zoomout-button {
  display: none !important;
}

.theyia-nav {
  --tn-gap: 9px;
  --tn-compass: 40px;
  --tn-zoom-btn: 30px;
  --tn-accent: #5b6cff;
  --tn-accent-soft: rgba(79, 70, 229, 0.35);
  --tn-panel: rgba(32, 33, 36, 0.92);
  --tn-text: #e8eaed;
  --tn-muted: #9aa0a6;
  --tn-radius: 12px;

  position: absolute;
  right: 14px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--tn-gap);
  pointer-events: none;
  font-family: "Segoe UI", system-ui, sans-serif;
  user-select: none;
}

.theyia-nav * {
  box-sizing: border-box;
}

.theyia-nav__compass-anchor {
  position: relative;
  width: var(--tn-compass);
  height: var(--tn-compass);
  pointer-events: auto;
}

.theyia-nav__compass {
  width: var(--tn-compass);
  height: var(--tn-compass);
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  display: block;
  overflow: visible;
  background: transparent;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.34),
    0 6px 18px -6px rgba(0, 0, 0, 0.55);
}

.theyia-nav__compass--active {
  box-shadow:
    0 0 0 2px var(--tn-accent),
    0 1px 2px rgba(0, 0, 0, 0.34),
    0 6px 18px -6px rgba(0, 0, 0, 0.55);
}

.theyia-nav__bezel,
.theyia-nav__needle {
  position: absolute;
  inset: 0;
  display: block;
}

.theyia-nav__needle {
  transform-origin: 50% 50%;
  will-change: transform;
}

.theyia-nav__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.theyia-nav__n {
  fill: #ff2b45;
  font-size: 8px;
  font-weight: 700;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.theyia-nav__needle-n {
  fill: #ff2b45;
}

.theyia-nav__needle-s {
  fill: #cecece;
}

.theyia-nav__needle-hub {
  fill: #3c4043;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 0.6;
}

.theyia-nav__needle-pin {
  fill: #e8eaed;
}

.theyia-nav__panel {
  position: absolute;
  right: calc(100% + 10px);
  bottom: calc(-1 * (var(--tn-gap) + var(--tn-zoom-btn) * 2));
  height: calc(var(--tn-compass) + 2 * (var(--tn-gap) + var(--tn-zoom-btn) * 2));
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  padding: 8px 10px;
  background: var(--tn-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--tn-radius);
  box-shadow:
    0 2px 12px -4px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  pointer-events: auto;
  touch-action: auto;
}

.theyia-nav__panel--hidden {
  display: none;
}

.theyia-nav__presets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 40px;
  flex: 1;
  align-self: stretch;
  min-height: 88px;
}

.theyia-nav__preset {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 0;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, var(--tn-accent-soft) 0%, rgba(79, 70, 229, 0.18) 100%);
  color: #fff;
  cursor: pointer;
}

.theyia-nav__preset:hover {
  filter: brightness(1.08);
}

.theyia-nav__preset:active {
  transform: scale(0.96);
}

.theyia-nav__preset-icon {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.theyia-nav__preset--solo .theyia-nav__preset-icon {
  font-size: 14px;
}

.theyia-nav__preset-label {
  font-size: 9px;
  font-weight: 650;
  line-height: 1.1;
  opacity: 0.92;
}

.theyia-nav__control {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 40px;
  min-width: 0;
  align-self: stretch;
}

.theyia-nav__label {
  font-size: 10px;
  font-weight: 550;
  color: var(--tn-muted);
  text-align: center;
  line-height: 1.2;
}

.theyia-nav__val {
  font-size: 11px;
  font-weight: 600;
  color: var(--tn-text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.theyia-nav__slider {
  flex: 1;
  width: 32px;
  height: auto;
  min-height: 88px;
  margin: 0;
  padding: 0;
  accent-color: var(--tn-accent);
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  writing-mode: vertical-lr;
  direction: rtl;
  cursor: pointer;
  outline: none;
}

.theyia-nav__slider:focus,
.theyia-nav__slider:focus-visible {
  outline: none;
  box-shadow: none;
}

.theyia-nav__slider--heading {
  direction: ltr;
}

.theyia-nav__zoom {
  display: flex;
  flex-direction: column;
  width: var(--tn-zoom-btn);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(60, 64, 67, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 10px -4px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.theyia-nav__zoom-btn {
  width: var(--tn-zoom-btn);
  height: var(--tn-zoom-btn);
  border: none;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.theyia-nav__zoom-btn + .theyia-nav__zoom-btn {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.theyia-nav__zoom-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.theyia-nav__zoom-btn:active {
  background: rgba(255, 255, 255, 0.14);
}
