/* Legato UI — minimal modern reset. Load before base.css. */
@layer wl.reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
  }

  body {
    font-family: var(
      --wl-font,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      "Helvetica Neue",
      Arial,
      "Noto Sans",
      sans-serif
    );
    font-size: 14px;
    line-height: 1.45;
    color: var(--wl-text, #22252b);
    background: var(--wl-bg, #ffffff);
    -webkit-font-smoothing: antialiased;
    text-rendering: var(--wl-type-text-rendering, optimizeLegibility);
  }

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

  input,
  textarea,
  select {
    font: inherit;
    color: inherit;
  }

  ul,
  ol {
    list-style: none;
  }

  img,
  svg {
    display: block;
  }

  a {
    color: inherit;
  }

  :focus {
    outline: none;
  }

  :focus-visible {
    outline: 2px solid var(--wl-accent, #2563eb);
    outline-offset: 1px;
    border-radius: var(--wl-radius-sm, 6px);
  }

  ::selection {
    background: var(--wl-accent-soft, #eef3fd);
  }

  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  ::-webkit-scrollbar-thumb {
    background: var(--wl-gray-300, #dcdce1);
    border-radius: 6px;
    border: 2px solid var(--wl-bg, #ffffff);
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }
}
