body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--app-bg);
  color: var(--text);
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

:root {
  color-scheme: light;
  --app-bg: #f4f4f2;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #eeeeeb;
  --surface-muted: #fafaf8;
  --surface-hover: #f0f0ed;
  --border: rgba(0, 0, 0, 0.11);
  --border-strong: rgba(0, 0, 0, 0.24);
  --text: #0a0a0a;
  --text-muted: #616161;
  --text-soft: #969696;
  --accent: #0868d7;
  --accent-strong: #0053b8;
  --accent-hover: #0053b8;
  --accent-soft: rgba(8, 104, 215, 0.1);
  --ok: #176a36;
  --ok-soft: rgba(23, 106, 54, 0.1);
  --warn: #805500;
  --warn-soft: rgba(128, 85, 0, 0.11);
  --bad: #a72b2b;
  --bad-soft: rgba(167, 43, 43, 0.1);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.055);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.055);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius-sm: 8px;
  --radius-lg: 12px;
  --focus-ring: 0 0 0 3px var(--accent-soft);
}

* {
  box-sizing: border-box;
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

::selection {
  color: white;
  background: var(--accent);
}

@media (hover: none) and (pointer: coarse) {
  button,
  select,
  input[type="button"],
  input[type="submit"] {
    min-height: 44px;
  }
}

@media (max-width: 600px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}
