:root {
  --ink-950: #07131f;
  --ink-900: #0b1b29;
  --ink-850: #0f2433;
  --ink-800: #153044;
  --ink-700: #27455a;
  --ink-600: #486579;
  --slate-600: #5f7583;
  --slate-500: #7f929e;
  --slate-400: #a0b0b9;
  --slate-300: #c4d1d7;
  --slate-200: #dde7eb;
  --slate-150: #e9f0f3;
  --slate-100: #f2f6f8;
  --slate-50: #f8fafb;
  --white: #ffffff;
  --teal-700: #087e75;
  --teal-600: #0b9b8f;
  --teal-500: #13b3a5;
  --teal-400: #39c8ba;
  --teal-100: #dff7f3;
  --teal-50: #effbf9;
  --amber-600: #c47c13;
  --amber-500: #e49a25;
  --amber-400: #f2b64d;
  --amber-100: #fff2d9;
  --red-600: #c94a4a;
  --red-500: #e15f5f;
  --red-100: #fdeaea;
  --green-600: #248a66;
  --green-500: #31a77d;
  --green-100: #e5f6ef;
  --blue-500: #4b88c7;
  --blue-100: #eaf2fb;
  --shadow-xs: 0 1px 2px rgba(11, 27, 41, .04);
  --shadow-sm: 0 6px 18px rgba(11, 27, 41, .06);
  --shadow-md: 0 14px 36px rgba(11, 27, 41, .09);
  --shadow-lg: 0 28px 80px rgba(5, 20, 31, .18);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --font-num: "Bahnschrift", "DIN Alternate", "Segoe UI", "Microsoft YaHei", sans-serif;
  --ease-out: cubic-bezier(.22, .8, .28, 1);
}

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

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

body {
  margin: 0;
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
}

::selection {
  background: rgba(19, 179, 165, .22);
}

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

.no-scroll {
  overflow: hidden;
}

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

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

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 250px;
  max-width: 390px;
  padding: 13px 16px;
  color: var(--white);
  background: rgba(10, 27, 40, .96);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  animation: toast-in .35s var(--ease-out) both;
  pointer-events: auto;
}

.toast.is-leaving {
  animation: toast-out .25s ease both;
}

.toast__dot {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(57, 200, 186, .12);
}

.toast__text {
  font-size: 13px;
  line-height: 1.6;
}

.toast--warn .toast__dot {
  background: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(242, 182, 77, .12);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px); }
}

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