:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-strong: #f0f4f8;
  --line: #d9e2ec;
  --line-strong: #bcccdc;
  --text: #1f2933;
  --muted: #65758b;
  --soft: #829ab1;
  --brand: #176b87;
  --brand-strong: #0f5169;
  --accent: #d85f3b;
  --accent-soft: #fff0eb;
  --green: #0e7c59;
  --green-soft: #e6f4ef;
  --yellow: #8a6415;
  --yellow-soft: #fff8df;
  --red: #b42318;
  --red-soft: #fff1f0;
  --shadow: 0 14px 36px rgba(31, 41, 51, 0.08);
  --radius: 8px;
  font-family: Inter, Pretendard, "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  min-height: 100vh;
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: #0e2330;
  color: #dbeafe;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #f3c969;
  color: #0e2330;
  font-weight: 800;
}

.brand-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: #9fb3c8;
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  color: #cfe0f3;
  text-align: left;
}

.nav-button:hover,
.nav-button.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-icon {
  width: 18px;
  text-align: center;
}

.sidebar-footer {
  position: absolute;
  right: 18px;
  bottom: 20px;
  left: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #9fb3c8;
  font-size: 12px;
}

.main {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.login-wrap {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  background: var(--surface);
}

.login-visual {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 56px;
  background:
    linear-gradient(135deg, rgba(23, 107, 135, 0.92), rgba(14, 35, 48, 0.95)),
    url("data:image/svg+xml,%3Csvg width='980' height='980' viewBox='0 0 980 980' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='2'%3E%3Cpath d='M160 250h660M160 410h660M160 570h660M160 730h660M250 160v660M410 160v660M570 160v660M730 160v660'/%3E%3Ccircle cx='250' cy='250' r='34' fill='%23f3c969' fill-opacity='.95' stroke='none'/%3E%3Ccircle cx='570' cy='410' r='26' fill='%23ffffff' fill-opacity='.7' stroke='none'/%3E%3Ccircle cx='730' cy='730' r='34' fill='%23d85f3b' fill-opacity='.9' stroke='none'/%3E%3Cpath d='M250 250c120 92 215 117 320 160 94 39 121 142 160 320' stroke='%23f3c969' stroke-opacity='.75' stroke-width='10' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

.login-copy {
  max-width: 620px;
  color: #ffffff;
}

.login-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.login-copy p {
  max-width: 560px;
  margin: 0;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.75;
}

.login-panel {
  display: flex;
  align-items: center;
  padding: 44px;
  background: #ffffff;
}

.login-card {
  width: 100%;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

.login-card h2 {
  font-size: 30px;
  line-height: 1.22;
}

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

.small {
  font-size: 13px;
}

.stack {
  display: grid;
  gap: 14px;
}

.stack-lg {
  display: grid;
  gap: 22px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 750;
}

.btn:hover {
  background: var(--brand-strong);
}

.btn.secondary {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
}

.btn.secondary:hover {
  background: var(--surface-strong);
}

.btn.danger {
  background: var(--red);
}

.btn.ghost {
  background: transparent;
  color: var(--brand);
  padding-inline: 4px;
}

.google-btn {
  width: 100%;
  margin: 26px 0 16px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
}

.google-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: conic-gradient(#4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
  font-size: 12px;
  font-weight: 900;
}

.notice {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
  line-height: 1.55;
}

.notice.warn {
  border-color: #f2c94c;
  background: var(--yellow-soft);
  color: var(--yellow);
}

.notice.good {
  border-color: #abd6c7;
  background: var(--green-soft);
  color: var(--green);
}

.notice.bad {
  border-color: #ffc9c4;
  background: var(--red-soft);
  color: var(--red);
}

.page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.page-title h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.page-title p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-pad {
  padding: 18px;
}

.metric {
  display: grid;
  gap: 8px;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-value {
  font-size: 26px;
  font-weight: 850;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 12px;
}

.section-title h2 {
  font-size: 19px;
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.input,
.select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pill.good {
  background: var(--green-soft);
  color: var(--green);
}

.pill.warn {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.pill.bad {
  background: var(--red-soft);
  color: var(--red);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.55;
}

.check {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.empty {
  padding: 26px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 44px));
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--text);
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .layout,
  .login-wrap {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 360px;
    padding: 36px 24px;
  }

  .login-panel {
    padding: 28px 22px 42px;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-footer {
    position: static;
    margin-top: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .page {
    width: min(100% - 28px, 1180px);
    padding-top: 22px;
  }

  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .page-title {
    flex-direction: column;
  }
}
