:root {
  font-family:
    system-ui,
    -apple-system,
    "Noto Sans KR",
    sans-serif;
  color: #183044;
  background: #f3f6f9;
  line-height: 1.6;
  font-size: 15px;
  --blue: #075caa;
  --line: #d6e0e9;
  --red: #a92222;
  --muted: #526778;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px max(20px, calc((100vw - 1140px) / 2));
  background: #102b41;
  color: #fff;
}
h1 {
  font-size: 1.4rem;
  margin: 2px 0;
}
h2 {
  font-size: 1.35rem;
  margin: 0 0 10px;
}
h3 {
  font-size: 1.07rem;
  margin: 0 0 10px;
}
p {
  margin: 8px 0 16px;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.system-status {
  padding: 10px 20px;
  text-align: center;
  background: #dfeffc;
  color: #123c62;
  border-bottom: 1px solid var(--line);
}
.system-status.warning {
  background: #fff0d4;
  color: #704908;
}
nav {
  max-width: 1140px;
  margin: auto;
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
nav button.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px 40px;
}
.panel {
  display: none;
}
.panel.active {
  display: block;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 14px 0;
  box-shadow: 0 2px 8px #12334406;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 16px;
}
.cards > .card {
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.inline {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.inline label {
  flex: 1;
  min-width: 150px;
}
label {
  display: block;
  margin: 12px 0;
  color: #29475e;
  font-weight: 600;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #adbfcf;
  border-radius: 7px;
  background: #fff;
  color: #183044;
  font: inherit;
  min-height: 44px;
}
textarea {
  min-height: 115px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #99cbf8;
  outline-offset: 1px;
}
button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #afbdc9;
  border-radius: 7px;
  background: #fff;
  color: #183044;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:hover {
  background: #eaf3fc;
}
button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
button.danger {
  color: var(--red);
  border-color: #d99999;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #79b9ef;
  outline-offset: 3px;
}
a {
  color: var(--blue);
}
.muted,
.hint {
  font-size: 0.88rem;
  color: var(--muted);
}
.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 3px 8px;
  background: #e6eef5;
  font-size: 0.88rem;
  font-weight: 700;
}
.badge.ok {
  background: #ddf3e5;
  color: #1c6339;
}
.badge.warn {
  background: #fff0d4;
  color: #795209;
}
.badge.error {
  background: #ffe3e3;
  color: #912626;
}
.account-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.check {
  display: flex;
  align-items: start;
  gap: 10px;
  font-weight: 400;
}
.check input {
  width: 20px;
  min-height: 20px;
  flex: none;
  margin-top: 3px;
}
.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 12px 0;
  padding: 12px;
}
.check-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
}
.check-list input {
  width: 20px;
  min-height: 20px;
}
details {
  margin-top: 12px;
}
summary {
  cursor: pointer;
  padding: 8px 0;
  font-weight: 600;
}
#notice:not(:empty) {
  position: sticky;
  top: 8px;
  z-index: 3;
  padding: 12px 16px;
  background: #e0f1e8;
  border: 1px solid #93bea5;
  border-radius: 8px;
  margin-bottom: 16px;
}
#notice.error {
  background: #fff0df;
  border-color: #d3b781;
}
.result-list {
  display: grid;
  gap: 10px;
}
.result-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  overflow-wrap: anywhere;
}
.result-row > div {
  min-width: 0;
}
.result-row .check {
  margin: 0;
}
.job-card h3 {
  overflow-wrap: anywhere;
}
.counts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.counts span {
  background: #f0f4f7;
  padding: 5px 8px;
  border-radius: 5px;
}
.job-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.message-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 14px;
  background: #f3f6f9;
  border-radius: 8px;
}
.dirty-hint {
  color: #865b12;
  font-size: 0.87rem;
}
dialog {
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  overflow: auto;
  color: #183044;
}
dialog::backdrop {
  background: #09223899;
}
[hidden] {
  display: none !important;
}
.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: white;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.login-card button {
  width: 100%;
  margin-top: 10px;
}
[role="alert"] {
  color: var(--red);
}
footer {
  max-width: 1140px;
  margin: auto;
  padding: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}
.form-error {
  color: var(--red);
}
.nowrap {
  white-space: nowrap;
}
@media (max-width: 650px) {
  header {
    padding: 14px 16px;
    align-items: start;
  }
  h1 {
    font-size: 1.1rem;
  }
  .header-actions {
    flex-direction: column;
    align-items: end;
    gap: 5px;
    font-size: 0.8rem;
  }
  main {
    padding: 0 14px 30px;
  }
  nav {
    padding: 12px 14px;
    gap: 6px;
  }
  nav button {
    flex: 1 0 28%;
    font-size: 0.85rem;
    padding: 8px 6px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .card {
    padding: 16px;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .result-row {
    flex-wrap: wrap;
  }
  .job-actions button {
    flex: 1 0 auto;
  }
  .inline {
    align-items: stretch;
  }
  .inline label {
    flex-basis: 100%;
  }
  .account-heading .badge {
    font-size: 0.8rem;
  }
  dialog {
    padding: 18px;
  }
  .system-status {
    text-align: left;
    font-size: 0.86rem;
  }
  .message-preview {
    max-width: 100%;
  }
}
