:root {
  color-scheme: light;
  --ink: #18372e;
  --muted: #52685e;
  --paper: #f6f7f2;
  --line: #dce2d8;
  --green: #126644;
  --accent: #bdf199;
  --dark: #102f29;
  --warn: #855421;
  font:
    15px/1.55 Inter,
    "Noto Sans KR",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100dvh;
}
a {
  color: var(--green);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  background: white;
  color: var(--ink);
  cursor: pointer;
  border: 1px solid #cbd6cc;
  border-radius: 8px;
  padding: 8px 13px;
  font-weight: 600;
}
button:hover {
  background: #eef3eb;
}
button:disabled {
  opacity: 0.52;
  cursor: default;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.danger {
  color: #983920;
}
button.danger.primary {
  background: #92371e;
  color: white;
  border-color: #92371e;
}
aside {
  background: var(--dark);
  padding: 34px 17px 20px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  color: white;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
}
.brand strong {
  display: block;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.06em;
}
.brand small {
  display: block;
  font: 10px/1.7 monospace;
  letter-spacing: 0.11em;
  color: #bfcec3;
}
.mark {
  display: grid;
  place-items: center;
  transform: rotate(-32deg);
  width: 39px;
  height: 30px;
  border: 2px solid var(--accent);
  border-radius: 65% 25%;
}
.mark i {
  width: 13px;
  height: 13px;
  background: var(--accent);
  border-radius: 50%;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  color: #d5e2d8;
  background: transparent;
  border: 0;
  padding: 11px 14px;
}
nav span {
  font: 18px/1 monospace;
  width: 18px;
  text-align: center;
}
nav button:hover {
  background: #24483b;
}
nav button[aria-current="page"] {
  color: #d6ffbc;
  background: #28523f;
}
.aside-footer {
  margin-top: auto;
  font-size: 12px;
  color: #c4d7c9;
  padding: 16px 8px 1px;
  border-top: 1px solid #355044;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 5px;
}
main {
  padding: 0 clamp(18px, 4.5vw, 76px) 48px;
  min-width: 0;
}
header,
.toolbar,
.section-title,
.page-title,
.dialog-head,
.row,
.tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
header {
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
  font-size: 13px;
}
.crumb,
.slash {
  color: var(--muted);
}
.slash {
  padding: 0 8px;
}
#mode {
  color: var(--muted);
  font-weight: 500;
}
.toolbar {
  gap: 8px;
}
.page-title {
  margin: 32px 0 21px;
  align-items: flex-end;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(29px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.06em;
}
h2 {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.04em;
}
h3 {
  font-size: 15px;
}
p.sub,
.meta,
small {
  font-size: 13px;
  color: var(--muted);
}
p.sub {
  margin-top: 7px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.metric,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.metric:first-child {
  background: #174b39;
  color: white;
  border-color: #174b39;
}
.metric:first-child small {
  color: #d9ecde;
}
.metric small {
  display: block;
}
.metric strong {
  display: block;
  font-size: clamp(28px, 3.2vw, 45px);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.panel {
  margin-top: 16px;
}
.section-title {
  margin-bottom: 8px;
}
.row {
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.row:last-child {
  padding-bottom: 0;
}
.row:first-child {
  border: 0;
}
.row > div,
.panel {
  min-width: 0;
  overflow-wrap: anywhere;
}
.row small {
  display: block;
  margin-top: 2px;
}
.badge {
  display: inline-block;
  white-space: nowrap;
  font-weight: 650;
  font-size: 12px;
  background: #eff2eb;
  border-radius: 20px;
  padding: 3px 9px;
  color: #486051;
}
.badge.ok {
  background: #e1f4df;
  color: #215d3e;
}
.badge.warn {
  background: #fcf0dd;
  color: var(--warn);
}
.empty {
  padding: 18px 0;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}
.bar {
  height: 5px;
  background: #e7eee5;
  border-radius: 3px;
  margin-top: 8px;
  width: min(150px, 40vw);
}
.bar progress {
  display: block;
  width: 100%;
  height: 5px;
  accent-color: var(--green);
  border: 0;
}
label {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  font-size: 14px;
  font-weight: 600;
}
input,
textarea,
select {
  min-width: 0;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #adbfb1;
  border-radius: 7px;
  background: white;
  color: var(--ink);
}
.inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inline input,
.inline select {
  width: auto;
  max-width: 100%;
}
.form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
}
.login {
  max-width: 470px;
  margin: 9vh auto 0;
}
.login h1 {
  margin-bottom: 15px;
}
.login p {
  margin: 8px 0 16px;
}
.login button {
  margin-top: 8px;
}
.skip {
  position: fixed;
  left: 0;
  top: -8rem;
  background: white;
  padding: 8px;
  z-index: 10;
}
.skip:focus {
  top: 0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  width: min(440px, 94vw);
  max-height: 88dvh;
  color: var(--ink);
}
dialog::backdrop {
  background: #09271cc4;
}
.dialog-head {
  margin-bottom: 16px;
}
.dialog-head button {
  font-size: 20px;
  line-height: 1;
}
textarea {
  resize: vertical;
}
.secret {
  font: 13px/1.6 monospace;
  overflow-wrap: anywhere;
  background: #f1f5ed;
  padding: 10px;
  user-select: all;
}
#notice:not(:empty),
#dialog-error:not(:empty) {
  background: #fff4de;
  border-radius: 8px;
  padding: 9px 14px;
  color: #6e470e;
  margin: 12px 0;
}
.receipt {
  font-variant-numeric: tabular-nums;
}
.actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.audit-path {
  font-family: monospace;
  font-size: 13px;
}
.text-link {
  font-size: 14px;
}
@media (max-width: 860px) {
  body {
    grid-template-columns: 176px minmax(0, 1fr);
  }
  aside {
    padding-left: 10px;
    padding-right: 10px;
  }
  main {
    padding: 0 20px 36px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .metric,
  .panel {
    padding: 15px;
  }
}
@media (max-width: 650px) {
  body {
    display: block;
  }
  aside {
    padding: 14px;
    gap: 12px;
  }
  .brand {
    padding: 0;
    gap: 9px;
  }
  .brand strong {
    font-size: 23px;
  }
  .brand small {
    display: none;
  }
  .mark {
    width: 27px;
    height: 21px;
  }
  .mark i {
    width: 8px;
    height: 8px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
  }
  nav button {
    padding: 6px 8px;
    font-size: 13px;
    gap: 4px;
  }
  nav span {
    display: none;
  }
  .aside-footer {
    display: none;
  }
  header {
    min-height: 49px;
  }
  main {
    padding: 0 12px 30px;
  }
  .page-title {
    margin: 20px 0 13px;
  }
  .metrics {
    gap: 5px;
  }
  .metric {
    padding: 10px;
  }
  .metric small {
    font-size: 11px;
  }
  .metric strong {
    font-size: 24px;
  }
  .panel {
    margin-top: 10px;
  }
  .page-title .toolbar {
    width: 100%;
    justify-content: flex-start;
  }
  .row {
    gap: 8px;
  }
  dialog {
    padding: 16px;
  }
}

.bar progress {
  appearance: none;
  background: #e7eee5;
  border-radius: 3px;
  overflow: hidden;
}
.bar progress::-webkit-progress-bar {
  background: #e7eee5;
}
.bar progress::-webkit-progress-value {
  background: #39815a;
}
.bar progress::-moz-progress-bar {
  background: #39815a;
}
