:root,
body.theme-dark {
  --bg-app: #0e0e0d;
  --bg-panel: #171614;
  --bg-panel-elevated: #211f1d;
  --bg-card: #1b1a18;
  --bg-stage: radial-gradient(ellipse at 72% 28%, rgba(190, 105, 45, 0.16) 0%, #141210 50%, #0c0b0a 100%);
  --border-subtle: rgba(245, 240, 235, 0.11);
  --border-strong: rgba(224, 130, 69, 0.5);
  --border-input: rgba(245, 240, 235, 0.18);
  --bg-input: #121110;
  --focus-ring: rgba(217, 120, 59, 0.28);
  --text-placeholder: #969087;
  --form-label-color: #eeeae3;
  --text-primary: #f7f6f3;
  --text-read-title: #e6e3dd;
  --text-title-hover: #f2a36d;
  --text-secondary: #d1ccc4;
  --text-muted: #a8a298;
  --accent-primary: #d9783b;
  --accent-hover: #e8884b;
  --accent-primary-text: #140e0a;
  --accent-lime: #f2a36d;
  --accent-lime-text: #140e0a;
  --accent-gold: #f0b254;
  --accent-emerald: #4ade80;
  --accent-danger: #f87171;
  --surface-amber: rgba(245, 158, 11, 0.16);
  --text-amber: #fbbf24;
  --border-amber: rgba(245, 158, 11, 0.4);
  --surface-sky: rgba(56, 189, 248, 0.16);
  --text-sky: #7dd3fc;
  --border-sky: rgba(56, 189, 248, 0.38);
  --surface-emerald: rgba(74, 222, 128, 0.16);
  --text-emerald: #86efac;
  --border-emerald: rgba(74, 222, 128, 0.38);
  --surface-danger: rgba(248, 113, 113, 0.16);
  --text-danger: #fca5a5;
  --border-danger: rgba(248, 113, 113, 0.42);
  --surface-brand-soft: rgba(217, 120, 59, 0.16);
  --border-brand-soft: rgba(217, 120, 59, 0.36);
  --surface-row-odd: #22201d;
  --surface-row-even: #161513;
  --surface-row-hover: #2c2824;
  --surface-table-odd: rgba(255, 250, 244, 0.015);
  --surface-table-even: rgba(255, 250, 244, 0.068);
  --surface-table-hover: rgba(217, 120, 59, 0.11);
  --shadow-panel: 0 12px 32px rgba(0, 0, 0, 0.55);
}

body.theme-light {
  --bg-app: #ece8e1;
  --bg-panel: #ffffff;
  --bg-panel-elevated: #f3efe8;
  --bg-card: #f8f5ef;
  --bg-stage: radial-gradient(ellipse at 70% 25%, #f0e3d5 0%, #ede8e0 55%, #e2dcd2 100%);
  --border-subtle: #d4cdc1;
  --border-strong: #b8541c;
  --border-input: #b8b0a2;
  --bg-input: #ffffff;
  --focus-ring: rgba(184, 84, 28, 0.22);
  --text-placeholder: #6b645c;
  --form-label-color: #181614;
  --text-primary: #121110;
  --text-read-title: #262320;
  --text-title-hover: #9c4313;
  --text-secondary: #332f2a;
  --text-muted: #4e4841;
  --accent-primary: #b8541c;
  --accent-hover: #9c4313;
  --accent-primary-text: #ffffff;
  --accent-lime: #fbe7d8;
  --accent-lime-text: #8c3b10;
  --accent-gold: #a16207;
  --accent-emerald: #15803d;
  --accent-danger: #b91c1c;
  --surface-amber: #fef3c7;
  --text-amber: #92400e;
  --border-amber: #f59e0b;
  --surface-sky: #e0f2fe;
  --text-sky: #0369a1;
  --border-sky: #38bdf8;
  --surface-emerald: #dcfce7;
  --text-emerald: #166534;
  --border-emerald: #4ade80;
  --surface-danger: #fee2e2;
  --text-danger: #b91c1c;
  --border-danger: #f87171;
  --surface-brand-soft: #fbe7d8;
  --border-brand-soft: #e3a77d;
  --surface-row-odd: #ffffff;
  --surface-row-even: #efeae0;
  --surface-row-hover: #f9f2e8;
  --surface-table-odd: #ffffff;
  --surface-table-even: #f2ede3;
  --surface-table-hover: #faeee2;
  --shadow-panel: 0 2px 10px rgba(24, 22, 20, 0.07), 0 1px 3px rgba(24, 22, 20, 0.05);
  -webkit-font-smoothing: auto;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.5;
  background: var(--bg-app);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

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

