/* ── CSS 변수 (night default) ── */
:root {
  --bg:           #09090b;
  --bg-panel:     #111113;
  --bg-item:      #18181b;
  --border:       #27272a;
  --border-2:     #3f3f46;
  --text-primary: #fafafa;
  --text-muted:   #a1a1aa;
  --text-label:   #71717a;
  --accent:       #3b82f6;
  --c-title:  #fafafa;
  --c-muted:  #71717a;
  --c-blue:   #60a5fa;
  --c-violet: #a78bfa;
  --c-teal:   #2dd4bf;
  --c-label:  #a1a1aa;
  --radius:    8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
}
html.day {
  --bg:           #fafafa;
  --bg-panel:     #ffffff;
  --bg-item:      #f4f4f5;
  --border:       #e4e4e7;
  --border-2:     #d4d4d8;
  --text-primary: #18181b;
  --text-muted:   #52525b;
  --text-label:   #71717a;
  --c-title:  #18181b;
  --c-muted:  #71717a;
  --c-blue:   #2563eb;
  --c-violet: #7c3aed;
  --c-teal:   #0d9488;
  --c-label:  #52525b;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Mock MakerKit Navigation ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(12px);
}
html.day .site-header { background: rgba(250,250,250,0.90); }
.site-header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  height: 56px; display: flex; align-items: center; gap: 4px;
}
.site-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 700; font-size: 16px;
  letter-spacing: -0.01em; color: var(--text-primary); flex-shrink: 0;
  margin-right: 12px;
}
.site-logo-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; font-weight: 700;
}
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.site-nav a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
html.day .site-nav a:hover { background: rgba(0,0,0,0.04); }
.site-nav a.active { color: var(--text-primary); }
.site-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.badge-alpha {
  padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em; background: rgba(59,130,246,0.12); color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.2);
}
.nav-btn-ghost {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  color: var(--text-muted); background: transparent; border: none;
  cursor: pointer; font-family: inherit; transition: color 0.15s, background 0.15s;
}
.nav-btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
html.day .nav-btn-ghost:hover { background: rgba(0,0,0,0.04); }
.nav-btn-primary {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  color: #fff; background: #3b82f6; border: none; cursor: pointer;
  font-family: inherit; transition: background 0.15s;
}
.nav-btn-primary:hover { background: #2563eb; }

/* ── Form controls ── */
select, input[type="text"], input[type="number"] {
  height: 32px; padding: 0 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-item);
  color: var(--text-primary); font-family: inherit; font-size: 13px;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
select:focus, input:focus {
  border-color: rgba(59,130,246,0.5); box-shadow: 0 0 0 2px rgba(59,130,246,0.1);
}

/* ── Tooltip ── */
.tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; font-size: 9px; border-radius: 50%;
  background: rgba(45,212,191,0.12); color: var(--c-teal);
  cursor: help; position: relative; margin-left: 2px; flex-shrink: 0;
}
.tip:hover { background: var(--accent); color: #fff; }
.tip:hover::after {
  content: attr(data-tip); position: absolute; left: 20px; top: 50%;
  transform: translateY(-50%); background: var(--bg-panel);
  color: var(--text-primary); font-size: 11px; font-weight: 400;
  padding: 8px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); white-space: pre-line; max-width: 360px;
  width: max-content; line-height: 1.5; z-index: 100;
  pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

@keyframes pulse { from { opacity: 1; } to { opacity: 0.6; } }
@media (max-width: 1000px) { .site-nav { display: none; } }