:root {
  color-scheme: light;

  --ds-font-sans: Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;

  --ds-color-canvas: #f3f5f6;
  --ds-color-surface: #ffffff;
  --ds-color-surface-raised: #fbfcfc;
  --ds-color-surface-muted: #edf1f3;
  --ds-color-surface-control: #f6f8f9;

  --ds-color-text: #111417;
  --ds-color-text-muted: #687079;
  --ds-color-text-soft: #8a939b;
  --ds-color-border: #dfe4e7;
  --ds-color-border-strong: #c7d1d6;

  --ds-color-brand: #0b6b57;
  --ds-color-brand-hover: #095946;
  --ds-color-info: #2a6f92;
  --ds-color-danger: #c9443f;
  --ds-color-warning: #edb93f;
  --ds-color-kakao: #fee500;
  --ds-color-kakao-text: #191600;

  --ds-space-1: 4px;
  --ds-space-2: 6px;
  --ds-space-3: 8px;
  --ds-space-4: 10px;
  --ds-space-5: 12px;
  --ds-space-6: 14px;
  --ds-space-7: 18px;
  --ds-space-8: 24px;
  --ds-space-9: 32px;

  --ds-radius-xs: 4px;
  --ds-radius-sm: 6px;
  --ds-radius-md: 8px;
  --ds-radius-pill: 999px;

  --ds-shadow-soft: 0 8px 20px rgba(17, 20, 23, 0.055);
  --ds-shadow-raised: 0 14px 34px rgba(17, 20, 23, 0.09);
  --ds-shadow-sticky: 0 -10px 24px rgba(17, 20, 23, 0.08);

  --ds-touch-min: 40px;
  --ds-touch-compact: 34px;
  --ds-container: 1180px;

  --ds-font-xs: 10px;
  --ds-font-sm: 12px;
  --ds-font-md: 13px;
  --ds-font-base: 14px;
  --ds-font-lg: 16px;
  --ds-font-xl: 18px;
  --ds-font-title: 24px;
  --ds-font-display: 30px;

  --ds-weight-regular: 700;
  --ds-weight-strong: 850;
  --ds-weight-heavy: 950;

  --ds-leading-tight: 1.2;
  --ds-leading-normal: 1.45;
  --ds-leading-loose: 1.7;

  --ds-transition-fast: 160ms ease;
  --ds-transition-normal: 180ms ease;

  --bg: var(--ds-color-canvas);
  --surface: var(--ds-color-surface);
  --surface-2: var(--ds-color-surface-muted);
  --surface-3: var(--ds-color-surface-raised);
  --ink: var(--ds-color-text);
  --muted: var(--ds-color-text-muted);
  --line: var(--ds-color-border);
  --accent: var(--ds-color-brand);
  --accent-2: var(--ds-color-danger);
  --accent-3: var(--ds-color-info);
  --warn: var(--ds-color-warning);
  --shadow: var(--ds-shadow-raised);
  --shadow-soft: var(--ds-shadow-soft);
  --radius: var(--ds-radius-md);

  font-family: var(--ds-font-sans);
}

.ds-container {
  width: min(var(--ds-container), 100%);
  margin-inline: auto;
  padding-inline: var(--ds-space-6);
}

.ds-stack {
  display: grid;
  gap: var(--ds-space-6);
}

.ds-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-3);
}

.ds-surface {
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-soft);
}

.ds-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ds-touch-min);
  padding: 0 var(--ds-space-6);
  border: 1px solid transparent;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-color-text);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: var(--ds-font-md);
  font-weight: var(--ds-weight-heavy);
  line-height: 1;
  text-align: center;
  transition:
    border-color var(--ds-transition-fast),
    background var(--ds-transition-fast),
    transform var(--ds-transition-fast);
}

.ds-button:hover {
  transform: translateY(-1px);
}

.ds-button.secondary {
  border-color: var(--ds-color-border);
  background: var(--ds-color-surface);
  color: var(--ds-color-text);
}

.ds-button.brand {
  background: var(--ds-color-brand);
}

.ds-button.kakao {
  border-color: var(--ds-color-kakao);
  background: var(--ds-color-kakao);
  color: var(--ds-color-kakao-text);
}

.ds-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 var(--ds-space-5);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-color-surface);
  color: var(--ds-color-text);
  font-size: var(--ds-font-md);
  font-weight: var(--ds-weight-strong);
  white-space: nowrap;
}

.ds-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 var(--ds-space-3);
  border-radius: var(--ds-radius-pill);
  background: rgba(11, 107, 87, 0.1);
  color: var(--ds-color-brand);
  font-size: var(--ds-font-sm);
  font-weight: var(--ds-weight-heavy);
}

.ds-status.danger {
  background: rgba(201, 68, 63, 0.1);
  color: var(--ds-color-danger);
}

.ds-field {
  display: grid;
  gap: var(--ds-space-2);
}

.ds-field label {
  color: #3d4242;
  font-size: var(--ds-font-sm);
  font-weight: var(--ds-weight-heavy);
}

.ds-field input,
.ds-field select,
.ds-field textarea {
  width: 100%;
  min-height: var(--ds-touch-min);
  padding: 9px var(--ds-space-4);
  border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-color-surface-raised);
  color: var(--ds-color-text);
  font: inherit;
  outline: 0;
  transition:
    border-color var(--ds-transition-fast),
    box-shadow var(--ds-transition-fast),
    background var(--ds-transition-fast);
}

.ds-field input:focus,
.ds-field select:focus,
.ds-field textarea:focus {
  border-color: rgba(42, 111, 146, 0.58);
  background: var(--ds-color-surface);
  box-shadow: 0 0 0 3px rgba(42, 111, 146, 0.11);
}

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