/* ==========================================================================
   reset.css — element normalization
   No theming. No component styles. Only defaults and utilities.
   ========================================================================== */

/* ==========================================================================
   BOX MODEL
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ==========================================================================
   HTML / BODY
   ========================================================================== */
html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background-color: var(--bg-app);
  color: var(--text-primary);
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-slow, .3s) var(--ease),
              color           var(--dur-slow, .3s) var(--ease);
}

/* ==========================================================================
   FORM ELEMENTS — inherit typography and color
   ========================================================================== */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
}

input,
textarea,
select {
  border-radius: 0;
}

textarea {
  resize: none;
}

select {
  appearance: none;
  -webkit-appearance: none;
}

/* ==========================================================================
   MEDIA
   ========================================================================== */
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

svg {
  fill: none;
}

/* ==========================================================================
   LINKS
   ========================================================================== */
a {
  color: inherit;
  text-decoration: none;
}

a:not([href]) {
  cursor: pointer;
}

/* ==========================================================================
   LISTS
   ========================================================================== */
ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* ==========================================================================
   HEADINGS
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
p {
  margin: 0;
}

/* ==========================================================================
   TABLES
   ========================================================================== */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ==========================================================================
   SCROLLBARS
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 6px;
  border: 2px solid var(--bg-surface);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* ==========================================================================
   FOCUS
   ========================================================================== */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus-ring, #6366F1);
  outline-offset: 2px;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.is-hidden,
.hidden,
[hidden] {
  display: none !important;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}