/* Shared tokens and reset */
:root {
  color-scheme: light;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --accent: #2f8df5;
  --accent-hover: #207ce5;
  --accent-strong: #1769c9;
  --accent-soft: #e7f2ff;
  --accent-soft-2: #d7eaff;
  --danger: #e5484d;
  --success: #22a06b;
  --warning: #f0a229;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 80px rgba(20, 51, 93, 0.16), 0 6px 18px rgba(20, 51, 93, 0.08);
  --shadow-md: 0 12px 32px rgba(21, 49, 88, 0.12);
  --shadow-sm: 0 4px 14px rgba(21, 49, 88, 0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #58a6ff;
  --accent-hover: #78b9ff;
  --accent-strong: #3f92f5;
  --accent-soft: rgba(88, 166, 255, 0.14);
  --accent-soft-2: rgba(88, 166, 255, 0.22);
  --danger: #ff6b6f;
  --success: #43c695;
  --warning: #ffc35c;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.42), 0 6px 18px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.34);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.2);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  color: inherit;
}

a {
  color: inherit;
}

svg.icon {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

::selection {
  background: rgba(47, 141, 245, 0.25);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
