/* 관리자 화면 */
body.admin { background: var(--soft); min-height: 100vh; }
.a-bar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.a-bar-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.a-bar-right { display: flex; gap: 8px; }

.a-login { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 20px; }
.a-login-card { width: 100%; max-width: 400px; }
.a-login-card h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 24px; }
.a-wide { width: 100%; margin-top: 8px; }

.a-main { padding-top: 28px; padding-bottom: 80px; }
.a-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; margin-bottom: 20px; max-width: 100%; overflow-x: auto; }
.a-tabs button { height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: none; font-size: 15px; font-weight: 500; color: var(--sub); cursor: pointer; white-space: nowrap; }
.a-tabs button[aria-selected="true"] { background: var(--dark); color: #fff; }
.a-panel { display: grid; gap: 16px; }

.a-card { background: #fff; border-radius: var(--radius); padding: 32px; }
.a-narrow { max-width: 520px; }
.a-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.a-card-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.a-label { font-size: 14px; font-weight: 600; color: var(--sub); margin: 20px 0 8px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--sub); }
.field em { font-style: normal; font-weight: 400; color: var(--faint); margin-left: 6px; }
.field input, .field textarea {
  width: 100%; border: 0; border-radius: 12px; background: var(--soft); padding: 13px 16px; font-size: 16px; line-height: 1.5;
  outline: none; transition: background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus { background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.span-2 { grid-column: 1 / -1; }

.drop { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 36px 24px; border-radius: var(--radius-sm); background: var(--soft); cursor: pointer; margin-bottom: 14px; transition: background-color .2s; }
.drop:hover, .drop.over { background: var(--soft-2); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-title { font-size: 17px; font-weight: 700; }
.drop-sub { font-size: 14px; color: var(--sub); max-width: 460px; }
.drop-sm { padding: 24px; margin-top: 8px; }

.pick-list { display: grid; gap: 6px; margin-bottom: 12px; }
.pick-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 12px; background: var(--soft); font-size: 14px; }
.pick-list .k { font-size: 12px; font-weight: 600; color: var(--sub); background: #fff; border-radius: 6px; padding: 2px 8px; margin-right: 8px; }
.pick-list .n { word-break: break-all; }
.icon-btn { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; }
.icon-btn:hover { background: var(--soft-2); }

.a-note { display: block; font-size: 14px; color: var(--sub); background: var(--soft); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.a-note.ok { color: #1d6b3a; background: #eef7f1; }
.a-note.warn { color: #8a5a00; background: #fff6e5; }
.extra-box { margin: 4px 0 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }

.a-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.a-error { font-size: 14px; color: #c0362c; min-height: 1em; }
.danger { color: #c0362c; }

.a-rows { display: grid; gap: 8px; }
.a-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 14px 14px 14px 20px; border-radius: 14px; background: var(--soft); }
.a-row .t { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.a-row .m { font-size: 13px; color: var(--sub); }
.a-row .b { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.a-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.a-album { border: 0; padding: 0; background: none; text-align: left; cursor: pointer; }
.a-album .c { aspect-ratio: 4 / 3; border-radius: 14px; background: var(--soft); overflow: hidden; box-shadow: 0 0 0 0 var(--ink); transition: box-shadow .2s; }
.a-album .c img { width: 100%; height: 100%; object-fit: cover; }
.a-album[aria-current="true"] .c { box-shadow: 0 0 0 3px var(--ink); }
.a-album .t { margin-top: 8px; font-size: 15px; font-weight: 600; }
.a-album .m { font-size: 13px; color: var(--sub); }

.a-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.a-photo { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--soft); }
.a-photo img { width: 100%; height: 100%; object-fit: cover; }
.a-photo .tools { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; justify-content: flex-end; }
.a-photo .tools button { height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 600; cursor: pointer; }
.a-photo .badge { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 12px; font-weight: 600; }

@media (max-width: 760px) {
  .a-card { padding: 24px 20px; }
  .field-grid { grid-template-columns: 1fr; }
  .a-row { grid-template-columns: 1fr; }
  .a-row .b { justify-content: flex-start; }
  .a-bar-right .btn { padding: 0 14px; }
}
.check em { font-style: normal; display: block; font-size: 13px; margin-top: 2px; }
