/*
Purpose: style the Mullu page guide, target highlight, and action panel.
Governance scope: visible helper state, bounded interaction surface, and non-overlapping fixed overlays.
Dependencies: assets/helper/mullu-eye-helper-v3.bundle.js and browser DOM APIs.
Invariants: helper chrome stays above page content, does not cover primary navigation or coarse-pointer content, and preserves readable action controls.
*/

:root {
  --mullu-eye-helper-bg: var(--nav-elevated, rgba(5, 8, 13, 0.92));
  --mullu-eye-helper-panel: var(--panel-glass, rgba(13, 16, 24, 0.9));
  --mullu-eye-helper-field: var(--panel-field, rgba(13, 16, 24, 0.7));
  --mullu-eye-helper-line: var(--line-bright, rgba(126, 247, 209, 0.26));
  --mullu-eye-helper-text: var(--ink, #e9eaef);
  --mullu-eye-helper-muted: var(--ink-soft, #99a0b4);
  --mullu-eye-helper-accent: var(--accent, #5ce6c4);
  --mullu-eye-helper-warn: var(--accent-warm, #e8b15c);
  --mullu-eye-helper-danger: var(--danger, #ff6f91);
  --mullu-eye-helper-shadow: var(--shadow, 0 18px 48px rgba(0, 0, 0, 0.28));
  --mullu-eye-helper-eye-x: 0px;
  --mullu-eye-helper-eye-y: 0px;
}

html.mullu-eye-helper-eye-x--3 { --mullu-eye-helper-eye-x: -3px; }
html.mullu-eye-helper-eye-x--2 { --mullu-eye-helper-eye-x: -2px; }
html.mullu-eye-helper-eye-x--1 { --mullu-eye-helper-eye-x: -1px; }
html.mullu-eye-helper-eye-x-0 { --mullu-eye-helper-eye-x: 0px; }
html.mullu-eye-helper-eye-x-1 { --mullu-eye-helper-eye-x: 1px; }
html.mullu-eye-helper-eye-x-2 { --mullu-eye-helper-eye-x: 2px; }
html.mullu-eye-helper-eye-x-3 { --mullu-eye-helper-eye-x: 3px; }
html.mullu-eye-helper-eye-y--2 { --mullu-eye-helper-eye-y: -2px; }
html.mullu-eye-helper-eye-y--1 { --mullu-eye-helper-eye-y: -1px; }
html.mullu-eye-helper-eye-y-0 { --mullu-eye-helper-eye-y: 0px; }
html.mullu-eye-helper-eye-y-1 { --mullu-eye-helper-eye-y: 1px; }
html.mullu-eye-helper-eye-y-2 { --mullu-eye-helper-eye-y: 2px; }

.mullu-eye-helper-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483002;
  display: inline-flex;
  align-items: center;
  min-width: 76px;
  max-width: min(320px, calc(100vw - 32px));
  height: 48px;
  padding: 6px 14px;
  border: 1px solid var(--mullu-eye-helper-line);
  border-radius: 8px;
  color: var(--mullu-eye-helper-text);
  background: var(--mullu-eye-helper-bg);
  box-shadow: var(--mullu-eye-helper-shadow);
  cursor: pointer !important;
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace);
  user-select: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mullu-eye-helper-dock:focus-visible,
.mullu-eye-helper-panel button:focus-visible {
  outline: 2px solid var(--mullu-eye-helper-accent);
  outline-offset: 3px;
}

.mullu-eye-helper-dock-eyes,
.mullu-eye-helper-cursor-eyes {
  display: inline-grid;
  grid-template-columns: repeat(2, 18px);
  gap: 4px;
  align-items: center;
  transform-origin: center;
}

.mullu-eye-helper-eye {
  position: relative;
  overflow: hidden;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(126, 247, 209, 0.7);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.92) 0 6px, rgba(126, 247, 209, 0.92) 7px 9px, rgba(19, 35, 44, 0.92) 10px 11px, transparent 12px),
    linear-gradient(135deg, rgba(243, 255, 249, 0.96), rgba(126, 247, 209, 0.72));
  box-shadow: 0 0 18px rgba(126, 247, 209, 0.18);
  animation: mullu-eye-helper-eye-breathe 3.8s ease-in-out infinite;
}

.mullu-eye-helper-eye::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.92) 0 1px, transparent 2px),
    #051018;
  box-shadow:
    0 0 0 2px rgba(4, 11, 17, 0.18),
    0 0 8px rgba(126, 247, 209, 0.36);
  content: "";
  transform: translate(
    calc(-50% + var(--mullu-eye-helper-eye-x)),
    calc(-50% + var(--mullu-eye-helper-eye-y))
  );
  transition: transform 120ms ease-out;
}

.mullu-eye-helper-eye::after {
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.96), rgba(10, 18, 24, 0.94));
  content: "";
  transform: scaleY(0);
  transform-origin: top;
  animation: mullu-eye-helper-blink 6.2s infinite;
}

.mullu-eye-helper-dock[aria-pressed="false"] .mullu-eye-helper-eye::after {
  inset: 7px 2px auto;
  height: 2px;
  border-radius: 99px;
  background: rgba(126, 247, 209, 0.86);
  transform: scaleY(1);
  animation: mullu-eye-helper-sleep-twitch 7.6s ease-in-out infinite;
  transform-origin: center;
}

.mullu-eye-helper-dock[aria-pressed="false"]:hover .mullu-eye-helper-eye::before,
.mullu-eye-helper-dock[aria-pressed="false"]:focus-visible .mullu-eye-helper-eye::before {
  animation: mullu-eye-helper-peek-gaze 1.4s ease-in-out infinite;
}

.mullu-eye-helper-dock[aria-pressed="false"]:hover .mullu-eye-helper-eye::after,
.mullu-eye-helper-dock[aria-pressed="false"]:focus-visible .mullu-eye-helper-eye::after {
  inset: -1px;
  height: auto;
  transform: scaleY(0);
  animation: mullu-eye-helper-blink 5.4s infinite;
}

.mullu-eye-helper-dock[aria-pressed="true"] {
  border-color: var(--mullu-eye-helper-accent);
  color: var(--selection-ink, #050609);
  background: var(--mullu-eye-helper-accent);
}

.mullu-eye-helper-dock[aria-pressed="true"]::after {
  content: "Click page";
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: min(180px, calc(100vw - 24px));
  padding: 5px 8px;
  border: 1px solid rgba(126, 247, 209, 0.24);
  border-radius: 8px;
  color: var(--mullu-eye-helper-text);
  background: var(--mullu-eye-helper-bg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  pointer-events: none;
}

html.mullu-eye-helper-waking .mullu-eye-helper-dock[aria-pressed="true"] {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), 0 0 0 2px rgba(126, 247, 209, 0.14);
}

html.mullu-eye-helper-risky .mullu-eye-helper-dock[aria-pressed="true"],
html.mullu-eye-helper-risky .mullu-eye-helper-highlight {
  border-color: rgba(255, 209, 102, 0.72);
}

html.mullu-eye-helper-risky .mullu-eye-helper-eye {
  border-color: rgba(255, 209, 102, 0.86);
  box-shadow: 0 0 22px rgba(255, 209, 102, 0.24);
}

html.mullu-eye-helper-risky .mullu-eye-helper-eye::before {
  box-shadow:
    0 0 0 2px rgba(4, 11, 17, 0.18),
    0 0 12px rgba(255, 209, 102, 0.44);
}

html.mullu-eye-helper-pinned .mullu-eye-helper-dock[aria-pressed="true"] {
  border-color: rgba(243, 255, 249, 0.72);
}

html.mullu-eye-helper-scanning .mullu-eye-helper-dock[aria-pressed="true"] {
  border-color: rgba(116, 192, 252, 0.62);
}

html.mullu-eye-helper-scanning .mullu-eye-helper-eye::before {
  animation: mullu-eye-helper-search-saccade 1.72s steps(1, end) infinite;
}

html.mullu-eye-helper-keyboard-lock .mullu-eye-helper-highlight {
  border-color: rgba(186, 156, 255, 0.8);
  box-shadow:
    0 0 0 1px rgba(5, 8, 13, 0.74),
    0 0 32px rgba(186, 156, 255, 0.28);
}

html.mullu-eye-helper-panel-open .mullu-eye-helper-dock[aria-pressed="true"] .mullu-eye-helper-eye {
  box-shadow:
    0 0 0 2px rgba(126, 247, 209, 0.14),
    0 0 24px rgba(126, 247, 209, 0.34);
}

html.mullu-eye-helper-pinned .mullu-eye-helper-highlight {
  border-width: 3px;
  box-shadow:
    0 0 0 1px rgba(5, 8, 13, 0.74),
    0 0 34px rgba(243, 255, 249, 0.26);
  animation: mullu-eye-helper-pin-hold 2.4s ease-in-out infinite;
}

html.mullu-eye-helper-revealing .mullu-eye-helper-highlight {
  animation:
    mullu-eye-helper-reveal-pulse 920ms ease-out 1,
    mullu-eye-helper-target-scan 1.8s ease-in-out infinite 920ms;
}

html.mullu-eye-helper-target-link:not(.mullu-eye-helper-risky) .mullu-eye-helper-highlight {
  border-color: rgba(116, 192, 252, 0.72);
}

html.mullu-eye-helper-target-button:not(.mullu-eye-helper-risky) .mullu-eye-helper-highlight {
  border-color: rgba(126, 247, 209, 0.82);
  box-shadow:
    0 0 0 1px rgba(5, 8, 13, 0.74),
    0 0 30px rgba(126, 247, 209, 0.28);
}

html.mullu-eye-helper-target-input:not(.mullu-eye-helper-risky) .mullu-eye-helper-eye {
  border-color: rgba(186, 156, 255, 0.76);
}

html.mullu-eye-helper-target-card:not(.mullu-eye-helper-risky) .mullu-eye-helper-highlight,
html.mullu-eye-helper-target-section:not(.mullu-eye-helper-risky) .mullu-eye-helper-highlight {
  border-style: dashed;
}

.mullu-eye-helper-dock-label {
  overflow: hidden;
  min-width: 72px;
  max-width: 210px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mullu-eye-helper-sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mullu-eye-helper-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483001;
  isolation: isolate;
  width: 54px;
  height: 34px;
  opacity: 0.96;
  pointer-events: none;
  transform: translate3d(-200px, -200px, 0);
  will-change: transform;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.34));
  transition: opacity 140ms ease;
  animation: mullu-eye-helper-cursor-float 2.8s ease-in-out infinite;
}

.mullu-eye-helper-cursor[hidden],
.mullu-eye-helper-highlight[hidden],
.mullu-eye-helper-panel[hidden] {
  display: none !important;
}

.mullu-eye-helper-cursor-eyes {
  transform: scale(1);
  transform-origin: center;
}

.mullu-eye-helper-cursor-size-compact .mullu-eye-helper-cursor-eyes {
  transform: scale(0.86);
}

.mullu-eye-helper-cursor-size-expanded .mullu-eye-helper-cursor-eyes {
  transform: scale(1.12);
}

.mullu-eye-helper-cursor .mullu-eye-helper-eye {
  animation-duration: 2.9s;
}

.mullu-eye-helper-highlight {
  position: fixed;
  left: 6px;
  top: 6px;
  z-index: 2147483000;
  border: 2px solid var(--mullu-eye-helper-accent);
  border-radius: 8px;
  pointer-events: none;
  box-shadow:
    0 0 0 1px var(--bg, rgba(5, 8, 13, 0.74)),
    0 0 0 5px color-mix(in srgb, var(--mullu-eye-helper-accent) 13%, transparent);
  transition: left 120ms ease, top 120ms ease, width 120ms ease, height 120ms ease, opacity 120ms ease;
  animation: mullu-eye-helper-target-scan 1.8s ease-in-out infinite;
}

.mullu-eye-helper-panel {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 2147483003;
  width: min(340px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 96px));
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--mullu-eye-helper-line);
  border-radius: 8px;
  color: var(--mullu-eye-helper-text);
  background: var(--mullu-eye-helper-panel);
  box-shadow: var(--mullu-eye-helper-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mullu-eye-helper-fallback-field {
  position: fixed;
  left: -9999px;
  top: 0;
}

.mullu-eye-helper-panel-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.mullu-eye-helper-kicker {
  margin: 0 0 4px;
  color: var(--mullu-eye-helper-accent);
  font-size: 11px;
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mullu-eye-helper-title {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-height: calc(1.25em * 2);
  font-size: 16px;
  line-height: 1.25;
}

.mullu-eye-helper-close {
  min-width: 52px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--mullu-eye-helper-line);
  border-radius: 8px;
  color: var(--mullu-eye-helper-text);
  background: transparent;
  cursor: pointer !important;
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace);
  font-size: 11px;
  font-weight: 700;
}

.mullu-eye-helper-summary {
  margin: 0 0 12px;
  color: var(--mullu-eye-helper-muted);
  font-size: 13px;
  line-height: 1.45;
}

.mullu-eye-helper-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
}

.mullu-eye-helper-modes button {
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid rgba(126, 247, 209, 0.18);
  border-radius: 8px;
  color: var(--mullu-eye-helper-muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mullu-eye-helper-modes button[aria-pressed="true"] {
  border-color: var(--mullu-eye-helper-accent);
  color: var(--mullu-eye-helper-text);
  background: rgba(126, 247, 209, 0.12);
}

.mullu-eye-helper-modes button[data-mode="public-guide"][aria-pressed="true"] {
  border-color: rgba(126, 247, 209, 0.72);
  background: rgba(126, 247, 209, 0.13);
}

.mullu-eye-helper-modes button[data-mode="proof-lens"][aria-pressed="true"] {
  border-color: rgba(248, 213, 126, 0.72);
  background: rgba(248, 213, 126, 0.12);
}

.mullu-eye-helper-modes button[data-mode="builder-inspect"][aria-pressed="true"] {
  border-color: rgba(149, 174, 255, 0.72);
  background: rgba(149, 174, 255, 0.12);
}

.mullu-eye-helper-modes button:focus-visible {
  outline: 2px solid var(--mullu-eye-helper-accent);
  outline-offset: 2px;
}

.mullu-eye-helper-meta {
  display: grid;
  grid-template-columns: 0.5fr 0.72fr 1.15fr 1fr;
  gap: 6px;
  margin: 10px 0 10px;
}

.mullu-eye-helper-meta span {
  overflow: hidden;
  min-height: 24px;
  padding: 5px 7px;
  border: 1px solid color-mix(in srgb, var(--mullu-eye-helper-accent) 22%, transparent);
  border-radius: 8px;
  color: var(--mullu-eye-helper-muted);
  background: var(--mullu-eye-helper-field);
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mullu-eye-helper-meta .mullu-eye-helper-session-meta {
  grid-column: 1 / -1;
}

.mullu-eye-helper-actions {
  display: grid;
  gap: 8px;
}

.mullu-eye-helper-detail-actions {
  margin-top: 10px;
}

.mullu-eye-helper-actions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid var(--mullu-eye-helper-line);
  border-radius: 8px;
  color: var(--mullu-eye-helper-text);
  background: transparent;
  cursor: pointer !important;
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.mullu-eye-helper-actions button:hover {
  border-color: var(--mullu-eye-helper-accent);
  background: color-mix(in srgb, var(--mullu-eye-helper-accent) 8%, transparent);
  color: var(--mullu-eye-helper-accent);
}

.mullu-eye-helper-actions button:disabled {
  opacity: 0.46;
  cursor: default !important;
}

.mullu-eye-helper-actions button:disabled:hover {
  border-color: var(--mullu-eye-helper-line);
  color: var(--mullu-eye-helper-text);
  background: transparent;
}

.mullu-eye-helper-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--mullu-eye-helper-line) 70%, transparent);
}

.mullu-eye-helper-details-toggle {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--mullu-eye-helper-line);
  border-radius: 8px;
  color: var(--mullu-eye-helper-muted);
  background: transparent;
  cursor: pointer !important;
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.mullu-eye-helper-details-toggle:hover {
  border-color: var(--mullu-eye-helper-accent);
  color: var(--mullu-eye-helper-accent);
  background: color-mix(in srgb, var(--mullu-eye-helper-accent) 7%, transparent);
}

.mullu-eye-helper-details-region {
  display: grid;
  gap: 10px;
}

.mullu-eye-helper-details-intro {
  margin: 10px 0 0;
  color: var(--mullu-eye-helper-muted);
  font-size: 12px;
  line-height: 1.4;
}

.mullu-eye-helper-actions button[data-confirmation="true"] {
  border-color: color-mix(in srgb, var(--mullu-eye-helper-warn) 42%, transparent);
}

.mullu-eye-helper-action-note {
  color: var(--mullu-eye-helper-muted);
  font-size: 11px;
  font-weight: 700;
}

.mullu-eye-helper-warning {
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--mullu-eye-helper-warn) 36%, transparent);
  border-radius: 8px;
  color: var(--mullu-eye-helper-warn);
  background: color-mix(in srgb, var(--mullu-eye-helper-warn) 9%, transparent);
  font-size: 12px;
  line-height: 1.4;
}

.mullu-eye-helper-explanation {
  margin: 0 0 12px;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--mullu-eye-helper-accent) 28%, transparent);
  border-radius: 8px;
  color: var(--mullu-eye-helper-text);
  background: color-mix(in srgb, var(--mullu-eye-helper-accent) 8%, transparent);
}

.mullu-eye-helper-explanation-label {
  margin: 0 0 6px;
  color: var(--mullu-eye-helper-accent);
  font-size: 11px;
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.mullu-eye-helper-explanation p:last-child {
  margin: 0;
  font-size: 13px;
  line-height: 1.48;
}

.mullu-eye-helper-toast {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 2147483004;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid var(--mullu-eye-helper-line);
  border-radius: 8px;
  color: var(--mullu-eye-helper-text);
  background: var(--mullu-eye-helper-bg);
  box-shadow: var(--mullu-eye-helper-shadow);
  font-size: 13px;
  line-height: 1.35;
}

.mullu-eye-helper-toast[hidden] {
  display: none;
}

html.mullu-eye-helper-active,
html.mullu-eye-helper-active body,
html.mullu-eye-helper-active body *:not(input):not(textarea):not(select):not([contenteditable="true"]):not([contenteditable="true"] *) {
  cursor: default !important;
}

html.mullu-eye-helper-active input,
html.mullu-eye-helper-active textarea,
html.mullu-eye-helper-active select,
html.mullu-eye-helper-active [contenteditable="true"] {
  cursor: text !important;
}

html.mullu-eye-helper-active .mullu-eye-helper-dock,
html.mullu-eye-helper-active .mullu-eye-helper-panel button {
  cursor: pointer !important;
}

html.mullu-eye-helper-active .mullu-eye-helper-panel .mullu-eye-helper-actions button:disabled {
  cursor: default !important;
}

html.mullu-eye-helper-active .mullu-eye-helper-panel .mullu-eye-helper-actions button:not(:disabled) {
  cursor: pointer !important;
}

html.mullu-eye-helper-active main :is(section, article, aside, a, button, input, textarea, select, [role="button"], [tabindex]:not([tabindex="-1"]), [data-surface], [data-mullu-helper]):hover {
  outline: 2px solid var(--mullu-eye-helper-accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--mullu-eye-helper-accent) 10%, transparent);
}

html.mullu-eye-helper-active main :is(section, article, aside, [data-surface], [data-mullu-helper]):hover:not(:has(:is(a, button, input, textarea, select, [role="button"], [tabindex]:not([tabindex="-1"])):hover)) {
  cursor: crosshair !important;
}

@keyframes mullu-eye-helper-dock-breathe {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: var(--mullu-eye-helper-shadow), 0 0 0 rgba(126, 247, 209, 0);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: var(--mullu-eye-helper-shadow), 0 0 20px rgba(126, 247, 209, 0.12);
  }
}

@keyframes mullu-eye-helper-awake-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: var(--mullu-eye-helper-shadow), 0 0 0 rgba(126, 247, 209, 0);
  }
  45% {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--mullu-eye-helper-shadow), 0 0 28px rgba(126, 247, 209, 0.2);
  }
}

@keyframes mullu-eye-helper-attention {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}

@keyframes mullu-eye-helper-wake-flash {
  0% {
    transform: translateY(0) scale(0.94);
    box-shadow: var(--mullu-eye-helper-shadow), 0 0 0 rgba(126, 247, 209, 0);
  }
  52% {
    transform: translateY(-3px) scale(1.06);
    box-shadow: var(--mullu-eye-helper-shadow), 0 0 34px rgba(126, 247, 209, 0.32);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: var(--mullu-eye-helper-shadow), 0 0 10px rgba(126, 247, 209, 0.12);
  }
}

@keyframes mullu-eye-helper-eye-breathe {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(126, 247, 209, 0.14);
  }
  50% {
    box-shadow: 0 0 22px rgba(126, 247, 209, 0.28);
  }
}

@keyframes mullu-eye-helper-blink {
  0%,
  90%,
  100% {
    transform: scaleY(0);
  }
  93%,
  95% {
    transform: scaleY(1);
  }
}

@keyframes mullu-eye-helper-sleep-twitch {
  0%,
  82%,
  100% {
    opacity: 0.86;
    transform: translateY(0) scaleX(1);
  }
  86% {
    opacity: 1;
    transform: translateY(-1px) scaleX(0.72);
  }
  90% {
    opacity: 0.86;
    transform: translateY(0) scaleX(1);
  }
}

@keyframes mullu-eye-helper-peek-gaze {
  0%,
  100% {
    transform: translate(calc(-50% - 2px), calc(-50% + 1px));
  }
  45% {
    transform: translate(calc(-50% + 2px), calc(-50% - 1px));
  }
  68% {
    transform: translate(calc(-50% + 1px), calc(-50% + 1px));
  }
}

@keyframes mullu-eye-helper-search-saccade {
  0%,
  100% {
    transform: translate(calc(-50% - 2px), calc(-50% - 1px));
  }
  22% {
    transform: translate(calc(-50% + 2px), calc(-50% + 1px));
  }
  48% {
    transform: translate(calc(-50% + 1px), calc(-50% - 2px));
  }
  74% {
    transform: translate(calc(-50% - 1px), calc(-50% + 2px));
  }
}

@keyframes mullu-eye-helper-cursor-float {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(126, 247, 209, 0));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(126, 247, 209, 0.22));
  }
}

@keyframes mullu-eye-helper-target-scan {
  0%,
  100% {
    opacity: 0.78;
  }
  50% {
    opacity: 1;
  }
}

@keyframes mullu-eye-helper-pin-hold {
  0%,
  100% {
    outline: 0 solid rgba(243, 255, 249, 0);
  }
  50% {
    outline: 4px solid rgba(243, 255, 249, 0.12);
  }
}

@keyframes mullu-eye-helper-reveal-pulse {
  0% {
    transform: scale(0.98);
    box-shadow:
      0 0 0 1px rgba(5, 8, 13, 0.74),
      0 0 0 rgba(243, 255, 249, 0);
  }
  42% {
    transform: scale(1.018);
    box-shadow:
      0 0 0 1px rgba(5, 8, 13, 0.74),
      0 0 42px rgba(243, 255, 249, 0.34);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 1px rgba(5, 8, 13, 0.74),
      0 0 26px rgba(126, 247, 209, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mullu-eye-helper-dock,
  .mullu-eye-helper-dock[aria-pressed="true"],
  html.mullu-eye-helper-waking .mullu-eye-helper-dock[aria-pressed="true"],
  .mullu-eye-helper-dock[aria-pressed="true"] .mullu-eye-helper-dock-eyes,
  html.mullu-eye-helper-scanning .mullu-eye-helper-eye::before,
  .mullu-eye-helper-eye,
  .mullu-eye-helper-dock[aria-pressed="false"]:hover .mullu-eye-helper-eye::before,
  .mullu-eye-helper-dock[aria-pressed="false"]:focus-visible .mullu-eye-helper-eye::before,
  .mullu-eye-helper-eye::after,
  .mullu-eye-helper-dock[aria-pressed="false"] .mullu-eye-helper-eye::after,
  .mullu-eye-helper-cursor,
  .mullu-eye-helper-highlight,
  html.mullu-eye-helper-pinned .mullu-eye-helper-highlight,
  html.mullu-eye-helper-revealing .mullu-eye-helper-highlight {
    animation: none;
  }

  .mullu-eye-helper-eye::before {
    transition: none;
  }
}

@media (max-width: 640px) {
  .mullu-eye-helper-dock {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
    min-width: 112px;
    max-width: calc(100vw - 20px);
    height: 44px;
    gap: 8px;
    padding: 0 12px;
    justify-content: center;
  }

  .mullu-eye-helper-dock-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: hidden;
    clip: auto;
    min-width: 0;
    max-width: 96px;
    white-space: nowrap;
  }

  .mullu-eye-helper-close,
  .mullu-eye-helper-modes button,
  .mullu-eye-helper-actions button,
  .mullu-eye-helper-details-toggle {
    min-height: 44px;
  }

  .mullu-eye-helper-close {
    height: 44px;
  }

  .mullu-eye-helper-toast {
    right: 12px;
    bottom: 70px;
  }

  .mullu-eye-helper-meta {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) and (pointer: coarse) {
  .mullu-eye-helper-cursor,
  .mullu-eye-helper-highlight,
  .mullu-eye-helper-toast {
    display: none !important;
  }
}
