@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/vendor/inter-latin-wght-normal-5.3.0.woff2") format("woff2");
}

/* Global structure and typography. Theme values live in themes/tokens.css. */
:root {
  --sidebar-w: 280px;
  --content-max: 1280px;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.12s;
}

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

html,
body {
  min-height: 100%;
}

html {
  background: var(--color-bg-secondary);
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--color-border-primary) transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--color-text-primary);
}

a {
  color: var(--color-text-brand-tertiary);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-text-brand-secondary);
}

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

button,
select {
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  margin: 0;
  border: 1px solid var(--color-border-primary);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
  box-shadow: var(--th-shadow-xs);
  color: var(--color-text-primary);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  padding: 10px 12px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-placeholder);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--color-fg-quinary);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-border-brand);
  box-shadow: var(--th-shadow-xs), var(--th-ring);
  outline: none;
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

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

::selection,
mark {
  background: var(--color-bg-brand-secondary);
  color: var(--color-text-brand-primary);
}

[data-theme-icon] {
  display: none;
}

.light-mode [data-theme-icon="light"],
.dark-mode [data-theme-icon="dark"] {
  display: block;
}

[hidden] {
  display: none !important;
}

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

.public-root,
.empty-root {
  width: min(100% - 32px, var(--content-max));
  margin: 0 auto;
  padding: 32px 0;
}

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

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.01ms;
  }
}
