/* SNS 사이트 공용 스타일: 모바일 우선, 밝은/어두운 테마 */
:root {
  --bg: #f7f5ef; --surface: #ffffff; --surface2: #efece3; --border: #ded9cc;
  --text: #1f2a24; --muted: #6b766f; --accent: #2f7d55; --accent-text: #ffffff;
  --know: #2f7d55; --unsure: #b7871f; --forgot: #c4513f; --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141a17; --surface: #1c2420; --surface2: #25302a; --border: #33403a;
    --text: #e8efe9; --muted: #9aa69e; --accent: #6cc493; --accent-text: #10241a;
    --know: #6cc493; --unsure: #e2b350; --forgot: #ef8a78;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.wrap { max-width: 480px; margin: 0 auto; padding: 16px 16px 40px; }
.brand { font-size: 13px; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
h1 { font-size: 26px; margin: 8px 0 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
button, .btn {
  font: inherit; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); padding: 12px 16px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
}
.btn-primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 700; }
button:disabled { opacity: .5; cursor: default; }
.full { width: 100%; }
input, select {
  font: inherit; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); margin: 6px 0 10px;
}
label { font-size: 13px; color: var(--muted); }
.error { color: var(--forgot); font-size: 14px; min-height: 20px; }
.hidden { display: none !important; }
.tabs { display: flex; gap: 6px; background: var(--surface2); padding: 4px; border-radius: 12px; margin: 18px 0 14px; }
.tabs button { flex: 1; border: none; background: transparent; padding: 10px; }
.tabs button.on { background: var(--surface); font-weight: 700; }
a { color: var(--accent); }
