:root {
  font-family: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  color: #192c40;
  background: #f6f8fb;
  font-size: 15px;
  line-height: 1.55;
  --ink: #192c40;
  --navy: #203a54;
  --blue: #285db1;
  --border: #d6dee6;
  --muted: #526679;
  --wash: #edf3fa;
  --paper: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: progress;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #4e8eea;
  outline-offset: 3px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.055em;
}
h2 {
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.025em;
}
small,
.muted {
  color: var(--muted);
}
.skip {
  position: absolute;
  z-index: 10;
  left: 12px;
  top: -100px;
  background: white;
  padding: 8px 15px;
}
.skip:focus {
  top: 10px;
}
.boot {
  margin: 10vh auto;
  max-width: 400px;
  padding: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.mark {
  width: 35px;
  height: 36px;
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
  padding: 4px 2px;
  flex: none;
}
.mark i {
  height: 26px;
  width: 7px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}
.mark i:nth-child(2) {
  height: 30px;
}
.mark i:last-child {
  transform: rotate(-13deg);
  transform-origin: bottom center;
  height: 24px;
  margin-left: 4px;
}
.mark i:after {
  content: '';
  position: absolute;
  background: var(--navy);
  left: 1px;
  right: 1px;
  height: 2px;
  bottom: 5px;
}
.login-wrap {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(310px, 0.88fr) minmax(430px, 1.12fr);
  background: white;
}
.login-cover {
  background: var(--navy);
  color: #f0f6fa;
  padding: clamp(28px, 5.8vw, 88px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.login-cover h1 {
  margin: auto 0 48px;
  max-width: 420px;
  font-size: clamp(40px, 4.5vw, 72px);
  font-weight: 650;
  line-height: 1.12;
}
.shelf {
  height: clamp(140px, 20vh, 220px);
  display: flex;
  align-items: flex-end;
  border-bottom: 6px solid #90adc4;
  max-width: 520px;
  gap: 7px;
}
.shelf i {
  width: 17%;
  height: 83%;
  background: #9ab5cb;
  position: relative;
  border-radius: 4px 4px 0 0;
}
.shelf i:before {
  content: '';
  display: block;
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  height: 6px;
  margin: 18px 8px;
}
.shelf i:after {
  content: '';
  position: absolute;
  border: 2px solid var(--navy);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  bottom: 16px;
  left: calc(50% - 6px);
}
.shelf i:nth-child(2) {
  height: 95%;
  background: #d5e2eb;
}
.shelf i:nth-child(3) {
  height: 73%;
  background: #7392ad;
}
.shelf i:last-child {
  height: 81%;
  transform: rotate(-11deg);
  transform-origin: bottom right;
  margin-left: 12%;
}
.login-body {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 48px 32px;
}
.login-body form {
  width: min(100%, 390px);
}
.login-body h2 {
  font-size: 32px;
}
.login-body .intro {
  margin: 7px 0 28px;
  color: var(--muted);
}
.login-body .primary {
  width: 100%;
  margin-top: 8px;
}
.layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
}
.rail {
  background: var(--navy);
  color: #f1f6fa;
  display: flex;
  flex-direction: column;
  padding: 32px 16px 20px;
  min-width: 0;
}
.rail .brand {
  padding: 0 11px 28px;
}
.company {
  padding: 19px 12px 16px;
  border-top: 1px solid #4b6073;
  font-size: 14px;
  color: #d0dfec;
}
.rail nav {
  display: grid;
  gap: 4px;
}
.navlink {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #dbe7f1;
  padding: 11px 13px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 550;
}
.navlink:hover {
  background: #304d67;
}
.navlink[aria-current='page'] {
  color: #153653;
  background: #d4e7f4;
}
.glyph {
  width: 21px;
  height: 21px;
  display: grid;
  place-content: center;
  color: inherit;
  font-family: system-ui;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
}
.account {
  margin-top: auto;
  padding: 30px 12px 0;
}
.account strong {
  display: block;
}
.account small {
  color: #c1d2de;
}
.link-button {
  background: transparent;
  color: var(--blue);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rail .link-button {
  display: block;
  color: #d3e4f4;
  margin-top: 9px;
  font-size: 13px;
}
.content {
  width: 100%;
  max-width: 1440px;
  padding: clamp(28px, 4vw, 64px) clamp(22px, 5vw, 78px) 80px;
  min-width: 0;
}
.page-head,
.subhead,
.spread,
.actions,
.inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.page-head,
.subhead,
.spread {
  justify-content: space-between;
}
.page-head {
  align-items: flex-end;
  margin-bottom: 30px;
}
.head-note {
  margin-top: 10px;
  color: var(--muted);
}
.subhead {
  margin: 30px 0 13px;
}
.count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 6px;
}
.panel,
.sheet,
.filter {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.panel,
.sheet {
  padding: clamp(18px, 2.4vw, 32px);
}
.panel + .panel,
.sheet + .sheet {
  margin-top: 20px;
}
.filter {
  padding: 20px;
}
.finder {
  display: grid;
  align-items: end;
  gap: 12px;
  grid-template-columns: minmax(12em, 1fr) minmax(145px, 185px) auto;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-weight: 600;
  font-size: 14px;
}
.field small {
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #aab9c6;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 5px;
  font-weight: 400;
  line-height: 1.4;
  min-height: 43px;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input[readonly] {
  background: #f2f5f8;
  color: #546575;
}
.stack {
  display: grid;
  gap: 17px;
}
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.primary,
.secondary,
.critical {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  padding: 10px 17px;
  min-height: 43px;
  border-radius: 5px;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.45;
}
.primary {
  color: #fff;
  background: #2459a9;
  border: 1px solid #2459a9;
}
.primary:hover {
  background: #174785;
}
.secondary {
  background: white;
  color: #244567;
  border: 1px solid #b2c1cf;
}
.secondary:hover {
  background: #f1f6fb;
}
.critical {
  background: #fff9f7;
  color: #973e32;
  border: 1px solid #dcb4ac;
}
.actions {
  margin-top: 21px;
}
.actions .back {
  margin-left: auto;
}
.empty {
  padding: 36px 22px;
  text-align: center;
  color: var(--muted);
  background: #f9fbfd;
  border: 1px dashed #c1cdd9;
  border-radius: 7px;
}
.empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.error {
  margin: 12px 0;
  color: #832d24;
  background: #fff2ed;
  border: 1px solid #e6c3b8;
  border-radius: 5px;
  padding: 10px 14px;
}
.error:empty {
  display: none;
}
#notice:not(:empty) {
  position: fixed;
  z-index: 9;
  right: 24px;
  bottom: 24px;
  padding: 12px 17px;
  background: #183b4a;
  color: white;
  border-radius: 6px;
  box-shadow: 0 4px 18px #1c345329;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: white;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
th,
td {
  padding: 13px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #e2e8ef;
}
th {
  font-size: 13px;
  color: #43586b;
  font-weight: 600;
  background: var(--wash);
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
td .title-link {
  font-weight: 650;
  color: #203f62;
  text-decoration: none;
}
td .title-link:hover {
  text-decoration: underline;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  background: #edf2f7;
  color: #43596c;
  font-size: 12px;
  white-space: nowrap;
}
.badge.published,
.badge.approved,
.badge.active {
  background: #e6f3ef;
  color: #216350;
}
.badge.in_review {
  background: #e7eefb;
  color: #305799;
}
.badge.rejected {
  background: #f9eae5;
  color: #884332;
}
.date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.result {
  padding: 17px 21px;
  border-bottom: 1px solid var(--border);
}
.result:last-child {
  border: 0;
}
.results {
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.result h3 {
  margin-bottom: 5px;
}
.result p {
  margin: 8px 0;
  color: #38495a;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.meta {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.versions {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #eaf0f5;
  border-radius: 7px;
}
.versions h2 {
  font-size: 15px;
  margin: 3px 8px 7px;
}
.edition {
  border-radius: 4px;
  display: block;
  padding: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.edition[aria-current='true'] {
  background: #fff;
  font-weight: 700;
  box-shadow: 0 0 0 1px #bbcad7;
}
.section-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.section-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.section-block p,
.raw,
.diff-line {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.section-block p {
  margin-top: 7px;
}
.section-key,
.id {
  font-size: 12px;
  color: #54667a;
  overflow-wrap: anywhere;
}
.diff {
  padding: 12px 0;
}
.diff + .diff {
  border-top: 1px solid var(--border);
}
.diff-line {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 5px;
  margin-top: 4px;
  padding: 7px 10px;
  border-radius: 3px;
}
.before {
  background: #fcf0ed;
  color: #713b33;
}
.after {
  background: #e9f5ee;
  color: #25533a;
}
.backlink {
  display: inline-block;
  margin-bottom: 16px;
}
.form-box {
  max-width: 850px;
}
.caption {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0;
}
.raw {
  background: #f3f6f9;
  border-radius: 5px;
  padding: 16px;
  margin: 12px 0 0;
  font-family: inherit;
}
.audit-id {
  max-width: 220px;
  overflow-wrap: anywhere;
}
.busy {
  color: var(--muted);
  margin-top: 18px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 950px) {
  .layout {
    grid-template-columns: 188px minmax(0, 1fr);
  }
  .content {
    padding: 32px 22px;
  }
  .rail {
    padding-inline: 9px;
  }
  .detail-grid {
    grid-template-columns: 165px minmax(0, 1fr);
  }
}
@media (max-width: 740px) {
  .layout,
  .login-wrap {
    display: block;
  }
  .login-cover {
    padding: 22px 24px;
  }
  .login-cover h1,
  .shelf {
    display: none;
  }
  .login-body {
    padding: 36px 20px;
  }
  .rail {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px 10px;
  }
  .rail .brand {
    padding: 0;
    gap: 7px;
  }
  .mark {
    width: 29px;
    transform: scale(0.82);
    transform-origin: left center;
  }
  .company {
    border: 0;
    padding: 0;
    font-size: 12px;
    text-align: right;
  }
  .rail nav {
    grid-row: 3;
    grid-column: 1/-1;
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }
  .navlink {
    padding: 6px 9px;
    white-space: nowrap;
    font-size: 13px;
  }
  .navlink .glyph {
    display: none;
  }
  .account {
    grid-column: 1/-1;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: 12px;
  }
  .rail .link-button {
    margin: 0 0 0 auto;
  }
  .content {
    padding: 25px 16px 60px;
  }
  .page-head {
    margin-bottom: 20px;
  }
  .finder {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .finder > .field:first-child {
    grid-column: 1/-1;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .versions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  .versions h2 {
    margin: 0 8px;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .sheet,
  .panel,
  .filter {
    padding: 16px;
  }
  .table-wrap th,
  .table-wrap td {
    padding: 10px 12px;
  }
  .login-cover .brand {
    font-size: 18px;
  }
  .section-block .spread {
    gap: 3px;
  }
}
fieldset {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 9px 13px 13px;
  margin: 0;
}
legend {
  font-size: 14px;
  font-weight: 600;
  padding: 0 4px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.checks input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}
.sheet form,
.sheet h2 + .field {
  margin-top: 12px;
}
.login-cover .brand {
  font-size: 18px;
}
.attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
  padding: 10px 13px;
  background: var(--wash);
  border-radius: 5px;
  font-size: 14px;
}
.attachment span {
  color: var(--muted);
  overflow-wrap: anywhere;
}
