*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; height: 100%; }

body {
  height: 100%;
  background: var(--nv-bg);
  color: var(--nv-text);
  font-family: var(--nv-font-display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-display: swap;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
}

ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* Keyboard focus must always be visible (WCAG 2.4.7). Components with their
   own :focus-visible treatment (glow ring, border swap) override this. */
:focus-visible {
  outline: 2px solid var(--ochre-ink);
  outline-offset: 3px;
}

/* The composer signals focus through its wrapper border instead. */
.composer__textarea:focus-visible { outline: none; }

::placeholder { color: var(--nv-text-muted); opacity: 1; }

textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  resize: none;
  outline: none;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 2px; }

@keyframes nv-skeleton {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes nv-pulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@keyframes nv-ripple {
  0% { opacity: 0.45; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.7); }
}

/* Global stop for the shared infinite keyframes; static state still shows
   activity (accent dots stay lit), so no information is motion-only. */
@media (prefers-reduced-motion: reduce) {
  .msg__thinking span,
  .model-router__node.is-routing .node__dot,
  [data-flow-root].is-routing .node__dot,
  .conv-flag.is-new {
    animation: none;
  }
  .model-router__node.is-routing .node__dot::after,
  [data-flow-root].is-routing .node__dot::after {
    display: none;
  }
}
