/* 관리자 화면 — Austin UI 가이드: 밝은 회색 무대 위 흰 카드, 딥네이비 잉크, 밝은 블루 액션 */
:root { --bg:#eef0f4; --surface:#fff; --ink:#14213d; --blue:#2f6bff; --blue-dark:#1f56e8; --blue-bg:#e8efff; --sub:#66718c; --line:#e3e7f0; --ok:#16a34a;
  --shadow-card: 0 14px 32px -24px rgba(20,33,61,.18), 0 1px 3px rgba(20,33,61,.04); --grad-blue: linear-gradient(180deg,#4a80ff,#2f63f0); --grad-navy: linear-gradient(180deg,#1d2e5c,#14213d); }
* { box-sizing: border-box; }
body { margin:0; font-family:"Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", "Noto Sans KR", Roboto, "Helvetica Neue", Arial, sans-serif; background: radial-gradient(140% 90% at 50% -20%, #f8fafd 0%, var(--bg) 65%); color:var(--ink); line-height:1.5; word-break:keep-all; }
.wrap { max-width:1180px; margin:0 auto; padding:28px 20px 64px; }
.top { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:20px; }
h1 { font-size:28px; font-weight:900; letter-spacing:-.02em; margin:0 0 4px; overflow-wrap:anywhere; }
h2 { font-size:17px; font-weight:800; margin:0 0 8px; }
.sub { color:var(--sub); margin:0; font-size:14px; }
.status { display:flex; align-items:center; gap:8px; background:var(--surface); border-radius:999px; padding:8px 14px; font-size:13px; font-weight:700; box-shadow:var(--shadow-card); white-space:nowrap; }
.status .dot { width:9px; height:9px; border-radius:50%; background:#c4cad8; }
.status.on .dot { background:var(--ok); box-shadow:0 0 0 4px rgba(22,163,74,.15); }
.card { background:var(--surface); border-radius:20px; padding:24px; box-shadow:var(--shadow-card); margin-bottom:20px; }
.launch { display:grid; grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr); gap:24px; }
@media (max-width:820px) { .launch { grid-template-columns:1fr; } }
.hint { color:var(--sub); font-size:13px; margin:6px 0 10px; }
.btns { display:flex; flex-wrap:wrap; gap:8px; }
button { font:inherit; font-weight:800; border:0; border-radius:14px; padding:12px 18px; cursor:pointer; min-height:42px; letter-spacing:-.01em; }
.btn-primary { background:var(--grad-blue); color:#fff; box-shadow:0 14px 24px -12px rgba(47,99,240,.55), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-primary:active { background:var(--blue-dark); transform:translateY(1px); }
.btn-dark { background:var(--grad-navy); color:#fff; box-shadow:0 14px 24px -12px rgba(20,33,61,.5); }
.btn-ghost { background:var(--blue-bg); color:var(--blue); }
.btn-ghost:active { transform:translateY(1px); }
/* 도구 모음(가져오기·이미지·텍스트 장표…)은 목록을 아래로 내려도 따라온다(대표 요청 2026-10-02) — 카드 안에서 위에 붙는다 */
.list-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; position:sticky; top:0; z-index:20; background:var(--surface); margin:-24px -24px 0; padding:16px 24px 10px; border-radius:20px 20px 0 0; box-shadow:0 10px 14px -14px rgba(20,33,61,.25); }
.list .t .tt, .list .m.editable { cursor:text; } .list .t .tt:hover, .list .m.editable:hover { text-decoration:underline dotted var(--sub); text-underline-offset:3px; }
input.inline { font:inherit; font-size:14px; font-weight:700; padding:3px 8px; border:1px solid var(--blue); border-radius:8px; width:min(100%, 520px); background:var(--surface); color:var(--ink); }
.list .m input.inline { font-size:12px; font-weight:600; }
.list-head .btns { justify-content:flex-end; }
.pill { display:inline-block; background:var(--blue-bg); color:var(--blue); border-radius:999px; padding:2px 10px; font-size:13px; margin-left:6px; }
.chkpill { display:inline-flex; align-items:center; gap:7px; background:var(--surface, #fff); border:1px solid var(--line, #e3e7f0); border-radius:999px; padding:5px 12px; font-size:13px; font-weight:700; color:var(--ink); cursor:pointer; } .chkpill input { margin:0; width:16px; height:16px; accent-color:var(--blue); }
.list { list-style:none; margin:8px 0 0; padding:0; display:grid; gap:10px; }
.item { display:grid; grid-template-columns:36px 160px 1fr auto; gap:14px; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:10px 12px; cursor:grab; transition:box-shadow .15s, transform .15s; }
.item:hover { box-shadow:var(--shadow-card); }
.item.dragging { opacity:.5; }
.item.over { box-shadow:0 0 0 2px var(--blue); }
.item.current { border-color:var(--blue); background:#f5f8ff; }
.item.selected { box-shadow:0 0 0 2px var(--blue), var(--shadow-card); }
.tag.repl { background:#fff8eb; color:#8a6116; margin-left:6px; }
.item .ops button.del { background:#fdecec; color:#dc2626; }
.item .ops button.swap, .item .ops button.restore { background:#e8f7ee; color:#157347; }
/* 다른 관리자(럭키드로우) 안에 iframe 으로 들어갔을 때 */
body.embed { background:transparent; }
body.embed .wrap { padding:8px 24px 32px; max-width:none; }   /* 럭키드로우가 iframe 을 브라우저 폭 전체로 펼치므로 가장자리 여백은 여기서 준다 */
body.embed .top h1 { font-size:20px; } body.embed .top .sub { display:none; } body.embed .foot { display:none; }
.drop { display:none; position:fixed; inset:16px; border:3px dashed var(--blue); border-radius:24px; background:rgba(232,239,255,.85); z-index:8; align-items:center; justify-content:center; font-size:22px; font-weight:900; color:var(--blue); pointer-events:none; }
body.dropping .drop { display:flex; }
.item .n { font-size:18px; font-weight:900; color:var(--sub); text-align:center; font-variant-numeric:tabular-nums; }
.item .n { display:grid; justify-items:center; gap:5px; }                      /* 번호 + 아래 선택 체크(여러 장 삭제, 2026-10-08) */
.item .n .pk { width:18px; height:18px; margin:0; accent-color:#dc2626; cursor:pointer; }
.item.picked { background:#fff7f7; border-color:#f3b8b8; }
.pick-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:6px 0 10px; }
.pick-row .pick-n { font-size:13px; font-weight:800; color:#dc2626; }
.pick-row .btn-danger { padding:7px 12px; min-height:34px; border-radius:10px; font-size:13px; } .pick-row .btn-danger:disabled { opacity:.45; cursor:default; transform:none; }
.pick-row .hint { margin:0; }
.pick-row .pick-move { padding:7px 12px; min-height:34px; border-radius:10px; font-size:13px; } .pick-row .pick-move:disabled { opacity:.45; cursor:default; transform:none; }
/* 장표를 다른 발표로 — 받을 발표 목록(검색·최근 고친 순), 고른 줄은 파란 테두리 */
.dlg.move { width:min(620px, 94vw); }
.mv-search { font:inherit; font-size:15px; border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:#fbfcfe; width:100%; box-sizing:border-box; }
.mv-list { max-height:min(40vh, 320px); overflow:auto; display:grid; gap:4px; border:1px solid var(--line); border-radius:12px; padding:6px; }
.mv-list button { display:flex; justify-content:space-between; align-items:center; gap:10px; width:100%; text-align:left; padding:9px 12px; min-height:40px; border-radius:10px; background:transparent; border:1px solid transparent; color:var(--ink); font-weight:700; font-size:14px; }
.mv-list button small { color:var(--sub); font-weight:600; font-size:12px; white-space:nowrap; }
.mv-list button:hover { background:#f3f5f9; } .mv-list button.on { border-color:var(--blue); background:#f5f8ff; }
.mv-list .hint { padding:8px 10px; margin:0; }
.mv-opts { display:flex; gap:14px; flex-wrap:wrap; }
.item .ops .mv { font-size:13px; }
body.readonly #pickMove { pointer-events:none; opacity:.45; }
.item.current .n { color:var(--blue); }
.item .thumb { width:160px; height:90px; border-radius:10px; background:#0b0f1a; display:flex; align-items:center; justify-content:center; color:#9fc0ff; font-size:13px; font-weight:800; overflow:hidden; }
.item .thumb img, .item .thumb video { width:100%; height:100%; object-fit:cover; display:block; }
.item .t { font-weight:800; font-size:15px; }
.item .m { color:var(--sub); font-size:12px; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tag { display:inline-block; border-radius:999px; padding:1px 8px; font-size:11px; font-weight:800; margin-right:6px; vertical-align:1px; }
.tag.image { background:#eef0f4; color:var(--sub); } .tag.demo { background:var(--blue-bg); color:var(--blue); } .tag.video { background:#fff8eb; color:#8a6116; }
.item .ops { display:flex; gap:6px; }
.item .ops button { padding:8px 12px; min-height:36px; border-radius:11px; background:#f3f5f9; color:var(--ink); }
.item .ops button.go { background:var(--blue-bg); color:var(--blue); }
.foot { color:var(--sub); font-size:13px; text-align:center; } .foot a { color:var(--blue); }
.toast { position:fixed; left:50%; bottom:28px; transform:translateX(-50%); background:var(--ink); color:#fff; border-radius:999px; padding:12px 20px; font-weight:700; font-size:14px; box-shadow:0 24px 48px -22px rgba(20,33,61,.5); max-width:90vw; z-index:9; }
/* 모니터 배치도 — 감지된 모니터를 실제 위치 비율대로 그린다. 선택(파랑)·이 화면(회색 점선)·발표 중(녹색) */
.monitors { position:relative; background:#f3f5f9; border-radius:16px; margin:8px 0 12px; overflow:hidden; }
.monitors[hidden] { display:none; }
.mon { position:absolute; border:2px solid #c4cad8; border-radius:10px; background:#fff; cursor:pointer; padding:8px 10px; overflow:hidden; transition:box-shadow .15s, border-color .15s; user-select:none; }
.mon:hover { box-shadow:var(--shadow-card); }
.mon .num { font-size:22px; font-weight:900; line-height:1; color:var(--ink); }
.mon .lbl { font-size:12px; font-weight:800; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mon .res { font-size:11px; color:var(--sub); }
.mon .tags { position:absolute; right:8px; top:8px; display:flex; gap:4px; }
.mon .tags span { font-size:10px; font-weight:800; border-radius:999px; padding:1px 7px; background:#eef0f4; color:var(--sub); }
.mon .tags .cur { background:#eef0f4; color:var(--sub); }
.mon .tags .show { background:#e8f7ee; color:#157347; }
.mon.current { border-style:dashed; }
.mon.selected { border-color:var(--blue); box-shadow:0 0 0 3px rgba(47,107,255,.2); background:#f5f8ff; }
.mon.selected .num { color:var(--blue); }
.mon.showing { border-color:var(--ok); }
/* 시청 지표 */
.stats h3 { font-size:14px; font-weight:800; margin:14px 0 6px; color:var(--sub); }
.stats-ctl { align-items:center; }
.seg { display:inline-flex; background:#f3f5f9; border-radius:999px; padding:3px; }
.seg button { padding:6px 14px; min-height:32px; border-radius:999px; background:transparent; color:var(--sub); font-size:13px; }
.seg button.on { background:var(--ink); color:#fff; }
.chk { font-size:13px; font-weight:700; color:var(--sub); display:flex; align-items:center; gap:6px; cursor:pointer; }
.pill.live { background:#e8f7ee; color:#157347; }
.pill.live::before { content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--ok); margin-right:6px; box-shadow:0 0 0 3px rgba(22,163,74,.15); }
.tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:10px; margin-top:6px; }
.tile { background:#f3f5f9; border-radius:14px; padding:12px 14px; }
.tile .v { font-size:26px; font-weight:900; letter-spacing:-.02em; color:var(--ink); line-height:1.1; }
.tile .k { font-size:12px; color:var(--sub); font-weight:700; margin-top:4px; }
.stats-grid { display:grid; grid-template-columns:1.3fr 1fr; gap:24px; }
@media (max-width:820px) { .stats-grid { grid-template-columns:1fr; } }
.bars { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.bars li { display:grid; grid-template-columns:28px 1fr 64px 64px; gap:8px; align-items:center; font-size:13px; }
.bars .n { font-weight:900; color:var(--sub); text-align:right; font-variant-numeric:tabular-nums; }
.bars .bar { position:relative; height:26px; background:#f3f5f9; border-radius:8px; overflow:hidden; }
.bars .bar i { position:absolute; left:0; top:0; bottom:0; background:var(--blue-bg); border-radius:8px; }
.bars .bar b { position:absolute; left:10px; top:0; line-height:26px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; right:8px; }
.bars .bar.demo i { background:#dbe6ff; } .bars .bar.video i { background:#fff1d6; }
.bars .v { text-align:right; font-variant-numeric:tabular-nums; font-weight:800; }
.bars .s { text-align:right; font-variant-numeric:tabular-nums; color:var(--sub); font-size:12px; }
.bars .old b { color:var(--sub); }
.sessions { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.sessions li { display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; background:#f3f5f9; border-radius:12px; padding:8px 12px; font-size:13px; }
.sessions .when { font-weight:800; font-variant-numeric:tabular-nums; }
.sessions .d { color:var(--sub); font-size:12px; }
.sessions .live { color:#157347; font-weight:800; }
.sessions .role { display:inline-block; font-size:10px; font-weight:800; border-radius:999px; padding:1px 7px; background:#eef0f4; color:var(--sub); margin-left:6px; vertical-align:1px; }
.sessions .role.p { background:var(--blue-bg); color:var(--blue); }
.empty { color:var(--sub); font-size:13px; padding:10px 0; }
.pill[hidden], .mon[hidden] { display:none; }
/* 로고 링크(계정별 판: 첫 화면으로) */
.brand-link { display:inline-block; line-height:0; border-radius:6px; } .brand-link:focus-visible { outline:2px solid var(--blue); outline-offset:4px; }
/* 상단 내비게이션 */
.top-right { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.nav { display:flex; gap:4px; background:var(--surface); border-radius:999px; padding:4px; box-shadow:var(--shadow-card); }
.nav a { text-decoration:none; color:var(--sub); font-weight:800; font-size:13px; padding:7px 14px; border-radius:999px; white-space:nowrap; }
.nav a.on { background:var(--ink); color:#fff; }
.nav a:hover:not(.on) { background:var(--blue-bg); color:var(--blue); }
body.embed .nav a[href="./"] { display:none; }
.nav a.home { background:var(--blue-bg); color:var(--blue); }   /* event.torder.ai: 내 발표 목록으로 */
/* 모니터 역할 칩 (발표 / 발표자) */
.mon .roles { position:absolute; left:8px; right:8px; bottom:6px; display:flex; gap:4px; }
.mon .roles .r { flex:1; padding:2px 0; min-height:22px; border-radius:999px; font-size:11px; font-weight:800; background:#eef0f4; color:var(--sub); }
.mon .roles .r.show.on { background:var(--blue); color:#fff; }
.mon .roles .r.pres.on { background:#14213d; color:#fff; }
.mon .num { font-size:20px; }
/* 배치도를 그릴 수 없을 때(좁은 창·좌표 겹침): 같은 크기 카드를 나란히 — 번호는 실제 모니터와 같다 */
.monitors.grid { display:flex; flex-wrap:wrap; gap:10px; padding:12px; height:auto; }
.monitors.grid .mon { position:static; flex:1 1 150px; max-width:220px; height:112px; }
/* 발표자 메모 칸 */
.notebox { grid-column:1 / -1; display:grid; gap:4px; padding:2px 0 4px; }
.notebox textarea { width:100%; font:inherit; font-size:15px; line-height:1.55; border:1px solid var(--line); border-radius:12px; padding:10px 12px; resize:vertical; background:#fbfcfe; color:var(--ink); }
.notebox textarea:focus { outline:2px solid var(--blue); border-color:transparent; }
.notebox small { color:var(--sub); font-size:12px; }
.tag.note { background:#e8f7ee; color:#157347; margin-left:6px; }
.item .ops button.memo { background:#eef0f4; }
/* 큰 미리보기 (마우스를 올렸을 때) */
.preview { position:fixed; z-index:20; width:min(72vw, 1280px); background:#000; border-radius:16px; box-shadow:0 30px 60px -20px rgba(20,33,61,.55), 0 0 0 4px #fff; overflow:hidden; pointer-events:none; }
.preview img { display:block; width:100%; aspect-ratio:16/9; object-fit:contain; }
.preview[hidden], .preview [hidden] { display:none !important; }
.pv-text { aspect-ratio:16/9; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:6%; word-break:keep-all; }
.pv-text.left { align-items:flex-start; text-align:left; }
.pv-text b { font-size:clamp(20px, 3.4vw, 48px); font-weight:900; line-height:1.2; margin-bottom:12px; }
.pv-text span { font-size:clamp(14px, 1.8vw, 26px); font-weight:600; white-space:pre-wrap; line-height:1.45; }
.pv-frame { position:relative; aspect-ratio:16/9; background:#0b0f1a; overflow:hidden; }
/* 시연 앱 첫 화면 — 설계 크기로 띄워 transform 으로 축소, 클릭은 막음 */
.item .thumb .live { position:relative; width:100%; height:100%; overflow:hidden; background:#0b0f1a; }
.item .thumb .live iframe, .pv-frame iframe { position:absolute; left:0; top:0; border:0; transform-origin:0 0; pointer-events:none; background:#fff; }
.item .thumb .live .ld, .pv-frame .ld { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; padding:8px; font-size:11px; line-height:1.35; color:#9fc0ff; font-weight:800; }
.pv-frame .ld { font-size:16px; }
.item .thumb .ld.warn { display:flex; align-items:center; justify-content:center; width:100%; height:100%; text-align:center; padding:8px; font-size:11px; line-height:1.35; color:#ffb4a8; font-weight:800; }   /* iframe 금지 주소(claude.ai) — 엑박 대신 안내 */
.item .n, .item .t, .item .m { user-select:none; }
.item .n { cursor:pointer; }
.item .n input { width:56px; font:inherit; font-size:16px; font-weight:900; text-align:center; color:var(--ink); border:2px solid var(--blue); border-radius:9px; padding:3px 2px; background:#fff; outline:0; -moz-appearance:textfield; }
.item .n input::-webkit-inner-spin-button, .item .n input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }              /* 두 번 누르기(발표 화면 이동)로 글자가 선택되지 않게 */
/* 대화창 공통 (가져오기·텍스트 장표·내보내기) */
.dlg { border:0; border-radius:22px; padding:0; width:min(560px, 94vw); box-shadow:0 40px 80px -30px rgba(20,33,61,.5); }
.dlg::backdrop { background:rgba(20,33,61,.45); }
.dlg form { padding:26px 28px; display:grid; gap:12px; }
.dlg h2 { margin:0; font-size:20px; }
.fld { display:grid; gap:6px; font-size:13px; font-weight:800; color:var(--sub); }
.fld input { font:inherit; font-size:15px; font-weight:500; color:var(--ink); border:1px solid var(--line); border-radius:12px; padding:11px 12px; background:#fbfcfe; }
.fld input:focus { outline:2px solid var(--blue); border-color:transparent; }
.or { text-align:center; color:var(--sub); font-size:12px; font-weight:800; }
.radios { display:grid; gap:6px; font-size:13px; color:var(--ink); }
/* 라이브 Q&A 장표 — 행사 고르기 목록(이름·상태·연사·질문 수·주소). 고른 카드는 파란 테두리 */
.evpick { display:grid; gap:8px; max-height:42vh; overflow:auto; }
.evpick label { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:3px 10px; align-items:start; border:1px solid var(--line); border-radius:14px; padding:10px 12px; background:#fbfcfe; cursor:pointer; }
.evpick label:has(input:checked) { border-color:var(--blue); background:var(--blue-bg); }
.evpick input { margin:3px 0 0; width:16px; height:16px; accent-color:var(--blue); grid-row:1 / span 2; }
.evpick b { font-size:15px; color:var(--ink); display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.evpick small { font-size:12px; color:var(--sub); font-weight:600; overflow-wrap:anywhere; }
.evpick .st { font-size:11px; font-weight:800; padding:2px 8px; border-radius:999px; background:#e8efff; color:var(--blue); } .evpick .st.closed { background:#f1f3f7; color:var(--sub); } .evpick .st.paused { background:#fff3d6; color:#9a6400; }
.evpick .empty { padding:14px 4px; }
.radios label { display:flex; gap:8px; align-items:flex-start; cursor:pointer; }
.btns.right { justify-content:flex-end; }
.btn-danger { background:#fdecec; color:#dc2626; }
.btn-danger:active { transform:translateY(1px); }
/* ---------- 모바일 (좁은 화면) ---------- */
input, textarea, select { font-size:16px; }                 /* iOS 자동 확대 방지 */
@media (max-width: 720px) {
  .wrap { padding:14px 12px 48px; }
  .top { flex-direction:column; align-items:stretch; gap:10px; margin-bottom:14px; }
  .top-right { align-items:stretch; }
  .nav { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .nav a { padding:9px 12px; font-size:12px; }
  .status { justify-content:center; }
  h1 { font-size:22px; } .sub { font-size:13px; }
  .card { padding:16px 14px; border-radius:16px; margin-bottom:14px; }
  .launch { grid-template-columns:minmax(0, 1fr); gap:16px; }
  .launch-left, .launch-right { min-width:0; }
  .remote { overflow-x:auto; }                                   /* 단축키 표가 폭을 넘으면 카드 밖으로 밀지 않고 표만 옆으로 넘긴다 */
  .keymap td.base { min-width:0; }
  .btns button { flex:1 1 auto; padding:11px 12px; font-size:14px; }
  .list-head { flex-direction:column; align-items:stretch; gap:8px; }
  .list-head .btns { flex-wrap:wrap; }
  /* 카드: 번호 | 그림·제목 두 줄, 버튼은 아래 한 줄 */
  .item { grid-template-columns:28px 1fr; grid-template-areas:"n thumb" "n info" "ops ops"; gap:8px 10px; padding:10px; cursor:default; }
  .item .n { grid-area:n; font-size:15px; padding-top:2px; }
  .item .thumb { grid-area:thumb; width:100%; height:auto; aspect-ratio:16/9; }
  .item > div:nth-child(3) { grid-area:info; min-width:0; }
  .item .ops { grid-area:ops; flex-wrap:wrap; gap:6px; }
  .item .ops button { flex:1 1 auto; min-height:40px; }
  .item .m { white-space:normal; word-break:break-all; font-size:11px; }
  .notebox { grid-column:1 / -1; }
  .monitors { margin:6px 0 10px; }
  .mon .lbl { font-size:11px; } .mon .res { display:none; } .mon .roles .r { font-size:10px; }
  .dlg form { padding:20px 16px; }
  .tiles { grid-template-columns:repeat(2, 1fr); }
  .tile .v { font-size:22px; }
  .stats-grid { grid-template-columns:1fr; gap:16px; }
  .bars li { grid-template-columns:22px 1fr 54px; font-size:12px; }
  .bars .s { display:none; }
  .sessions li { grid-template-columns:auto 1fr; font-size:12px; }
  .sessions li > span:last-child { grid-column:1 / -1; text-align:right; }
  .toast { bottom:16px; font-size:13px; }
}
@media (hover: none) { .preview { display:none !important; } }   /* 터치 기기: 마우스 올리기 미리보기 없음 */
/* 시연 장표 규격 선택 */
.item .vp { display:inline-flex; align-items:center; gap:6px; margin-top:6px; font-size:12px; font-weight:800; color:var(--sub); }
.item .vp select { font:inherit; font-size:13px; font-weight:700; color:var(--ink); border:1px solid var(--line); border-radius:9px; padding:4px 8px; background:#fbfcfe; max-width:280px; }
/* 텍스트 장표 대화창 */
.swatches { display:flex; gap:8px; align-items:center; margin-top:4px; }
.sw { width:36px; height:36px; border-radius:10px; border:2px solid var(--line); cursor:pointer; padding:0; min-height:0; }
.sw.on { border-color:var(--blue); box-shadow:0 0 0 3px rgba(47,107,255,.2); }
.sw.custom { display:flex; align-items:center; justify-content:center; background:conic-gradient(#f87171,#fbbf24,#34d399,#60a5fa,#a78bfa,#f87171); overflow:hidden; }
.sw.custom input { opacity:0; width:100%; height:100%; cursor:pointer; }
.fld textarea { font:inherit; font-size:15px; color:var(--ink); border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:#fbfcfe; resize:vertical; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.fld select { font:inherit; font-size:15px; border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:#fbfcfe; color:var(--ink); }
.preview-box { aspect-ratio:16/9; border-radius:12px; border:1px solid var(--line); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:6%; overflow:hidden; word-break:keep-all; }
.preview-box.left { align-items:flex-start; text-align:left; }
.preview-box b { font-size:clamp(14px, 3.2cqw, 26px); font-weight:900; line-height:1.2; margin-bottom:6px; }
.preview-box span { font-size:clamp(11px, 1.7cqw, 15px); font-weight:600; white-space:pre-wrap; line-height:1.45; }
.item .thumb.tx { flex-direction:column; padding:8px; text-align:center; word-break:keep-all; font-size:12px; line-height:1.3; }
.item .thumb.tx b { font-size:13px; font-weight:900; }
.tag.text { background:#eef0f4; color:var(--ink); }
/* 내보내기 대화창 */
.dlg.export { width:min(680px, 94vw); }
.dlg-body { padding:22px 24px; display:grid; gap:12px; }
.dlg-head { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.dlg-head h2 { margin:0; font-size:20px; display:flex; align-items:center; gap:8px; }
.ex-tabs { display:flex; gap:6px; flex-wrap:wrap; background:#f3f5f9; border-radius:14px; padding:4px; }
.ex-tabs button { flex:1 1 auto; padding:9px 10px; min-height:38px; border-radius:11px; background:transparent; color:var(--sub); font-size:13px; }
.ex-tabs button.on { background:var(--ink); color:#fff; }
.ex-pane { border:1px solid var(--line); border-radius:16px; padding:14px 16px; display:grid; gap:10px; }
.dlg.export [hidden] { display:none !important; }              /* display:grid 가 hidden 속성을 이기지 않게 (탭 한 장만 보이도록) */
.ex-pane .hint { margin:0; }
.ex-pane .fld input, .ex-pane textarea { font:inherit; font-size:15px; color:var(--ink); border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:#fbfcfe; width:100%; box-sizing:border-box; }
.ex-pane textarea { resize:vertical; line-height:1.5; }
.ex-result { border-top:1px dashed var(--line); padding-top:10px; display:grid; gap:8px; }
.ex-result .ok { margin:0; background:#e8f7ee; color:#157347; border-radius:12px; padding:10px 12px; font-size:14px; }
.ex-result a[id="exResUrl"] { color:var(--blue); word-break:break-all; }
a.link { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.progress { background:var(--blue-bg); color:var(--blue); border-radius:12px; padding:10px 12px; font-weight:700; }
button.small { padding:8px 12px; min-height:36px; border-radius:11px; font-size:13px; }
@media (max-width: 720px) {
  .dlg-body { padding:16px 14px; }
  .ex-tabs button { font-size:12px; padding:8px 6px; }
  .ex-pane .btns > * { flex:1 1 auto; }
  .row2 { grid-template-columns:1fr; }
}
/* 리모컨 시험 */
.remote { margin-top:10px; background:#f3f5f9; border-radius:14px; padding:10px 14px; }
.remote summary { cursor:pointer; font-weight:800; font-size:13px; color:var(--ink); list-style:none; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.remote summary::-webkit-details-marker { display:none; }
.remote summary .arrow { display:inline-block; transition:transform .15s; font-size:11px; } .remote[open] summary .arrow { transform:rotate(90deg); }
.remote summary .last { color:var(--sub); font-weight:700; } .remote summary .tip { margin-left:auto; color:var(--sub); font-weight:600; font-size:12px; } .remote[open] summary .tip { display:none; }
.remote-last { margin:8px 0; padding:12px 14px; border-radius:12px; background:var(--surface); border:1px solid var(--line); font-weight:800; font-size:14px; min-height:44px; }
.remote-last.ok { border-color:#16a34a; background:#e8f7ee; color:#157347; }
.remote-last.unknown { border-color:#f59e0b; background:#fff8eb; color:#8a6116; }
/* 📥 가져오기 대화창 — 탭 3개(링크 / HTML / 첨부파일), 내보내기 창과 같은 탭 모양 */
.dlg.import { width:min(700px, 94vw); }
.dlg.import [hidden] { display:none !important; }
.dlg.import .ex-pane .fld input, .dlg.import .ex-pane textarea { width:100%; box-sizing:border-box; }
.dlg.import .fld input[type=file] { padding:9px 10px; background:#fff; cursor:pointer; }
.dlg.import .fld input[type=file]::file-selector-button { font:inherit; font-weight:800; border:0; border-radius:10px; padding:7px 12px; margin-right:10px; background:var(--blue-bg); color:var(--blue); cursor:pointer; }
.im-hint { margin:0; color:var(--blue); font-weight:700; font-size:13px; line-height:1.45; }
.im-hint:empty { display:none; }
/* "모니터 찾기": 이 관리자 창이 있는 모니터에 번호를 크게 덧씌움 (다른 모니터는 identify.html 팝업 또는 떠 있는 발표·발표자 창이 그린다) */
.screen-flash-here { position:fixed; inset:0; z-index:95; pointer-events:none; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1.5vh; border:14px solid #ff3b30; box-shadow:inset 0 0 0 4px rgba(255,59,48,.35); background:rgba(20,33,61,.55); color:#fff; text-align:center; text-shadow:0 4px 30px rgba(0,0,0,.6); animation:screenFlashHere .5s ease-in-out infinite alternate; }
.screen-flash-here b { font-size:30vh; font-weight:900; line-height:1; letter-spacing:-.03em; }
.screen-flash-here span { font-size:3vh; font-weight:800; opacity:.9; }
.screen-flash-here[hidden] { display:none; }
@keyframes screenFlashHere { from { border-color:#ff3b30; } to { border-color:#ff8a80; } }
/* 🔗 공유 링크 대화창 · 시청 지표 사람별 표 */
.dlg.link { width:min(860px, 96vw); }
.lk-table { width:100%; border-collapse:collapse; font-size:13px; }
.lk-table th { text-align:left; color:var(--sub); font-weight:800; font-size:12px; padding:8px 8px; border-bottom:1px solid var(--line); white-space:nowrap; }
.lk-table td { padding:10px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
.lk-table td .m { color:var(--sub); font-size:12px; margin-top:2px; word-break:break-all; }
.lk-table a.lk { color:var(--blue); font-weight:800; text-decoration:none; word-break:break-all; }
.lk-table td.ops { white-space:nowrap; } .lk-table td.ops button { margin-right:4px; background:#f3f5f9; color:var(--ink); }
.lk-table td.ops button.del { background:#fdecec; color:#dc2626; }
.st { display:inline-flex; align-items:center; border-radius:999px; padding:3px 9px; font-size:12px; font-weight:800; white-space:nowrap; }
.st.active { background:#e8f7ee; color:#157347; } .st.paused { background:#fff8eb; color:#8a6116; } .st.expired { background:#eef0f4; color:var(--sub); }
.tbl { overflow-x:auto; }

/* 단축키 설정 표 — 기능마다 지금 지정된 키와 기본 키를 함께 보여 준다 */
.keymap { width:100%; border-collapse:collapse; margin:10px 0 6px; font-size:13px; }
.keymap th, .keymap td { text-align:left; padding:7px 8px; border-bottom:1px solid var(--line); vertical-align:middle; }
.keymap th { font-weight:800; }                                   /* 폭을 고정하지 않는다 — 설명(.why)이 긴 기능 열이 가장 넓게, 나머지는 내용만큼 */
.keymap th .why { display:block; font-weight:500; color:var(--sub); font-size:12px; margin-top:1px; white-space:normal; }
.keymap td.mine { white-space:nowrap; }
.keymap td.base { line-height:1.6; min-width:96px; }
.keymap td.base, .keymap .dim { color:var(--sub); }
.keymap td.set { text-align:right; white-space:nowrap; width:1%; }
.keymap .kk { display:inline-block; background:var(--blue-bg); color:var(--blue); border-radius:7px; padding:2px 8px; font-weight:800; }
.keymap .kx { border:0; background:none; color:var(--sub); cursor:pointer; padding:0 4px; font-size:12px; }
.keymap .kx:hover { color:#dc2626; }
.keymap tr.waiting { background:#fff8eb; }
.keymap tr.waiting th, .keymap tr.waiting td.set button { color:#8a6116; font-weight:800; }

/* 클릭 자리 찍기 창 — 앱을 띄워 놓고 그 위를 눌러 자리를 정한다 */
.dlg.spots .dlg-body { max-width: 920px; }
.sp-stage { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; margin: 10px 0; }
.sp-frame, .sp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sp-catch { position: absolute; inset: 0; cursor: crosshair; }      /* 앱이 눌리지 않게 덮개를 씌우고 여기서 좌표만 받는다 */
.sp-dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.5); pointer-events: none; }
.sp-list { margin: 6px 0 0; padding-left: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.sp-list li { display: flex; align-items: center; gap: 6px; background: var(--blue-bg); border-radius: 999px; padding: 4px 6px 4px 10px; font-size: 13px; font-weight: 700; color: var(--blue); }
.sp-list input { border: 0; background: rgba(255,255,255,.7); border-radius: 8px; padding: 3px 7px; font: inherit; color: var(--ink); width: 110px; }
.sp-list button { border: 0; background: none; color: var(--sub); cursor: pointer; font-size: 13px; }
.sp-list button:hover { color: #dc2626; }

/* ---- 워크스페이스(§12): 소속·권한 배지, 보기 전용 모드, 변경 기록 ---- */
.ws-badge { margin:6px 0 0; font-size:13px; color:var(--sub); display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.ws-badge b { color:var(--ink); }
.ro-banner { margin:8px 0 0; padding:10px 14px; border-radius:12px; background:#fff3d6; color:#7a4e00; font-size:13px; font-weight:700; }
/* 보기 전용: 고치는 버튼은 눌리지 않게(서버도 거절한다). 보기·열기·닫기·내비는 그대로 */
body.readonly #importDeck, body.readonly #addImages, body.readonly #addText, body.readonly #addDemo, body.readonly #addHtml, body.readonly #reset, body.readonly #linkBtn,
body.readonly .list .card button, body.readonly .list .card select, body.readonly .list .card textarea, body.readonly .list .card input, body.readonly #hiddenList button, body.readonly #insertHint { pointer-events:none; opacity:.45; }
body.readonly .list .card [draggable] { pointer-events:none; }
.activity { list-style:none; margin:0; padding:0; display:grid; gap:6px; max-height:60vh; overflow:auto; }
.activity li { display:grid; grid-template-columns:minmax(90px, 170px) 104px minmax(0, 1fr); gap:10px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; font-size:13px; align-items:center; }
.activity li > b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.activity li .t { color:var(--sub); } .activity li .w { font-weight:700; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.activity li.conflict { border-color:#f0c36d; background:#fff8e6; }
.link-tree { display:grid; gap:4px; margin:0 0 12px; font-size:13px; } .link-tree .lt-row { padding:6px 10px; border:1px solid var(--line); border-radius:10px; background:var(--surface); } .link-tree .lt-arrow { color:var(--sub); margin-right:6px; } .link-tree .m { color:var(--sub); }
@media (max-width:720px) { .activity li { grid-template-columns:1fr; gap:2px; } }

/* 발표 세션(§16, 2026-10-08): 세션 고르기 창 · 상태 줄 아래 세션 안내 */
.sess-dlg { border:0; border-radius:22px; padding:0; width:min(600px, 94vw); box-shadow:0 40px 80px -30px rgba(20,33,61,.5); } .sess-dlg::backdrop { background:rgba(20,33,61,.45); }
.sess-dlg form { padding:26px 28px; display:grid; gap:12px; } .sess-dlg h2 { margin:0; font-size:20px; } .sess-dlg p { margin:0; color:var(--sub); font-size:14px; line-height:1.5; }
.sess-dlg ul { list-style:none; margin:0; padding:0; display:grid; gap:8px; } .sess-dlg li { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px 12px; border:1px solid var(--line); border-radius:12px; padding:10px 14px; font-size:14px; } .sess-dlg li b { color:var(--blue); }
.sess-dlg .ops { display:flex; gap:6px; } .sess-dlg button { font:inherit; font-weight:800; font-size:13px; padding:8px 12px; border-radius:10px; border:0; background:var(--blue-bg); color:var(--blue); cursor:pointer; } .sess-dlg button.danger { background:#fdecec; color:var(--bad, #c0392b); }
.sess-dlg .acts { display:flex; justify-content:flex-end; }
.sess-info { font-size:12px; color:var(--sub); display:flex; flex-wrap:wrap; gap:4px 14px; margin-top:4px; } .sess-info .mine { font-weight:800; color:var(--ink); } .sess-info .other button { font:inherit; font-size:12px; font-weight:800; margin-left:4px; padding:2px 8px; border-radius:8px; border:0; background:#fdecec; color:var(--bad, #c0392b); cursor:pointer; }

/* ✨ AI 로 만들기(§19, 2026-10-13) — 가져오기 창의 네 번째 탭 */
.dlg.import.ai { width:min(800px, 94vw); }
.ai-row { display:grid; grid-template-columns:1fr 96px 120px; gap:8px; }
.ai-prev { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; max-height:320px; overflow:auto; padding:2px; }
.ai-prev figure { margin:0; font-size:11px; color:var(--sub); line-height:1.3; }
.ai-prev img { display:block; width:100%; aspect-ratio:16/9; border-radius:8px; border:1px solid var(--line); background:#111; object-fit:cover; margin-bottom:3px; }
.im-hint.bad { color:#b91c1c; }
#aiRecent { font:inherit; font-size:13px; border:1px solid var(--line); border-radius:10px; padding:8px 10px; background:#fbfcfe; width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
.ex-pane[data-pane=ai] > * { min-width:0; }   /* 그리드 칸은 min-width:auto 라 select 의 긴 option 글자만큼 넓어져 대화상자가 가로로 넘쳤다(2026-10-13 실서버 첫 사용) */
