/* hidden 속성은 늘 숨김(.row처럼 display를 정한 칸에서도 — 별도 검수 1.10.12: QR 경고가 QR을 켜도 보였음) */
[hidden] { display: none !important; }
/* 언커먼데이 웹 관리자 — docs/디자인_가이드.md 와 같은 규칙.
   루마부스와 같은 틀: 무채색 회색 단계 + 포인트 색 하나(언커먼데이 그린). 그라데이션 없음. */
@font-face { font-family: "Pretendard"; src: url("fonts/Pretendard-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("fonts/Pretendard-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("fonts/Pretendard-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #202020; --sidebar: #272727; --card: #2C2C2C; --control: #383838; --raised: #424242;
  --line: #3A3A3A; --line2: #4A4A4A;
  --text: #FFFFFF; --sub: #A6A6A6; --muted: #888888;
  --accent: #23935A; --accent-hi: #28A465; --accent-lo: #1E7A4A; --brand: #1E7A4A;
  --danger: #E25A5A; --danger-bg: #3A1D1D; --warn: #E8B04B; --ok: #5CC994;
  --r-card: 16px; --r-ctl: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: "Pretendard", system-ui, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
/* 한글 낱말이 줄 끝에서 가운데가 잘리지 않게(«건/너뛰어요» → «건너뛰어요») — 아주 긴 주소 등은 그래도 줄바꿈 */
html, body { word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #23935A80; }

/* ── 틀 ── */
.app { display: grid; grid-template-columns: 240px 1fr; height: 100vh; }
.side { background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 14px 18px; overflow-y: auto; }
.mark { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--sub); margin: 0 6px 20px; }
.mark i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; background: var(--accent); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: block; padding: 11px 14px; border-radius: 10px; text-decoration: none; color: var(--sub); font-weight: 600; }
.nav a:hover { background: var(--control); color: var(--text); }
.nav a.on { background: var(--control); color: var(--text); font-weight: 700; }
.nav hr { border: 0; border-top: 1px solid var(--line); margin: 10px 6px; }
.side .foot { margin-top: auto; padding: 12px 6px 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.side .foot b { color: var(--sub); font-weight: 600; }
.main { overflow-y: auto; }
.page { max-width: 1100px; padding: 34px 44px 70px; }
.page.wide { max-width: none; }
.ptitle { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.ptitle h1 { margin: 0 0 6px; font-size: 28px; font-weight: 700; }
.ptitle p { margin: 0; color: var(--sub); }
.sec { display: flex; align-items: center; gap: 10px; margin: 28px 0 4px; font-size: 18px; font-weight: 700; }
.sec::before { content: ""; width: 18px; height: 5px; border-radius: 3px; background: var(--accent); }
.secd { margin: 0 0 12px 28px; color: var(--sub); font-size: 14px; }

/* ── 카드·줄 ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
.rows { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 4px 20px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 58px; padding: 8px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row .l b { display: block; font-weight: 600; }
.row .l small { display: block; color: var(--sub); font-size: 13px; margin-top: 2px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--sub); margin-bottom: 6px; }
.field small { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.muted { color: var(--muted); } .sub { color: var(--sub); }
.stack > * + * { margin-top: 14px; }

/* ── 버튼 4종류 ── */
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  background: var(--control); color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .12s; }
.btn:hover { background: var(--raised); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
/* 저장할 것이 없을 때의 주 버튼: 흐린 초록 대신 회색(어두운 바탕에서 글자가 안 보이던 문제 — 부스와 같게) */
.btn.primary:disabled { opacity: 1; background: #383838; color: #888; }
.btn.primary { background: var(--accent); font-weight: 700; }
.btn.primary:hover { background: var(--accent-hi); }
.btn.ghost { background: transparent; border-color: var(--line2); }
.btn.ghost:hover { background: var(--control); }
.btn.danger { background: var(--danger-bg); color: #FFB4AA; border-color: #6B2E2E; }
.btn.danger.armed { background: var(--danger); color: #fff; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn.sq { width: 40px; padding: 0; border-radius: 10px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ── 입력 ── */
input[type=text], input[type=search], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-ctl); outline: none; }
.card input, .card select, .card textarea, .rows input, .rows select { background: var(--bg); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[type=color] { width: 44px; height: 36px; padding: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
textarea { min-height: 70px; resize: vertical; }
.sw { position: relative; width: 44px; height: 24px; flex: none; }
.sw input { opacity: 0; width: 0; height: 0; }
.sw span { position: absolute; inset: 0; border-radius: 999px; background: var(--control); border: 1px solid #5A5A5A; cursor: pointer; transition: .15s; }
.sw span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--sub); transition: .15s; }
.sw input:checked + span { background: var(--accent); border-color: var(--accent); }
.sw input:checked + span::after { left: 23px; background: #fff; }
.sw input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.step { display: inline-flex; align-items: center; gap: 4px; }
.step b { min-width: 70px; text-align: center; font-weight: 700; }
.seg { display: inline-flex; border-radius: 999px; overflow: hidden; border: 1px solid var(--line2); }
.seg button { border: 0; background: transparent; padding: 0 16px; min-height: 38px; font-weight: 600; cursor: pointer; color: var(--sub); }
.seg button.on { background: var(--accent); color: #fff; }

/* ── 상태·꼬리표 ── */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--raised); color: var(--sub); }
.pill.hot { background: var(--accent); color: #fff; }
.pill.warn { background: #3d2f00; color: var(--warn); }
.pill.bad { background: var(--danger-bg); color: #FFB4AA; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--ok); vertical-align: 1px; }
.dot.warn { background: var(--warn); } .dot.bad { background: var(--danger); }
/* 알림: 화면 가운데(1.10.19) — 저장 · 바꾸기가 됐는지 어디를 보고 있어도 보이게 */
.toast { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96); opacity: 0; transition: opacity .16s, transform .16s;
  display: flex; align-items: center; gap: 14px; background: var(--raised); border: 2px solid var(--accent); padding: 18px 26px 18px 20px; border-radius: 18px;
  font-size: 18px; font-weight: 700; line-height: 1.4; box-shadow: 0 16px 48px #000a; z-index: 200; max-width: min(560px, calc(100vw - 32px)); cursor: pointer; }
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast.low { top: auto; bottom: 24px; transform: translate(-50%, 0) scale(.96); }
.toast.low.show { transform: translate(-50%, 0) scale(1); }
.toast .tmark { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 20px; }
.toast .tmsg { min-width: 0; overflow-wrap: anywhere; }
.toast.err { background: var(--danger-bg); border-color: #C0574B; color: #FFC9C1; }
.toast.err .tmark { background: #C0574B; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.empty { padding: 36px; text-align: center; color: var(--sub); border: 1px dashed var(--line2); border-radius: var(--r-card); }

/* ── 행사 목록 ── */
.evgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ev { display: flex; flex-direction: column; min-width: 0; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--text); }
.ev:hover { border-color: var(--line2); background: #303030; }
.ev.past { opacity: .6; }
.ev .thumb { aspect-ratio: 1 / 1; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .ev .thumb { aspect-ratio: 4 / 3; } }
.ev .thumb > span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
/* 미리보기 칸(모든 목록 공통 · 라이트룸 격자처럼): 칸 크기는 모두 같은 정사각형, 그림은 잘리지 않게 전체가 가운데에,
   사방 여백도 같게 → 가로·세로가 섞여도 크기가 고르고 카드 아래 빈칸이 없다 */
.fit { position: relative; overflow: hidden; background: var(--thumbbg, #1a1a1a); }
.fit > .fg { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 3px 10px rgba(0,0,0,.45)); }
.fit > .defwel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86%; height: auto; aspect-ratio: 16 / 9; box-sizing: border-box; background: #000; box-shadow: 0 3px 10px rgba(0,0,0,.45); }
.fit > .defwel.tall { width: auto; height: 86%; aspect-ratio: 9 / 16; }
.ev .defwel { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #000; justify-content: center; }
.ev .defwel b { font-size: 22px; font-weight: 700; color: #fff; }
.ev .defwel i { font-style: normal; font-size: 12px; letter-spacing: 2px; color: var(--accent); }
.ev .defwel small { margin-top: 6px; font-size: 11px; color: var(--muted); }
.ev .defwel img { width: 42%; max-width: 160px; opacity: .9; }
.ev .defwel.tall img { width: 70%; }
.ev .defwel.tall small { font-size: 10px; }
.evhead-thumb .defwel img { width: 60%; }
.welbig .defwel img { width: 30%; max-width: 220px; }
.ev .evbody { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ev .evdate { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.ev .evdate b { font-size: 18px; font-weight: 700; }
.ev .evdate .yr { color: var(--muted); font-size: 13px; }
.ev .evdate .pill { margin-left: auto; }
.ev h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .chips { margin-top: auto; padding-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar input { max-width: 300px; }

/* ── 탭 ── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs button { border: 0; background: none; padding: 12px 16px; color: var(--sub); font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }

/* ── 템플릿 카드 ── */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 42vw), 1fr)); gap: 14px; }
/* 가로·세로 그림이 섞여도 한 줄 높이가 같게: 미리보기 높이는 모두 같고, 카드 너비를 그림 비율에 맞춘다(가로 그림 = 넓은 카드). 아래 빈칸이 생기지 않음 */
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tcard.on { border: 2px solid var(--accent); padding: 11px; }
.tcard .thumb { border-radius: 10px; aspect-ratio: var(--cellar, 1); }
.tcard b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard small { color: var(--sub); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard .btns { margin-top: auto; }
.tgrid > .empty { grid-column: 1 / -1; }
.tcard .use { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; }

/* ── 로그인 ── */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login .box { width: 380px; text-align: center; }
.login h1 { font-size: 30px; margin: 18px 0 8px; }
.login p { color: var(--sub); margin: 0 0 24px; }
.login .mark { justify-content: center; margin: 0; }
.login input { text-align: center; font-size: 18px; margin-bottom: 12px; }

/* ── 편집기 ── */
.ed { display: grid; grid-template-rows: auto 1fr; height: 100vh; }
.edtop { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.edtop input { max-width: 300px; min-height: 40px; }
.edtop .grow { flex: 1; }
.edtop .msg { color: var(--accent-hi); font-size: 13px; font-weight: 600; }
.edbody { display: grid; grid-template-columns: 190px 1fr 340px; min-height: 0; }
.tools { padding: 10px 12px; overflow-y: auto; border-right: 1px solid var(--line); }
.tools h6 { margin: 12px 4px 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.tools .btn { width: 100%; justify-content: flex-start; border-radius: 10px; min-height: 38px; margin-bottom: 6px; font-size: 14px; }
.tools .help { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--card); color: var(--sub); font-size: 12px; line-height: 1.7; }
.stage { position: relative; overflow: hidden; background: #1A1A1A; display: flex; align-items: center; justify-content: center; }
.stage.drop { outline: 3px dashed var(--accent); outline-offset: -10px; }
.stage .paper { position: relative; box-shadow: 0 10px 40px #000a; }
.stage .paper img.base { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage .zoom { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; }
.stage .busy { position: absolute; left: 14px; bottom: 14px; color: var(--muted); font-size: 12px; }
.panel { border-left: 1px solid var(--line); display: grid; grid-template-rows: auto 240px auto 1fr; min-height: 0; padding: 10px 14px 14px; }
.panel h6 { margin: 8px 2px 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.layers { overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; position: relative; }
.layer { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 8px 0 4px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; }
.layer.on { background: var(--raised); box-shadow: inset 3px 0 0 var(--accent); }
.layer .grip { cursor: ns-resize; color: var(--muted); padding: 0 6px; font-size: 16px; }
.layer .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.layer.hid .nm { opacity: .45; }
.layer .mini { border: 1px solid var(--line2); background: none; border-radius: 999px; font-size: 11px; padding: 2px 8px; cursor: pointer; color: var(--sub); }
.layer .mini.on { color: var(--accent-hi); border-color: var(--accent); }
.insline { position: absolute; left: 0; right: 0; height: 3px; background: var(--accent); pointer-events: none; display: none; }
.props { overflow-y: auto; padding-right: 2px; }
.props .f { margin-bottom: 10px; }
.props .f label { display: block; font-size: 12px; color: var(--sub); margin-bottom: 4px; }
.props .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.props input, .props select { min-height: 36px; padding: 6px 10px; }
.props .note { font-size: 12px; color: var(--sub); line-height: 1.6; background: var(--card); border-radius: 10px; padding: 10px; margin: 6px 0 10px; }
.props .note.warn { color: var(--warn); }
.chipbar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chipbar button { border: 1px solid var(--line2); background: var(--control); border-radius: 999px; font-size: 12px; padding: 4px 10px; cursor: pointer; }

.crmtools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.crmtabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.crmtabs button { font-size: 13px; padding: 6px 12px; }
.crmrow { display: flex; align-items: center; gap: 20px; padding: 14px 18px; cursor: pointer; }
.crmrow.open { border-color: var(--accent); }
.crmopen { display: flex; flex-direction: column; gap: 8px; }
.crmprev { display: flex; gap: 24px; flex-wrap: wrap; padding: 18px; }
.crmprev-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1 1 260px; }
.crmprev-welcome { max-width: 100%; max-height: 320px; object-fit: contain; border-radius: 10px; background: #000; align-self: flex-start; }
.crmprev-frames { display: flex; gap: 10px; flex-wrap: wrap; }
.crmprev-frames img { height: 240px; max-width: 100%; object-fit: contain; border-radius: 8px; background: #fff; }

/* 작은 화면(노트북·태블릿) */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { flex-direction: row; overflow-x: auto; padding: 10px; }
  .side .foot, .side .mark { display: none; }
  .nav { display: flex; flex-direction: row; gap: 4px; align-items: flex-start; }
  .side { height: auto; min-height: 0; }
  .nav a { white-space: nowrap; flex: none; padding: 9px 12px; }
  .nav hr { display: none; }
  .tabs { overflow-x: auto; }
  .tabs button { white-space: nowrap; flex: none; }
  .ptitle { flex-wrap: wrap; gap: 12px; }
  .ptitle h1 { font-size: 24px; }
  .page { padding: 22px 16px 60px; }
  .grid2 { grid-template-columns: 1fr; }
  .edbody { grid-template-columns: 1fr; }
  .crmrow { flex-wrap: wrap; gap: 10px 16px; }
  .crmrow > div:nth-child(2) { flex: 1 1 180px !important; }
  .crmrow > .btn { flex: 1 1 100%; }
  /* 좁은 화면: 위 메뉴·행사 탭이 옆으로 넘칠 때 오른쪽 끝을 흐리게(옆으로 밀면 더 있다는 표시) */
  .side, .tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  /* 편집기: 휴대폰에서는 위 줄이 넘치지 않게 접고, 그림판을 크게 */
  .edtop { flex-wrap: wrap; }
  .edtop input { flex: 1 1 100%; min-width: 0; max-width: none; }
  .ed { height: auto; }
  .stage { min-height: 70vh; }
}

/* ── 부스 화면으로 시험(booth.js) — 부스 프로그램 손님 화면과 같은 크기·글자·색 ── */
.bshell { position: fixed; inset: 0; background: #000; z-index: 50; display: flex; flex-direction: column; }
.bwrap { position: relative; flex: 1; overflow: hidden; }
.bstage { position: absolute; left: 50%; top: 50%; transform-origin: center; background: #000; overflow: hidden; color: #fff; font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif; }
.btools { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); background: #111; border-top: 1px solid #2a2a2a; }
.btool { border: 1px solid #3A3A3A; background: #2C2C2C; color: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.bbadge { margin-right: auto; font-size: 12px; color: #E8B04B; }
.bpage { position: absolute; inset: 0; }
.bfull { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.bcenter { position: absolute; inset: 0 0 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.bmark { font-size: 18px; letter-spacing: 4px; color: #A6A6A6; font-weight: 700; margin-bottom: 40px; display: flex; align-items: center; }
.bmark i { display: inline-block; width: 30px; height: 5px; background: #23935A; margin: 0 8px; border-radius: 2px; }
.bbottom { position: absolute; left: 0; right: 0; bottom: 64px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bpill { display: flex; align-items: center; gap: 16px; background: rgba(32,32,32,.85); border: 1px solid #3A3A3A; border-radius: 999px; padding: 18px 40px 18px 30px; font-size: 32px; font-weight: 700; }
.bdot { position: relative; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; }
.bdot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #23935A; animation: bpulse 1.7s ease-in-out infinite; }
.bdot b { width: 14px; height: 14px; border-radius: 50%; background: #23935A; position: relative; }
@keyframes bpulse { 0% { transform: scale(1); opacity: .35; } 50% { transform: scale(1.6); opacity: 0; } 100% { transform: scale(1); opacity: .35; } }
.blive { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.blive video { width: 100%; height: 100%; object-fit: cover; }
.bcounter { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; background: rgba(0,0,0,.7); border-radius: 999px; padding: 14px 26px; font-size: 24px; }
.bbars { display: flex; gap: 8px; }
.bbars i { width: 26px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); }
.bbars i.done { background: #23935A; } .bbars i.on { background: #fff; }
.bring { position: absolute; left: 50%; top: 50%; width: 340px; height: 340px; transform: translate(-50%, -50%); }
.bring svg { position: absolute; inset: 0; }
.bring .num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 200px; font-weight: 800; margin-top: -24px; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.bthumbs { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; background: rgba(0,0,0,.7); border-radius: 20px; padding: 12px; }
.bthumbs img { height: 90px; border-radius: 10px; }
.bflash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.bcol { display: flex; flex-direction: column; background: #000; }
.bhead { padding: 40px 50px 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.bsteps { display: flex; gap: 8px; margin-bottom: 10px; }
.bsteps i { width: 44px; height: 6px; border-radius: 3px; background: #383838; }
.bsteps i.done { background: #23935A; } .bsteps i.on { background: #fff; }
.bgrid { flex: 1; display: grid; gap: 20px; padding: 0 50px; grid-auto-rows: minmax(0, 1fr); min-height: 0; }
.bcell { position: relative; cursor: pointer; min-height: 0; container-type: size; display: grid; place-items: center; }
/* 칸 모양 = 인화 사진칸 모양(1.10.19): 칸 안에 그 비율로 가장 크게, 사진은 가운데 자르기(인화와 같은 범위) */
.bshot { --ar: 1.5; position: relative; width: min(100cqw, calc(100cqh * var(--ar))); height: min(100cqh, calc(100cqw / var(--ar))); border-radius: 16px; overflow: hidden; background: #2C2C2C; }
.bshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bshot .bring2 { position: absolute; inset: 0; border: 6px solid transparent; border-radius: 16px; pointer-events: none; }
.bcell.on .bring2 { border-color: #23935A; }
.bnum { position: absolute; left: 14px; top: 14px; width: 64px; height: 64px; border-radius: 50%; background: #23935A; display: none; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; }
.bcell.on .bnum { display: flex; }
.bfoot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px 50px 30px; }
.bfoot > :last-child { justify-self: end; }
.bfoot > :first-child { justify-self: start; }
.bbtn { background: #23935A; color: #fff; border: 0; border-radius: 16px; font-size: 26px; font-weight: 700; padding: 20px 44px; cursor: pointer; min-width: 220px; }
.bbtn:disabled { background: #383838; color: #888; cursor: default; }
.bbtn.ghost { background: #2C2C2C; border: 1px solid #3A3A3A; font-size: 22px; }
.bchoices { flex: 1; display: flex; gap: 30px; justify-content: center; align-items: center; padding: 0 50px 90px; min-height: 0; }
.bchoice { display: flex; flex-direction: column; align-items: center; cursor: pointer; height: 80%; }
.bprev { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #2C2C2C; border-radius: 18px; padding: 14px; border: 3px solid transparent; }
.bchoice:hover .bprev { border-color: #23935A; }
.bprev img { max-height: 100%; max-width: 420px; display: block; }
.bresult { display: flex; gap: 60px; padding: 60px 80px; background: #000; align-items: center; }
.bresimg { flex: 1.2; height: 100%; display: flex; align-items: center; justify-content: center; min-width: 0; }
.bresimg img { max-width: 100%; max-height: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.bside { flex: 1; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.bgif { max-width: 100%; height: auto; border-radius: 18px; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.6); display: block; }
.bgifbox { display: flex; flex-direction: column; }
.bqr { display: flex; gap: 22px; align-items: center; background: #2C2C2C; border-radius: 20px; padding: 22px; margin: 10px 0; }
.bqrbox { width: 140px; height: 140px; border-radius: 12px; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; flex: none; }

/* ── 행사 화면: 루마부스처럼 행사 안 왼쪽 세부 메뉴 ── */
.evhead { display: flex; gap: 18px; align-items: center; min-width: 0; }
.evhead-thumb { width: 112px; aspect-ratio: 1 / 1; border-radius: 12px; border: 1px solid var(--line); flex: none; }
.evhead-thumb .defwel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.evhead-thumb .defwel b { font-size: 15px; } .evhead-thumb .defwel i { font-style: normal; font-size: 10px; color: var(--accent); letter-spacing: 1px; }
.evlayout { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: start; }
/* 왼쪽 세부 메뉴와 오른쪽 첫 제목의 윗줄을 맞춘다 */
.evlayout > div > :first-child, .evlayout > div > :first-child > :first-child { margin-top: 0; }
.evnav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 16px; }
.evnav button { text-align: left; background: none; border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; cursor: pointer; color: var(--sub); display: flex; flex-direction: column; gap: 2px; }
.evnav button b { font-size: 15px; font-weight: 600; }
.evnav button small { font-size: 12px; color: var(--muted); }
.evnav button small.warn { color: var(--warn); }
.evnav button:hover { background: var(--control); color: var(--text); }
.evnav button.on { background: var(--card); border-color: var(--line2); color: var(--text); }
.evnav button.on b { color: var(--text); }
.evbody2 { min-width: 0; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.scard { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.scard:hover { border-color: var(--accent); }
.sthumb { aspect-ratio: var(--cellar, 1); border-radius: 8px; }
.sthumb > span { position: absolute; inset: 0; display: grid; place-items: center; }
@media (max-width: 900px) {
  .evlayout { grid-template-columns: 1fr; gap: 14px; }
  .evnav { flex-direction: row; overflow-x: auto; position: static; }
  .evnav button { flex: none; }
  .evhead-thumb { width: 84px; }
}

/* 시작대기화면 탭 */
.welbig { width: 420px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--line); }
.welbig .defwel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; text-align: center; }
.welbig .defwel b { font-size: 28px; } .welbig .defwel i { font-style: normal; color: var(--accent); letter-spacing: 2px; } .welbig .defwel small { color: var(--muted); font-size: 12px; }
.wdgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.wdcard { display: flex; flex-direction: column; gap: 4px; align-items: stretch; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; color: var(--text); font: inherit; }
.wdcard:hover:not(:disabled) { border-color: var(--accent); }
.wdcard small { color: var(--muted); font-size: 12px; }
.wdthumb { height: 130px; display: flex; align-items: center; justify-content: center; background: #161616; border-radius: 8px; overflow: hidden; }
.wdthumb.tall { height: 230px; }
.wdthumb img { max-width: 100%; max-height: 100%; }
.welbig.tall { width: 240px; aspect-ratio: 9 / 16; }
.boothseg { flex-wrap: wrap; }

/* 포토템플릿 크기 고르기(2×6 / 4×6) */
.sizepicks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.sizepick { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--surface, #2c2c2c); color: var(--text, #fff); cursor: pointer; min-height: 74px; }
.sizepick b { font-size: 18px; }
.sizepick small { color: var(--sub); font-size: 12px; }
.sizepick.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.sizepick:disabled { opacity: .6; cursor: default; }

/* 원본 로고 이미지 */
.mark img { height: 30px; width: auto; display: block; }
.login .mark img { height: 46px; margin: 0 auto 6px; }
.bmark img { height: 64px; width: auto; display: block; opacity: .92; }

/* 여러 개 지우기 */
.pickbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; margin: 0 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); position: sticky; top: 8px; z-index: 5; }
.evgrid.picking .ev { position: relative; cursor: pointer; }
.evgrid.picking .ev .tick { position: absolute; top: 10px; left: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; font-weight: 800; }
.evgrid.picking .ev.picked { outline: 3px solid var(--danger, #e5484d); outline-offset: 2px; }
.evgrid.picking .ev.picked .tick { background: var(--danger, #e5484d); border-color: var(--danger, #e5484d); }

/* ── 색감 필터 고르기(묶음별 칩) ── */
.fbox { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; }
.fgroup b { display: block; font-size: 13px; color: var(--sub); font-weight: 600; margin-bottom: 6px; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { border: 1px solid var(--line); background: var(--control); color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.fchip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.fchip:disabled { cursor: default; opacity: .7; }

/* 색감 묶음: 오른쪽에 값 고르기 + 「손님이 고르기」 스위치 */
.catctl { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 0; }
.catctl .seg { flex-wrap: wrap; justify-content: flex-end; }
.pickl { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--sub); }
@media (max-width: 700px) {
  .catrow { flex-direction: column; align-items: stretch; gap: 10px; }
  .catctl { align-items: stretch; width: 100%; }
  .catctl .seg { flex-wrap: nowrap; display: flex; }
  .catctl .seg button { flex: 1; min-width: 0; padding-left: 4px; padding-right: 4px; }
  .catctl .step { display: flex; width: 100%; }
  .catctl .step b { flex: 1; }
  .catctl .step .btn.sq { flex: none; }
  .pickl { justify-content: space-between; }
}

/* 부스 시험 화면: 색감 고르기(묶음별) */
.bfilter { flex: 1; display: flex; align-items: center; justify-content: center; gap: 80px; min-height: 0; }
.bfilterprev { flex: none; height: 680px; max-width: 900px; }
.bfilterprev img { max-height: 100%; max-width: 860px; }
.bfctl { display: flex; flex-direction: column; gap: 30px; }
.bseg { display: flex; gap: 10px; flex-wrap: wrap; }
.bseg .bbtn { min-width: 84px; padding: 18px 22px; font-size: 22px; }
.bfblock { display: flex; flex-direction: column; align-items: center; text-align: center; }
.bseg { justify-content: center; }
.blevel { display: flex; align-items: center; gap: 18px; }
.blevel .bround { width: 88px; height: 88px; min-width: 0; padding: 0; border-radius: 50%; font-size: 40px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.blevel .bround:disabled { opacity: .35; }
.blevelmid { width: 280px; display: flex; flex-direction: column; align-items: center; }
.bdots { display: flex; gap: 8px; margin-top: 8px; }
.bdots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.bdots i.mid { background: #8a8a8a; }
.bdots i.on { background: var(--accent, #23935A); }
.bfoot { display: flex; gap: 20px; justify-content: center; padding-bottom: 30px; }

/* 권한 표(최고관리자) */
.robar { border: 1px solid var(--warn, #E0A43A); color: var(--warn, #E0A43A); background: rgba(224,164,58,.08); border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; font-weight: 600; font-size: 14px; }
.acc { padding: 4px 20px 10px; max-width: 1040px; }
/* 칸: 항목(남는 너비) | 직원(고정 330px, 가운데) | 최고관리자(고정 120px, 가운데) — 제목과 버튼이 위아래로 같은 줄에 */
.accrow { display: grid; grid-template-columns: minmax(0, 1fr) 330px 120px; column-gap: 24px; align-items: center; padding: 12px 0; }
.accrow + .accrow { border-top: 1px solid var(--line); }
.accrow .l b { display: block; font-weight: 600; }
.accrow .l small { display: block; color: var(--sub); font-size: 13px; margin-top: 2px; word-break: keep-all; }
.acchead { color: var(--sub); font-size: 13px; font-weight: 700; padding: 12px 0 10px; position: sticky; top: 0; background: var(--card, var(--bg)); z-index: 1; }
.acchead .c { text-align: center; }
.acchead .own, .accall { color: var(--sub); }
.acccell { display: flex; justify-content: center; }
.acclab { display: none; }
.accgrp { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--accent); padding: 18px 0 4px; border-top: 1px solid var(--line); }
.acchead + .accgrp { border-top: 1px solid var(--line2); }
.accgrp + .accrow { border-top: 0; }
.accseg { margin: 0; width: 330px; }
.accseg button { flex: 1 1 0; min-width: 0; padding: 0 6px; white-space: nowrap; }
.accall { font-size: 13px; font-weight: 600; }
@media (max-width: 1000px) {
  .accrow { grid-template-columns: 1fr; row-gap: 8px; }
  .acchead { display: none; }
  .acchead + .accgrp { border-top: 0; padding-top: 10px; }
  .acccell { justify-content: space-between; align-items: center; gap: 10px; }
  .acccell.own { display: none; }
  .accseg { width: auto; flex: 1; max-width: 330px; }
  .acclab { display: inline; color: var(--sub); font-size: 13px; font-weight: 600; flex: none; }
}

/* 카메라 값(이 행사): 장소 두 가지 + [−] 값 [+] */
.camscenes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.camscene { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 18px; color: var(--text); cursor: pointer; font: inherit; }
.camscene:disabled { cursor: default; opacity: .8; }
.camscene.on { border-color: var(--accent); background: var(--raised); }
.camscene b { font-size: 17px; }
.camscene small { color: var(--sub); font-size: 13px; word-break: keep-all; }
.camchip { background: var(--control); border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 600; margin-top: 6px; }
.camscene.custom { cursor: default; }
.camchip.off { color: var(--muted); }
.camnote { font-size: 12px; margin: 10px 4px 0; word-break: keep-all; }
.camstep b { min-width: 96px; text-align: center; font-size: 17px; }
@media (max-width: 760px) { .camscenes { grid-template-columns: 1fr; } }

/* USB용으로 모두 받기(촬영 세션 탭) */
.dlcard { display: grid; gap: 12px; margin-bottom: 18px; }
.dlcard .dltitle { font-size: 17px; }
.dlcard p { margin: 0; font-size: 14px; }
.dlcard label.row { cursor: pointer; }
.dlrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dlrow .dlsum { font-weight: 600; }
.btn.off { opacity: .45; pointer-events: none; }

/* 부스 PC 상태: 버전 · 카메라 · 프린터 줄 */
.bdevs { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.bdev { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; min-width: 0; overflow-wrap: anywhere; }
.bdev .dot { flex: none; }

/* 장비 문제 해결(1.10.12) */
.gh { font-size: 18px; margin: 22px 0 10px; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.gcard { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; min-width: 0; }
.gcard:hover { border-color: var(--accent); }
.gcard small { color: var(--sub); font-size: 12px; word-break: keep-all; }
.gpic { background: var(--bg); border-radius: 12px; padding: 10px; display: flex; justify-content: center; }
.gpic img { width: 100%; max-width: 360px; height: auto; display: block; }
.gpic.sm img { max-height: 120px; width: auto; max-width: 100%; }
.gview { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 26px; align-items: start; }
.gsteps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.55; word-break: keep-all; }
@media (max-width: 760px) { .gview { grid-template-columns: 1fr; } }
/* 디자인 보관함: 여러 개 골라 지우기(1.10.12) — 행사 목록 고르기와 같은 모양 */
.tgrid.picking .tcard { position: relative; cursor: pointer; user-select: none; }
.tgrid.picking .tcard .tick { position: absolute; top: 10px; left: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.tgrid.picking .tcard.picked { outline: 3px solid var(--danger, #e5484d); outline-offset: 2px; }
.tgrid.picking .tcard.picked .tick { background: var(--danger, #e5484d); border-color: var(--danger, #e5484d); }
.tgrid.picking .tcard.locked { opacity: .45; cursor: not-allowed; }
.tgrid.picking .tcard.locked .tick { border-color: transparent; background: rgba(0,0,0,.6); }
/* 열어 둔 화면이 예전 판일 때(1.10.12) */
.newver { position: fixed; left: 50%; transform: translateX(-50%); top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 50; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; max-width: calc(100vw - 32px); padding: 12px 16px; background: var(--card); border: 1px solid var(--accent); border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.45); font-size: 14px; }
/* 고객 행사 불러오기: 만든 행사 설정으로 가는 길(1.10.12) */
.crmacts { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.crmacts > b { margin-right: 6px; font-size: 14px; }
.custbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 18px; }
.custbar b { display: block; font-size: 14px; }
.custbar small { color: var(--sub); font-size: 12px; }
/* 끌어다 놓기(1.10.12) */
.dropable { position: relative; }
.dropveil { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: color-mix(in srgb, var(--bg, #161616) 82%, transparent); border: 3px dashed var(--accent); border-radius: 18px; pointer-events: none; min-height: 200px; }
.dropveil > div { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: 24px; }
.dropveil b { font-size: 22px; color: var(--accent); }
.dropveil small { color: var(--sub); font-size: 14px; }
.step .stepin { width: 84px; text-align: center; font-weight: 700; padding: 6px 4px; }
/* 편집기: 손가락으로 끌어도 화면이 같이 움직이지 않게(별도 검수 1.10.12) */
.stage svg, .stage .grip, .layers .grip { touch-action: none; }
/* 따라다니는 저장 띠(1.10.13) */
.savebar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; gap: 14px; align-items: center; padding: 10px 12px 10px 18px; background: var(--card); border: 1px solid var(--accent); border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.45); font-size: 14px; max-width: calc(100vw - 32px); }
.savebar[hidden] { display: none; }
.edshared { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 10px; border: 1px solid var(--warn, #E6B04A); border-radius: 12px; font-size: 13px; color: var(--text); background: var(--card); }
/* 고객 행사 만들기 진행 · 결과(1.10.13) */
.crmprog { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin-bottom: 14px; border-color: var(--accent); }
.crmprog.bad { border-color: var(--danger, #e5484d); }
.crmprog .spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--accent); animation: crmspin 0.9s linear infinite; flex: none; margin-top: 2px; }
@keyframes crmspin { to { transform: rotate(360deg); } }
.crmmsgs { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--sub); }
.crmpick { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
/* 설정 주고받기(1.10.13) */
.copybox { margin: 0 0 18px; padding: 16px 18px; }
.copybox[hidden] { display: none; }
.copyhead { display: flex; justify-content: space-between; align-items: center; }
.copygroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 14px; }
.copyg { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.copyg.off { opacity: .5; cursor: not-allowed; }
.copyg input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; }
.copyg b { display: block; font-size: 14px; }
.copyg small { color: var(--sub); font-size: 12px; }
.copycols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.copycols h4 { margin: 0 0 8px; font-size: 14px; }
.copycols select { max-width: 100%; min-width: 0; flex: 1 1 220px; }
.copylist { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; }
.copylist label { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.copylist input { accent-color: var(--accent); }
@media (max-width: 800px) { .copycols { grid-template-columns: 1fr; } }

/* ───────── 손님 화면 꾸미기(1.10.14) ───────── */
.gschips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 2px; }
.gschips .chip { border: 1px solid var(--line2); background: var(--control); color: var(--sub); border-radius: 999px; padding: 8px 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.gschips .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.gsdot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.gschips .chip.on .gsdot { background: #fff; }
.gslayout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 520px); gap: 20px; align-items: start; }
.gsside { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gsprevhost { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.gsprev { width: 100%; position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line2); background: #000; }
.gsprev.tall { max-width: 300px; }
.gsthumb { height: 44px; max-width: 90px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line2); }
.gsinh { color: var(--muted); font-size: 12px; }
@media (max-width: 960px) { .gslayout { grid-template-columns: 1fr; } .gsside { position: static; } }
/* 미리 보기 무대: 부스 화면 크기 그대로 그린 뒤 줄여 보여 줌 */
.gsstage { position: absolute; left: 0; top: 0; transform-origin: 0 0; color: var(--t); font-family: "Pretendard", system-ui, sans-serif; overflow: hidden; word-break: keep-all; }
.gsstage .gsbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gsstage .gsdim { position: absolute; inset: 0; }
.gsstage > div:not(.gsdim) { position: absolute; inset: 0; }
.gscol { display: flex; flex-direction: column; }
.gshead { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.gst { font-weight: 700; line-height: 1.15; color: var(--t); }
.gss { font-size: 22px; font-weight: 500; color: var(--t); opacity: .72; text-align: inherit; }
.gscells { flex: 1; display: flex; flex-wrap: wrap; gap: 24px 30px; justify-content: center; align-content: center; padding: 0 40px; }
.gscellw { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.gscell { background: linear-gradient(135deg, #5a5a5a, #3a3a3a); border-radius: 16px; border: 5px solid #3A3A3A; }
.gscl { font-size: 26px; font-weight: 700; color: var(--t); }
.gsfoot { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 50px 30px; }
.gsbars { display: flex; gap: 8px; }
.gsbars i { width: 34px; height: 6px; border-radius: 3px; background: #424242; }
.gsbars i.on { background: var(--b); }
.gsbrow { display: flex; gap: 20px; justify-content: center; }
.gsbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 84px; min-width: 300px; padding: 0 48px; border-radius: var(--r); background: var(--b); color: var(--bt); font-size: 28px; font-weight: 700; }
.gsbtn.ghost { background: transparent; color: #fff; border: 1px solid #3A3A3A; font-size: 22px; min-width: 240px; }
.gscopies { flex: 1; display: flex; gap: 24px; justify-content: center; align-items: center; }
.gscopy { width: 180px; height: 180px; border-radius: 24px; background: #2C2C2C; border: 5px solid #3A3A3A; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; color: #fff; }
.gscopy.on { border-color: var(--b); }
.gscd .gscam { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, #6b6f74, #2b2d30 70%); }
.gscd.p .gscam { inset: auto 0; top: 50%; height: 720px; transform: translateY(-50%); }
.gsperson { position: absolute; left: 50%; bottom: 0; width: 36%; height: 72%; transform: translateX(-50%); background: radial-gradient(circle at 50% 22%, #8a8f95 0 14%, transparent 14.5%), radial-gradient(ellipse at 50% 100%, #80858b 0 48%, transparent 48.5%); opacity: .8; }
.gsov { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gspill { position: absolute !important; inset: auto !important; left: 50% !important; top: 28px !important; transform: translateX(-50%); background: rgba(0,0,0,.7); border-radius: 999px; padding: 14px 26px; font-size: 24px; font-weight: 700; color: #fff; }
.gshint { position: absolute !important; inset: auto !important; left: 0 !important; right: 0 !important; top: 108px !important; text-align: center; font-size: 44px; font-weight: 800; color: var(--t); text-shadow: 0 2px 18px rgba(0,0,0,.9); }
.gscd.p .gspill { top: 40px !important; } .gscd.p .gshint { top: 120px !important; }
.gsring { position: absolute !important; inset: auto !important; left: 50% !important; top: 50% !important; width: 340px; height: 340px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0,0,0,.45); border: 12px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; }
.gsring b { font-weight: 800; color: var(--t); line-height: 1; margin-top: -24px; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.gsres { display: flex; align-items: center; justify-content: center; gap: 70px; padding: 60px; }
.gsres.p { flex-direction: column; gap: 40px; }
.gsphoto { width: 420px; height: 840px; }
.gsres.p .gsphoto { width: 420px; height: 860px; }
.gsresr { display: flex; flex-direction: column; gap: 14px; max-width: 640px; align-items: flex-start; }
.gsqr { display: flex; gap: 22px; align-items: center; background: #2C2C2C; border-radius: 20px; padding: 18px 22px; margin: 16px 0; }
.gsqr .gss { color: #fff; }
.gsqrbox { width: 150px; height: 150px; background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 30px 30px; border: 10px solid #fff; border-radius: 6px; }
.gsqt { font-size: 26px; font-weight: 700; color: #fff; }
.gslock { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.gswarn { color: var(--warn); font-weight: 600; margin: 0 2px 12px; }
/* 꾸미기 칸: 좁은 왼쪽 칸에서 이름이 한 글자씩 꺾이지 않게 — 이름 · 설명 위, 조작 아래 */
.gslayout .row { flex-wrap: wrap; gap: 8px 16px; }
.gslayout .row .l { flex: 1 1 240px; min-width: 0; }
.gslayout .row > .btns, .gslayout .row > .step, .gslayout .row > input { flex: 0 1 auto; }
.gslayout .seg button { white-space: nowrap; }
.gslayout .seg button { padding: 0 12px; }
/* 촬영 세션: 시험 표시 · 받기 링크(1.10.14) */
.btn.xs { min-height: 28px; padding: 0 10px; font-size: 12px; }
.scard.test { opacity: .72; border-style: dashed; }
.testpill { display: inline-block; margin-left: 6px; background: var(--warn); color: #111; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; vertical-align: 2px; }
.sacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sextra:empty { display: none; }
.sharebox { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding: 10px; background: var(--bg); border-radius: 10px; }
.sharebox img { width: 100%; max-width: 180px; height: auto; align-self: center; border-radius: 6px; background: #fff; }
.sharel { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sharel code { font-size: 11px; word-break: break-all; color: var(--sub); }
.sharemodal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sharemodal .card { width: min(420px, 100%); }
.sharemodal .sharebox img { max-width: 300px; }
.albar .btn { min-height: 30px; padding: 0 10px; }
.staffrow { flex-wrap: wrap; } .staffrow .l { flex: 1 1 200px; min-width: 0; }
.ordbar { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--sub); } .ordbar span { flex: 1; }

/* GIF 꾸미기(1.10.16) */
.gifdeco { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.gifprevwrap { display: flex; flex-direction: column; gap: 6px; align-items: center; margin-top: 4px; }
.gifprev { position: relative; width: 240px; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #3a3f45, #22262a); display: grid; place-items: center; }
.gifprev-cam { color: #9aa3ab; font-size: 13px; }
.gifprev-ov { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.gifprev-logo { position: absolute; max-height: 50%; object-fit: contain; }
.gifprev-logo.c-tl { left: 3%; top: 4.5%; } .gifprev-logo.c-tr { right: 3%; top: 4.5%; }
.gifprev-logo.c-bl { left: 3%; bottom: 4.5%; } .gifprev-logo.c-br { right: 3%; bottom: 4.5%; }
@media (max-width: 720px) { .gifdeco { grid-template-columns: minmax(0, 1fr); } .gifprev { width: min(240px, 100%); } }

/* 기본값 묶음(1.10.16) */
.presettools { margin: 10px 0 6px; flex-wrap: wrap; }
.presettools input { min-width: 200px; flex: 1 1 200px; max-width: 280px; }
.seg.wrap { flex-wrap: wrap; }
.lutname { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: center; }
.gifdeco .seg button { white-space: nowrap; }
@media (max-width: 720px) { .gifdeco .seg { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; } }

/* 편집기 위치 · 크기 버튼(1.10.17) */
.stepbox { display: flex; gap: 4px; align-items: stretch; }
.stepbox .stepbtn { min-width: 38px; padding: 0 8px; font-size: 15px; }
.stepbox .stepin { width: 100%; min-width: 0; text-align: center; }

/* 실장 교육(2026-10-25) */
.tblwrap { overflow-x: auto; }
.edutbl { width: 100%; border-collapse: collapse; min-width: 900px; font-size: 14px; } /* 1.10.26: 넓은 화면에서 가로 스크롤이 생기지 않게(대표 지적) — 좁은 화면(휴대폰)에서만 옆으로 밀어 봄 */
.edutbl th, .edutbl td:nth-child(6) { white-space: nowrap; }
.edutbl td:nth-child(1) { min-width: 110px; }
.edutbl td:nth-child(2), .edutbl td:nth-child(3) { min-width: 140px; }
.edutbl .ph { display: block; white-space: nowrap; font-size: 13px; }
.edutbl th { text-align: left; color: var(--sub); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.edutbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.edutbl tr.on td { background: var(--raised); }
.edutbl tr.on td { border-bottom-color: transparent; }
.edutbl tr.edurec > td { background: var(--raised); padding: 0 12px 16px; }
.edurecbox { border-left: 3px solid var(--accent, var(--line)); padding: 10px 0 2px 14px; position: sticky; left: 12px; max-width: min(100%, calc(100vw - 72px)); overflow-x: auto; box-sizing: border-box; }
.edurec-t { display: block; font-size: 14px; margin-bottom: 6px; }
.edurectbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.edurectbl th { text-align: left; color: var(--sub); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.edurectbl td { padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.edurectbl tr:last-child td { border-bottom: 0; }
.edutbl .pill { margin: 2px 3px 0 0; font-weight: 600; }
.pill.ok { background: #183a28; color: var(--ok); }
.edubar { height: 6px; width: 140px; background: var(--raised); border-radius: 3px; overflow: hidden; margin: 6px 0 4px; }
.edubar i { display: block; height: 100%; background: var(--accent); }

/* 「삭제한 행사」 아래 «지운 디자인» 줄의 작은 미리보기 */
.trthumb { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: var(--raised); flex: none; margin-right: 12px; }
.row .trthumb + .l { flex: 1; min-width: 0; text-align: left; }
