/* Nestor's gaze (D-31), drawn flat since D-47. One eye, the same signs: the eye itself (Nestor), the ring around
   the disc (what waits for the user: amber to answer, accent for a result, grey for a stop), the lids (presence).
   Drawn by js/gaze.js. The disc is dark on a light page and light on a dark page. */
.nx { position: relative; display: inline-block; flex: none; vertical-align: middle; contain: layout style;
  --nx-disc: #14191C; --nx-ink: #FFFFFF; --nx-wait: #B45309; --nx-done: #0B6B63; --nx-block: #8A969D;
  --pupil: 1; --gx: 0px; --gy: 0px; --dim: 0; --up: 3px; --low: 0px; }
:root[data-lernaia-theme="dark"] .nx { --nx-disc: #ECEFF1; --nx-ink: #0F1214; --nx-wait: #F0B36E; --nx-done: #5CC8BA; --nx-block: #8A969D; }
.nx svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.nx-heads { display: none; }
.nx-eye, .nx-iris, .nx-pupil, .nx-orbit, .nx-ring, .nx-bloom { transform-origin: 24px 24px; }
.nx-disc, .nx-ball, .nx-cover, .nx-dim { fill: var(--nx-disc); }
.nx-out { fill: none; stroke: var(--nx-ink); stroke-width: 2; stroke-linejoin: round; transition: opacity .4s; }
.nx-gaze { transform: translate(var(--gx), var(--gy)); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.nx-iris { fill: none; stroke: var(--nx-ink); stroke-width: 1.9; }
.nx-pupil { fill: var(--nx-ink); transform: scale(var(--pupil)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.nx-dim { opacity: var(--dim); transition: opacity .5s; }
.nx-up { transform: translateY(var(--up)); transition: transform .45s cubic-bezier(.3, .7, .2, 1); }
.nx-low { transform: translateY(var(--low)); transition: transform .45s cubic-bezier(.3, .7, .2, 1); }
.nx-edge { fill: none; stroke: var(--nx-ink); stroke-width: 1.2; opacity: .55; }
.nx-orbit { fill: none; stroke: var(--nx-done); stroke-width: 2.4px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 22 120; opacity: 0; transition: opacity .3s; }
.nx-ring { fill: none; stroke-width: 2.4px; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: 0; transition: opacity .4s, transform .4s; }
.nx-r-block { stroke: var(--nx-block); stroke-dasharray: 118 24; transform: rotate(52deg); }
.nx-r-done { stroke: var(--nx-done); }
.nx-bloom { fill: none; stroke: var(--nx-done); stroke-width: 1.5; opacity: 0; }
.nx-wait { opacity: 0; transition: opacity .4s; } .nx-wait circle { stroke: var(--nx-wait); stroke-width: 2.4px; vector-effect: non-scaling-stroke; }
.nx-count { position: absolute; right: -10%; bottom: -8%; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center;
  font: 700 10.5px/1 var(--f-body, "Inter", system-ui, sans-serif); font-style: normal; font-variant-numeric: tabular-nums;
  color: var(--on-wait, #FFFFFF); background: var(--nx-wait); border: 1.5px solid var(--bg, #F5F6F7); }
.nx-count[data-kind="done"] { background: var(--nx-done); color: var(--on-accent, #FFFFFF); } .nx-count[data-kind="block"] { background: var(--nx-block); color: #0F1214; }
/* lids: presence (the eye is 14.4 units tall) */
.nx.l-open { --up: 0px; } .nx.l-rest { --up: 3px; } .nx.l-low { --up: 5.6px; } .nx.l-closed { --up: 7.8px; --low: -7.6px; }
/* the eye: what Nestor himself is doing */
.nx.i-ecoute { --pupil: 1.2; }
.nx.i-reflexion { --pupil: .9; --gx: -1.4px; --gy: -.8px; } .nx.i-reflexion .nx-orbit { opacity: 1; }
.nx.i-action { --pupil: .8; } .nx.i-action .nx-orbit { opacity: 1; }
.nx.i-reponse { --pupil: 1.1; }
.nx.i-fixe { --pupil: 1.15; }
.nx.i-bas { --pupil: .9; --gy: 1.2px; --dim: .35; }
.nx.i-eclat { --pupil: 1.1; }
.nx.i-off { --dim: .6; } .nx.i-off .nx-out { opacity: .5; }
/* the ring: what waits for the user. Two rings can live together: the result moves one step out. */
.nx.r-wait .nx-wait { opacity: 1; } .nx.r-block .nx-r-block { opacity: .9; } .nx.r-done .nx-r-done { opacity: 1; }
.nx.r-two .nx-r-done { transform: scale(1.1); }
/* small sizes: thicker strokes */
.nx-sm .nx-edge, .nx-sm .nx-count { display: none; }
.nx-sm .nx-out { stroke-width: 2.6; } .nx-sm .nx-iris { stroke-width: 2.4; } .nx-sm .nx-ring, .nx-sm .nx-wait circle, .nx-sm .nx-orbit { stroke-width: 2px; }
/* Motion: only the live eye of a screen moves, and only while a real status lasts or once for a real event. */
.nx-live .nx-eye { animation: nx-blink 8s infinite; }
.nx-live.i-fixe .nx-eye, .nx-live.i-off .nx-eye { animation: none; }
.nx-live.i-reflexion .nx-orbit, .nx-live.i-action .nx-orbit { animation: nx-orbit 1.6s linear infinite; }
.nx-live .nx-bloom.go { animation: nx-bloom 1.2s ease-out 1 both; }
.nx-paused .nx, .nx-paused .nx *, .nx-off, .nx-off * { animation-play-state: paused !important; }
@keyframes nx-blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.08); } }
@keyframes nx-orbit { to { transform: rotate(360deg); } }
@keyframes nx-bloom { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .nx *, .nx { animation: none !important; transition: none !important; } }
.nx-count[hidden] { display: none; }
