:root {
  font-family:
    system-ui,
    -apple-system,
    "Noto Sans KR",
    sans-serif;
  color: #18334c;
  background: #f4f7fb;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  background: white;
  border-bottom: 1px solid #dce4ef;
}
.brand {
  font-size: 25px;
  font-weight: 800;
  color: #153e66;
  text-decoration: none;
}
.badge {
  font-size: 12px;
  color: #62758b;
}
#identity {
  margin-left: auto;
}
main {
  padding: 20px 30px;
}
button,
input,
select,
textarea {
  font: inherit;
  border: 1px solid #bccbdd;
  border-radius: 7px;
  padding: 9px 12px;
}
button {
  background: white;
  color: #214667;
  cursor: pointer;
}
button:hover,
button.active {
  border-color: #376bd4;
  background: #edf3ff;
  color: #244fb3;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select,
textarea {
  background: white;
  width: 100%;
}
label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
#login-panel {
  max-width: 420px;
  margin: 50px auto;
  background: white;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  padding: 30px;
}
#login-form button,
.actions button {
  background: #245bd4;
  color: white;
  border-color: #245bd4;
}
h1 {
  font-size: 23px;
  margin: 0 0 15px;
}
h2 {
  font-size: 15px;
  margin: 15px 0;
  color: #50667e;
}
.toolbar,
.heading,
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.toolbar {
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar label {
  margin: 0;
  min-width: 230px;
  flex: 1;
}
.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
}
nav {
  background: white;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  padding: 15px;
}
nav button {
  display: block;
  width: 100%;
  text-align: left;
  border-color: transparent;
  margin-bottom: 5px;
}
.content {
  background: white;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  padding: 24px;
  min-height: 460px;
}
.heading {
  justify-content: space-between;
}
.heading h1 {
  margin: 0;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid #e4eaf2;
  padding: 12px;
  vertical-align: top;
  white-space: pre-wrap;
  word-break: break-word;
}
th {
  background: #f3f6fa;
  color: #516b84;
}
.notice,
#page-description {
  color: #61758d;
  font-size: 13px;
}
.error {
  color: #a72a39;
}
dialog {
  border: 1px solid #bccbdd;
  border-radius: 12px;
  max-width: 600px;
  width: 95%;
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
}
dialog::backdrop {
  background: #14274188;
}
.actions {
  justify-content: flex-end;
  margin-top: 20px;
}
#message:empty {
  display: none;
}
#message {
  padding: 12px;
  background: #edf2fa;
  border-radius: 7px;
}
@media (max-width: 800px) {
  header,
  main {
    padding: 16px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  nav {
    display: flex;
    gap: 6px;
    overflow: auto;
  }
  nav h2 {
    display: none;
  }
  nav button {
    white-space: nowrap;
    width: auto;
  }
  .badge {
    display: none;
  }
  .content {
    padding: 14px;
  }
}
