:root {
  color-scheme: dark;
  --bg: #0d0f10;
  --panel: #15191a;
  --panel-raised: #1b2021;
  --line: #2d3435;
  --line-strong: #3c4647;
  --text: #f5f7f7;
  --muted: #9ea9a9;
  --accent: #69cdbb;
  --accent-ink: #07110f;
  --danger: #ff8f86;
  --radius: 10px;
  font-family: Inter, Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 65%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
button, select, input { min-height: 38px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 12px; padding: 8px 12px; background: var(--accent); color: var(--accent-ink); }
.skip-link:focus { top: 12px; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; gap: 24px; min-height: 58px; padding: 8px clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--line); background: #101314; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: white; }
.brand-logo-slot { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: #181c1d; }
.brand-logo-slot img { width: 20px; height: 20px; }
.brand strong { display: block; font-size: 16px; line-height: 1; letter-spacing: .08em; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; letter-spacing: .19em; }
.topbar nav { display: flex; align-self: stretch; gap: 3px; }
.topbar nav a { display: flex; align-items: center; padding: 0 11px; color: #c6cece; text-decoration: none; border-radius: 7px; }
.topbar nav a:hover { background: var(--panel-raised); color: white; }
.logout-form { margin-left: auto; }
.shell { width: min(1540px, 100%); margin: 0 auto; padding: 24px clamp(14px, 3vw, 38px) 56px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 4px; font-size: clamp(23px, 3vw, 31px); letter-spacing: -.025em; }
h2 { margin-bottom: 0; font-size: 16px; }
.page-heading p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.eyebrow { margin-bottom: 5px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 13px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #7bd7c7; color: var(--accent-ink); }
.button-subtle { border-color: var(--line-strong); background: transparent; color: var(--text); }
.button-subtle:hover { border-color: #566263; background: var(--panel-raised); color: white; }
.filter-panel { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(180px, 1.5fr) minmax(120px, .8fr) repeat(2, minmax(135px, .9fr)) auto; align-items: end; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 650; }
input, select { width: 100%; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 7px; background: #0f1213; color: var(--text); }
.filter-actions { display: flex; gap: 7px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.summary-card { min-height: 91px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.summary-card span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.summary-card strong { font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; }
.summary-card .summary-time { font-size: 14px; }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.table-card-heading { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.table-card-heading span { color: var(--muted); font-size: 11px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 970px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data-table th { padding: 8px 11px; background: #111516; color: var(--muted); font-size: 11px; font-weight: 700; text-align: left; white-space: nowrap; }
.data-table td { padding: 8px 11px; border-top: 1px solid #242a2b; color: #dfe4e4; vertical-align: middle; white-space: nowrap; }
.data-table tbody tr:hover { background: #1a2020; }
.data-table td small { display: block; color: var(--muted); font-size: 10px; }
.numeric { text-align: right; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.type-badge { display: inline-block; padding: 2px 7px; border: 1px solid #396a62; border-radius: 5px; color: var(--accent); font-size: 11px; }
.empty-state { padding: 44px !important; color: var(--muted) !important; text-align: center; }
.flash { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #396a62; border-radius: 8px; background: #13221f; color: #b9eee4; }
.login-shell { display: grid; min-height: calc(100vh - 107px); place-items: center; }
.login-card { width: min(410px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.login-card form { display: grid; gap: 14px; }
.error { color: var(--danger); }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.detail-item { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.detail-item dt { color: var(--muted); font-size: 11px; }
.detail-item dd { margin: 5px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.form-card { max-width: 720px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.form-card form { display: grid; gap: 13px; }
.code-reveal { padding: 18px; border: 1px solid var(--accent); border-radius: var(--radius); background: #13201e; }
.code-reveal code { display: block; margin: 12px 0; color: var(--accent); font-size: clamp(18px, 4vw, 28px); font-weight: 800; letter-spacing: .08em; overflow-wrap: anywhere; }
.split-grid { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 14px; align-items: start; }
.top-gap { margin-top: 14px; }
.field-help, .login-copy { margin: -5px 0 0; color: var(--muted); font-size: 12px; }
.compact-table { min-width: 720px; }
.status-ok { color: var(--accent); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
button:disabled { cursor: not-allowed; opacity: .45; }
@media (max-width: 1050px) { .filter-panel { grid-template-columns: repeat(3, 1fr); } .summary-grid { grid-template-columns: repeat(2, 1fr); } .split-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .topbar { flex-wrap: wrap; gap: 7px 13px; } .topbar nav { order: 3; width: 100%; overflow-x: auto; } .topbar nav a { min-height: 36px; } .shell { padding-top: 17px; } .page-heading { align-items: flex-start; flex-direction: column; } .filter-panel { grid-template-columns: 1fr 1fr; } .filter-panel label:nth-child(-n+3) { grid-column: 1 / -1; } .summary-grid, .detail-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 430px) { .filter-panel, .summary-grid, .detail-grid { grid-template-columns: 1fr; } .filter-panel label { grid-column: auto !important; } .filter-actions .button { flex: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
