:root { color-scheme: light; font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif; color: #172033; background: #f4f7fb; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { min-height: 42px; border: 1px solid #cdd6e5; border-radius: 10px; padding: 0 14px; background: #fff; cursor: pointer; }
button:hover { border-color: #315fe8; }
button:disabled { cursor: not-allowed; opacity: .48; }
.primary { color: #fff; background: #244fd7; border-color: #244fd7; }
.danger { color: #fff; background: #b42318; border-color: #b42318; }
.topbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 76px; padding: 14px clamp(20px, 4vw, 56px); color: #fff; background: #14213d; }
.topbar h1 { display: inline; margin: 0 0 0 14px; font-size: 1.25rem; }
.brand { color: #8fb1ff; font-weight: 800; letter-spacing: .12em; }
.topbar__actions { display: flex; align-items: center; gap: 12px; }
.topbar a { color: #dce6ff; }
.shell { width: min(1440px, calc(100% - 32px)); margin: 26px auto 60px; }
.auth-card { padding: 32px; border: 1px solid #dde4ef; border-radius: 16px; background: #fff; }
.data-status { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #cdd6e5; border-radius: 10px; color: #344054; background: #eef4ff; }
.data-status[data-state="stale"] { color: #7a4d00; border-color: #f2c94c; background: #fff8df; }
.data-status[data-state="error"] { color: #b42318; border-color: #f4b4ae; background: #fff1f0; }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.summary article { padding: 18px; border: 1px solid #dde4ef; border-radius: 14px; background: #fff; }
.summary span { display: block; color: #667085; font-size: .86rem; }
.summary strong { display: block; margin-top: 7px; font-size: 1.55rem; }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin: 22px 0 12px; }
.tabs button.active { color: #fff; background: #244fd7; border-color: #244fd7; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 12px; }
.toolbar label { display: grid; gap: 5px; color: #475467; font-size: .85rem; }
.toolbar input { width: min(360px, 70vw); height: 42px; border: 1px solid #cdd6e5; border-radius: 10px; padding: 0 12px; }
.table-wrap { overflow: auto; border: 1px solid #dde4ef; border-radius: 14px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { padding: 12px 14px; border-bottom: 1px solid #edf0f5; text-align: left; white-space: nowrap; }
th { position: sticky; top: 0; color: #475467; background: #f8fafc; font-size: .82rem; }
td { font-size: .9rem; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; color: #344054; background: #eef2f8; font-size: .78rem; }
.badge--active, .badge--pending { color: #065f46; background: #d1fae5; }
.badge--disabled, .badge--rejected { color: #991b1b; background: #fee2e2; }
.row-actions { display: flex; gap: 6px; }
.row-actions button { min-height: 34px; padding: 0 10px; font-size: .82rem; }
.empty { padding: 48px 20px; text-align: center; color: #667085; background: #fff; border: 1px solid #dde4ef; border-radius: 14px; }
dialog { width: min(480px, calc(100% - 32px)); border: 0; border-radius: 16px; padding: 24px; box-shadow: 0 20px 70px #0004; }
dialog::backdrop { background: #10182899; }
dialog form > label { display: grid; gap: 6px; margin: 16px 0; }
dialog input, dialog select { height: 42px; border: 1px solid #cdd6e5; border-radius: 8px; padding: 0 10px; }
dialog form > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
@media (max-width: 800px) { .summary { grid-template-columns: repeat(2, 1fr); } .topbar { align-items: flex-start; } .topbar h1 { display: block; margin: 4px 0 0; } }
