/* 303FACTORY 행사 운영 — 노트북 데스크 기준, 한 섹션 한 화면.
   색은 전부 아래 토큰에서. 라이트 / 블랙 두 가지. */
:root {
  --bg: #eef0f1;
  --surface: #ffffff;
  --sunk: #e3e6e8;
  --line: #d2d7da;
  --ink: #15191c;
  --muted: #5c666d;
  --accent: #0b5d63;        /* 짙은 청록: 버튼·선택 */
  --accent-ink: #ffffff;
  --accent-soft: #d8ebec;
  --bar: #12191d;           /* 상단 바 */
  --bar-ink: #e9eef0;
  --ok: #1d7a46;  --ok-soft: #dcefe3;
  --warn: #a8560f; --warn-soft: #f8e6d3;
  --bad: #b3261e;  --bad-soft: #f8dcd9;
  --focus: #1a73e8;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 8px;
  color-scheme: light;
}
:root[data-theme="black"] {
  --bg: #0c0f11;
  --surface: #151a1d;
  --sunk: #1c2226;
  --line: #2a3237;
  --ink: #e6ebee;
  --muted: #8d989f;
  --accent: #3fb8b0;
  --accent-ink: #061212;
  --accent-soft: #14302f;
  --bar: #070a0b;
  --bar-ink: #dfe6e9;
  --ok: #5bc98a;  --ok-soft: #12291c;
  --warn: #e8a25f; --warn-soft: #33230f;
  --bad: #ef7a70;  --bad-soft: #3a1714;
  --focus: #7ab4ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
a { color: var(--accent); }

/* 상단 바 */
.bar { height: 48px; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: var(--bar); color: var(--bar-ink); position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 800; letter-spacing: .06em; font-size: 13px; white-space: nowrap; }
.brand b { color: var(--accent); }
.bar .ev { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bar .ev small { color: color-mix(in srgb, var(--bar-ink) 60%, transparent); font-weight: 400; margin-left: 8px; }
.bar .grow { flex: 1; }
.acct { display: flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.acct .role { border: 1px solid color-mix(in srgb, var(--bar-ink) 35%, transparent); border-radius: 99px; padding: 1px 8px; }
.bar .btn-bar { background: transparent; border: 1px solid color-mix(in srgb, var(--bar-ink) 30%, transparent); color: var(--bar-ink); border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.bar .btn-bar:hover { border-color: var(--bar-ink); }

/* 탭 */
.tabs { display: flex; align-items: stretch; gap: 2px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); height: 42px; position: sticky; top: 48px; z-index: 4; overflow-x: auto; }
.tabs a { display: flex; align-items: center; padding: 0 14px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .sep { width: 1px; background: var(--line); margin: 10px 8px; }
.tabs .back { font-weight: 500; }

main { padding: 16px; max-width: 1400px; margin: 0 auto; }
.head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.head h1 { font-size: 18px; margin: 0; }
.head .grow { flex: 1; }
.sub { color: var(--muted); font-size: 13px; margin: 0; }

/* 버튼 */
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 6px 12px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.btn.sm { padding: 3px 9px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* 분할 스위치 */
.seg { display: inline-flex; background: var(--sunk); border-radius: 7px; padding: 2px; }
.seg button { border: 0; background: transparent; padding: 4px 12px; border-radius: 5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }

/* 표 */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; background: var(--sunk); padding: 7px 10px; position: sticky; top: 0; white-space: nowrap; }
td { white-space: nowrap; padding: 7px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
tr.click { cursor: pointer; }
tr.click:hover td { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.empty { padding: 28px; text-align: center; color: var(--muted); }

.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.chip.off { background: var(--sunk); color: var(--muted); }
.pill { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.muted { background: var(--sunk); color: var(--muted); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }

/* 카드 그리드 */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-cards { margin-bottom: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.card h2 { font-size: 14px; margin: 0; display: flex; align-items: center; gap: 8px; }
.card h2 .grow { flex: 1; }
.card .big { font-size: 26px; font-weight: 800; line-height: 1.1; }
.card .big small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.later { color: var(--muted); font-size: 13px; background: var(--sunk); border-radius: 6px; padding: 8px 10px; }

.list { display: flex; flex-direction: column; }
.list .row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); min-width: 0; }
.list .row:first-child { border-top: 0; }
.list .row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 스위치 */
.switch { position: relative; width: 36px; height: 20px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: .5; }

/* 폼 */
.form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; }
.form .wide { grid-column: span 2; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 900px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
label.f, .f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; min-width: 0; }
input.in, select.in { border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 6px 9px; color: var(--ink); width: 100%; min-width: 0; }
input.in:focus, select.in:focus { border-color: var(--accent); outline: none; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.check { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; cursor: pointer; color: var(--ink); font-weight: 600; font-size: 13px; }
.check input { accent-color: var(--accent); margin: 0; }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }

.inline-form { display: flex; gap: 8px; }
.inline-form .in { flex: 1; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }

/* 확인 상자 */
.confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--warn-soft); color: var(--warn); border-radius: 6px; padding: 8px 10px; font-size: 13px; font-weight: 600; }

/* 행사 고르기 카드 */
.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.event-card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.event-card:hover { border-color: var(--accent); }
.event-card .name { font-size: 15px; font-weight: 700; }
.meta { color: var(--muted); font-size: 12px; }

#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 99px; font-size: 13px; z-index: 20; max-width: calc(100% - 32px); }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.notice { padding: 40px; max-width: 520px; margin: 40px auto; text-align: center; }
.notice h1 { font-size: 18px; }
.devbar { font-size: 11px; display: flex; gap: 6px; align-items: center; }
.devbar select { background: transparent; color: var(--bar-ink); border: 1px solid color-mix(in srgb, var(--bar-ink) 30%, transparent); border-radius: 5px; font-size: 11px; }
.devbar option { color: #111; }


/* 행사 관리: 왼쪽 세부 메뉴 + 오른쪽 내용 */
.manage { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; align-items: start; }
.subnav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 106px; }
.subnav a { padding: 8px 12px; border-radius: 6px; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.subnav a:hover { background: var(--sunk); color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.manage-body { min-width: 0; display: flex; flex-direction: column; gap: 0; }
@media (max-width: 900px) {
  .manage { grid-template-columns: minmax(0, 1fr); }
  .subnav { flex-direction: row; overflow-x: auto; position: static; }
}

/* 명단 */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar label.btn { display: inline-flex; align-items: center; }
.file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-hidden:focus-visible + .file-name { outline: 2px solid var(--focus); }
.file-name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.full-line { flex-basis: 100%; }
.okbox { background: var(--ok-soft); color: var(--ok); border-radius: 6px; padding: 8px 10px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.upload-result .err { margin-bottom: 12px; }
.warnbox { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.warnbox h2 { font-size: 15px; margin: 0; }
.conflict { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.conflict:first-child { border-top: 0; }
input.search { width: 260px; max-width: 100%; }
.table-wrap.tall { max-height: calc(100vh - 260px); min-height: 160px; }
td.mono, .mono { font-family: var(--mono); font-size: 13px; }
td.muted { color: var(--muted); }

/* 일정 */
.session-form { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.session-form .f { min-width: 110px; }
.session-form .grow2 { flex: 2 1 200px; }
.session-form .end { margin-left: auto; }
.session-form .btns { display: flex; gap: 8px; }
.session-form .err { flex-basis: 100%; }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.day-grid h2 .meta { font-weight: 500; }
.time { color: var(--muted); min-width: 92px; }
.card.narrow { max-width: 760px; }

@media (max-width: 640px) {
  .bar { gap: 8px; padding: 0 10px; }
  .acct .who, .wide-only, .devbar, .bar .ev small { display: none; }
  .bar .ev { font-size: 13px; }
  main { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.session-form .err:empty, .warnbox .err:empty { display: none; }
.day-grid .row { align-items: flex-start; }
.day-grid .row .grow { white-space: normal; }
.twin { color: var(--muted); font-size: 12px; font-weight: 500; }

/* ---------- 체크인 ---------- */
.room-strip { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 10px; font-size: 13px; flex-wrap: wrap; }
.room-strip .full { color: var(--warn); }
.sep-bar { color: var(--line); }
.ck-desk { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 12px; align-items: start; }
.ck-left { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; position: sticky; top: 106px; max-height: calc(100vh - 170px); }
.ck-left-top { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.big-search { font-size: 16px; padding: 9px 12px; }
.ck-list { flex: 1; overflow: auto; min-height: 120px; }
.ck-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 9px 12px; cursor: pointer; color: var(--ink); }
.ck-row:hover { background: var(--sunk); }
.ck-row.on { background: var(--accent-soft); }
.ck-row .grow { flex: 1; min-width: 0; }
.block { display: block; }
.ck-left-foot { padding: 10px 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.ck-left-foot .grow { flex: 1; }
.ck-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ck-who { flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
.ck-who .grow { flex: 1; min-width: 220px; }
.who-name { font-size: 20px; font-weight: 800; }
.who-org { font-size: 14px; font-weight: 500; color: var(--muted); }
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.pill.step { font-size: 12px; padding: 3px 10px; }
.ck-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ck-cards .card h2 { font-size: 14px; }
.light { font-weight: 400; color: var(--muted); }
.seg.wrap { flex-wrap: wrap; }
.stepper { display: flex; align-items: center; gap: 6px; }
.step-label { width: 34px; font-size: 13px; color: var(--muted); font-weight: 700; }
.step-val { min-width: 28px; text-align: center; font-size: 16px; }
.meal-row { gap: 8px; }
.ck-save { min-height: 18px; margin-top: -6px; }
.warn-text { color: var(--warn); font-weight: 700; }
.ck-bottom { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
.ck-bottom .grow { flex: 1; }
.ck-bottom .err:empty { display: none; }
.phone-f { width: 240px; }
.sig-box { width: 140px; height: 52px; border: 1px dashed var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; text-align: center; }
.check.big { padding: 10px 14px; font-size: 14px; }
.btn.big { padding: 11px 18px; font-size: 15px; }
.ck-empty { padding: 40px; text-align: center; }
.nowrap { white-space: nowrap; }
@media (max-width: 900px) {
  .ck-desk { grid-template-columns: minmax(0, 1fr); }
  .ck-left { position: static; max-height: 360px; }
}

/* 팝업 */
.modal-wrap { position: fixed; inset: 0; background: rgb(0 0 0 / .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 30; }
.modal { background: var(--surface); color: var(--ink); border-radius: 12px; box-shadow: 0 12px 40px rgb(0 0 0 / .3); padding: 18px 20px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.modal h2 { margin: 0; font-size: 16px; }
.modal .head { margin-bottom: 0; }
.modal .err:empty { display: none; }
input.num { width: 70px; text-align: right; }
.used { width: 76px; text-align: right; }
.meal-name { width: 130px; }
.sig-img { max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.ck-cards .wide-card { grid-column: 1 / -1; }
.ck-cards .wide-card textarea { resize: vertical; }
.ck-cards { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.ck-cards .card { gap: 6px; padding: 10px 12px; }
.ck-cards .card .f { gap: 2px; }
.card .list .row select.in { width: 130px; flex: none; }
.card .list .row input.grow { flex: 1; min-width: 90px; }
.desk-badge { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill.busy { background: #e6e1f5; color: #5b3fa6; }
:root[data-theme="black"] .pill.busy { background: #2a2340; color: #b9a6f0; }
.sig-box.ok { border-style: solid; border-color: var(--ok); color: var(--ok); font-weight: 700; background: var(--ok-soft); }
.sig-wait { display: flex; align-items: center; gap: 8px; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0; }
.qr-box svg { background: #fff; border-radius: 8px; }
.pair-code { font-family: var(--mono); font-size: 26px; letter-spacing: .25em; font-weight: 700; }
input.desk-name { width: 150px; }
.img-slot { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.img-slot-head { display: flex; align-items: center; gap: 8px; }
.img-slot-head .grow { flex: 1; }
.img-slot-head label.btn { display: inline-flex; align-items: center; }
.img-slot input[type=color] { width: 44px; height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 2px; background: var(--surface); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.thumb img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--sunk); }
.manage-body .grid2 { align-items: start; }
textarea.in { font: inherit; border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 6px 9px; color: var(--ink); width: 100%; }
textarea.in:focus { border-color: var(--accent); outline: none; }
.companions { display: flex; gap: 14px; flex-wrap: wrap; }
.companions { gap: 10px; }
.companions .step-label { width: auto; }
.companions .btn.sm { padding: 2px 8px; }
.companions .step-val { min-width: 18px; }
/* 데스크 카드: 빈자리 없이 가로를 꽉 채움 */
.ck-desk { grid-template-columns: 300px minmax(0, 1fr); }
.ck-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ck-cards[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.ck-cards[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ck-cards[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ck-cards[data-n="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ck-cards[data-n] { grid-template-columns: minmax(0, 1fr); } }
/* 구분: 좌장 · 연자 · VIP */
.pill.role { font-size: 11px; padding: 1px 7px; }
.role-chair { background: #e2ecfb; color: #1f4f9c; }
.role-speaker { background: #e3f3ea; color: #1d6b43; }
.role-vip { background: #fbe9c9; color: #8a5300; }
.role-etc { background: var(--sunk); color: var(--muted); }
:root[data-theme="black"] .role-chair { background: #17263f; color: #8fb6f2; }
:root[data-theme="black"] .role-speaker { background: #15291f; color: #7fd1a3; }
:root[data-theme="black"] .role-vip { background: #33270f; color: #f0c27a; }

/* ---------- 쿠폰 ---------- */
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.cp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 12px; }
.card.dark { background: var(--bar); color: var(--bar-ink); border-color: var(--bar); }
.card.dark .sub { color: color-mix(in srgb, var(--bar-ink) 75%, transparent); }
.card.dark .warn-text { color: #f0c27a; }
.card .big .pill { font-size: 11px; vertical-align: middle; }
.meter { height: 8px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); }
.cp-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 12px; color: var(--muted); }
.cp-nums span { display: flex; flex-direction: column; }
.cp-nums b { color: var(--ink); font-size: 14px; }
.ok-text { color: var(--ok) !important; }
th.num, td.num { text-align: right; }
.recover-row { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
input.amount { width: 180px; font-size: 18px; font-weight: 800; text-align: right; }
.check-line { display: flex; align-items: center; gap: 8px; font-weight: 700; border-top: 1px dashed var(--line); padding-top: 8px; }
.check-line input { width: 18px; height: 18px; accent-color: var(--warn); }
.transfer { display: flex; gap: 12px; flex-wrap: wrap; }
.transfer .f:first-child { width: 260px; }
.item-head { font-weight: 700; }
.c-kind { width: 80px; flex: none; } .c-day { width: 120px; flex: none; } .c-amt { width: 110px; flex: none; text-align: right; } .c-qty { width: 70px; flex: none; text-align: right; } .c-del { width: 52px; flex: none; }
.card .list .row select.c-kind { width: 80px; } .card .list .row select.c-day { width: 120px; }
.meter span.w0 { width: 0%; }
.meter span.w5 { width: 5%; }
.meter span.w10 { width: 10%; }
.meter span.w15 { width: 15%; }
.meter span.w20 { width: 20%; }
.meter span.w25 { width: 25%; }
.meter span.w30 { width: 30%; }
.meter span.w35 { width: 35%; }
.meter span.w40 { width: 40%; }
.meter span.w45 { width: 45%; }
.meter span.w50 { width: 50%; }
.meter span.w55 { width: 55%; }
.meter span.w60 { width: 60%; }
.meter span.w65 { width: 65%; }
.meter span.w70 { width: 70%; }
.meter span.w75 { width: 75%; }
.meter span.w80 { width: 80%; }
.meter span.w85 { width: 85%; }
.meter span.w90 { width: 90%; }
.meter span.w95 { width: 95%; }
.meter span.w100 { width: 100%; }
.card .list .row .in.c-kind { width: 80px; flex: none; }
.card .list .row .in.c-day { width: 120px; flex: none; }
.card .list .row .in.c-amt { width: 110px; flex: none; }
.card .list .row .in.c-qty { width: 70px; flex: none; }

/* ---------- 등록 ---------- */
.rg-desk { display: grid; grid-template-columns: 300px minmax(0, 1fr) 280px; gap: 12px; align-items: start; }
.rg-aside { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 106px; }
.rg-aside .card h2, .rg .ck-right .card h2 { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.rg-aside .grow, .rg .card h2 .grow { flex: 1; }
.kv { display: grid; grid-template-columns: 72px 1fr; gap: 4px 10px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.rg-feed-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.rg-feed-row .grow { flex: 1; }
.rg-memo.has { background: var(--warn-soft); border-color: var(--warn-soft); }
.rg-memo textarea { resize: vertical; background: var(--surface); }
.rg-step { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; flex-wrap: wrap; }
.rg-step .grow { flex: 1; min-width: 140px; }
.rg-num { width: 26px; height: 26px; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; background: var(--sunk); color: var(--muted); }
.rg-step.ok .rg-num { background: var(--ok); color: #fff; }
.rg-step.now { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.rg-step.now .rg-num, .rg-step.next .rg-num { background: var(--accent); color: #fff; }
.rg-step.later { opacity: .6; }
.rg-sig { height: 110px; border: 1px dashed var(--line); border-radius: 6px; background: var(--sunk); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; overflow: hidden; }
.rg-sig-img { max-height: 100%; max-width: 100%; background: #fff; }
.cam { width: 100%; max-width: 480px; border-radius: 8px; background: #000; }
@media (max-width: 1280px) { .rg-desk { grid-template-columns: 280px minmax(0, 1fr); } .rg-aside { grid-column: 1 / -1; position: static; flex-direction: row; flex-wrap: wrap; } .rg-aside > .card { flex: 1 1 260px; } }
@media (max-width: 900px) { .rg-desk { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 명찰 (라벨프린터) ---------- */
.print-badge { display: none; }
.muted-btn { color: var(--muted); }
code.kiosk { display: block; white-space: pre-wrap; word-break: break-all; background: var(--sunk); padding: 8px; border-radius: 6px; font-size: 12px; margin: 6px 0; user-select: all; }
@media print {
  body.printing-badge { margin: 0; background: #fff; }
  body.printing-badge > *:not(.print-badge) { display: none !important; }
  body.printing-badge .print-badge { display: flex; page: badge; align-items: center; justify-content: center; overflow: hidden; color: #000; background: #fff; }
  .print-badge-name { font-weight: 800; white-space: nowrap; line-height: 1; font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
}

/* ---------- 질문 관리 ---------- */
.qs-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
.qs-left { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; position: sticky; top: 106px; max-height: calc(100vh - 170px); }
.qs-left .pad, .pad { padding: 12px; }
.qs-left .head { margin: 0; }
.qs-list { flex: 1; overflow: auto; min-height: 80px; }
.qs-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 9px 12px; cursor: pointer; color: var(--ink); }
.qs-row:hover { background: var(--sunk); }
.qs-row.on { background: var(--accent-soft); }
.qs-row .grow { flex: 1; min-width: 0; }
.qs-foot { padding: 10px 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.qs-mid { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.qs-mid > .head { margin: 0; }
.qq-list { display: flex; flex-direction: column; gap: 8px; }
.qq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.qq.staged { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.qq .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.qtext { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.qacts { display: flex; flex-direction: column; gap: 6px; flex: none; }
.pill.sp { background: #e6eef7; color: #1f4f82; }
.pill.info { background: var(--accent-soft); color: var(--accent); }
.qs-right { display: flex; flex-direction: column; gap: 12px; }
.qalert { background: var(--bad, #b3261e); border-color: var(--bad, #b3261e); color: #fff; animation: qblink 1.2s ease-in-out 3; }
.qalert .btn { align-self: flex-start; }
@keyframes qblink { 50% { opacity: .55; } }
.qs-preview { width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.lay3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.laysize { display: flex; gap: 4px; }
.laysize .grow { flex: 1; font-weight: 800; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.onair { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.onair .block { display: block; font-size: 11px; }
.btns.wrap { flex-wrap: wrap; }
.vtitle { font-size: 17px; }
.vbars { display: flex; flex-direction: column; gap: 8px; }
.vrow { display: grid; grid-template-columns: minmax(120px, 30%) minmax(0, 1fr) 90px; gap: 10px; align-items: center; }
.vrow b { text-align: right; }
.vbar { height: 20px; background: var(--sunk); border-radius: 6px; overflow: hidden; }
.vbar i { display: block; height: 100%; background: var(--accent); }
.vopts { display: flex; flex-direction: column; gap: 6px; }
.vopts .row { display: flex; align-items: center; gap: 8px; }
.btn.danger-fill { background: var(--bad, #b3261e); border-color: var(--bad, #b3261e); color: #fff; }
.cd-big { font-size: 15px; font-weight: 800; color: var(--bad, #b3261e); }
.cd-big span { font-size: 26px; }
.modal.wide { width: min(760px, 94vw); }
.sp-row { display: flex; align-items: center; gap: 10px; }
.sp-row .grow { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sp-face { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; background: var(--sunk); flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--muted); }
.sp-results { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sp-mini { display: inline-flex; align-items: center; gap: 2px; }
.sp-mini img, .sp-mini > span:not(.meta) { width: 22px; height: 22px; border-radius: 99px; object-fit: cover; background: var(--sunk); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
@media (max-width: 1280px) { .qs-grid { grid-template-columns: 240px minmax(0, 1fr); } .qs-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } .qs-left { position: static; } }
@media (max-width: 800px) { .qs-grid { grid-template-columns: minmax(0, 1fr); } }
.qalert .btn { background: #fff; color: var(--bad); border-color: #fff; font-weight: 800; }
.qna .btns { display: flex; gap: 8px; align-items: center; }
.sp-row .grow { min-width: 280px; }
.sp-row select.in { width: auto; flex: none; }
.sp-row .in { width: 100%; }

/* ---------- 포토 ---------- */
.photo .row { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.photo .grow { flex: 1; min-width: 0; }
.ph-up { display: flex; flex-direction: column; gap: 12px; }
.ph-drop { background: var(--surface); border: 2px dashed var(--accent); border-radius: 10px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; }
.ph-drop .grow { display: flex; flex-direction: column; gap: 2px; }
.ph-progress { font-weight: 700; color: var(--ink); }
.ph-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .ph-groups { grid-template-columns: minmax(0, 1fr); } }
.ph-grp { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ph-grp.loose { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); background: color-mix(in srgb, var(--warn-soft) 45%, var(--surface)); }
.ph-thumbs { display: flex; gap: 6px; align-items: center; overflow: hidden; }
.ph-t { width: 84px; height: 62px; object-fit: cover; border-radius: 5px; background: var(--sunk); flex: none; }
.ph-steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.ph-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; align-items: start; }
@media (max-width: 900px) { .ph-board { grid-template-columns: minmax(0, 1fr); } }
.ph-people tr.sel td { background: var(--accent-soft, var(--sunk)); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ph-cell { position: relative; border: 2px solid transparent; border-radius: 6px; padding: 0; background: var(--sunk); aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; }
.ph-cell.on { border-color: var(--accent); }
.ph-cell.on::after { content: "✓"; position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.ph-cell .ph-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-many { position: absolute; left: 4px; bottom: 4px; background: rgb(0 0 0 / .6); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 99px; }
.ph-slate { position: fixed; inset: 0; z-index: 40; background: #fff; color: #15191c; display: flex; flex-direction: column; }
.ph-slate-bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid #e3e6e8; }
.ph-slate-bar .in { width: min(320px, 50vw); font-size: 17px; padding: 9px 12px; }
.ph-slate-bar .grow { flex: 1; }
.ph-slate > .sp-results { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 20px 0; }
.ph-slate-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.ph-slate-qr { background: #fff; padding: 12px; line-height: 0; }
.ph-slate-name { font-size: 40px; font-weight: 800; }
.ph-slate-sub { font-size: 20px; color: #5c666d; }
.ph-slate .in, .ph-slate .btn { background: #fff; color: #15191c; border: 1px solid #c3cacd; }
.ph-slate .meta { color: #5c666d; }
.ph-caprow { display: flex; gap: 8px; } .ph-caprow .in { flex: 1; min-width: 0; }

/* 결과 · 보고서 */
.rp-opts { display: flex; gap: 14px; flex-wrap: wrap; }
.rp-opt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
