/* 이 서버에 올라가는 모든 프로그램이 공유하는 색·간격 토큰 */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --border: #dfe3ea;
  --text: #14181f;
  --text-dim: #626b7a;
  --accent: #2f6df0;
  --accent-text: #ffffff;
  --accent-soft: #e8effd;
  --star: #f2a516;
  --ok: #17915a;
  --danger: #d8453c;

  --radius: 14px;
  --radius-sm: 9px;
  --gap: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
          "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151a;
    --surface: #1a1f27;
    --surface-2: #232a34;
    --border: #2e3742;
    --text: #e8ecf2;
    --text-dim: #96a1b0;
    --accent: #6f9dff;
    --accent-text: #0d1220;
    --accent-soft: #1e2a44;
    --star: #f5b73d;
    --ok: #3fbc86;
    --danger: #ef6b62;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 14px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover { filter: brightness(1.06); background: var(--accent); }
.btn-sm { padding: 7px 12px; min-height: 36px; font-size: .88rem; font-weight: 500; }
.btn-on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
