/* 심플 공통 스타일 — 헤더/푸터, 레프트 메뉴 없음
   신청자(front) = 프랜즈 로고 + 마젠타 포인트 / 관리자(admin) = 무채색 + 그레이 톱바 */
:root {
  --point: #b5115c;          /* 프랜즈 로고 마젠타 */
  --ink: #333; --muted: #888; --line: #e4e4e7; --bg: #fafafa;
  --ok: #1a7f4b; --warn: #b45309;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Apple SD Gothic Neo", Pretendard, "Malgun Gothic", sans-serif;
  color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; }
a { color: inherit; }

header.site { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; background: #fff; border-bottom: 1px solid var(--line); }
header.site .logo-sm { height: 30px; }
header.site .brand { font-weight: 700; }
body.admin header.site { background: #2f2f33; color: #eee; border-bottom: none; }
body.admin header.site nav a { color: #ccc; text-decoration: none; }
footer { margin-top: auto; padding: 18px; text-align: center; color: var(--muted); font-size: 12px; }

.wrap { width: min(720px, 94vw); margin: 24px auto; }
.wrap.wide { width: min(1080px, 96vw); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 16px; }
.card.center { width: min(420px, 92vw); margin: 10vh auto 0; text-align: center; }
.logo { height: 44px; margin-bottom: 14px; }
h2 { margin: 0 0 10px; font-size: 20px; } h3 { margin: 18px 0 8px; font-size: 15px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .center-text { text-align: center; }
.flash { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; padding: 10px 14px; border-radius: 8px; }
.note { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 8px 12px; border-radius: 8px; font-size: 13px; }

input[type=text], input[type=password], textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin: 6px 0; }
textarea { min-height: 70px; }
.btn { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font: inherit; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--point); border-color: var(--point); color: #fff; font-weight: 600; }
body.admin .btn.primary { background: #2f2f33; border-color: #2f2f33; }
.btn.warn { border-color: var(--warn); color: var(--warn); }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.big { width: 100%; padding: 13px; margin-top: 10px; }
.chk { display: block; margin: 10px 0; font-size: 13px; line-height: 1.5; }
.guide { font-size: 13px; line-height: 1.9; color: #555; padding-left: 18px; }

.status-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; background: #eee; }
.s-invited { background: #f4f4f5; color: #666; }
.s-registered { background: #e0f2fe; color: #075985; }
.s-processing { background: #fef9c3; color: #854d0e; }
.s-review { background: #fde68a; color: #78350f; }
.s-rework { background: #fecaca; color: #991b1b; }
.s-published { background: #ddd6fe; color: #5b21b6; }
.s-confirmed { background: #bbf7d0; color: #14532d; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.small { font-size: 12px; }
code.copy { cursor: pointer; background: #f4f4f5; padding: 3px 8px; border-radius: 6px; font-size: 12px; }
code.copy.ok::after { content: " ✓"; color: var(--ok); }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff;
  font-size: 12px; text-decoration: none; }
.pill.on { border-color: var(--ink); font-weight: 700; }
.pills.static .pill { cursor: default; }
.row-flex { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.import { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.candidates { display: flex; gap: 14px; flex-wrap: wrap; }
.cand { position: relative; width: calc(33% - 10px); min-width: 160px; border: 2px solid var(--line);
  border-radius: 10px; overflow: hidden; text-align: center; padding-bottom: 6px; }
.cand input[type=radio] { position: absolute; top: 8px; left: 8px; transform: scale(1.4); }
.cand:has(input:checked) { border-color: var(--point); box-shadow: 0 0 0 2px rgba(181,17,92,.15); }
.cand.excluded img { opacity: .3; }
.cand .chosen { color: var(--ok); font-size: 12px; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: 260px 1fr; gap: 22px; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } .cand { width: 100%; } }
.photo { border-radius: 8px; border: 1px solid var(--line); }
.thumb { height: 46px; border-radius: 6px; }
.final img { border: 1px solid var(--line); border-radius: 12px; }
.actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.inline-form { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.inline-form input { margin: 0; }
details { margin-top: 14px; font-size: 13px; }
details summary { cursor: pointer; color: var(--muted); }
.fixbox form, .rework-box form { margin-top: 10px; }
.fixbox label { display: block; margin: 6px 0; }
