@font-face{font-family:"Black Han Sans";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/black-han-sans-400.ttf") format("truetype")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/ibm-plex-mono-400.ttf") format("truetype")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/ibm-plex-mono-600.ttf") format("truetype")}
@font-face{font-family:"IBM Plex Sans KR";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/ibm-plex-sans-kr-400.ttf") format("truetype")}
@font-face{font-family:"IBM Plex Sans KR";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/ibm-plex-sans-kr-600.ttf") format("truetype")}
@font-face{font-family:"IBM Plex Sans KR";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/ibm-plex-sans-kr-700.ttf") format("truetype")}

:root {
  color-scheme: light;
  --paper: #f1e8d6;
  --paper2: #fbf6ec;
  --card: #fdfaf3;
  --ink: #231d16;
  --ink2: #5c5347;
  --muted: #8a8073;
  --line: #d7cab1;
  --line2: #e6dcc7;
  --accent: #d8442c;
  --accent-deep: #b3331e;
  --accent-soft: #f7e0d9;
  --danger: #c0392b;
  --danger-soft: #f7e0db;
  --sh-rgb: 35, 29, 22;
  --shadow: 6px 6px 0 rgba(var(--sh-rgb), .13);
  --shadow-sm: 3px 3px 0 rgba(var(--sh-rgb), .16);
  --disp: "Black Han Sans", "IBM Plex Sans KR", system-ui, sans-serif;
  --sans: "IBM Plex Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --fg: var(--ink);
  --border: var(--line);
  --bg: var(--paper);
  --surface: var(--card);
  --surface-subtle: var(--paper2);
  --on-solid: #fff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #15120e;
  --paper2: #211b15;
  --card: #1b1611;
  --ink: #f1e7d5;
  --ink2: #cabda6;
  --muted: #90836e;
  --line: #39301f;
  --line2: #2b2318;
  --accent: #f4593c;
  --accent-deep: #c23d28;
  --accent-soft: #3a201a;
  --danger: #ff6f5e;
  --danger-soft: #2c1714;
  --sh-rgb: 0, 0, 0;
  --on-solid: #fff;
}

* { box-sizing: border-box; }
html { min-width: 280px; background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -.005em;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 34px 20px 18px;
  border-bottom: 2px solid var(--ink);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}
.brand-copy { min-width: 0; }
.brand strong, .brand small {
  word-break: keep-all;
  overflow-wrap: normal;
}
.brand strong {
  display: block;
  font-family: var(--disp);
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}
#theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
}
#theme-toggle:hover { border-color: var(--ink); background: var(--paper2); }

.page-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 16px 16px 64px;
  outline: none;
}
.site-footer {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 0 16px 32px;
  text-align: center;
}
.site-footer a {
  display: inline-block;
  padding: 6px;
  color: var(--muted);
  font-size: .75rem;
  text-underline-offset: 3px;
}

.page-title {
  margin: 0;
  font-family: var(--disp);
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.page-lead {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.section-head h2, .section-head h3 { margin: 0; overflow-wrap: anywhere; }
.section-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .75rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 16px;
}
.filter-button, .quiet-button, .primary-button, .danger-button, .text-button {
  min-height: 40px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--paper2);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.filter-button[aria-pressed="true"], .primary-button {
  border-color: var(--accent-deep);
  background: var(--accent);
  color: var(--on-solid);
}
.danger-button {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}
.text-button {
  min-height: auto;
  padding: 5px 7px;
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.progress-list { display: flex; flex-direction: column; gap: 12px; }
.progress-card {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.card-link { position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card-photo, .detail-cover, .admin-thumb {
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper2);
}
.card-photo { height: 88px; border-radius: 5px; }
.photo-placeholder {
  display: grid;
  place-items: center;
  height: 88px;
  border: 1px dashed var(--line);
  border-radius: 5px;
  background: var(--paper2);
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
}
.card-copy { min-width: 0; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  color: var(--muted);
  font-size: .78rem;
}
.stage-label { color: var(--accent); font-weight: 700; }
.card-title {
  margin: 6px 0 4px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.card-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notice, .error-box, .empty-box {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.error-box { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.empty-box strong { display: block; margin-bottom: 4px; }
.loading-line { height: 3px; overflow: hidden; border-radius: 2px; background: var(--line); }
.loading-line::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  animation: loading 1.1s ease-in-out infinite alternate;
}
@keyframes loading { to { transform: translateX(150%); } }

.back-link { display: inline-block; margin-bottom: 16px; color: var(--muted); text-underline-offset: 3px; }
.detail-sheet {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.detail-empty { margin: 16px; }
.detail-head {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px dashed var(--line);
}
.detail-cover { max-height: 420px; border-radius: 8px; aspect-ratio: 16 / 10; }
.detail-copy { min-width: 0; }
.detail-copy h1 {
  margin: 8px 0;
  font-family: var(--disp);
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.detail-summary { margin: 0; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.detail-description {
  margin: 12px 0 0;
  white-space: pre-wrap;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.timeline { margin: 0; padding: 20px 16px 24px; list-style: none; }
.timeline-item {
  position: relative;
  margin-left: 6px;
  padding: 0 0 24px 22px;
  border-left: 2px solid var(--line);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -6px;
  top: 5px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--card);
}
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--muted);
  font-size: .78rem;
}
.timeline-body {
  margin: 8px 0 0;
  white-space: pre-wrap;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.timeline-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.timeline-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.admin-login {
  width: min(100%, 460px);
  margin: 24px auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-list { display: grid; gap: 10px; }
.admin-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.admin-row h3, .admin-row p { margin: 0; overflow-wrap: anywhere; }
.admin-row p { color: var(--muted); line-height: 1.5; }
.admin-detail { display: grid; gap: 16px; }
.admin-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.admin-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-image-card {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper2);
}
.admin-thumb { aspect-ratio: 1 / 1; border-radius: 6px; }
.admin-image-card .admin-actions { margin-top: 7px; }
.progress-note { min-height: 22px; margin-top: 7px; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.progress-note:empty { display: none; }

.form-grid { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.field label { min-width: 0; font-size: .9rem; overflow-wrap: anywhere; word-break: break-word; }
.field small { min-width: 0; color: var(--muted); overflow-wrap: anywhere; word-break: break-word; }
input, textarea, select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: var(--paper2);
  color: var(--ink);
}
textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
input[type="file"] { max-width: 100%; padding: 8px; overflow: hidden; text-overflow: ellipsis; white-space: normal; }
.dialog {
  width: min(calc(100% - 24px), 620px);
  max-height: calc(100vh - 32px);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0;
  background: var(--card);
  color: var(--ink);
  box-shadow: 9px 9px 0 var(--accent);
}
.dialog::backdrop { background: rgb(0 0 0 / 48%); }
.dialog-inner { max-height: calc(100vh - 36px); padding: 18px; overflow: auto; }
.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.dialog-head h2 { margin: 0; overflow-wrap: anywhere; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.noscript { margin: 20px; padding: 14px; border: 1px solid var(--danger); }

@media (max-width: 360px) {
  .site-header { gap: 8px; padding: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .brand strong { font-size: 1.05rem; white-space: nowrap; }
  .brand small { font-size: 10px; }
  #theme-toggle { flex-basis: 36px; width: 36px; height: 36px; min-height: 36px; padding: 0; font-size: 17px; }
  .progress-card { grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .card-photo, .photo-placeholder { height: 74px; }
}

@media (min-width: 680px) {
  .detail-head { grid-template-columns: minmax(220px, 42%) minmax(0, 1fr); align-items: start; }
  .timeline-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

.public-notice-list { gap: 16px; }
.progress-notice-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  scroll-margin-top: 16px;
}
.progress-notice-card:focus { outline: 3px solid var(--accent); outline-offset: 3px; }
.public-card-main {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-width: 0;
}
.public-card-media {
  min-width: 0;
  min-height: 132px;
  overflow: hidden;
  border-right: 1px dashed var(--line);
  background: var(--paper2);
}
.public-card-cover {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}
.public-card-media > .photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 132px;
  border: 0;
  border-radius: 0;
}
.public-card-copy { min-width: 0; padding: 16px; }
.public-card-title {
  margin: 7px 0 5px;
  font-family: var(--disp);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.public-card-summary {
  margin: 0;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.public-card-description {
  margin: 10px 0 0;
  white-space: pre-wrap;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.public-replies {
  min-width: 0;
  border-top: 1px dashed var(--line);
  background: var(--paper2);
}
.public-replies-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px dashed var(--line);
}
.public-replies-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}
.public-replies-title-wrap h3 {
  margin: 0;
  font-size: .95rem;
  overflow-wrap: anywhere;
}
.public-replies-count { color: var(--muted); font-size: .75rem; }
.public-replies-toggle {
  min-height: 34px;
  padding: 5px 9px;
  white-space: nowrap;
}
.public-replies-body { min-width: 0; padding: 14px 16px 18px; }
.public-replies-body[hidden] { display: none; }
.public-replies-note,
.public-replies-error {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.public-replies-note { color: var(--muted); }
.public-replies-error { margin-bottom: 10px; color: var(--danger); }
.public-replies-body > .loading-line { margin-top: 10px; }
.public-replies-list { margin: 0; padding: 0; }
.public-replies-list .reply-item {
  margin-left: 6px;
  padding: 0 0 20px 20px;
}
.public-replies-list .reply-item:last-child { padding-bottom: 0; }
.public-replies-list .timeline-photos { min-width: 0; }
.public-replies-list .reply-photo,
.public-replies-list .timeline-photos .photo-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

@media (max-width: 420px) {
  .public-card-main { grid-template-columns: minmax(0, 1fr); }
  .public-card-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px dashed var(--line);
  }
  .public-card-cover,
  .public-card-media > .photo-placeholder {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .public-card-copy { padding: 13px; }
  .public-replies-head { padding: 10px 13px; }
  .public-replies-body { padding: 13px; }
  .public-replies-list .reply-item { padding-left: 18px; }
}

/* 주황 코트 시각 체계 */
:root {
  --paper: #f3f0e8;
  --paper2: #fffaf1;
  --card: #fffdf8;
  --ink: #172238;
  --ink2: #465168;
  --muted: #737b89;
  --line: #cbd0d8;
  --line2: #e5e2da;
  --accent: #f26a21;
  --accent-deep: #cf4d0c;
  --accent-soft: #fde3d2;
  --sh-rgb: 23, 34, 56;
  --court-line: rgba(23, 34, 56, .055);
  --sport-white: #fffaf1;
  --sport-navy: #172238;
  --sport-navy-deep: #0d1525;
}
:root[data-theme="dark"] {
  --paper: #0d1421;
  --paper2: #172133;
  --card: #111b2b;
  --ink: #f5f1e8;
  --ink2: #c1c7d2;
  --muted: #8d97a8;
  --line: #344158;
  --line2: #263247;
  --accent: #ff7a2f;
  --accent-deep: #e65713;
  --accent-soft: #3a2419;
  --sh-rgb: 0, 0, 0;
  --court-line: rgba(255, 255, 255, .045);
  --sport-white: #fffaf1;
  --sport-navy: #111b2b;
  --sport-navy-deep: #080d17;
}
body {
  background-image:
    linear-gradient(var(--court-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--court-line) 1px, transparent 1px);
  background-size: 48px 48px;
}
.site-header {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 4px;
  padding: 20px 18px;
  border: 0;
  border-bottom: 7px solid var(--accent);
  border-radius: 16px 16px 8px 8px;
  color: var(--sport-white);
  background: linear-gradient(118deg, var(--sport-navy-deep), var(--sport-navy));
  box-shadow: 0 12px 28px rgba(var(--sh-rgb), .18);
}
.brand,
#theme-toggle { position: relative; z-index: 1; }
#theme-toggle { border-color: var(--sport-white); color: var(--sport-white); }
#theme-toggle:hover { background: var(--sport-white); color: var(--sport-navy); }
.filter-button,
.quiet-button,
.primary-button,
.danger-button,
.text-button,
input,
textarea,
select,
.progress-card,
.notice,
.error-box,
.empty-box,
.detail-sheet,
.admin-login,
.admin-row,
.admin-panel,
.admin-image-card,
.dialog,
.progress-notice-card {
  border-radius: 8px;
}
.filter-button,
.quiet-button,
.primary-button,
.danger-button { box-shadow: none; }
.filter-button:active,
.quiet-button:active,
.primary-button:active,
.danger-button:active {
  transform: translateY(1px);
  box-shadow: none;
}
.primary-button { box-shadow: inset 0 -3px 0 rgba(var(--sh-rgb), .16); }
.progress-card,
.progress-notice-card,
.detail-sheet,
.admin-login,
.admin-row,
.admin-panel,
.empty-box {
  border: 1px solid var(--line);
  border-top: 4px solid var(--sport-navy);
  border-radius: 12px;
  box-shadow: 0 9px 22px rgba(var(--sh-rgb), .11);
}
.progress-card::after,
.progress-notice-card::after,
.admin-row::after {
  position: absolute;
  top: 16px;
  right: 15px;
  width: 36px;
  height: 7px;
  border-radius: 999px;
  content: "";
  background: var(--accent);
  pointer-events: none;
}
.progress-notice-card::after { z-index: 2; }
.admin-row { position: relative; }
.card-copy,
.public-card-copy { padding-right: 56px; }
.stage-label {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--accent-soft);
  font-family: var(--mono);
  letter-spacing: .02em;
}
.card-meta,
.timeline-meta,
.section-note,
.progress-note,
.public-replies-count { font-family: var(--mono); }
.public-replies,
.detail-head,
.admin-bar { border-color: var(--line); }
.timeline-item { border-left-style: solid; border-left-color: var(--accent); }

@media (max-width: 520px) {
  .site-header {
    margin-top: 10px;
    padding: 16px 12px;
    border-bottom-width: 6px;
    border-radius: 12px 12px 7px 7px;
  }
  .site-header::before { right: -62px; bottom: -94px; }
  .site-header::after { right: 70px; width: 20px; }
  .progress-card::after,
  .progress-notice-card::after,
  .admin-row::after { display: none; }
  .progress-card,
  .progress-notice-card,
  .detail-sheet,
  .admin-login,
  .admin-row,
  .admin-panel,
  .empty-box { box-shadow: 0 7px 17px rgba(var(--sh-rgb), .1); }
  .card-copy,
  .public-card-copy { padding-right: 13px; }
  input,
  textarea,
  select { font-size: 16px; }
}

/* 로댕0819 공통 브랜드 */
:root {
  --paper: #f4eee3;
  --paper2: #fbf7ef;
  --card: #fffdf8;
  --ink: #29231d;
  --ink2: #5e554a;
  --muted: #81776a;
  --line: #d8cdbb;
  --line2: #e9e0d2;
  --accent: #e66f2f;
  --accent-deep: #bd4f20;
  --accent-soft: #f8dfcf;
  --brand-banner: #eee2d0;
  --brand-feather: #29231d;
  --brand-highlight: rgba(255,255,255,.14);
  --leaf: #65704d;
  --sh-rgb: 41, 35, 29;
}
:root[data-theme="dark"] {
  --paper: #17130f;
  --paper2: #211b15;
  --card: #1d1813;
  --ink: #f2e8d8;
  --ink2: #cabdaa;
  --muted: #9d907c;
  --line: #423729;
  --line2: #30271e;
  --accent: #f17a38;
  --accent-deep: #d45b24;
  --accent-soft: #3b251a;
  --brand-banner: #241d17;
  --brand-feather: #f2e8d8;
  --brand-highlight: rgba(255,255,255,.08);
  --leaf: #89936c;
  --sh-rgb: 0, 0, 0;
}
body {
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(var(--sh-rgb), .045) 1px, transparent 1.2px);
  background-size: 18px 18px;
}
.site-header {
  display: block;
  position: relative;
  overflow: hidden;
  width: min(calc(100% - 32px), 760px);
  margin: 16px auto 0;
  padding: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 4px 4px;
  color: var(--ink);
  background: var(--brand-banner);
  box-shadow: 0 8px 22px rgba(var(--sh-rgb), .09);
}
.site-header::before,
.site-header::after { display: none; }
.brand-row {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 72px;
  padding: 0 18px;
  border-bottom: 3px solid var(--accent);
}
.brand { color: var(--ink); }
.brand strong {
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.03em;
}
.brand-mark { width: 30px; height: 30px; flex: 0 0 30px; }
.brand-art {
  position: relative;
  width: 104px;
  height: 42px;
  margin-left: auto;
  margin-right: 12px;
  flex: 0 0 104px;
}
.brand-art::before {
  position: absolute;
  left: 4px;
  top: 17px;
  width: 46px;
  height: 14px;
  border-top: 1px dashed var(--brand-feather);
  border-radius: 50%;
  content: "";
  opacity: .48;
  transform: rotate(-7deg);
}
.brand-art::after {
  position: absolute;
  right: 4px;
  top: 9px;
  width: 30px;
  height: 12px;
  border-radius: 100% 0 100% 0;
  content: "";
  background: var(--brand-feather);
  transform: rotate(-22deg) skewX(-12deg);
}
.brand-art i {
  position: absolute;
  bottom: 4px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--accent-deep);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 3px 2px 0 var(--brand-highlight);
}
.brand-art i:nth-child(1) { left: 4px; }
.brand-art i:nth-child(2) { left: 17px; bottom: 8px; width: 12px; height: 12px; }
.brand-art i:nth-child(3) { left: 27px; bottom: 2px; width: 11px; height: 11px; }
.brand-art i:nth-child(3)::after {
  position: absolute;
  left: 3px;
  top: -8px;
  width: 11px;
  height: 6px;
  border-radius: 100% 0 100% 0;
  content: "";
  background: var(--leaf);
  transform: rotate(-22deg);
}
#theme-toggle {
  position: relative;
  z-index: 1;
  border-color: var(--ink);
  background: var(--paper2);
}
.site-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--card);
}
.site-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  border-right: 1px solid var(--line2);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.site-tabs a:last-child { border-right: 0; }
.site-tabs a:hover { color: var(--ink); background: var(--paper2); }
.site-tabs a.active {
  color: var(--ink);
  background: var(--accent-soft);
  box-shadow: inset 0 -3px 0 var(--accent);
}
.page-heading {
  width: min(calc(100% - 32px), 720px);
  margin: 24px auto 0;
}
.page-heading h1 {
  margin: 0;
  font-family: var(--disp);
  font-size: clamp(1.65rem, 7vw, 2.25rem);
  font-weight: 400;
}
.page-shell { padding-top: 16px; }
.progress-card,
.progress-notice-card,
.detail-sheet,
.admin-login,
.admin-row,
.admin-panel,
.empty-box {
  border-top-color: var(--accent);
  box-shadow: 0 7px 18px rgba(var(--sh-rgb), .08);
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .75rem;
}
.contact-link { color: inherit; text-decoration: none; }
.contact-link:hover { color: var(--accent-deep); text-decoration: underline; }
@media (max-width: 360px) {
  .site-header { gap: 0; width: calc(100% - 20px); margin-top: 10px; padding: 0; }
  .brand-row { height: 58px; padding: 0 10px; }
  .brand { gap: 7px; }
  .brand strong { font-size: 1.04rem; }
  .brand-mark { width: 24px; height: 24px; flex-basis: 24px; }
  .brand-art { width: 70px; flex-basis: 70px; margin-right: 7px; }
  .brand-art::before { width: 31px; }
  .brand-art::after { width: 23px; right: 1px; }
  .brand-art i:nth-child(3) { display: none; }
  #theme-toggle { width: 34px; height: 34px; min-height: 34px; flex-basis: 34px; }
  .site-tabs a { min-height: 44px; font-size: .82rem; letter-spacing: -.03em; }
  .page-heading { width: calc(100% - 20px); margin-top: 20px; }
}

/* 첨부 시안 기준 바인더 화면 */
:root {
  --binder-head: #3b3935;
  --binder-head-ink: #fffaf1;
  --binder-plastic: rgba(255,255,255,.52);
  --binder-plastic-line: rgba(70,62,52,.34);
  --binder-sheet: #fbfaf5;
  --binder-ring: #4a4844;
  --binder-green: #55735c;
  --binder-gold: #e6a750;
  --binder-olive: #8f8c58;
  --binder-glass: rgba(255,255,255,.15);
  --binder-toggle: rgba(255,255,255,.08);
  --binder-on-accent: #fff;
}
:root[data-theme="dark"] {
  --binder-head: #211f1c;
  --binder-head-ink: #f7ecdc;
  --binder-plastic: rgba(58,50,41,.58);
  --binder-plastic-line: rgba(242,232,216,.24);
  --binder-sheet: #28221c;
  --binder-ring: #c4b9a8;
  --binder-green: #77927a;
}
.portal-board { overflow:hidden; width:min(calc(100% - 32px),1160px); margin:22px auto 38px; border:1px solid var(--line); border-radius:22px; background:var(--paper2); box-shadow:0 12px 34px rgba(var(--sh-rgb),.12); }
.portal-board .site-header { width:100%; margin:0; border:0; border-radius:0; box-shadow:none; }
.brand-row {
  height: 146px;
  padding: 0 28px;
  color: var(--binder-head-ink);
  background-color: var(--binder-head);
  background-image: url("/assets/rodang-banner.png");
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -20px 30px rgba(var(--sh-rgb),.13);
}
.brand { margin-left: 19%; color: var(--binder-head-ink); }
.brand .brand-mark { display: none; }
.brand strong { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; letter-spacing: .06em; text-shadow: 0 2px 8px var(--binder-head); }
.brand-art { display: none; }
.brand-art::before { left: 2px; top: 21px; width: 150px; border-color: var(--binder-head-ink); }
.brand-art::after { right: 0; top: 3px; width: 48px; height: 19px; background: var(--binder-head-ink); }
.brand-art i { width: 6px; height: 6px; border: 0; background: var(--binder-gold); box-shadow: none; }
.brand-art i:nth-child(1) { left: 38px; bottom: 25px; }
.brand-art i:nth-child(2) { left: 102px; bottom: 33px; width: 8px; height: 8px; }
.brand-art i:nth-child(3) { left: 136px; bottom: 17px; width: 5px; height: 5px; }
.brand-art i:nth-child(3)::after { display: none; }
#theme-toggle { margin-left: auto; border-color: var(--binder-head-ink); background: var(--binder-toggle); color: var(--binder-head-ink); }
.site-tabs a { min-height: 60px; font-size: 1.08rem; }
.binder-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; width:auto; margin:0; padding:68px 54px 62px; background:var(--paper2); }
.binder-pocket { position:relative; min-width:0; min-height:430px; border:1px solid var(--binder-plastic-line); border-radius:20px; color:var(--ink); background:var(--binder-plastic); box-shadow:0 10px 24px rgba(var(--sh-rgb),.11),inset 0 0 0 7px var(--binder-glass); text-decoration:none; transition:transform .15s,border-color .15s,box-shadow .15s; }
.binder-pocket:hover { transform:translateY(-3px); border-color:var(--accent); box-shadow:0 14px 28px rgba(var(--sh-rgb),.16); }
.binder-pocket.is-current { border-color:var(--accent); box-shadow:0 12px 28px rgba(var(--sh-rgb),.14),inset 0 0 0 2px var(--accent-soft); }
.binder-pocket.is-current::after { position:absolute; top:76px; right:14px; z-index:4; border-radius:999px; padding:5px 8px; content:"현재"; color:var(--binder-on-accent); background:var(--accent); font-size:.7rem; font-weight:700; }
.binder-pocket:first-child.is-current::after { content:"중요"; }
.binder-rings { position:absolute; left:-9px; top:0; bottom:0; z-index:5; width:28px; }
.binder-rings i { position:absolute; left:0; width:27px; height:11px; border:2px solid var(--binder-ring); border-radius:50%; background:var(--paper2); box-shadow:inset 0 0 0 2px var(--line2); }
.binder-rings i:nth-child(1){top:22%}.binder-rings i:nth-child(2){top:49%}.binder-rings i:nth-child(3){top:76%}
.binder-sheet { position:absolute; inset:26px 20px 22px 34px; overflow:hidden; border:1px solid var(--binder-plastic-line); border-radius:12px; background:var(--binder-sheet); box-shadow:0 6px 14px rgba(var(--sh-rgb),.08); }
.binder-label { position:absolute; top:22px; left:50%; z-index:3; min-width:128px; border:1px solid var(--line); border-radius:7px; padding:9px 14px; background:var(--paper2); box-shadow:0 7px 0 var(--ink); font-size:1.02rem; text-align:center; transform:translateX(-50%); white-space:nowrap; }
.binder-visual { position:absolute; left:50%; top:104px; width:72%; height:230px; border:1.5px solid var(--ink); background-color:var(--paper2); transform:translateX(-50%); }
.memo-visual { background-image:repeating-linear-gradient(to bottom,transparent 0 29px,var(--line2) 30px 31px); }
.visual-clip { position:absolute; left:50%; top:-14px; width:48px; height:17px; border:2px solid var(--ink); border-radius:5px 5px 2px 2px; background:var(--binder-sheet); transform:translateX(-50%); }
.visual-clip::before { position:absolute; left:18px; top:-10px; width:10px; height:10px; border:2px solid var(--ink); border-radius:50%; content:""; background:var(--binder-sheet); }
.visual-star { position:absolute; left:13px; top:12px; color:var(--accent); }.visual-star::before{content:"★"}
.visual-feather { position:absolute; right:9px; bottom:13px; width:62px; height:20px; border-radius:100% 0 100% 0; background:var(--ink); transform:rotate(-58deg); }
.draw-visual { background-image:linear-gradient(var(--line2) 1px,transparent 1px),linear-gradient(90deg,var(--line2) 1px,transparent 1px); background-size:28px 28px; }
.draw-visual i { position:absolute; width:74px; height:88px; border:2px solid var(--ink); background:var(--card); box-shadow:0 4px 0 rgba(var(--sh-rgb),.18); }
.draw-visual i::before { position:absolute; left:50%; top:-12px; width:8px; height:18px; border:2px solid var(--ink); border-radius:4px; content:""; transform:translateX(-50%); }
.draw-visual i:nth-child(1){left:16px;top:42px;background:var(--accent-soft);transform:rotate(-3deg)}.draw-visual i:nth-child(2){right:16px;top:31px;background:var(--ink)}.draw-visual i:nth-child(3){left:50%;bottom:17px;width:112px;height:96px;background:var(--card);transform:translateX(-50%)}
.progress-visual { border-bottom:18px solid var(--binder-green); }
.progress-visual::before { position:absolute; left:16px; bottom:0; width:3px; height:112px; content:""; background:var(--binder-green); box-shadow:8px -18px 0 -1px var(--binder-green),-7px -38px 0 -1px var(--binder-green),10px -58px 0 -1px var(--binder-green); transform:rotate(-7deg); }
.progress-visual i { position:absolute; bottom:14px; border:1.5px solid var(--ink); background:var(--paper); }
.progress-visual i:nth-child(1){left:52px;width:66px;height:78px}.progress-visual i:nth-child(2){right:15px;width:78px;height:104px}.progress-visual i:nth-child(3){left:82px;bottom:93px;width:88px;height:54px}
.binder-strip { position:absolute; left:0; right:0; bottom:0; height:13px; background:var(--ink); }.binder-pocket:nth-child(2) .binder-strip{background:var(--accent)}.binder-pocket:nth-child(3) .binder-strip{background:var(--binder-green)}
.overview-footer{display:flex;align-items:center;justify-content:center;gap:38px;min-height:56px;padding:10px 24px;border-top:1px solid var(--line);color:var(--ink2);background:var(--paper2);font-size:.82rem}
.overview-footer a{color:inherit;text-decoration:none}.overview-footer a:hover{color:var(--accent-deep);text-decoration:underline}
.back-home{display:inline-flex;margin-bottom:12px;color:var(--muted);font-size:.82rem;font-weight:700;text-decoration:none}.back-home:hover{color:var(--accent-deep);text-decoration:underline}
.page-heading,.page-shell { width:min(calc(100% - 32px),720px); }
.site-footer { width:min(calc(100% - 32px),1030px); margin-left:auto; margin-right:auto; }
@media(max-width:640px){
  .portal-board{width:calc(100% - 20px);margin:10px auto 28px;border-radius:16px}.brand-row{height:88px;padding:0 10px;background-position:center;background-size:cover}.brand{margin-left:22%}.brand strong{font-size:1.2rem;letter-spacing:.03em}.brand-art{width:88px;flex-basis:88px;margin-right:4px}.brand-art::before{width:56px}.brand-art::after{width:29px;height:12px}.site-tabs a{min-height:48px;font-size:.82rem}.binder-overview{grid-template-columns:1fr;gap:13px;width:auto;margin:0;padding:22px 18px 24px}.binder-pocket{min-height:275px;border-radius:14px}.binder-sheet{inset:14px 14px 13px 30px}.binder-label{top:13px;min-width:112px;padding:6px 11px;font-size:.88rem;box-shadow:0 5px 0 var(--ink)}.binder-visual{top:72px;width:70%;height:155px}.draw-visual i{width:50px;height:58px}.draw-visual i:nth-child(3){width:78px;height:62px}.progress-visual i:nth-child(1){left:47px;width:48px;height:53px}.progress-visual i:nth-child(2){width:54px;height:72px}.progress-visual i:nth-child(3){left:69px;bottom:65px;width:64px;height:38px}.progress-visual::before{height:76px}.visual-feather{width:46px;height:15px}.overview-footer{flex-wrap:wrap;gap:5px 18px;min-height:58px;padding:9px 12px;font-size:.72rem}
}
/* 통합 사이트 4개 메뉴 */
.site-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:360px){.site-tabs a{font-size:.75rem;padding-inline:2px}}
