/* ask-manager 관리자 UI — 외부 라이브러리 없음 (2026-09-19 전면 재작성) */
:root {
  --brand: #3b46b0;
  --brand-dark: #2c3580;
  --brand-soft: #eef0fb;
  --brand-softer: #f6f7fd;
  --ink: #171a2b;
  --ink-2: #3a3f55;
  --muted: #6b7185;
  --faint: #9aa0b3;
  --line: #e6e8f0;
  --line-soft: #f0f1f6;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ok: #17824a;      --ok-bg: #e7f6ee;
  --wait: #9a6300;    --wait-bg: #fdf3df;
  --bad: #c9373a;     --bad-bg: #fcebeb;
  --off: #6b7185;     --off-bg: #eef0f4;
  --r-lg: 16px;
  --r: 12px;
  --r-sm: 9px;
  --sh-1: 0 1px 2px rgba(23, 26, 43, .05);
  --sh-2: 0 4px 16px rgba(23, 26, 43, .07);
  --sh-3: 0 12px 32px rgba(23, 26, 43, .10);
  --focus: 0 0 0 3px rgba(59, 70, 176, .16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', 'Noto Sans KR', system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, p { margin: 0; }
code, .mono { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: .92em; }
svg { flex: none; }

/* ── 상단바 ───────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: none; margin: 0; padding: 0 32px; height: 60px;      /* 모든 화면을 전체 폭(fluid)으로 통일 */
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--brand-dark), #5360d0);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 12px rgba(44, 53, 128, .25);
}
.brand-symbol { display: flex; flex: none; }
.plenary-symbol { display: block; }
.brand-name { font-family: 'Outfit', 'Pretendard', sans-serif; font-weight: 600; font-size: 21px; letter-spacing: -.011em; line-height: 1; color: #2E3BB0; white-space: nowrap; }
.brand-sub { font-size: 11.5px; color: var(--faint); font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top-link { color: var(--ink-2); font-weight: 600; font-size: 13.5px; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.top-link:hover { background: var(--line-soft); color: var(--ink); }
.top-nav form { margin: 0; }

/* ── 본문 ─────────────────────────────────────────── */
/* 탭마다 폭이 달라 화면이 들썩이던 문제 → 컨테이너는 항상 전체 폭. 폭 제한은 두지 않는다. */
.main { max-width: none; margin: 0; padding: 28px 32px 72px; }
.main > * { min-width: 0; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head-text { min-width: 0; }
.page-title { font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.3; overflow-wrap: anywhere; }
.page-sub { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── 행사 공통 헤더 ───────────────────────────────── */
.ev-head { margin-bottom: 22px; }
.crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); font-weight: 600; }
.crumb a:hover { color: var(--brand); }
.ev-title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ev-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.ev-title h1 { font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.3; overflow-wrap: anywhere; }
.tabs {
  display: flex; gap: 2px; margin-top: 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  position: relative; padding: 11px 16px 12px; color: var(--muted);
  font-weight: 700; font-size: 14px; white-space: nowrap;
}
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--brand); }
.tabs a.on::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2.5px;
  border-radius: 2px 2px 0 0; background: var(--brand);
}

/* ── 카드 ─────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); margin-bottom: 18px; min-width: 0; overflow: hidden;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 18px 22px 0;
}
.card-title { font-size: 16px; font-weight: 800; letter-spacing: -.015em; }
.card-desc { color: var(--muted); font-size: 13px; margin-top: 3px; }
.card-body { padding: 18px 22px 22px; }
.card-foot {
  padding: 14px 22px; border-top: 1px solid var(--line-soft); background: var(--brand-softer);
  border-radius: 0 0 var(--r-lg) var(--r-lg); display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.section + .section { border-top: 1px solid var(--line-soft); }
.section { padding: 20px 22px; }
.section-title { font-size: 13px; font-weight: 800; color: var(--ink-2); margin-bottom: 14px; letter-spacing: -.005em; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.sticky { position: sticky; top: 80px; }

/* ── 버튼 ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font: 700 13.5px/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { border-color: #cfd3e3; background: var(--brand-softer); color: var(--ink); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 6px rgba(59, 70, 176, .25); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-danger { color: var(--bad); border-color: #f1d0d0; }
.btn-danger:hover { background: var(--bad-bg); border-color: #e9b4b4; color: var(--bad); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--line-soft); border-color: transparent; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: nowrap; }
form.inline { display: inline; margin: 0; }

/* ── 상태 표시 ────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--off-bg); color: var(--off);
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-wait { background: var(--wait-bg); color: var(--wait); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-off { background: var(--off-bg); color: var(--off); }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px;
  background: var(--line-soft); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.chip-dot.ok { background: var(--ok); }
.chip-dot.wait { background: #d99a20; }
.chip-dot.bad { background: var(--bad); }

/* ── 알림 ─────────────────────────────────────────── */
.flash {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px 12px 16px; border-radius: var(--r);
  margin-bottom: 18px; font-size: 14px; font-weight: 600; border: 1px solid transparent;
  animation: rise .25s ease-out;
}
.flash-success { background: var(--ok-bg); color: #10613a; border-color: #c6ead6; }
.flash-error { background: var(--bad-bg); color: #9d2a2d; border-color: #f2cccc; }
.flash-msg { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.flash-x { border: 0; background: transparent; color: inherit; opacity: .5; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; }
.flash-x:hover { opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.note {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r);
  background: #f1f6fd; border: 1px solid #d8e5f6; color: #294a70; font-size: 13px; line-height: 1.6;
}
.note svg { margin-top: 2px; color: #3d74b8; }
.note-warn { background: #fdf7ea; border-color: #f1e1bb; color: #75520c; }
.note-warn svg { color: #c28a17; }

/* ── 폼 ───────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field + .field, .row + .field, .field + .row { margin-top: 16px; }
.label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.help { font-size: 12.5px; color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row > .field + .field { margin-top: 0; }
.input, .select, .textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid #dfe2ec; border-radius: 10px;
  padding: 10px 12px; transition: border-color .15s, box-shadow .15s;
}
.input:hover, .select:hover, .textarea:hover { border-color: #cdd1e0; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.textarea { resize: vertical; line-height: 1.55; }
.textarea.mono { font-size: 13px; }
.select {
  -webkit-appearance: none; appearance: none; padding-right: 34px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7185' stroke-width='1.6' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5l3.5 3.5 3.5-3.5'/%3E%3C/svg%3E") no-repeat right 11px center;
}
input[type="file"].input { padding: 7px 8px; font-size: 13px; }
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; font-size: 12.5px; margin-right: 10px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--brand-softer); color: var(--ink-2); cursor: pointer;
}

/* 토글 스위치 줄 */
.switch-list { display: flex; flex-direction: column; }
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--line-soft); cursor: pointer;
}
.switch-row:first-child { border-top: 0; padding-top: 2px; }
.switch-row:last-child { padding-bottom: 0; }
.switch-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.switch-text b { font-size: 14px; font-weight: 700; color: var(--ink); }
.switch-text small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.switch {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0; cursor: pointer;
  width: 42px; height: 24px; border-radius: 999px; background: #d5d8e4; position: relative;
  transition: background .18s;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .18s;
}
.switch:checked { background: var(--brand); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: none; box-shadow: var(--focus); }

/* 선택지(라디오) 세그먼트 */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--line-soft); border-radius: 11px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border-radius: 8px;
  font-size: 13px; font-weight: 700; color: var(--muted); transition: background .15s, color .15s;
}
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: #fff; color: var(--brand); box-shadow: var(--sh-1); }
.seg input:focus-visible + span { box-shadow: var(--focus); }

/* 배경 이미지 */
.bg-box { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.bg-thumb {
  width: 100%; aspect-ratio: 16 / 7; border-radius: 10px; border: 1px solid var(--line);
  background: var(--line-soft); overflow: hidden; display: grid; place-items: center; color: var(--faint); font-size: 12.5px;
}
.bg-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.bg-controls { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
[data-bg-when] { display: none; }
[data-bg-when].show { display: block; }

/* ── 공유 카드 (QR) ───────────────────────────────── */
.share-item + .share-item { border-top: 1px solid var(--line-soft); }
.share-item { padding: 20px 22px; }
.qr-box {
  width: 184px; height: 184px; margin: 0 auto 12px; padding: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-2);
}
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-host { text-align: center; font-weight: 800; font-size: 14px; overflow-wrap: anywhere; }
.qr-actions { display: flex; gap: 6px; justify-content: center; margin: 10px 0 16px; }
.link-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--brand-softer); min-width: 0;
}
.link-row + .link-row { margin-top: 8px; }
.link-row-label { font-size: 11.5px; font-weight: 800; color: var(--muted); flex: none; width: 38px; }
.link-row a, .link-row code { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-row a:hover { color: var(--brand); }
.share-empty { padding: 26px 22px; text-align: center; color: var(--muted); font-size: 13.5px; }
.share-empty-ic {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 14px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}

/* 행사 삭제 영역 */
.col { display: flex; flex-direction: column; min-width: 0; }
.card-danger { border-color: #f0d2d2; }
.card-danger .section-title { color: var(--bad); }
.danger-row { display: flex; gap: 8px; }
.danger-row .input { max-width: 160px; }
.btn-danger:disabled { background: #fff; }

/* ── 표 ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap;
  padding: 10px 14px; background: var(--brand-softer); border-bottom: 1px solid var(--line);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; font-size: 14px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfe; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .nowrap { white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.card > .table-wrap { border-top: 1px solid var(--line); margin-top: 16px; }
.card > .table-wrap:last-child .table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--r-lg); }

.ev-name { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.ev-name:hover { color: var(--brand); }
.ev-hosts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }

/* 연자 표: 평소엔 표처럼, 올리면 입력칸 */
.edit-table { min-width: 860px; }
.edit-table td { padding: 5px 6px; }
.edit-table th { padding: 10px 12px; }
.edit-table td:first-child { padding-left: 14px; }
.edit-table td:last-child { padding-right: 14px; }
.cell {
  width: 100%; min-width: 0; font: inherit; font-size: 13.5px; color: var(--ink);
  border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 7px 8px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.edit-table tr:hover .cell { border-color: #e1e4ee; background: #fff; }
.cell:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: var(--focus); }
.cell-num { width: 56px; text-align: center; color: var(--muted); }
.cell-name { font-weight: 700; }
.edit-table .row-actions { opacity: .35; transition: opacity .15s; }
.edit-table tr:hover .row-actions, .edit-table tr:focus-within .row-actions { opacity: 1; }
.add-row td { background: var(--brand-softer); border-top: 1px dashed #d6d9e8; }
.add-row .cell { border-color: #dfe2ec; background: #fff; }
.add-row:hover td { background: var(--brand-softer) !important; }

/* 질문 표 */
.q-table { min-width: 880px; }
.q-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; max-width: 420px; }
.q-deleted td { opacity: .55; }
.q-to { font-weight: 700; }

/* 주소 목록 */
.dom-row { display: flex; align-items: flex-start; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--line-soft); }
.dom-row:first-of-type { border-top: 0; }
.dom-main { flex: 1; min-width: 0; }
.dom-host { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dom-host strong { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.dom-host a { color: var(--ink); }
.dom-host a:hover { color: var(--brand); }
.dom-msg { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.dom-msg.err { color: var(--bad); }
.dom-msg.warn { color: var(--wait); }
.dom-msg code { background: var(--line-soft); padding: 1px 6px; border-radius: 5px; color: var(--ink); }
.dom-actions { display: flex; gap: 6px; flex: none; }
.add-host { display: flex; gap: 8px; margin-top: 14px; }
.add-host .input { flex: 1; max-width: 460px; }

/* 필터 */
.filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.filters .field { min-width: 180px; }
.filters .field + .field { margin-top: 0; }
.meta { font-size: 13px; color: var(--muted); }

.pager { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; padding: 16px 22px 20px; }
.pager a {
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: var(--muted); border: 1px solid transparent;
}
.pager a:hover { background: var(--line-soft); color: var(--ink); }
.pager a.on { background: var(--brand); color: #fff; }

/* 가져오기 */
.import-panel { display: none; }
.import-panel.on { display: block; animation: rise .2s ease-out; }
.import-panel .help { margin-bottom: 10px; }
.import-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty-ic {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 16px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.empty p { font-size: 13.5px; margin-bottom: 16px; }

.stat { display: flex; gap: 18px; flex-wrap: wrap; }
.stat div { font-size: 12.5px; color: var(--muted); }
.stat b { color: var(--ink); font-size: 15px; margin-right: 2px; }

/* ── 로그인 ───────────────────────────────────────── */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(1200px 600px at 10% -10%, #e4e7fb 0%, transparent 60%),
  radial-gradient(900px 500px at 110% 110%, #e9ecfa 0%, transparent 55%), var(--bg); }
.login-card {
  width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--sh-3); padding: 34px 30px 30px;
}
.login-card .brand { justify-content: center; margin-bottom: 26px; }
.login-card h1 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; text-align: center; }
.login-card .page-sub { text-align: center; margin-bottom: 22px; }
.login-card .flash { margin-bottom: 16px; }
.login-card .btn { height: 44px; margin-top: 22px; font-size: 14.5px; }
.login-note { margin-top: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.6; text-align: center; }

/* ── 반응형 ───────────────────────────────────────── */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
}
@media (max-width: 760px) {
  /* 상단 메뉴 항목이 늘어 좁은 화면에서 겹치던 문제 */
  .top-in { gap: 8px; }
  .top-link { padding: 8px 8px; font-size: 13px; }
}
@media (max-width: 560px) {
  .brand-text { display: none; }
}
@media (max-width: 640px) {
  .top-in { padding: 0 14px; }
  .brand-sub { display: none; }
  .main { padding: 18px 14px 56px; }
  .page-title, .ev-title h1 { font-size: 20px; }
  .card-head { padding: 16px 16px 0; }
  .card-body, .section, .share-item { padding: 16px; }
  .card-foot { padding: 12px 16px; }
  .row { grid-template-columns: 1fr; }
  .bg-box { grid-template-columns: 1fr; }
  .dom-row { flex-direction: column; gap: 10px; padding: 14px 16px; }
  .add-host { flex-direction: column; }
  .add-host .input { max-width: none; }
  .filters .field { min-width: 0; flex: 1 1 140px; }
  .tabs a { padding: 10px 12px 11px; }
}

/* =====================================================================
   registration-manager 추가분 (ask-manager 관리자 UI 위에 덧붙임)
   ===================================================================== */
/* 넓은 화면을 채우는 2열 배치: 설정 카드들을 좌우 두 기둥(.col)에 나눠 담는다 */
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.cols-2 > .col > .card:last-child { margin-bottom: 0; }
.cols-form { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }     /* 왼쪽 폼 + 오른쪽 안내 */
.guide { position: sticky; top: 80px; }
.guide ol, .guide ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.guide p { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.guide p + p, .guide ol + p, .guide ul + p, .guide p + ul, .guide p + ol { margin-top: 10px; }
.guide code { background: var(--line-soft); padding: 1px 6px; border-radius: 5px; color: var(--ink); }
/* 긴 설정 폼의 저장 버튼: 화면 아래에 붙어 따라다닌다 */
.save-bar {
  position: sticky; bottom: 0; z-index: 30; margin-top: 18px; padding: 12px 16px; display: flex; gap: 8px; align-items: center;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 -4px 20px rgba(23, 26, 43, .06);
}
@media (max-width: 1100px) {
  .cols-2, .cols-form { grid-template-columns: minmax(0, 1fr); }
  .guide { position: static; }
}
.col.sticky { gap: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack form { margin: 0; }

/* 숫자 요약 */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 18px; gap: 12px; }
.kpi {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.card .kpi { background: var(--brand-softer); border-color: var(--line-soft); }
a.kpi:hover { border-color: #cfd3e3; box-shadow: var(--sh-2); color: var(--ink); }
.kpi.on { border-color: var(--brand); box-shadow: var(--focus); }
.kpi span { font-size: 12px; font-weight: 700; color: var(--muted); }
.kpi b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi b small { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.kpi-wait b { color: var(--wait); }
.kpi-ok b { color: var(--ok); }

/* 등록자 목록 */
.list-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 22px; border-top: 1px solid var(--line); background: var(--brand-softer);
}
.list-bar-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.card > form > .table-wrap, .card > .list-bar + .table-wrap { border-top: 1px solid var(--line); }
.chk { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; margin: 0; vertical-align: middle; }
.reg-table { min-width: 1040px; }
.reg-table td { font-size: 13.5px; }
.table .sub.memo { color: var(--wait); }
.log-list { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.log-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 체크 묶음 */
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks-col { flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.checks:not(.checks-col) .check { padding: 7px 12px; border: 1px solid #dfe2ec; border-radius: 9px; background: #fff; }
.checks:not(.checks-col) .check:hover { border-color: #cdd1e0; }
.check input { width: 15px; height: 15px; accent-color: var(--brand); margin: 0; cursor: pointer; }

/* 디자인 탭 */
.color-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.color-grid .field + .field { margin-top: 0; }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type="color"] { flex: none; width: 42px; height: 40px; padding: 3px; border: 1px solid #dfe2ec; border-radius: 10px; background: #fff; cursor: pointer; }
.color-row .input { text-transform: uppercase; }
.swatches { display: flex; gap: 0; margin: 16px 0 8px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); height: 34px; }
.swatches span { flex: 1; }
.mini { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.mini-top { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); font-size: 11.5px; color: var(--b9); }
.mini-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-top i { width: 18px; height: 4px; border-radius: 2px; background: #d9dce6; }
.mini-hero { position: relative; padding: 22px 14px 24px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  background:
    radial-gradient(120px 80px at 0 0, color-mix(in srgb, var(--tint) 75%, #fff) 0, transparent 100%),
    radial-gradient(170px 110px at 100% 100%, color-mix(in srgb, var(--a6) 45%, #fff) 0, transparent 100%), #fff; }
.mini-badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--b0); color: var(--b7); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-hero strong { font-size: 14.5px; font-weight: 800; line-height: 1.35; color: var(--b7); overflow-wrap: anywhere; }
.mini-hero em { font-style: normal; font-size: 11px; font-weight: 700; padding: 7px 12px; border-radius: 6px; background: var(--b7); color: var(--on); }
.mini-foot { height: 22px; background: var(--b9); }

@media (max-width: 1100px) { .kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi b { font-size: 19px; }
  .list-bar { padding: 12px 16px; }
  .color-grid { grid-template-columns: 1fr; }
}

/* 콘텐츠 탭: 사용자 정의 콘텐츠 목록 */
.pg-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pg-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-top: 1px solid var(--line-soft); }
.pg-item:first-child { border-top: 0; }
.pg-item:hover { background: #fafbfe; }
.pg-order { display: inline-flex; gap: 4px; flex: none; }
.pg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pg-main .ev-hosts { margin-top: 5px; }
@media (max-width: 640px) { .pg-item { flex-wrap: wrap; } }

/* ── 디자인 템플릿 고르기([디자인] 탭) ─────────────────────────────── */
.th-group + .th-group { margin-top: 20px; }
.th-group__name {
  font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em;
  margin-bottom: 9px; display: flex; align-items: center; gap: 8px;
}
.th-group__name::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 12px; }
/* 전체 폭 카드 안에서 묶음마다 접었다 펼 수 있게 */
.th-group { margin-top: 16px; }
.th-group > .th-sum { padding: 3px 0; }
.th-group .th-group__name { margin: 0; flex: 1; min-width: 0; }
.th-group > .th-grid { margin-top: 11px; }
.th-jump { margin-bottom: 2px; }
.th-jump .chip { color: var(--ink-2); }
.th-jump .chip:hover { background: var(--brand-soft); color: var(--brand); }
.th-jump .chip b { color: var(--faint); font-weight: 700; }
.th-now { display: flex; align-items: center; gap: 10px; min-width: 0; }
.th-now img { width: 62px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.th-now-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.th-now-text small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.th-now-text b { font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
@media (max-width: 640px) { .th-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.th {
  position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  transition: border-color .12s, box-shadow .12s;
}
.th:hover { border-color: #c9cee2; box-shadow: var(--sh-1); }
.th > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.th-in { display: block; cursor: pointer; padding: 10px 10px 12px; }
.th-thumb {
  position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden;
  background: var(--line-soft); border: 1px solid var(--line);
}
.th-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: #b9bfd4; background: linear-gradient(140deg, #f4f5fa, #e8eaf4);
}
.th-check {
  position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; background: var(--brand);
  opacity: 0; transform: scale(.7); transition: opacity .12s, transform .12s;
}
.th-body { display: block; margin-top: 9px; }
.th-body b { display: block; font-size: 13.5px; color: var(--ink); line-height: 1.35; }
.th-body small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.th-pv {
  display: block; margin: 0 10px 10px; text-align: center; font-size: 12px; font-weight: 600;
  color: var(--brand); background: var(--brand-softer); border-radius: var(--r-sm); padding: 6px 8px;
  text-decoration: none;
}
.th-pv:hover { background: var(--brand-soft); }
.th > input:checked ~ .th-in .th-check { opacity: 1; transform: scale(1); }
.th:has(> input:checked), .th.on { border-color: var(--brand); box-shadow: var(--focus); }
.th > input:focus-visible ~ .th-in .th-thumb { box-shadow: var(--focus); }
.th-tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--muted);
  background: var(--line-soft); border-radius: 999px; padding: 2px 8px; margin-left: 6px;
}
.th-sum { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.th-sum::-webkit-details-marker { display: none; }
.th-sum::before {
  content: "▸"; color: var(--faint); font-size: 12px; transition: transform .12s; display: inline-block;
}
details[open] > .th-sum::before { transform: rotate(90deg); }
.th-classic[hidden] { display: none; }
.th-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 14px 0 0; font-size: 13px; }
.th-kv dt { color: var(--muted); }
.th-kv dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-all; }
.is-dim { opacity: .45; transition: opacity .12s; }

/* ── 탭 맨 위 한 줄 안내 ────────────────────────────────── */
.intro {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin: -6px 0 18px; padding: 12px 16px; border-radius: var(--r);
  background: var(--brand-softer); border: 1px solid var(--line-soft);
}
.intro-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; min-width: 0; }
.intro-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.intro-help { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.intro-help:hover { color: var(--brand); }

/* ── [개요] 탭 ──────────────────────────────────────────── */
.st-list { display: flex; flex-direction: column; }
.st-row { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.st-row:first-child { border-top: 0; padding-top: 0; }
.st-row:last-child { padding-bottom: 0; }
.st-key { flex: none; width: 92px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.st-val { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.st-val .meta { font-weight: 500; }

.bar { height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin: 16px 0 8px; }
.bar span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }

.ck-ok, .ck-todo {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 22px; padding: 12px 14px; border-radius: var(--r);
  font-size: 13.5px; line-height: 1.6;
}
.ck-ok { background: var(--ok-bg); color: #10613a; }
.ck-todo { background: var(--wait-bg); color: #75520c; }
.ck-list { list-style: none; margin: 16px 0 0; padding: 0; }
.ck { display: flex; gap: 12px; align-items: flex-start; padding: 13px 22px; border-top: 1px solid var(--line-soft); }
.ck:first-child { border-top: 0; }
.ck-mark {
  flex: none; width: 21px; height: 21px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center;
  border: 1.6px solid #d3d7e5; color: #fff; background: #fff;
}
.ck.is-done .ck-mark { background: var(--ok); border-color: var(--ok); }
.ck.is-off .ck-mark { background: #c6cad8; border-color: #c6cad8; }
.ck-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ck-title { font-size: 14px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ck.is-done .ck-title, .ck.is-off .ck-title { color: var(--muted); font-weight: 600; }
.ck-note { font-size: 12.5px; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.ck-go { flex: none; display: flex; align-items: center; }
.ck-lv {
  flex: none; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: var(--line-soft); color: var(--muted);
}
.ck-lv-must { background: var(--bad-bg); color: var(--bad); }
.ck-lv-want { background: var(--wait-bg); color: var(--wait); }
.ck.is-done .ck-lv-must, .ck.is-done .ck-lv-want { background: var(--line-soft); color: var(--muted); }
@media (max-width: 640px) {
  .ck, .ck-ok, .ck-todo { padding-left: 16px; padding-right: 16px; }
  .ck-ok, .ck-todo { margin: 0 16px; }
  .ck { flex-wrap: wrap; }
  .ck-go { width: 100%; padding-left: 33px; }
  .st-row { flex-direction: column; gap: 5px; }
  .st-key { width: auto; }
}

/* ── 도움말(/help) ──────────────────────────────────────── */
.help-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.help-toc { position: sticky; top: 80px; }
.help-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.help-toc a { display: block; padding: 7px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.help-toc a:hover { background: var(--brand-softer); color: var(--brand); }
.help-doc h2 {
  font-size: 18px; font-weight: 800; letter-spacing: -.02em; scroll-margin-top: 78px;
  padding-top: 4px; margin-bottom: 10px;
}
.help-doc h3 { font-size: 14.5px; font-weight: 800; color: var(--ink-2); margin: 18px 0 8px; }
.help-doc p, .help-doc li { font-size: 13.8px; line-height: 1.75; color: var(--ink-2); }
.help-doc p + p { margin-top: 10px; }
.help-doc ul, .help-doc ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.help-doc code { background: var(--line-soft); padding: 1px 6px; border-radius: 5px; color: var(--ink); }
.help-doc b { color: var(--ink); }
.help-doc .section + .section { border-top: 1px solid var(--line-soft); }
.help-steps { counter-reset: step; list-style: none; padding: 0; gap: 10px; }
.help-steps li { position: relative; padding-left: 34px; }
.help-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
}
.help-super { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); margin-left: 6px; vertical-align: 2px; }
@media (max-width: 900px) {
  .help-wrap { grid-template-columns: minmax(0, 1fr); }
  .help-toc { position: static; }
  .help-toc ol { flex-direction: row; flex-wrap: wrap; }
}

/* 주요 일정 · 후원사 목록([콘텐츠] 탭) */
.kd-date {
  flex: none; min-width: 84px; font-size: 13px; font-weight: 700; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.pg-item.is-auto { background: var(--bg); color: var(--muted); }
.pg-item.is-auto .ev-name { color: var(--muted); font-weight: 600; }
.pg-item.is-auto .kd-date { color: var(--muted); }
.sp-logo {
  flex: none; width: 56px; height: 34px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sp-logo i { font-style: normal; font-size: 11px; color: var(--faint); }

/* 상단 메뉴 배지(처리할 신청·주문 수) */
.top-badge { display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 2px; border-radius: 999px; background: #c0392b; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center; }
