.awrap { max-width: 1040px; margin: 0 auto; padding: 28px var(--gutter) 64px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.top .who { font-size: 13px; color: var(--ink-3); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; font-size: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0 24px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.panel h3 { margin: 0 0 14px; font-size: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.kpi small { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.kpi b { font-size: 30px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 110px 1fr 56px; gap: 10px; align-items: center; font-size: 14px; }
.bar .lbl { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .track { height: 10px; background: #efece5; border-radius: 6px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: var(--ink); border-radius: 6px; }
.bar .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px; border-bottom: 1px solid #f0ede6; vertical-align: middle; }
.scroll { overflow-x: auto; }
.chip { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #efece5; color: var(--ink-2); white-space: nowrap; }
.chip.warn { background: #fbe8e2; color: var(--danger); }
.chip.ok { background: #e2f2e8; color: var(--ok); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sbtn { min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.sbtn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.sbtn.danger { color: var(--danger); }
.booth { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid #f0ede6; }
.booth:last-child { border-bottom: 0; }
.booth .qr { width: 132px; height: 152px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.booth .qr img { width: 100%; height: 100%; object-fit: contain; }
.booth .meta { display: grid; gap: 10px; min-width: 0; }
.booth .meta .name { font-weight: 700; font-size: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini { min-width: 0; }
.two > * { min-width: 0; }
.mini span { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.mini input { width: 100%; min-width: 0; max-width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font-size: 14px; background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ev { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid #f0ede6; }
.ev:last-child { border-bottom: 0; }
.ev .when { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.msg { font-size: 14px; min-height: 20px; margin: 8px 0 0; }
.msg.bad { color: var(--danger); } .msg.good { color: var(--ok); }
@media (max-width: 720px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid, .two { grid-template-columns: 1fr; }
  .booth { grid-template-columns: 1fr; gap: 12px; }
  .booth .qr { width: 160px; height: 184px; }
  .sbtn { min-height: 44px; }
  .bar { grid-template-columns: 84px 1fr 44px; }
}
.panel h4 { margin: 18px 0 6px; font-size: 14px; }
.panel h4:first-of-type { margin-top: 0; }
.posterbox { display: grid; gap: 12px; justify-items: start; }
.posterbox img { display: block; width: auto; height: auto; max-width: min(100%, 320px); max-height: 320px; border-radius: 12px; border: 1px solid var(--line); background: #ece8df; }
.filebtn { display: inline-flex; align-items: center; cursor: pointer; }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.vh:focus-visible + .filebtn { outline: 2px solid var(--ink); outline-offset: 2px; }
.cats { margin-bottom: 14px; }
.chip.cat { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; padding: 4px 4px 4px 12px; }
.chip.cat .x { width: 28px; height: 28px; border: 0; background: none; border-radius: 50%; font-size: 16px; color: var(--ink-2); line-height: 1; }
.chip.cat .x:hover { background: #e3dfd6; }
@media (max-width: 720px) { .chip.cat .x { width: 44px; height: 44px; } }
.filebtn.busy { opacity: .45; pointer-events: none; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; align-items: end; margin-bottom: 12px; }
.swl { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 13px; color: var(--ink-2); }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 13px; background: #8f897e; position: relative; margin: 0; cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch:checked { background: var(--ink); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: .45; cursor: default; }
.switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cprev { margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: #f6f4ef; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
@media (max-width: 720px) { .crow { grid-template-columns: 1fr; gap: 6px; margin-bottom: 16px; } .swl { min-height: 44px; } .crow .mini input { height: 44px; } }
@media (prefers-reduced-motion: reduce) { .switch, .switch::after { transition: none; } }
/* 소개 QR — 번호 · 이름 · 링크 · 상태 한 줄, 폰에서는 번호 옆으로 쌓는다 */
.irow { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.6fr) 290px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0ede6; }
.irow:last-child { border-bottom: 0; }
.irow.head { padding: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.irow .no { font-variant-numeric: tabular-nums; white-space: nowrap; }
.irow input { width: 100%; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font-size: 14px; background: #fff; }
/* 바뀐 줄 = 번호 앞 점 + 옅은 바탕(포커스 테두리와 헷갈리지 않게), 오류 줄 = 빨간 테두리 */
.irow.dirty input { background: #faf8f3; }
.irow.dirty .no::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-right: 5px; vertical-align: middle; }
.irow.bad input[type="url"] { border-color: var(--danger); }
.ihelp { font-size: 12px; color: var(--ink-3); margin: 0 0 14px; line-height: 1.5; }
/* 긴 목록 중간에서도 저장 버튼이 보이게 아래에 붙여 둔다 */
.isave { position: sticky; bottom: 0; display: flex; justify-content: flex-end; padding: 12px 0 4px; margin-top: 4px; background: var(--card); border-top: 1px solid var(--line); }
.irow .side { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.irow .side .hits { font-variant-numeric: tabular-nums; }
.irow .side a { margin-left: auto; display: inline-flex; align-items: center; min-height: 40px; text-underline-offset: 3px; }
.irow .msg { grid-column: 2 / -1; margin: 0; min-height: 0; }
.irow .msg:empty { display: none; }
@media (max-width: 720px) {
  .irow { grid-template-columns: 50px minmax(0, 1fr); align-items: start; }
  .irow.head { display: none; }
  .irow .no { padding-top: 12px; }
  .irow > input, .irow .side, .irow .msg { grid-column: 2; }
  .irow input { height: 44px; font-size: 16px; }
  .irow .side a { min-height: 44px; }
  .irow .side { flex-wrap: wrap; row-gap: 0; }
}
