@font-face {
  font-family: "Camp";
  src: url("/assets/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --primary: #14365d;
  --deep: #0b223d;
  --blue: #3478b8;
  --accent: #c95e1b;
  --warm: #ffca8d;
  --ink: #17334f;
  --muted: #536779;
  --line: #d7e2ec;
  --paper: #f4f7fa;
  --white: #fff;
  font-family:
    "Camp",
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.6;
  letter-spacing: -0.012em;
  word-break: keep-all;
  overflow-wrap: break-word;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid var(--blue);
}
.sidebar :focus-visible,
.login-story :focus-visible {
  outline-color: var(--warm);
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 750;
  margin-bottom: 10px;
}
h2 {
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.65;
}
button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 10px 16px;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition:
    background-color 180ms,
    border-color 180ms,
    color 180ms;
}
button:hover {
  background: #edf3f9;
}
button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
button.primary:hover {
  background: var(--deep);
}
button.danger {
  color: #a13527;
}
button.small {
  padding: 7px 11px;
  font-size: 12px;
}
.wide {
  width: 100%;
}
.muted,
.help {
  color: var(--muted);
}
.help {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 16px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--blue);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: #a8ceec;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
}
.brand-mark::before {
  inset: -1.5px 9px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.brand-mark::after {
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1.5px solid currentColor;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wordmark b {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 750;
}
.wordmark small {
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #aec7de;
}
.login-layout {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-story {
  background: var(--deep);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 72px);
  gap: 72px;
  background-image:
    linear-gradient(180deg, #0b223dd9 0%, #0b223d80 35%, #0b223df5 85%),
    url("/assets/images/vanguard/presentation.webp");
  background-size: cover;
  background-position: 36% center;
}
.login-story-copy {
  margin-top: auto;
}
.login-story h1 {
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1.13;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.login-story .eyebrow {
  color: var(--warm);
  margin-bottom: 22px;
}
.login-story .eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  margin: 0 12px 3px 0;
  background: currentColor;
}
.login-story p:not(.eyebrow) {
  color: #d4e2ef;
  font-size: 16px;
  line-height: 1.9;
  margin: 0;
}
.login-caption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #ffffff30;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #aec7de;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 48px;
  background: white;
}
.login-panel form {
  width: min(100%, 400px);
}
.login-panel h2 {
  font-size: 32px;
  margin: 10px 0;
}
.login-panel .field {
  margin-top: 32px;
}
.login-panel input,
.login-panel button.primary {
  min-height: 52px;
}
.login-panel button.primary {
  background: #b55216;
  border-color: #b55216;
}
.login-panel button.primary:hover {
  background: #ac4d13;
  border-color: #ac4d13;
}
.login-panel .help {
  padding: 16px 18px;
  background: var(--paper);
  border-left: 2px solid var(--line);
}
.back-link {
  display: block;
  margin-top: 40px;
  font-size: 13px;
  color: var(--primary);
}
.error {
  color: #ac382c;
  font-size: 13px;
  white-space: pre-line;
  margin-top: 12px;
}
.workspace {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--deep);
  color: white;
  padding: 32px 18px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar .wordmark {
  padding: 0 10px;
  gap: 12px;
}
.sidebar .brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}
.sidebar .brand-mark::before {
  left: 8px;
  right: 8px;
}
.sidebar .wordmark b {
  font-size: 22px;
}
.sidebar .wordmark small {
  font-size: 8px;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.nav-label {
  font-size: 9px;
  color: #93b1ce;
  letter-spacing: 2px;
  padding: 0 12px;
  margin: 40px 0 14px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-button {
  border: 0;
  background: transparent;
  color: #c5d7e8;
  text-align: left;
  padding: 13px 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 500;
}
.nav-button:hover {
  background: #ffffff12;
}
.nav-button.active {
  background: #1b426d;
  box-shadow: inset 3px 0 var(--warm);
  color: white;
  font-weight: 700;
}
.nav-number {
  font-size: 10px;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 12px 0;
  color: #b4cadf;
  font-size: 11px;
}
.sidebar-bottom button {
  display: block;
  background: none;
  color: inherit;
  padding: 14px 0 0;
  border: 0;
  font-size: 11px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
  margin-right: 7px;
}
.workspace-main {
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 40px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.topbar b {
  color: var(--ink);
  font-weight: 600;
}
.slash {
  margin: 0 14px;
  color: #91a5b8;
}
.topbar a {
  color: var(--primary);
  font-weight: 600;
}
#view {
  padding: 40px;
  min-height: calc(100vh - 140px);
}
#view:focus {
  outline: none;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.page-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.section-tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-tag::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}
.panel h2 {
  font-size: 18px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.panel-heading h2 {
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-top: 3px solid #b3cce3;
}
.metric:first-child {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  border-top-color: var(--warm);
}
.metric p {
  font-size: 13px;
  margin: 0 0 18px;
  color: var(--muted);
}
.metric:first-child p,
.metric:first-child small {
  color: #d4e2ef;
}
.metric strong {
  font-size: 40px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
}
.metric small {
  font-size: 12px;
  margin-left: 6px;
  color: var(--muted);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.intro-banner {
  border-radius: 8px;
  padding: 30px;
  background: linear-gradient(115deg, var(--primary), #214e7b);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.intro-banner h2 {
  font-size: 26px;
  margin-bottom: 7px;
}
.intro-banner p {
  font-size: 13px;
  margin: 0;
  color: #d4e2ef;
}
.intro-banner .banner-label {
  color: var(--warm);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.intro-banner button {
  flex-shrink: 0;
  background: white;
  border-color: white;
  color: var(--primary);
}
.intro-banner button:hover {
  background: #e5eff7;
  border-color: #e5eff7;
}
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #e7eef5;
  font-size: 13px;
}
.status-row:last-child {
  border: 0;
}
.badge {
  display: inline-block;
  font-size: 11px;
  border-radius: 6px;
  padding: 5px 9px;
  background: #eaf2fa;
  color: #23537f;
  white-space: nowrap;
}
.badge.amber {
  background: #fff1d5;
  color: #815900;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar input {
  flex: 1;
  min-width: 150px;
}
.toolbar select {
  max-width: 300px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}
.field input,
.field textarea,
.field select,
input.search,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid #c6d5e2;
  background: #fff;
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  min-height: 44px;
}
.field textarea {
  resize: vertical;
  line-height: 1.7;
  min-height: 88px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  outline: 2px solid #3478b845;
}
.field .help {
  font-weight: 400;
  margin: 0;
}
.field-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.field-title button {
  font-size: 11px;
  padding: 4px 8px;
}
.field-key {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.content-fields {
  display: grid;
  gap: 16px;
}
.content-field {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.content-field .field {
  margin: 0;
}
.image-editor {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
}
.image-editor img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 7px;
  background: #e7eef5;
}
.image-editor input {
  margin-bottom: 10px;
}
.editor-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f4f7faf5;
  padding: 12px 0 6px;
  backdrop-filter: blur(10px);
}
.save-state {
  font-size: 12px;
  color: var(--muted);
}
.save-state.dirty {
  color: #986517;
}
.notice {
  font-size: 12px;
  line-height: 1.7;
  padding: 14px 18px;
  border: 1px solid #c9ddeb;
  background: #edf4fa;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #305578;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}
th {
  background: #f2f6fa;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 18px;
  border-bottom: 1px solid #e7eef5;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f7faff;
}
.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fff;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  font-size: 12px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.media-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: white;
}
.media-card img,
.pdf-cover {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #e7eef5;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 30px;
}
.media-card div.media-info {
  padding: 12px;
}
.media-card p {
  margin: 0 0 6px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.media-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 12px;
}
.media-card button {
  width: 100%;
}
.upload {
  border: 1px dashed #8baecc;
  background: #edf4fa;
  padding: 24px;
  border-radius: 10px;
  margin-bottom: 24px;
}
.upload input {
  max-width: 100%;
  font-size: 13px;
}
.upload p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  margin: 12px 0 20px;
}
.checkbox input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
}
.admin-footer {
  padding: 20px 40px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 24px;
}
.detail-grid dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.detail-grid dd {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.answer {
  padding: 18px;
  background: var(--paper);
  border-radius: 8px;
  margin-bottom: 14px;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.8;
}
.answer strong {
  display: block;
  font-size: 11px;
  color: var(--primary);
  margin-bottom: 7px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form-grid .full {
  grid-column: 1/-1;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  width: min(840px, calc(100vw - 32px));
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 24px 80px #0b223d33;
}
dialog::backdrop {
  background: #0b223dcc;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: white;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.dialog-head h2 {
  margin: 0;
  font-size: 20px;
}
.dialog-head button {
  border: 0;
  font-size: 24px;
  padding: 0 6px;
}
#dialog-body {
  padding: 28px;
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  padding: 16px 22px;
  max-width: calc(100vw - 48px);
  background: var(--deep);
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 10px;
  box-shadow: 0 8px 30px #0002;
  white-space: pre-line;
}
#toast.error {
  background: #8f3226;
}
.loading {
  padding: 60px;
  text-align: center;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 12px;
  }
  .topbar {
    padding: 0 24px;
  }
  #view {
    padding: 28px 24px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-head {
    flex-direction: column;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 36px;
  }
  .login-panel {
    padding: 36px;
  }
  .intro-banner {
    align-items: flex-start;
  }
}
@media (max-width: 700px) {
  .login-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .login-story {
    padding: 24px 28px 30px;
    gap: 36px;
    background-position: 36% 38%;
  }
  .login-story h1 {
    font-size: 38px;
    margin-bottom: 0;
  }
  .login-story h1 br {
    display: none;
  }
  .login-story-copy > p,
  .login-caption {
    display: none;
  }
  .login-panel {
    padding: 36px 28px 40px;
    align-items: start;
  }
  .login-panel h2 {
    font-size: 28px;
  }
  .login-panel .muted {
    font-size: 14px;
  }
  .login-panel .back-link {
    margin-top: 28px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 20px 16px;
  }
  .sidebar .wordmark b {
    font-size: 21px;
  }
  .sidebar .wordmark br {
    display: none;
  }
  .sidebar .wordmark {
    padding: 0;
  }
  .nav-label {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin-top: 20px;
    gap: 6px;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: #547492 var(--deep);
  }
  .nav-button {
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .nav-number {
    display: none;
  }
  .sidebar-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 0;
    margin-top: 8px;
    border-top: 1px solid #ffffff20;
  }
  .sidebar-bottom button {
    padding: 0 8px;
    min-height: 36px;
  }
  .topbar {
    height: 60px;
    padding: 0 18px;
    font-size: 11px;
    gap: 12px;
    line-height: 1.5;
  }
  .topbar a {
    flex-shrink: 0;
    padding: 10px 0;
  }
  .slash {
    margin: 0 6px;
  }
  #view {
    padding: 26px 16px;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .cards {
    gap: 10px;
  }
  .metric {
    padding: 18px;
  }
  .metric strong {
    font-size: 34px;
  }
  .intro-banner {
    flex-direction: column;
    padding: 22px;
  }
  .intro-banner h2 {
    font-size: 23px;
  }
  .panel {
    padding: 18px;
  }
  .image-editor {
    grid-template-columns: 1fr;
  }
  .image-editor img {
    width: 100%;
    height: 180px;
  }
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .editor-bar .actions button {
    font-size: 12px;
    padding: 9px 10px;
  }
  .toolbar select {
    max-width: 100%;
    width: 100%;
  }
  .admin-footer {
    padding: 20px 16px;
  }
  .admin-footer span {
    display: none;
  }
  #dialog-body {
    padding: 20px;
  }
  .dialog-head {
    padding: 18px 20px;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content-field {
    padding: 16px;
  }
  .field input,
  .field select,
  .field textarea,
  .toolbar input,
  .toolbar select {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}
