/* ADMIN — 스튜디오 디자인 시스템의 데스크톱 확장 */
:root {
  --p: #7C4DFF; --p-deep: #5B2ECC; --p-soft: #EDE6FF;
  --p-grad: linear-gradient(135deg, #8B5CF6 0%, #C08AF2 55%, #E1B6E7 100%);
  --bg: #F5F2FA; --card: #FFFFFF; --ink: #1F1633; --ink-2: #6B6285; --ink-3: #A79FBE;
  --line: #EAE4F5; --dark: #2B1248; --danger: #D45B6A;
  --r: 18px; --sh: 0 4px 18px rgba(90, 60, 170, 0.09); --sh-lg: 0 10px 32px rgba(90, 60, 170, 0.16);
  --dur: 240ms; --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
body { font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif; background: var(--bg) radial-gradient(1000px 500px at 85% -10%, #EFE7FA 0%, var(--bg) 55%); color: var(--ink); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

.ad-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 40px); position: sticky; top: 0; z-index: 20;
  background: rgba(245, 242, 250, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.ad-brand { font-weight: 800; letter-spacing: 0.05em; font-size: 0.92rem; display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 11px; height: 17px; border-radius: 5px 5px 8px 8px; background: var(--p-grad); display: inline-block; }
.ad-badge { background: var(--dark); color: #E9DFF8; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.14em; padding: 4px 10px; border-radius: 99px; }
.ad-top-right { display: flex; align-items: center; gap: 14px; }
.ad-mode { font-size: 0.72rem; font-weight: 700; color: var(--p-deep); background: var(--p-soft); padding: 5px 12px; border-radius: 99px; }
.ad-link { color: var(--ink-2); font-size: 0.82rem; font-weight: 650; text-decoration: none; }
.ad-link:hover { color: var(--p-deep); }

.ad-main { max-width: 1180px; margin: 0 auto; padding: 26px clamp(18px, 4vw, 40px) 80px; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--sh); }
.kpi.hero-kpi { background: var(--p-grad); border: none; color: #fff; box-shadow: var(--sh-lg); }
.kpi.hero-kpi .kpi-label, .kpi.hero-kpi .kpi-goal { color: rgba(255,255,255,0.85); }
.kpi-label { font-size: 0.72rem; font-weight: 650; color: var(--ink-2); display: block; }
.kpi strong { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; display: block; margin: 4px 0 2px; }
.kpi-goal { font-size: 0.66rem; color: var(--ink-3); }

/* 패널 */
.ad-cols { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .ad-cols { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h2 { font-size: 1rem; font-weight: 800; }
.panel-note { font-size: 0.78rem; color: var(--ink-3); }
.filters { display: flex; gap: 8px; }
.filters select { border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 0.8rem; background: var(--bg); color: var(--ink); }

/* 작업 목록 */
.job-list { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.job-row {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px;
  transition: all var(--dur) var(--ease); background: var(--card);
}
.job-row:hover { border-color: var(--p); transform: translateY(-1px); box-shadow: var(--sh); }
.job-id { font-weight: 750; font-size: 0.84rem; }
.job-sub { font-size: 0.72rem; color: var(--ink-3); }
.job-scores { display: flex; gap: 5px; margin-left: auto; }
.score-chip { font-size: 0.7rem; font-weight: 750; padding: 3px 9px; border-radius: 99px; background: var(--p-soft); color: var(--p-deep); }
.score-chip.low { background: #F7E3E5; color: var(--danger); }
.badge-review { font-size: 0.68rem; font-weight: 750; padding: 4px 11px; border-radius: 99px; flex: none; }
.badge-review.usable { background: #E3F0E6; color: #35774A; }
.badge-review.fixable { background: #F6ECD8; color: #96762A; }
.badge-review.unusable { background: #F7E3E5; color: var(--danger); }
.badge-review.pending { background: var(--bg); color: var(--ink-3); }

/* 가입 살롱 */
.acct-list { display: flex; flex-direction: column; gap: 8px; }
.acct-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; }
.acct-item .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--p-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.82rem; flex: none; }
.acct-item strong { font-size: 0.84rem; display: block; }
.acct-item span { font-size: 0.7rem; color: var(--ink-3); display: block; }

/* 검수 드로어 */
.drawer { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); padding: 22px; animation: fadeUp var(--dur) var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.review-cell { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.review-cell img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg); }
.review-cell .meta { padding: 8px 12px; font-size: 0.76rem; color: var(--ink-2); display: flex; justify-content: space-between; font-weight: 650; }
.review-cell.origin { border-color: var(--p); }
.review-cell.origin .meta { color: var(--p-deep); }
.review-form { margin-top: 20px; display: flex; flex-direction: column; gap: 13px; }
.review-form h3 { font-size: 0.92rem; font-weight: 800; }
.verdicts { display: flex; gap: 9px; flex-wrap: wrap; }
.verdict { border: 1.5px solid var(--line); background: var(--bg); border-radius: 11px; padding: 10px 18px; font-weight: 650; font-size: 0.86rem; transition: all var(--dur) var(--ease); }
.verdict.on[data-v="usable"] { border-color: #35774A; background: #E3F0E6; color: #35774A; }
.verdict.on[data-v="fixable"] { border-color: #96762A; background: #F6ECD8; color: #96762A; }
.verdict.on[data-v="unusable"] { border-color: var(--danger); background: #F7E3E5; color: var(--danger); }
.tags { display: flex; gap: 7px; flex-wrap: wrap; }
.tag { border: 1px solid var(--line); background: var(--bg); border-radius: 99px; padding: 6px 14px; font-size: 0.78rem; color: var(--ink-2); }
.tag.on { border-color: var(--p); background: var(--p-soft); color: var(--p-deep); font-weight: 650; }
.review-form textarea { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 0.86rem; min-height: 70px; resize: vertical; background: var(--bg); }
.review-form textarea:focus, .filters select:focus, .gate-card input:focus { outline: 2px solid var(--p); border-color: transparent; }

/* 버튼/토스트/게이트 */
.ad-btn { border-radius: 12px; padding: 11px 20px; font-weight: 700; font-size: 0.88rem; transition: all var(--dur) var(--ease); }
.ad-btn.primary { background: var(--p); color: #fff; box-shadow: 0 5px 14px rgba(124, 77, 255, 0.3); }
.ad-btn.primary:hover:not(:disabled) { background: var(--p-deep); }
.ad-btn.primary:disabled { background: #CFC6E6; box-shadow: none; cursor: not-allowed; }
.ad-btn.ghost { color: var(--ink-2); border: 1.5px solid var(--line); background: var(--card); }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: var(--dark); color: #fff; padding: 12px 22px; border-radius: 13px; font-size: 0.86rem; z-index: 60; box-shadow: var(--sh-lg); }
.toast.error { background: var(--danger); }
.gate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: var(--bg) radial-gradient(800px 500px at 50% 20%, #EFE7FA, var(--bg)); }
.gate-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 38px 34px; width: min(380px, 90vw); text-align: center; display: flex; flex-direction: column; gap: 15px; box-shadow: var(--sh-lg); }
.gate-card .ad-brand { justify-content: center; }
.gate-card p { color: var(--ink-2); font-size: 0.88rem; }
.gate-card input { border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; text-align: center; letter-spacing: 0.22em; background: var(--bg); }
