@font-face {
  font-family: 'Google Sans Code';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/static/fonts/google-sans-code-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Google Sans Code';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/static/fonts/google-sans-code-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Google Sans Code', ui-monospace, SFMono-Regular, Menlo, monospace;
  overscroll-behavior-y: none;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: #3B82F640;
  border-radius: 9999px;
}

.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number'] {
  -moz-appearance: textfield;
}

.label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #525252;
}

.dark .label { color: #a3a3a3; }

.label .req { color: #3B82F6; }

.field {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  background: #fff;
  color: inherit;
  font-family: inherit;
}

.field:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px #3B82F633;
}

.dark .field { background: #171717; border-color: #333; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-primary { background: #3B82F6; color: #fff; }
.btn-ghost { border-color: #e5e5e5; color: inherit; background: transparent; }
.dark .btn-ghost { border-color: #333; }
.btn-danger { color: #dc2626; border-color: #fecaca; background: transparent; }
.dark .btn-danger { border-color: #7f1d1d; }

.card {
  border: 1px solid #e5e5e5;
  border-radius: 1rem;
  background: #fff;
}

.dark .card { background: #0f0f0f; border-color: #262626; }

.tbl { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.tbl th {
  text-align: left;
  font-weight: 600;
  color: #737373;
  padding: 0.6rem 0.75rem;
  white-space: nowrap;
  border-bottom: 1px solid #e5e5e5;
}
.tbl td { padding: 0.65rem 0.75rem; border-bottom: 1px solid #f5f5f5; white-space: nowrap; }
.dark .tbl th { border-color: #262626; }
.dark .tbl td { border-color: #1c1c1c; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }

.chip {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  background: #3B82F61a;
  color: #3B82F6;
}

.chip-off { background: #73737320; color: #737373; }

.sheet-enter {
  animation: sheet-in 0.16s ease-out;
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fade 0.14s ease-out;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
