/* 관리자 화면 — 갤러리와 같은 색을 쓰되 일하기 편하게 단순하게 */
.admin-wrap { max-width: 1100px; margin: 30px auto 0; padding: 0 20px; }
.admin-h { font-size: 1.4rem; color: var(--primary-color); margin: 18px 0; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.admin-tabs a { padding: 8px 14px; border-radius: 20px; font-size: 0.92rem; background: #fff; border: 1px solid var(--border-color); }
.admin-tabs a[aria-current="page"], .admin-tabs a:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

.panel { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 22px; margin-bottom: 18px; }
.panel h3 { font-size: 1.05rem; margin-bottom: 14px; color: var(--primary-color); }
.panel.narrow { max-width: 420px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.field { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 14px; color: #444; }
.field em { color: #b3402a; font-style: normal; }
.field input:not([type=checkbox]):not([type=file]), .field select, .field textarea {
    display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
    border: 1px solid #cfcac4; border-radius: 4px; font: inherit; font-weight: 400; background: #fff;
}
.field input[type=file] { display: block; margin-top: 8px; font-size: 0.95rem; }
.field.short { max-width: 110px; }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 0.95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary-color); }
.muted { color: var(--muted); font-size: 0.9rem; }
.link { color: var(--accent-text); text-decoration: underline; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px;
    border: 1px solid var(--primary-color); border-radius: 4px; background: #fff; color: var(--primary-color);
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
}
.btn:hover { background: #f4efe9; }
.btn.primary { background: var(--primary-color); color: #fff; }
.btn.primary:hover { background: #463026; }
.btn.danger { border-color: #b3402a; color: #b3402a; }
.btn.danger:hover { background: #fbecea; }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 0.85rem; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.danger-zone { display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--border-color); padding-top: 18px; }

.guide { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 6px; padding: 14px 16px; margin-bottom: 16px; font-size: 0.9rem; }
.guide ul { list-style: disc; padding-left: 20px; margin: 8px 0; }
.guide li { margin: 3px 0; }
.current-photo { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; }
.current-photo img { width: 180px; max-height: 220px; object-fit: contain; background: var(--gray-light); border-radius: 4px; }
.current-photo p { font-size: 0.85rem; color: var(--muted); }
.notes { list-style: none; font-size: 0.85rem; margin-top: 6px; }
.notes li::before { margin-right: 6px; }
.notes li.poor { color: #8a2a1b; } .notes li.poor::before { content: "✖"; }
.notes li.warn { color: #6d4f10; } .notes li.warn::before { content: "△"; }
.notes li.info { color: var(--muted); } .notes li.info::before { content: "ℹ"; }
.check-result:empty { display: none; }
.check-result { display: flex; gap: 14px; align-items: flex-start; border-radius: 6px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--border-color); flex-wrap: wrap; }
.check-result img { width: 140px; max-height: 170px; object-fit: contain; background: var(--gray-light); }
.check-result.good { background: #eef6ee; } .check-result.warn { background: #fdf6e7; } .check-result.poor { background: #fbecea; }

.grade { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.grade.good { color: #24572a; } .grade.warn { color: #6d4f10; } .grade.poor { color: #8a2a1b; } .grade.none { color: #999; }

.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.stats a { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 16px; font-size: 0.9rem; }
.stats a[aria-current="true"] { border-color: var(--primary-color); box-shadow: inset 0 0 0 1px var(--primary-color); }
.stats b { font-size: 1.2rem; margin-right: 4px; color: var(--primary-color); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border-color); border-radius: 8px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th { text-align: left; font-weight: 600; background: var(--gray-light); padding: 10px; white-space: nowrap; }
.admin-table td { padding: 10px; border-top: 1px solid var(--border-color); vertical-align: middle; }
.admin-table .thumb { width: 64px; height: 64px; object-fit: contain; background: var(--gray-light); border-radius: 4px; }
.row-actions { white-space: nowrap; }
.row-actions .btn { margin: 2px 0; }
.pill { border: 0; border-radius: 14px; padding: 4px 12px; font-size: 0.85rem; cursor: pointer; font-weight: 600; }
.pill.on { background: #e3f0e3; color: #24572a; }
.pill.off { background: #eee; color: #666; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form h3 { width: 100%; }
.inline-form .field { margin-bottom: 0; flex: 1 1 200px; }
.inline-form .field.short { flex: 0 0 90px; }
.inline-form.plain { flex: 1 1 100%; }
.notice-banner { background: #fdf6e7; border-color: #ecd49b; }
.notice-banner p { margin-bottom: 12px; }
.path { display: block; padding: 10px 12px; background: var(--gray-light); border-radius: 4px; font-size: 0.95rem; overflow-wrap: anywhere; user-select: all; }
.field.wide { flex-basis: 100%; }
.time-pick { border: 0; padding: 0; margin: 0; flex: 0 0 auto !important; }
.time-pick legend { font-size: 0.9rem; font-weight: 500; color: #444; padding: 0; margin-bottom: 6px; }
.time-pick select { display: inline-block !important; width: auto !important; min-width: 64px; margin-top: 0 !important;
    font-variant-numeric: tabular-nums; font-size: 1rem; cursor: pointer; }
.time-pick span { margin: 0 6px 0 4px; color: #555; }
.sub-h { margin-top: 10px; }
.panel-sub { border: 1px dashed var(--border-color); border-radius: 6px; padding: 14px 16px 4px; margin-bottom: 14px; }
.panel-sub legend { font-weight: 600; color: var(--primary-color); padding: 0 6px; }
/* 파일 끌어다 놓기 상자 */
.dropzone { margin-top: 8px; border: 2px dashed #cfc3b5; border-radius: 8px; padding: 18px; text-align: center; background: #fdfaf6; transition: all 0.15s; }
.dropzone.over { border-color: var(--primary-color); background: #f4ece2; }
.dropzone.has-file { border-style: solid; border-color: #9cc49e; background: #f3f9f3; }
.dropzone-hint { color: #6a5a4c; font-size: 0.92rem; margin-bottom: 10px; font-weight: 400; }
.dropzone input[type=file] { margin: 0 auto; }
.dropzone-file { margin-top: 8px; font-size: 0.9rem; color: #24572a; font-weight: 600; }
.dropzone-file:empty { display: none; }
/* 작품 올리기 아래쪽: 저장된 작품 한눈에 보기 */
.saved-works { margin-top: 24px; }
.saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.saved-grid a { display: flex; flex-direction: column; gap: 3px; padding: 8px; border: 1px solid var(--border-color); border-radius: 6px; background: #fff; height: 100%; }
.saved-grid a:hover { border-color: var(--primary-color); }
.saved-grid li.current a { border: 2px solid var(--primary-color); background: #f8f2ec; }
.saved-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--gray-light); border-radius: 4px; }
.saved-title { font-size: 0.85rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.saved-meta { font-size: 0.78rem; color: var(--muted); }
.saved-grid .pill { align-self: flex-start; font-size: 0.72rem; padding: 2px 8px; }
