:root {
  --color-primary: #4f6ef7;
  --color-primary-strong: #3b54d6;
  --color-primary-soft: #ebf1fe;
  --color-accent: #9c5503;
  --color-accent-strong: #7a4202;
  --color-accent-soft: #f7ecd9;
  --color-secondary: #38bdf8;
  --color-secondary-soft: #e6f7fe;
  --color-success: #2dd4bf;
  --color-success-strong: #14b8a6;
  --color-success-soft: #e8f8f5;
  --color-warning: #f59e0b;
  --color-warning-soft: #fef7ec;
  --color-danger: #f87171;
  --color-danger-strong: #ef4444;
  --color-danger-soft: #fdf1f0;
  --color-ink: #1c2434;
  --color-body: #5a6c82;
  --color-muted: #8a97a8;
  --color-line: #e5e9f0;
  --color-subtle: #f6f8fb;
  --color-canvas: #f4f6fa;
  --color-surface: #ffffff;
  --shadow-card: rgba(145, 158, 171, 0.2) 0 0 2px, rgba(145, 158, 171, 0.12) 0 12px 24px -4px;
  --shadow-soft: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

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

body {
  margin: 0;
  font-family: 'DM Sans', 'Sarabun', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.7;
}

h1,
h2,
h3 {
  line-height: 1.35;
}

.skeleton {
  background: linear-gradient(90deg, #e9edf4 25%, #f6f8fb 50%, #e9edf4 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.toast {
  animation: toast-in 0.28s ease forwards;
}

.toast-leave {
  opacity: 0;
  transition: opacity 0.28s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.table-scroll {
  scrollbar-width: thin;
  scrollbar-color: #cdd5e0 transparent;
}

.table-scroll::-webkit-scrollbar {
  height: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: #cdd5e0;
  border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-track {
  background: transparent;
}
