:root {
  --bg: #fbfbfa; --fg: #1d1d1f; --muted: #6b6b70; --line: #e4e4e2; --panel: #ffffff;
  --accent: #2f6fde; --live: #1f8a4c; --ended: #a14b2e; --code: #f2f2f0;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17171a; --fg: #ececef; --muted: #9a9aa2; --line: #2d2d33; --panel: #1e1e22;
          --accent: #7aa7ff; --live: #4cc785; --ended: #e08b6a; --code: #24242a; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 15px/1.6 system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
main { max-width: 860px; margin: 0 auto; padding: 32px 16px 64px; }
h1 { font-size: 1.6rem; margin: 0; }
h1 a { color: inherit; text-decoration: none; }
h2 { font-size: 1.1rem; margin: 2rem 0 .5rem; }
.lead { color: var(--muted); margin: .25rem 0 0; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
code { background: var(--code); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--code); padding: 12px 14px; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
pre code { background: none; padding: 0; }
.pill { font-size: .85rem; padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--line); }
.pill.live { color: var(--live); border-color: currentColor; }
.pill.ended { color: var(--ended); border-color: currentColor; }
.usage { margin: 1rem 0; }
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
#bar-fill { height: 100%; width: 0; background: var(--accent); transition: width .3s; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-weight: 600; font-size: .85rem; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; white-space: nowrap; }
.name { word-break: break-all; }
.name.dir { font-weight: 600; }
.actions { white-space: nowrap; text-align: right; }
.actions a, button { font: inherit; font-size: .85rem; color: var(--accent); background: none; border: 1px solid var(--line);
                     border-radius: 6px; padding: .15rem .55rem; margin-left: .35rem; cursor: pointer; text-decoration: none; }
#preview pre { max-height: 420px; overflow: auto; }
@media (max-width: 560px) {
  th:nth-child(3), td:nth-child(3) { display: none; }
}
