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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

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

button,
select,
a,
[role="button"],
input[type="checkbox"],
input[type="radio"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  color: inherit;
}

button:not(:disabled),
select:not(:disabled),
input[type="file"]:not(:disabled) {
  cursor: pointer;
}

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

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--white);
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

input,
select {
  min-height: 46px;
  padding: 0 14px;
}

textarea {
  min-height: 116px;
  max-height: 320px;
  padding: 12px 14px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #93a2b7;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #aac1df;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, .12);
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--blue-600);
}

button,
[role="button"] {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
  outline: none;
}

a {
  color: var(--blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

h1,
h2,
h3,
h4,
strong {
  overflow-wrap: break-word;
  word-break: normal;
}

h1,
h2,
h3,
h4 {
  color: var(--navy-950);
  letter-spacing: -.025em;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.2vw, 4.25rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 7px;
  font-size: 1.05rem;
  line-height: 1.28;
}

p {
  margin-bottom: 16px;
  color: var(--text-soft);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(22, 119, 255, .38);
  outline-offset: 3px;
}

/* Pointer/touch presses must never leave a keyboard-style focus frame.
   Keyboard users still receive the :focus-visible ring above. */
html[data-input-modality="pointer"] :focus {
  outline: none !important;
}
html[data-input-modality="pointer"] input[type="checkbox"]:focus,
html[data-input-modality="pointer"] input[type="radio"]:focus {
  box-shadow: none !important;
}

::selection {
  background: var(--blue-100);
  color: var(--navy-950);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-root,
.workspace {
  min-height: 100vh;
  min-height: 100dvh;
}

.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;
}

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