:root {
  --ink: #17212b;
  --muted: #66717c;
  --line: #d9e0e6;
  --paper: #f7f5ef;
  --white: #ffffff;
  --green: #0f766e;
  --gold: #d8a029;
  --danger: #9b341f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}

a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.admin-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 48px auto;
}

.admin-shell.narrow {
  width: min(620px, calc(100% - 36px));
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--white);
}

.eyebrow {
  margin: 24px 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
}

h2 {
  margin: 0;
}

p {
  color: var(--muted);
}

.login-panel,
.admin-form,
.panel,
.stats-grid article {
  border: 1px solid var(--line);
  background: var(--white);
}

.login-panel {
  margin-top: 18px;
  padding: 30px;
}

.admin-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 14px 15px;
  color: var(--ink);
  background: #fbfcfc;
  font: inherit;
}

button {
  min-height: 46px;
  border: 0;
  color: #102024;
  background: var(--gold);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.alert {
  margin: 18px 0;
  padding: 14px 16px;
  color: var(--danger);
  background: #fff0ec;
  border: 1px solid #ffd0c5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stats-grid article {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.stats-grid span,
.stats-grid small,
.section-title p {
  color: var(--muted);
}

.stats-grid strong {
  font-size: 34px;
}

.panel {
  margin-bottom: 24px;
  padding: 24px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-title p {
  margin: 6px 0 0;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap.compact {
  padding: 0;
  border: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  width: 160px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 680px) {
  .admin-header {
    display: grid;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .login-panel,
  .admin-form,
  .panel,
  .stats-grid article {
    padding: 20px;
  }
}
