.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: #10272d;
  color: #fff;
  padding: 26px 20px;
  overflow: auto;
  z-index: 120;
}
.admin-sidebar-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 19px;
  margin-bottom: 28px;
}
.admin-brand img {
  width: 42px;
}
.admin-home,
.admin-sidebar section a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: #c7d4d7;
  font-size: 14px;
}
.admin-sidebar .is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
}
.admin-sidebar section {
  margin-top: 22px;
}
.admin-sidebar section strong {
  display: block;
  color: #6f8e95;
  font-size: 11px;
  letter-spacing: 0.08em;
  margin: 0 12px 7px;
}
.survey-stat {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.survey-stat h3 {
  margin: 0 0 10px;
}
.survey-stat p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 7px 0;
}
.survey-stat blockquote {
  margin: 10px 0;
  padding: 12px;
  border-left: 3px solid var(--teal);
  background: #f4f8f7;
}
.survey-stat blockquote small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.admin-shell {
  margin-left: 250px;
  min-height: 100vh;
  background: #f5f7f7;
}
.admin-topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 80;
}
.admin-top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
}
.admin-top-actions form {
  margin: 0;
}
.link-button {
  border: 0;
  background: none;
  color: var(--body);
  padding: 0;
}
.admin-main {
  padding: 34px;
  min-width: 0;
}
.admin-main h1 {
  margin: 0 0 26px;
  font-size: 30px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
.admin-stat {
  background: #fff;
  border: 1px solid #e4ebea;
  border-radius: 14px;
  padding: 20px;
}
.admin-stat span {
  color: var(--muted);
  font-size: 13px;
}
.admin-stat strong {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
}
.admin-panel {
  background: #fff;
  border: 1px solid #e4ebea;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  min-width: 0;
}
.admin-panel h2 {
  font-size: 18px;
  margin: 0 0 18px;
}
.admin-panel .data-table {
  font-size: 13px;
}
.inline-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.inline-form input,
.inline-form select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  max-width: 180px;
}
.progress {
  height: 8px;
  background: #e6eeee;
  border-radius: 999px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--teal);
}
.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.admin-panel__head h2 { margin: 2px 0 0; }
.form-stack--compact { gap: 8px; min-width: 180px; }
.admin-details {
  margin-top: 7px;
  color: var(--body);
}
.admin-details summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
}
.admin-details small {
  display: inline-block;
  margin-top: 7px;
  line-height: 1.7;
}

.edit-note {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 14px;
}
.edit-note .link-button {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
}
.public-image-manager {
  margin-bottom: 26px;
}
.media-manager-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  list-style: none;
  cursor: pointer;
}
.media-manager-summary::-webkit-details-marker { display: none; }
.media-manager-summary > span:first-child { min-width: 0; }
.media-manager-summary strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}
.media-manager-summary small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.media-manager-toggle::before { content: "이미지 관리 열기"; }
.media-manager-details[open] .media-manager-toggle::before { content: "닫기"; }
.media-manager-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.media-manager-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.media-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
  color: var(--teal-dark);
  font-weight: 800;
  text-align: center;
}
.media-preview-logo { aspect-ratio: 8 / 5; }
.media-preview-cover { aspect-ratio: 3 / 4; }
.media-preview-thumbnail { aspect-ratio: 4 / 3; }
.media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-preview-logo img {
  padding: 18px;
  object-fit: contain;
  background: #fff;
}
.media-preview span {
  padding: 18px;
}
.media-manager-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.media-manager-body > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-upload-form {
  gap: 10px;
}
.media-upload-form .field {
  gap: 5px;
}
.media-upload-form input[type="file"] {
  width: 100%;
  padding: 8px;
  font-size: 12px;
}
.media-remove-option {
  color: var(--danger);
  font-size: 12px;
}
