/* YJ attendance - 공통 스타일 */
:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --fg: #16202a;
  --muted: #5d6b78;
  --line: #d3dae1;
  --accent: #0b5cad;
  --accent-fg: #ffffff;
  --ok: #157f3b;
  --ok-bg: #e3f4e8;
  --warn: #9a5b00;
  --warn-bg: #fdf0d8;
  --danger: #b42318;
  --danger-bg: #fde7e5;
  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f151b; --surface: #18212a; --surface-2: #1d2832; --fg: #e6ecf1; --muted: #93a1ae;
    --line: #2b3742; --accent: #5aa2ea; --accent-fg: #06121e;
    --ok: #5fd08a; --ok-bg: #12301f; --warn: #f2b45a; --warn-bg: #33250e; --danger: #f97066; --danger-bg: #3a1714;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0f151b; --surface: #18212a; --surface-2: #1d2832; --fg: #e6ecf1; --muted: #93a1ae;
    --line: #2b3742; --accent: #5aa2ea; --accent-fg: #06121e;
    --ok: #5fd08a; --ok-bg: #12301f; --warn: #f2b45a; --warn-bg: #33250e; --danger: #f97066; --danger-bg: #3a1714;
    color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body);
  font-size: 15px; line-height: 1.5;
}
h1, h2, h3 { text-wrap: balance; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea {
  padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--muted); }
button {
  border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 700; cursor: pointer;
  background: var(--accent); color: var(--accent-fg);
}
button.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); font-weight: 600; }
button.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); font-weight: 600; }
button.small { padding: 5px 10px; font-size: .82rem; }
button:disabled { opacity: .5; cursor: default; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.error { color: var(--danger); font-size: .9rem; min-height: 1.4em; margin: 0; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.danger { background: var(--danger-bg); color: var(--danger); }
.pill.idle { background: var(--surface-2); color: var(--muted); }
.banner { background: var(--warn-bg); color: var(--warn); padding: 8px 14px; font-size: .85rem; font-weight: 600; text-align: center; }
[hidden] { display: none !important; }
