:root {
  --ink: #172018;
  --muted: #657165;
  --paper: #f3f5ef;
  --white: #fff;
  --forest: #244b31;
  --forest-dark: #102b1b;
  --line: rgba(23, 32, 24, .14);
  --danger: #9b332b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
button, input { font: inherit; }
a { color: inherit; }
.admin-shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 90px; }
.admin-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 8px; color: #788478; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(36px, 6vw, 64px); line-height: 1; letter-spacing: -.05em; }
h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.header-actions { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 700; }
.header-actions form { margin: 0; }
.text-button { border: 0; padding: 0; color: var(--muted); background: none; cursor: pointer; text-decoration: underline; }
.card { margin-top: 18px; padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 12px 40px rgba(27, 50, 32, .06); }
.card.compact { width: min(520px, 100%); margin: 70px auto 0; }
.card.compact > p { color: var(--muted); line-height: 1.7; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.section-title div { display: flex; align-items: center; gap: 11px; }
.section-title span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: white; background: var(--forest); font-size: 11px; font-weight: 800; }
.section-title > p { margin: 0; color: var(--muted); font-size: 12px; }
.form-grid, .upload-form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 800; }
input[type="password"], input[type="text"] { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcf9; outline: none; }
input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(36,75,49,.1); }
small { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
.dropzone { padding: 26px; border: 1px dashed rgba(36,75,49,.42); border-radius: 12px; background: #f5f8f3; }
.dropzone strong { font-size: 17px; }
.dropzone span { color: var(--muted); font-size: 12px; font-weight: 400; }
.dropzone input { margin-top: 8px; font-size: 13px; }
.primary-button { justify-self: start; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; color: white; background: var(--forest); font-weight: 800; cursor: pointer; }
.primary-button:hover { background: var(--forest-dark); }
.notice { padding: 14px 18px; border-radius: 9px; font-size: 13px; font-weight: 700; }
.notice.success { color: #1d5830; background: #e6f4e9; }
.notice.error { color: #7c2620; background: #f9e7e5; }
.empty { margin: 0; padding: 34px 0; color: var(--muted); text-align: center; }
.photo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.photo-card { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 14px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 11px; }
.photo-card img { width: 92px; height: 72px; border-radius: 7px; object-fit: cover; background: #e1e6de; }
.photo-card > div { display: grid; min-width: 0; gap: 5px; }
.photo-card strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.photo-card span { color: var(--muted); font-size: 11px; }
.delete-button { border: 0; padding: 8px; color: var(--danger); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.music-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.music-upload-box { padding: 22px; border: 1px dashed rgba(36,75,49,.42); border-radius: 12px; background: #f5f8f3; }
.music-upload-box input { margin-top: 6px; }
.current-music { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(220px, 2fr) auto; align-items: center; gap: 16px; }
.current-music > div { display: grid; gap: 5px; }
.current-music strong { font-size: 12px; color: var(--muted); }
.current-music span { font-size: 14px; font-weight: 800; }
.current-music audio { width: 100%; height: 40px; }

@media (max-width: 720px) {
  .admin-shell { width: min(100% - 20px, 1040px); padding-top: 28px; }
  .admin-header { align-items: start; flex-direction: column; }
  .card.compact { margin-top: 28px; }
  .photo-list { grid-template-columns: 1fr; }
  .current-music { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .section-title { align-items: start; flex-direction: column; }
  .photo-card { grid-template-columns: 74px 1fr auto; gap: 10px; }
  .photo-card img { width: 74px; height: 62px; }
}
