:root {
  color-scheme: light;
  font-family: "Pretendard", "SUIT", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: #172542;
  background: #f1f5fc;
  --staff-muted: #4f617f;
  --staff-line: #d6e2f1;
  --staff-blue: #2357ae;
  --staff-blue-deep: #18458f;
  --staff-navy: #102a55;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 50% -10%, #d9e7fc, transparent 61%), #f1f5fc;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .56; cursor: default; }
:is(a, button, input):focus-visible { outline: 2px solid #315ec5; outline-offset: 3px; }
a { color: var(--staff-blue-deep); }
p { margin: 0; }

.staff-masthead {
  min-height: 74px;
  color: #fff;
  background: radial-gradient(ellipse at 27% -150%, #315eaa, transparent 71%), var(--staff-navy);
  box-shadow: 0 3px 12px #102a551f;
}
.staff-masthead-inner {
  width: min(calc(100% - 40px), 1120px);
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}
.staff-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.staff-mark { position: relative; flex: none; width: 53px; aspect-ratio: 53 / 47; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 3px 8px #08183252; }
.staff-mark img { position: absolute; top: -12%; left: 50%; width: 180%; height: auto; transform: translateX(-50%); }
.staff-identity strong { display: block; font-size: 19px; letter-spacing: -.055em; line-height: 1.25; white-space: nowrap; }
.staff-identity div > span { display: block; margin-top: 3px; color: #c4d5f2; font-size: 10.5px; font-weight: 650; }
.staff-header-actions { display: flex; gap: 6px; align-items: center; flex: none; }

.staff-main { width: min(calc(100% - 32px), 940px); margin: clamp(24px,8vh,76px) auto 28px; }
.staff-card {
  padding: clamp(21px,4.3vw,36px);
  background: #fff;
  border: 1px solid #d9e5f4;
  border-radius: 13px;
  box-shadow: 0 9px 28px #1b447515;
}
.staff-auth-card, .staff-loading { max-width: 450px; margin-inline: auto; }
.staff-loading { color: var(--staff-muted); font-size: 14px; line-height: 1.65; }
.staff-card h1 { margin: 0 0 10px; font-size: clamp(24px, 4vw, 30px); letter-spacing: -.058em; line-height: 1.22; }
.staff-card h1:focus { outline: none; }
.staff-lead { margin-bottom: 23px; color: var(--staff-muted); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.staff-preparing .staff-lead { margin-bottom: 0; }
.staff-field { display: block; margin-bottom: 7px; color: #324764; font-size: 13px; font-weight: 750; }
.staff-input {
  display: block;
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #c5d5e9;
  border-radius: 7px;
  background: #fbfdff;
  color: #202f4e;
  font-size: 16px;
}
.staff-input:hover { border-color: #91a9ce; }
.staff-code { letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.staff-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
}
.staff-header-button { color: #edf4ff; background: #ffffff0d; border-color: #abc5f070; }
.staff-header-button:hover:not(:disabled) { background: #ffffff1e; }
.staff-header-button:focus-visible { outline-color: #96c9ff; }
.staff-primary { color: #fff; background: var(--staff-blue); border-color: var(--staff-blue); }
.staff-primary:hover:not(:disabled) { background: var(--staff-blue-deep); border-color: var(--staff-blue-deep); }
.staff-secondary { color: #2c4b77; background: #f7faff; border-color: #ceddf1; }
.staff-secondary:hover:not(:disabled) { background: #ebf3ff; border-color: #b1c6e6; }
.staff-submit { width: 100%; min-height: 43px; margin-top: 14px; }
.staff-form-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; margin-top: 11px; }
.staff-text-button { min-height: 31px; padding: 4px 0; color: var(--staff-blue-deep); background: none; border: none; font-size: 12px; font-weight: 700; }
.staff-text-button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.staff-account { margin: 0 0 11px; color: #435a7d; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.staff-account-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.staff-error, .staff-notice {
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.staff-error { color: #96342e; border-color: #efd3ce; background: #fff5f3; }
.staff-notice { color: #315587; border-color: #dbe7f8; background: #f0f6ff; }
.staff-notice:empty { margin: 0; padding: 0; border-width: 0; }

.staff-admin-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 11px; }
.staff-admin-heading h1 { margin-bottom: 7px; }
.staff-admin-heading .staff-account { margin-bottom: 0; }
#staffAccounts { margin-top: 17px; overflow: hidden; border: 1px solid var(--staff-line); border-radius: 8px; }
.staff-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.staff-status-col { width: 125px; }
.staff-action-col { width: 110px; }
.staff-table th { padding: 10px 12px; color: #3f5576; background: #f1f6fd; font-size: 12px; }
.staff-table td { padding: 9px 12px; border-top: 1px solid #e4edf8; font-size: 13px; overflow-wrap: anywhere; }
.staff-table td:first-child { color: #233858; }
.staff-table .staff-admin-role { display: block; margin-top: 3px; color: var(--staff-muted); font-size: 11px; }
.staff-status { display: inline-block; padding: 3px 6px; border-radius: 5px; color: #495a74; background: #edf2f8; font-size: 11px; font-weight: 750; white-space: nowrap; }
.staff-status[data-status="pending"] { color: #754e12; background: #fff1d5; }
.staff-status[data-status="approved"] { color: #235849; background: #e0f2e9; }
.staff-status[data-status="revoked"] { color: #933a34; background: #fce9e6; }
.staff-danger { color: #943a34; background: #fff8f7; border-color: #edd7d5; }
.staff-danger:hover:not(:disabled) { background: #fceae7; border-color: #e0b3ad; }
.staff-table .staff-button { min-height: 32px; padding-inline: 8px; font-size: 12px; }
.staff-empty { padding: 14px 12px; color: var(--staff-muted); font-size: 13px; }
.staff-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

@media (max-width: 540px) {
  .staff-main { width: calc(100% - 22px); }
  .staff-masthead-inner { width: calc(100% - 22px); }
  .staff-identity { gap: 7px; }
  .staff-mark { width: 42px; border-radius: 8px; }
  .staff-identity strong { font-size: 15px; }
  .staff-identity div > span { font-size: 9px; }
  .staff-header-actions { flex-wrap: wrap; justify-content: flex-end; flex-shrink: 1; }
  .staff-header-button { min-height: 31px; padding-inline: 7px; font-size: 11px; }
  .staff-admin-card { padding-inline: 12px; }
  .staff-status-col { width: 73px; }
  .staff-action-col { width: 66px; }
  .staff-table th, .staff-table td { padding-inline: 6px; }
  .staff-table td { font-size: 12px; }
}
@media (max-width: 420px) {
  .staff-header-actions { flex: none; flex-direction: column; align-items: stretch; gap: 4px; }
}
