/* 공통 색상·글꼴: 화면 전체의 기본 테마를 이 변수로 맞춥니다. */
:root {
  --ink: #213a32;
  --green: #176347;
  --muted: #85918b;
  --line: #e6ebe7;
  --mint: #eff5ee;
  --background: #f7f8f5;
  --danger: #af5d4e;
  font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif;
  color: var(--ink);
  font-size: 13px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
label/* 공통 버튼: 기본형 위에 primary/secondary/reject 변형을 적용합니다. */
.button {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #82af93;
  outline-offset: 3px;
}
/* 공통 레이아웃: 고정 사이드바와 상단 로그인 영역 */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 216px;
  padding: 35px 21px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand-mark {
  background: var(--green);
  color: white;
  width: 38px;
  height: 42px;
  border-radius: 13px 13px 13px 3px;
  display: grid;
  place-items: center;
  font-size: 37px;
  line-height: 1;
  font-family: Georgia, serif;
  font-style: italic;
}
.brand-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  margin-top: 3px;
  color: var(--muted);
}
.workspace-label {
  margin: 53px 12px 16px;
  font-size: 10px;
  color: #9aa59e;
  font-weight: 700;
}
.nav {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 13px 12px;
  border-radius: 9px;
  margin-bottom: 8px;
  color: #7c8981;
  font-weight: 700;
}
.nav > span:first-child {
  font-size: 20px;
}
.nav.active {
  color: var(--green);
  background: #edf4ed;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  padding: 3px 6px;
  background: white;
  border-radius: 5px;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 11px;
  color: #6c7d73;
  line-height: 1.8;
  padding: 12px 8px;
}
.sidebar-bottom p {
  font-size: 10px;
  color: #99a39d;
  margin: 4px 0 14px;
}
.local-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #7da776;
  border-radius: 50%;
  margin-right: 6px;
}
.text-button {
  border: 0;
  background: transparent;
  color: #839087;
  font-size: 11px;
  padding: 0;
}
.workspace {
  margin-left: 216px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  color: #8e9991;
  font-size: 11px;
}
.breadcrumb span {
  margin: 0 11px;
  color: #c1c9c2;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.local-tag {
  background: #f4f6f1;
  color: #7d8b79;
  padding: 6px 10px;
  border: 1px solid #e8ece2;
  border-radius: 20px;
  font-size: 10px;
}
.avatar {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #e5eee3;
  color: #618258;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.account {
  font-size: 11px;
  color: #718176;
}
main {
  padding: 32px 34px 18px;
  max-width: 1800px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #859b81;
  font-weight: 800;
  margin-bottom: 9px;
}
h1 {
  font-size: 29px;
  letter-spacing: -1.4px;
  margin: 0 0 9px;
  font-weight: 800;
}
.heading p {
  color: #89948c;
  font-size: 11px;
  margin: 0;
}
.heading-actions {
  display: flex;
  gap: 10px;
}
.button {
  border-radius: 7px;
  padding: 11px 16px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}
.button.secondary {
  background: #fff;
  border-color: #dee5de;
  color: #6a7e71;
}
.button.primary {
  background: var(--green);
  color: #fff;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 22px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-icon {
  border-radius: 11px;
  background: #f2f4ee;
  color: #8b9d81;
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.stat:nth-child(2) .stat-icon {
  background: #f6f0e1;
  color: #ac955d;
}
.stat:nth-child(3) .stat-icon {
  background: #eaf4eb;
  color: #5d916c;
}
.stat:nth-child(4) .stat-icon {
  background: #f7ece8;
  color: #b1877d;
}
.stat-label {
  color: #8a948d;
  font-size: 10px;
  margin-bottom: 6px;
}
.stat-value {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.8px;
}
.stat-value small {
  font-size: 10px;
  margin-left: 5px;
  font-weight: 400;
  color: #9ba49d;
}
.review-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}
.filters {
  height: 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 19px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.tabs {
  display: flex;
  gap: 6px;
}
.tab {
  padding: 8px 11px;
  border: 0;
  background: transparent;
  color: #8b968e;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.tab.active {
  background: #edf4eb;
  color: var(--green);
}
.tab small {
  font-weight: 400;
  margin-left: 5px;
  opacity: 0.7;
}
.filter-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.search {
  display: flex;
  align-items: center;
  background: #fafbf8;
  border: 1px solid var(--line);
  border-radius: 6px;
  gap: 7px;
  padding: 7px 9px;
}
.search span {
  font-size: 20px;
  color: #98a499;
  line-height: 1;
}
.search input {
  width: 144px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 10px;
}
.filter-right select {
  color: #7f8b82;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 8px;
  font-size: 10px;
}
.review-grid {
  display: grid;
  grid-template-columns: 240px minmax(280px, 1fr) 292px;
  min-height: 575px;
  height: calc(100vh - 440px);
  max-height: 900px;
}
.queue {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.queue-heading {
  padding: 20px 18px 14px;
  font-size: 11px;
  font-weight: 700;
}
.queue-heading span {
  color: #a0aaa2;
  margin-left: 6px;
  font-weight: 400;
}
.queue-list {
  overflow: auto;
  flex: 1;
  padding: 0 9px 12px;
}
.submission {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 9px;
  border: 1px solid transparent;
  background: white;
  border-radius: 8px;
  margin-bottom: 6px;
}
.submission.selected {
  background: #f1f6ed;
  border-color: #c9dbc3;
}
.submission:hover {
  background: #f7f9f3;
}
.submission img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 7px;
  background: #eaf0e7;
}
.submission-info {
  min-width: 0;
  flex: 1;
}
.submission-id {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.submission-date {
  font-size: 9px;
  color: #9aa397;
  margin-bottom: 5px;
}
.submission-classes {
  font-size: 9px;
  color: #7b8b79;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tiny-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #b8a778;
}
.tiny-dot.approved {
  background: #7eaa82;
}
.tiny-dot.rejected {
  background: #c7978b;
}
.queue-footer {
  font-size: 9px;
  color: #a5ada6;
  padding: 13px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.queue-footer span {
  padding: 0 6px;
}
.viewer {
  background: #fbfcf9;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.viewer-toolbar {
  height: 59px;
  padding: 0 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  font-size: 10px;
  color: #84907f;
}
/* 사진 미리보기: 확대·회전·이동과 로딩 실패 상태 */
.image-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}
.image-controls button {
  border: 1px solid #e4e9df;
  background: white;
  color: #7b8d75;
  border-radius: 5px;
  width: 25px;
  height: 25px;
  font-size: 13px;
}
.image-controls .fit-button {
  width: auto;
  font-size: 9px;
  padding: 0 6px;
}
.original-link {
  font-size: 9px;
  margin-left: 6px;
}
#zoomLabel {
  font-size: 9px;
  min-width: 30px;
  text-align: center;
}
.photo-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  margin: 0 20px 16px;
  border: 1px solid #e4e9dd;
  border-radius: 9px;
  background-color: #e9ede2;
  background-image: radial-gradient(#b6c2ac55 0.7px, transparent 0.7px);
  background-size: 10px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  touch-action: none;
  cursor: grab;
}
.photo-stage.dragging {
  cursor: grabbing;
}
.photo-stage img {
  max-width: 91%;
  max-height: 91%;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 8px 24px #34442f12;
  transform-origin: center;
  user-select: none;
  transition: transform 0.15s ease-out;
}
.image-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 21px 20px;
  font-size: 9px;
  color: #97a08f;
}
.caption-icon {
  font-size: 12px;
}
#imagePosition {
  margin-left: auto;
  white-space: nowrap;
}
.inspector {
  border-left: 1px solid var(--line);
  padding: 23px 21px 14px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.section-title {
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 15px;
}
.status {
  display: inline-block;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 9px;
  background: #f6f0e2;
  color: #aa9058;
  margin-bottom: 18px;
}
.status.approved {
  background: #eaf4e9;
  color: #56866b;
}
.status.rejected {
  background: #f7eae6;
  color: #b1786a;
}
.detail-meta {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 13px 8px;
  margin: 0;
  font-size: 10px;
}
.detail-meta dt {
  color: #9ba39c;
}
.detail-meta dd {
  margin: 0;
  color: #586b60;
  overflow-wrap: anywhere;
}
.detail-divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
.section-subtitle {
  font-size: 9px;
  color: #9aa49a;
  line-height: 1.6;
  margin: -7px 0 12px;
}
.classes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.class-chip {
  border: 1px solid #e2e8dd;
  background: #fff;
  border-radius: 5px;
  font-size: 10px;
  color: #8a9785;
  padding: 7px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.class-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.class-chip:has(input:checked) {
  background: #eff5e9;
  border-color: #b9cfaa;
  color: #658a50;
}
.class-chip:has(input:checked)::before {
  content: '✓';
  font-size: 9px;
}
.class-chip:focus-within {
  outline: 2px solid #7fa177;
}
.check-note {
  font-size: 10px;
  color: #8c987f;
  line-height: 1.8;
  background: #f5f7ef;
  border: 1px solid #edf0e5;
  padding: 12px;
  border-radius: 7px;
  margin: 18px 0 0;
}
.check-note strong {
  display: block;
  color: #7f916f;
  margin-bottom: 3px;
  font-size: 10px;
}
.review-actions {
  margin-top: auto;
  padding-top: 18px;
}
.approve {
  background: var(--green);
  color: white;
  width: 100%;
  padding: 12px;
}
.secondary-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.secondary-actions button {
  flex: 1;
}
.reject {
  background: #fbf3f0;
  border-color: #eddfd9;
  color: #b07866;
}
.undo {
  display: block;
  margin: 13px auto 0;
  font-size: 9px;
}
.action-hint {
  color: #a29173;
  font-size: 9px;
  line-height: 1.6;
  margin-bottom: 9px;
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a4aea4;
  font-size: 9px;
  gap: 15px;
  padding: 18px 2px;
}
.page-footer > span:first-child {
  font-size: 8px;
  letter-spacing: 1.2px;
}
.empty {
  padding: 25px;
  text-align: center;
  color: #91a08a;
  margin: auto;
  font-size: 11px;
  line-height: 1.8;
}
.empty > span {
  display: block;
  font-size: 38px;
  margin-bottom: 8px;
  color: #a2b297;
}
.empty strong {
  display: block;
  color: #74886d;
  font-size: 14px;
}
.empty p {
  font-size: 10px;
}
.empty[hidden],
img[hidden] {
  display: none;
}
.error-note {
  font-size: 10px;
  color: #b07866;
  line-height: 1.7;
}
/* 입력·확인 대화상자: 사진 검수와 관리자 작업에서 공통으로 사용합니다. */
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  max-width: 410px;
  width: calc(100% - 36px);
  padding: 27px;
  box-shadow: 0 20px 70px #243a3026;
  color: var(--ink);
}
dialog::backdrop {
  background: #203d344f;
  backdrop-filter: blur(3px);
}
.dialog-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f7eee6;
  color: #b98d66;
  display: grid;
  place-items: center;
  font-size: 20px;
}
dialog h2 {
  font-size: 18px;
  margin: 16px 0 9px;
}
dialog p {
  font-size: 11px;
  color: #8b9b8f;
  margin: 0 0 23px;
}
dialog label {
  display: block;
  margin: 16px 0 9px;
  font-size: 11px;
}
dialog label span {
  color: #a3ada6;
}
dialog select,
dialog textarea {
  width: 100%;
  border: 1px solid #dfe7df;
  border-radius: 7px;
  padding: 11px;
  background: #fafcf8;
  color: #667d6e;
}
dialog textarea {
  resize: vertical;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
#toast {
  position: fixed;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  background: #244f3e;
  color: white;
  padding: 13px 20px;
  max-width: 80vw;
  border-radius: 9px;
  font-size: 12px;
  box-shadow: 0 8px 30px #244f3e25;
  z-index: 10;
  transition: 0.2s;
}
#toast.show {
  transform: translateX(-50%);
  opacity: 1;
}
/* 사진 검수 반응형 배치. 뒤쪽의 관리자 전용 규칙이 필요한 부분만 덮어씁니다. */
@media (min-width: 1700px) {
  .review-grid {
    grid-template-columns: 280px minmax(400px, 1fr) 330px;
  }
  .inspector {
    padding: 28px;
  }
  .submission img {
    width: 64px;
    height: 64px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 175px;
    padding: 28px 13px;
  }
  .workspace {
    margin-left: 175px;
  }
  main {
    padding: 25px 20px;
  }
  .review-grid {
    grid-template-columns: 195px minmax(240px, 1fr) 255px;
  }
  .inspector {
    padding: 20px 15px;
  }
  .topbar {
    padding: 0 20px;
  }
  .viewer-toolbar {
    padding: 0 12px;
  }
  .image-controls {
    gap: 4px;
  }
  .original-link {
    display: none;
  }
  .heading-actions .button {
    padding: 10px;
  }
  .stat {
    padding: 14px 12px;
  }
  .stat-icon {
    width: 34px;
    height: 34px;
  }
  .filter-right input {
    width: 125px;
  }
}
@media (max-width: 980px) {
  .sidebar {
    width: 68px;
    padding: 24px 10px;
  }
  .brand {
    justify-content: center;
  }
  .brand > span:last-child,
  .workspace-label,
  .sidebar-bottom,
  .nav-count {
    display: none;
  }
  .nav {
    font-size: 0;
    justify-content: center;
    padding: 14px 0;
  }
  .nav > span:first-child {
    font-size: 23px;
  }
  .workspace {
    margin-left: 68px;
  }
  .review-grid {
    grid-template-columns: 170px minmax(230px, 1fr) 235px;
  }
  .account {
    display: none;
  }
  .heading {
    align-items: flex-start;
  }
  .heading-actions {
    flex-direction: column;
  }
  .stat {
    gap: 9px;
  }
  .filters {
    padding: 0 10px;
  }
  .tab {
    padding: 7px 8px;
  }
  .search input {
    width: 115px;
  }
  .viewer-toolbar > span {
    display: none;
  }
  .queue-footer {
    font-size: 8px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 55px;
  }
  .top-right .local-tag {
    font-size: 9px;
  }
  .avatar {
    display: none;
  }
  main {
    padding: 21px 14px;
  }
  .heading {
    display: block;
  }
  .heading-actions {
    flex-direction: row;
    margin-top: 18px;
  }
  .stats {
    gap: 7px;
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    padding: 12px 14px;
  }
  .filters {
    height: auto;
    padding: 12px;
    display: block;
  }
  .filter-right {
    margin-top: 10px;
    justify-content: space-between;
  }
  .search {
    flex: 1;
  }
  .search input {
    width: 100%;
  }
  .review-grid {
    height: auto;
    max-height: none;
    grid-template-columns: 1fr;
  }
  .queue {
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .queue-heading {
    padding: 13px;
  }
  .queue-list {
    display: flex;
    gap: 7px;
    max-height: 100px;
    padding: 0 8px 9px;
  }
  .submission {
    flex: 0 0 190px;
    margin: 0;
    padding: 8px;
  }
  .queue-footer {
    display: none;
  }
  .viewer {
    height: 450px;
  }
  .viewer-toolbar {
    justify-content: flex-end;
    height: 45px;
  }
  .photo-stage {
    margin: 0 12px 12px;
  }
  .image-caption {
    padding: 0 14px 13px;
  }
  .inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 21px;
  }
  .detail-meta {
    grid-template-columns: 80px 1fr;
  }
  .page-footer {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 8px;
  }
  .detail-divider {
    margin: 16px 0;
  }
}

.submission-id,
.submission-date,
.submission-classes {
  display: block;
}
.submission-id {
  display: flex;
}
.class-chip:has(input:disabled) {
  cursor: default;
}
.original-link:not([href]) {
  pointer-events: none;
  opacity: 0.4;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.inspector {
  overflow: hidden;
}
#detail {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}
.review-actions {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}
.review-grid {
  min-height: 420px;
}
.detail-meta {
  font-size: 11px;
}
.class-chip {
  font-size: 11px;
}
@media (max-width: 760px) {
  #detail {
    overflow: visible;
  }
  .inspector {
    overflow: visible;
  }
  .review-grid {
    min-height: 0;
  }
}

.api-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #7d8b79;
  font-size: 11px;
  margin: -7px 0 15px;
  line-height: 1.7;
}
.api-notice span {
  overflow-wrap: anywhere;
}
dialog input {
  width: 100%;
  border: 1px solid #dfe7df;
  border-radius: 7px;
  padding: 11px;
  background: #fafcf8;
  color: #667d6e;
}
.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#connectDialog {
  max-width: 510px;
  max-height: 90vh;
  overflow: auto;
}
details {
  padding: 13px 0 3px;
  font-size: 11px;
}
summary {
  cursor: pointer;
  color: #7f8f7a;
}
details p {
  margin-top: 12px !important;
  font-size: 10px !important;
}
#connectError {
  margin: 14px 0 0;
}
#connectionStatus {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .topbar {
    padding: 0 14px;
  }
  .top-right {
    gap: 8px;
  }
  .top-right .button {
    font-size: 9px;
    padding: 7px;
  }
  .api-notice {
    font-size: 10px;
  }
  .login-grid {
    grid-template-columns: 1fr;
  }
}

.login-section {
  border: 1px solid #e6ebe2;
  border-radius: 10px;
  background: #fafcf8;
  padding: 16px;
  margin: 16px 0;
}
.login-section h3 {
  font-size: 13px;
  margin: 0 0 8px;
}
.login-section p {
  font-size: 11px;
  margin: 0 0 6px;
}
.login-section input {
  background: #fff;
}
.login-section code {
  font-size: 10px;
}
.credential-note {
  font-size: 10px !important;
  line-height: 1.7;
  margin: 15px 0 0 !important;
}
.queue {
  min-width: 0;
}
.api-notice span {
  min-width: 0;
}
.submission img {
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .review-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
[hidden] {
  display: none !important;
}

/* App admin workspace */
.sidebar {
  overflow: auto;
}
.workspace-label {
  margin-top: 35px;
}
.nav {
  flex-shrink: 0;
  margin-bottom: 4px;
}
.sidebar-bottom {
  padding-top: 24px;
}
#breadcrumbPage {
  margin: 0;
  color: #74867a;
}
.admin-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.admin-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-right: auto;
}
.admin-toolbar .search {
  min-width: 180px;
}
.admin-toolbar .search input {
  width: 100%;
}
#adminCount {
  font-size: 11px;
  color: var(--muted);
}
.admin-message {
  background: #eef5ec;
  border: 1px solid #dce8d7;
  padding: 15px 18px;
  border-radius: 8px;
  margin-bottom: 18px;
  line-height: 1.8;
  color: #51744c;
  overflow-wrap: anywhere;
}
.admin-message.failure {
  background: #fcf2ee;
  border-color: #ebd7cc;
  color: #a76149;
}
.admin-empty {
  padding: 65px 20px;
  text-align: center;
  color: var(--muted);
}
.admin-footnote {
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}
.struct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 12px;
}
.struct-table th,
.struct-table td {
  border: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
  vertical-align: middle;
}
.struct-table th {
  background: #fafbf8;
  color: #849080;
  font-weight: 600;
  white-space: nowrap;
}
.struct-table th .text-button,
.struct-table td .text-button {
  margin-left: 8px;
  font-size: 11px;
}
.struct-table input:not([type='checkbox']) {
  width: 100%;
  min-width: 80px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.struct-json {
  color: var(--muted);
  word-break: break-all;
}
.struct-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.struct-tools input {
  width: 160px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.struct-tools select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.admin-hint {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mint);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.admin-hint strong {
  color: var(--ink);
}
.admin-table-wrap {
  overflow: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.admin-table th {
  padding: 14px 20px;
  background: #fafbf8;
  color: #849080;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table td {
  padding: 19px 20px;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
  vertical-align: top;
}
.admin-table tbody tr:hover {
  background: #fafcf8;
}
.admin-table tr:last-child td {
  border-bottom: 0;
}
.admin-table strong {
  font-weight: 700;
}
.admin-table small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.admin-table td .button {
  margin: 2px 4px 5px 0;
  padding: 7px 10px;
  font-size: 10px;
}
.admin-badge {
  display: inline-block;
  background: #edf4ea;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 10px;
  white-space: nowrap;
  color: #5c7e52;
}
.transaction {
  margin-bottom: 10px;
}
.admin-lookup {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.admin-lookup label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-lookup input,
.admin-lookup select {
  padding: 10px;
  border: 1px solid #dfe7df;
  background: #fafcf8;
  border-radius: 6px;
  max-width: 190px;
  color: var(--ink);
}
.admin-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px;
  border-top: 1px solid var(--line);
}
.banner-overview {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 38%);
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.banner-overview h2 {
  font-size: 14px;
}
.banner-overview p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.banner-overview img {
  max-height: 160px;
  max-width: 100%;
  border-radius: 9px;
  background: #f4f7f0;
  justify-self: end;
}
.admin-event-detail {
  font-size: 12px;
  line-height: 1.8;
}
.admin-event-detail dd {
  margin: 4px 0 18px;
  color: #758671;
}
.admin-event-detail dt {
  font-weight: 700;
}
#adminDialog {
  max-width: 540px;
  max-height: 90vh;
  overflow: auto;
}
#adminDialog p {
  line-height: 1.8;
}
#adminFields small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
}
#adminFields .admin-checkbox {
  display: flex;
  align-items: center;
  gap: 14px;
}
#adminFields input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}
#adminFields pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f6f8f2;
  padding: 12px;
  border-radius: 7px;
  max-height: 220px;
  overflow: auto;
  font-size: 11px;
}
#adminFormError {
  margin: 15px 0 0;
}
/* 관리자 메뉴 반응형 배치: 좁은 화면에서도 모든 메뉴에 접근할 수 있게 합니다. */
@media (max-width: 980px) and (min-width: 761px) {
  .sidebar .nav {
    font-size: 9px;
    flex-direction: column;
    gap: 4px;
    padding: 9px 0;
    text-align: center;
  }
  .sidebar .nav > span:first-child {
    font-size: 18px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: flex;
    position: static;
    width: 100%;
    padding: 12px 14px;
    flex-direction: row;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    gap: 5px;
  }
  .brand {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 8px;
  }
  .brand > span:last-child {
    display: block;
    font-size: 18px;
  }
  .brand-mark {
    width: 28px;
    height: 32px;
    font-size: 28px;
  }
  .sidebar .nav {
    font-size: 10px;
    gap: 5px;
    padding: 8px 10px;
    margin: 0;
  }
  .sidebar .nav > span:first-child {
    font-size: 14px;
  }
  .sidebar .nav-count {
    display: none;
  }
  .sidebar-bottom,
  .workspace-label {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .admin-toolbar {
    padding: 14px;
  }
  .admin-tools {
    width: 100%;
  }
  .admin-table td,
  .admin-table th {
    padding: 14px;
    min-width: 110px;
  }
  .banner-overview {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .banner-overview img {
    justify-self: start;
  }
  .admin-lookup {
    padding: 14px;
  }
  .admin-lookup input {
    width: 120px;
  }
}
