/* 아우름웰니스 행사 설문 · 2026-09-29 2차 개편
   기준 = 업로드 앱 디자인 체계(ngn_upload src/app/globals.css :root · u-* 부품)를 그대로 옮기고
   포인트 색만 아우름 청록으로 바꿨다. 규칙:
   · 포인트 색은 ①아래 큰 1차 버튼 ②현재 탭 아이콘 ③진행 표시 ④선택된 점수에만. 그 밖은 검정·회색.
   · 카드는 그림자 대신 1px 선(PC는 업로드 홈 위젯처럼 제목 띠 + 짧은 그림자). 모서리 8.
   · 파스텔 면·옅은 회색 글자·긴 줄표·한글 기울임 금지. 글자 최저 15px(차트 눈금·주석만 예외).
   · 꺾쇠·화살표는 글자 말고 SVG(루시드 모양). 이모지 아이콘 금지. 상태는 6px 점 + 글자색. */
@font-face {
  font-family: Pretendard;
  src: url("/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #f7f8fa;
  --card: #fff;
  --ink: #111318;
  --ink-2: #3f4652;
  --ink-3: #565e6b;
  --ink-4: #8f96a3;
  --ink-5: #b8bec9;
  --line-strong: #c8cdd6;
  --line: #dfe3e8;
  --line-soft: #eef1f4;
  --band: #e7ebf0;
  --accent: #0b8f7a;
  --accent-deep: #077060;
  --success: #168a55;
  --warn: #b86100;
  --danger: #c73832;
  --nav-on: #172033;
  --r: 8px;
  --r-sheet: 12px;
  --shadow-primary: 0 4px 12px rgba(11, 143, 122, 0.22);
  --shadow-widget: 0 2px 5px rgba(17, 24, 39, 0.045), 0 12px 28px rgba(17, 24, 39, 0.06);
  --font: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; letter-spacing: inherit; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); }
.loading { padding: 80px 20px; text-align: center; color: var(--ink-2); }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── 글자 단계 ── */
.h1 { font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -0.03em; }
.h2 { font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; }
.t-card { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.t-sub { font-size: 15px; color: var(--ink-2); }
.t-help { font-size: 15px; color: var(--ink-3); }
.t-label { font-size: 15px; font-weight: 700; color: var(--ink-2); }
@media (min-width: 1024px) { .h1 { font-size: 28px; letter-spacing: -0.035em; } }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: var(--r);
  border: 1.5px solid var(--ink-5); background: #fff; color: var(--ink);
  font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color 0.15s, transform 0.1s;
}
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn .ico { width: 18px; height: 18px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn-main { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-primary); font-size: 17px; font-weight: 800; min-height: 56px; }
.btn-main:hover { border-color: var(--accent-deep); background: var(--accent-deep); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { border-color: var(--ink); background: #252a33; }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); padding: 0 10px; }
.btn-ghost:hover { border-color: transparent; color: var(--ink); }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ── 입력 ── */
.field { display: grid; gap: 8px; }
input[type="text"], input[type="search"], input[type="date"], input[type="password"], input:not([type]), select, textarea {
  font: inherit; width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1.5px solid var(--ink-5); border-radius: var(--r); background: #fff; color: var(--ink);
}
::placeholder { color: var(--ink-4); }
textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f4652' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.error:empty { display: none; }
.error { margin-top: 16px; padding: 14px 16px; border: 1.5px solid var(--danger); border-radius: var(--r); background: #fff; color: var(--danger); font-size: 15px; font-weight: 600; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--line-soft); color: var(--ink-2); font-size: 15px; }
.notice .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--ink-2); }
.notice b { color: var(--ink); }

/* ── 상태: 6px 점 + 글자색 ── */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-5); }
.status.open { color: var(--success); }
.status.open::before { background: var(--success); }
.status.closed { color: var(--warn); }
.status.closed::before { background: var(--warn); }
.status.published { color: var(--ink); }
.status.published::before { background: var(--ink); }

/* ── 카드(위젯): PC는 제목 띠, 휴대폰은 제목 아래 선 ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 13px 14px 12px; }
@media (min-width: 601px) { .card-head { padding: 13px 18px 12px; } }
.card-head .t-card { display: flex; align-items: center; gap: 8px; }
.card-body { padding: 16px 18px 18px; }
.card-head + .card-body { border-top: 1px solid var(--line); margin: 0 14px; padding: 16px 0; }
@media (min-width: 601px) { .card-head + .card-body { margin: 0 18px; padding-bottom: 18px; } }
@media (min-width: 1024px) {
  .card { box-shadow: var(--shadow-widget); border-color: #d8dfe9; }
  .card-head { background: var(--band); border-bottom: 1.5px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
  .card-head + .card-body { border-top: 0; margin: 0; padding: 18px; }
}
.more { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #f4f6f9; border: 1px solid #e1e6ed; color: var(--ink-2); text-decoration: none; cursor: pointer; padding: 0; }
.more .ico { width: 14px; height: 14px; stroke-width: 2; }
.stack { display: grid; gap: 16px; }

/* ── 관리자 틀 ── */
.shell { min-height: 100vh; }
.side { display: none; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 60px; padding: 0 8px 0 16px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar .logo { height: 30px; width: auto; }
.topbar .actions { gap: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: var(--r); text-decoration: none; padding: 0; }
.icon-btn .ico { width: 22px; height: 22px; stroke-width: 2; }
.page { padding: 20px 16px 120px; max-width: 1600px; margin: 0 auto; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 20px; }
.page-head .t-sub { margin-top: 6px; }
.back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: -8px 0 4px -10px; padding: 0 10px 0 4px; font-size: 15px; font-weight: 700; color: var(--ink-2); text-decoration: none; border-radius: var(--r); }
.back .ico { width: 22px; height: 22px; stroke-width: 2; }
.back:hover { color: var(--ink); }
@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); background: linear-gradient(90deg, #fff 0 247px, var(--line) 247px 248px, var(--bg) 248px); }
  .topbar { display: none; }
  .side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 24px 16px; background: #fff; border-right: 1px solid var(--line); }
  .side .logo { height: 34px; width: auto; margin: 0 8px; }
  .side .app-name { font-size: 15px; font-weight: 700; color: var(--ink-3); margin: 8px 8px 22px; }
  .nav { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-radius: 6px; font-size: 16px; font-weight: 520; color: var(--ink-2); text-decoration: none; border: 0; background: transparent; cursor: pointer; width: 100%; text-align: left; }
  .nav:hover { background: var(--line-soft); color: var(--ink); }
  .nav.on { background: var(--nav-on); color: #fff; font-weight: 760; }
  .side .grow { flex: 1; }
  .page { padding: 28px 48px 72px; }
}

/* ── 행사 진행 단계 ── */
.journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.jstep { display: grid; gap: 8px; }
.jstep i { display: block; height: 4px; border-radius: 2px; background: var(--line); }
.jstep.is-done i { background: var(--ink); }
.jstep.is-now i { background: var(--accent); }
.jstep span { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.jstep.is-done span { color: var(--ink-2); }
.jstep.is-now span { color: var(--ink); font-weight: 800; }
.nextbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 18px; border: 1.5px solid var(--ink); border-radius: var(--r); background: #fff; margin-bottom: 20px; }
.nextbox .t-card { font-size: 17px; font-weight: 800; }
.nextbox p { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 1023px) {
  .jstep span { font-size: 13px; }
  .nextbox .actions { width: 100%; }
  .nextbox .actions .btn { flex: 1; }
}

/* ── 탭: PC는 위 밑줄, 휴대폰은 아래 탭바 ── */
.tabs { display: flex; gap: 2px; border-bottom: 1.5px solid var(--line); margin: 0 0 20px; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 0; background: transparent; color: var(--ink-3); font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: none; }
.tab .ico { width: 20px; height: 20px; }
.tab.on { color: var(--ink); box-shadow: inset 0 -2.5px 0 var(--ink); }
.tab.on .ico { color: var(--accent); }
@media (max-width: 1023px) {
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: calc(68px + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom); background: #fff; border-top: 1.5px solid var(--line-strong); border-bottom: 0; box-shadow: 0 -8px 24px rgba(17, 19, 24, 0.06); }
  .tab { flex-direction: column; justify-content: center; gap: 4px; min-height: 68px; padding: 0; font-size: 13px; color: var(--ink-3); }
  .tab .ico { width: 26px; height: 26px; }
  .tab.on { box-shadow: none; color: var(--ink); font-weight: 750; }
}

/* ── 핵심 숫자 ── */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.kpi .t-label { font-size: 15px; font-weight: 650; color: var(--ink-2); }
.kpi b { display: block; margin-top: 6px; font-size: 28px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi b small { font-size: 16px; font-weight: 600; margin-left: 2px; letter-spacing: 0; }
.kpi em { display: block; margin-top: 4px; font-style: normal; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.kpi em.up { color: var(--success); }
.kpi em.down { color: var(--warn); }
@media (min-width: 1024px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .kpi { box-shadow: var(--shadow-widget); border-color: #d8dfe9; }
  .kpis.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 차트 ── */
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: minmax(110px, 200px) minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: 15px; }
.bar > span:first-child { color: var(--ink-2); font-weight: 600; }
.bar b { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .bar { grid-template-columns: 108px minmax(0, 1fr) 36px; gap: 10px; } }
.track { position: relative; height: 10px; border-radius: 5px; background: var(--line-soft); }
.fill { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: var(--accent); }
.fill.low { background: var(--warn); }
.mark { position: absolute; top: -4px; width: 2px; height: 18px; border-radius: 1px; background: var(--ink); }
.note { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.dist { display: flex; height: 22px; border-radius: 5px; overflow: hidden; background: var(--line-soft); }
.dist i { display: block; height: 100%; }
.dist i + i { box-shadow: inset 1.5px 0 0 #fff; }
.d1 { background: var(--danger); } .d2 { background: #e0822a; } .d3 { background: var(--ink-5); } .d4 { background: var(--ink-2); } .d5 { background: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.hours { display: flex; align-items: flex-end; gap: 8px; height: 132px; padding-top: 8px; }
.hours > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hours i { display: block; width: 100%; max-width: 44px; min-height: 3px; border-radius: 4px 4px 0 0; background: var(--ink-5); }
.hours i.peak { background: var(--accent); }
.hours b { font-weight: 700; color: var(--ink-2); }
.qdist { display: grid; gap: 18px; }
.qdist h3 { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 15px; font-weight: 650; }
.qdist h3 span:last-child { font-variant-numeric: tabular-nums; }

/* ── 배치 ── */
.grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 1024px) {
  .grid.two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: stretch; }
  .grid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
}

/* ── 목록 줄 ── */
.rows { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 76px; padding: 12px 8px 12px 18px; text-decoration: none; color: inherit; }
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: var(--bg); }
.row h3 { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta { margin-top: 4px; font-size: 15px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .right { display: flex; align-items: center; gap: 12px; }
.row .cells { display: none; }
@media (min-width: 1024px) { .row .m-only { display: none; } }
.chev { display: inline-grid; place-items: center; width: 28px; height: 44px; color: var(--ink-2); }
.chev .ico { width: 17px; height: 17px; stroke-width: 2.8; }
@media (min-width: 1024px) {
  .rows { box-shadow: var(--shadow-widget); border-color: #d8dfe9; }
  .row { padding-left: 22px; }
  .row .cells { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .row .cells span { min-width: 96px; }
  .row .cells .status { min-width: 118px; }
}
.toolbar { display: grid; gap: 10px; margin: 20px 0 14px; }
@media (min-width: 768px) { .toolbar { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); } }
.empty { display: grid; place-items: center; align-content: center; gap: 10px; min-height: 280px; padding: 40px 24px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.empty p { color: var(--ink-2); }
.empty .btn { margin-top: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { font-weight: 650; color: var(--ink-2); }
td { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.form-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 날짜 칸: 휴대폰 기본 모양(빈 상자 + 작은 꺾쇠)을 숨기고 아이콘 + 안내 글로 통일 */
.datebox { position: relative; display: flex; align-items: center; min-height: 52px; border: 1.5px solid var(--ink-5); border-radius: var(--r); background: #fff; cursor: pointer; }
.datebox:focus-within { border-color: var(--accent); }
.datebox > .ico { position: absolute; left: 16px; color: var(--ink-2); pointer-events: none; }
.datebox input { position: relative; z-index: 1; border: 0; min-height: 49px; padding-left: 48px; background: transparent; color: var(--ink); -webkit-appearance: none; appearance: none; }
.datebox input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }
.datebox .ph { position: absolute; left: 48px; color: var(--ink-4); pointer-events: none; }
.datebox:not(.has) input { color: transparent; }
.datebox.has .ph { display: none; }
.searchbox { position: relative; display: block; }
.searchbox > .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.searchbox input { padding-left: 46px; }
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.m-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font-size: 15px; color: var(--ink-3); }
/* ── 행사 비교(질문 고르기 + 행사별 막대, 옆 스크롤 없음) ── */
.qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--ink-5); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 15px; font-weight: 700; cursor: pointer; }
.qchip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.cmp-title { margin: 20px 0 14px; font-size: 16px; font-weight: 750; }
.cmp { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cmp-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.cmp-rank { flex: none; width: 22px; font-size: 15px; font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cmp-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; text-decoration: none; }
.cmp-name:hover { text-decoration: underline; }
.cmp-head b { font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; }
.cmp .track { margin-left: 32px; }
.cmp-meta { margin: 6px 0 0 32px; font-size: 13px; color: var(--ink-3); }
@media (min-width: 1024px) { .cmp { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 48px; } }
/* ── 선택 카드(프로그램): 선택 = 검정 테두리 + 22px 검정 체크 원 ── */
.choices { display: grid; gap: 10px; }
@media (min-width: 768px) { .editor .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: #fff; cursor: pointer; font-size: 16px; font-weight: 650; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .ck { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-5); background: #fff; color: transparent; }
.choice .ck .ico { width: 14px; height: 14px; stroke-width: 3; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 0.5px var(--ink); }
.choice:has(input:checked) .ck { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice:has(input:focus-visible) { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.choice .x { margin-left: auto; }
.inline { display: flex; gap: 8px; margin-top: 12px; }
.inline input { flex: 1; min-width: 0; }

/* ── 질문 편집: 윗줄(번호·비교·도구) / 문구 전체 폭 / 아랫줄(방식·필수) ── */
.qlist { display: grid; gap: 12px; }
.qitem { display: grid; gap: 10px; padding: 12px 14px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: #fff; }
.qitem-head { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.qlabel { font-size: 15px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.qcmp { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border: 1.5px solid var(--ink-5); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.qitem-head .qtools { margin-left: auto; margin-right: -8px; }
.qitem .qtext { width: 100%; min-height: 52px; resize: none; field-sizing: content; line-height: 1.45; }
.qitem-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.seg { display: inline-flex; padding: 3px; border: 1.5px solid var(--ink-5); border-radius: var(--r); background: #fff; }
.seg button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 5px; background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 700; cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--line-strong); transition: background 0.15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.15s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border: 1.5px solid var(--ink-5); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.qtools { display: flex; align-items: center; gap: 2px; }
.qtools .icon-btn { width: 40px; height: 40px; color: var(--ink-2); }
.qtools .icon-btn .ico { width: 19px; height: 19px; stroke-width: 1.9; }
.qtools .icon-btn:disabled { opacity: 0.3; cursor: default; }
.qtools .icon-btn.del { color: var(--danger); }
.formbar { position: sticky; bottom: 0; z-index: 15; display: flex; gap: 10px; justify-content: flex-end; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(247, 248, 250, 0), var(--bg) 28%); }
/* 휴대폰: 화면 아래에 붙은 막대(흰 바탕 + 위 선 + 위로 퍼지는 그림자) — 업로드 앱 아래 탭 막대와 같은 규칙 */
@media (max-width: 1023px) {
  .formbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1.5px solid var(--line-strong); box-shadow: 0 -8px 24px rgba(17, 19, 24, 0.06); }
  .formbar .btn { flex: 1; min-height: 52px; }
  .formbar .btn-main { flex: 1.6; }
  .formbar .cancel { display: none; }
}

/* ── 현장 ── */
.live { padding: 20px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.live .big { margin: 10px 0 6px; font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.live .big small { margin-left: 4px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.tools { display: grid; gap: 10px; margin-top: 12px; }
.tools .btn { justify-content: flex-start; min-height: 58px; padding: 0 12px 0 16px; font-size: 16px; }
.tools .btn .end { display: inline-grid; margin-left: auto; color: var(--ink-2); }
.tools .btn-ink .end { color: #fff; }
.tools .btn .end .ico { width: 17px; height: 17px; stroke-width: 2.8; }
.qr-panel { display: grid; justify-items: center; gap: 14px; text-align: center; }
.qr-panel img { width: 232px; height: 232px; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; background: #fff; }
.qr-url { max-width: 100%; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .live { box-shadow: var(--shadow-widget); border-color: #d8dfe9; }
}
dl.info { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px 14px; margin: 0; font-size: 15px; }
dl.info dt { color: var(--ink-3); font-weight: 650; }
dl.info dd { margin: 0; font-weight: 600; }
.qr-full { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; background: #fff; text-align: center; }
.qr-full img { width: min(74vmin, 560px); height: auto; }
.qr-full .brandline { font-size: clamp(15px, 2.2vmin, 20px); font-weight: 800; letter-spacing: 0.14em; color: var(--accent-deep); }
.qr-full h2 { font-size: clamp(24px, 4.4vmin, 44px); font-weight: 800; letter-spacing: -0.03em; }
.qr-full p { font-size: clamp(17px, 2.8vmin, 28px); font-weight: 700; color: var(--ink-2); }
.qr-full .icon-btn { position: absolute; top: 16px; right: 16px; border: 1.5px solid var(--ink-5); }

/* ── 응답·의견 ── */
.comments { display: grid; gap: 10px; }
.comment { padding: 14px 16px; border-radius: var(--r); background: var(--line-soft); font-size: 15px; line-height: 1.55; }
.comment small { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.pick { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: #fff; cursor: pointer; font-size: 15px; line-height: 1.55; }
.pick input { position: absolute; opacity: 0; }
.pick .ck { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--ink-5); color: transparent; }
.pick .ck .ico { width: 14px; height: 14px; stroke-width: 3; }
.pick:has(input:checked) { border-color: var(--ink); }
.pick:has(input:checked) .ck { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick:has(input:focus-visible) { outline: 2.5px solid var(--ink); outline-offset: 2px; }
details.resp { border-top: 1px solid var(--line); }
details.resp:first-of-type { border-top: 0; }
details.resp summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 700; }
details.resp summary::-webkit-details-marker { display: none; }
details.resp summary > span { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
details.resp summary .ico { width: 17px; height: 17px; stroke-width: 2.8; color: var(--ink-2); transition: transform 0.15s; }
details.resp[open] summary .ico { transform: rotate(90deg); }
details.resp summary .t-help { font-weight: 500; }
details.resp dl { display: grid; gap: 4px; margin: 0 0 16px; font-size: 15px; }
details.resp dt { margin-top: 8px; color: var(--ink-3); font-weight: 650; }
details.resp dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1.5px solid var(--ink-5); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 650; }
.assets { display: flex; flex-wrap: wrap; gap: 12px; }
.asset { position: relative; width: 148px; height: 104px; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; background: #fff; }
.asset img { width: 100%; height: 100%; object-fit: cover; }
.asset.logo img { object-fit: contain; padding: 12px; }
.asset .icon-btn { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line); }
.asset .icon-btn .ico { width: 16px; height: 16px; }
.asset-add { display: grid; place-items: center; align-content: center; gap: 6px; width: 148px; height: 104px; border: 1.5px dashed var(--ink-5); border-radius: var(--r); background: #fff; color: var(--ink-2); font-size: 15px; font-weight: 700; cursor: pointer; }
.asset-add .ico { width: 22px; height: 22px; }

/* ── 참여자 화면 미리 보기(휴대폰 틀) ── */
.phone { width: 332px; margin: 0 auto; padding: 10px; border-radius: 34px; background: var(--ink); box-shadow: 0 2px 5px rgba(17, 24, 39, 0.08), 0 12px 28px rgba(17, 24, 39, 0.12); }
.phone-screen { position: relative; width: 312px; height: 640px; overflow: hidden; border-radius: 26px; background: var(--bg); }
.phone-screen iframe { position: absolute; top: 0; left: 0; width: 390px; height: 800px; border: 0; transform: scale(0.8); transform-origin: 0 0; }
.pv-badge { margin-left: auto; padding: 4px 10px; border: 1.5px solid var(--ink-5); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); background: #fff; }
.pv-card { display: none; }
.m-preview { display: inline-flex; }
.pv-side { display: none; }
.pv-sheet { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: var(--bg); }
.pv-sheet-head { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 8px 0 16px; background: #fff; border-bottom: 1px solid var(--line); }
.pv-sheet iframe { flex: 1; width: 100%; border: 0; }
@media (min-width: 1024px) {
  .pv-card { display: block; }
  .tools .m-preview { display: none; }
}
@media (min-width: 1280px) {
  .edit-split { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 28px; align-items: start; }
  .pv-side { position: sticky; top: 24px; display: grid; gap: 6px; justify-items: center; text-align: center; }
  .pv-side .phone { margin-top: 10px; }
  .formbar .m-preview { display: none; }
}

/* ── 로그인 ── */
.login { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.login form { display: grid; gap: 16px; width: 100%; max-width: 400px; padding: 32px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sheet); }
.login .logo { height: 34px; width: auto; }

/* ── 참여자 설문(휴대폰 우선, 480px 한 열) ── */
.sv { display: flex; flex-direction: column; max-width: 480px; min-height: 100vh; margin: 0 auto; padding: 0 20px calc(108px + env(safe-area-inset-bottom)); }
.sv-top { display: flex; align-items: center; height: 60px; }
.sv-top .logo { height: 28px; width: auto; }
.sv-intro { padding: 8px 0 18px; }
.sv-intro .meta { font-size: 15px; color: var(--ink-3); }
.sv-intro .h1 { margin: 6px 0 8px; }
.sv-intro p:last-child { font-size: 15px; color: var(--ink-2); }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width 0.25s; }
.progress-label { display: flex; justify-content: space-between; margin: 10px 0 22px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.progress-label span:last-child { color: var(--ink-3); font-weight: 600; }
.sv .h2 { margin-bottom: 6px; }
.sv .h2 + .t-sub { margin-bottom: 18px; }
.qcard { margin: 0 0 12px; padding: 18px 16px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.qcard legend { float: left; width: 100%; margin-bottom: 16px; padding: 0; font-size: 17px; font-weight: 700; line-height: 1.45; }
.qcard legend small { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.qcard.missing { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.qcard textarea { clear: both; }
.scale { clear: both; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.scale label { position: relative; }
.scale input { position: absolute; inset: 0; margin: 0; opacity: 0; }
.scale span { display: grid; place-items: center; height: 56px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: #fff; font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; cursor: pointer; }
.scale label:hover span { border-color: var(--ink-2); }
.scale input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.scale input:focus-visible + span { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.ends { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.sv-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1.5px solid var(--line-strong); box-shadow: 0 -8px 24px rgba(17, 19, 24, 0.06); }
.sv-bar > div { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.sv-bar .btn-main { flex: 1; }
.sv-bar .prev { flex: 0 0 104px; min-height: 56px; }
.done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 0; text-align: center; }
.done .tick { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; background: var(--accent); color: #fff; }
.done .tick .ico { width: 32px; height: 32px; stroke-width: 2.6; }
.done p { font-size: 16px; color: var(--ink-2); line-height: 1.55; }
.done .btn { width: 100%; max-width: 320px; margin-top: 24px; }

/* ── 주최 측 보고서 ── */
.report-tools { position: sticky; top: 0; z-index: 10; display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.report { max-width: 860px; margin: 0 auto; padding: 20px 16px 64px; }
.sheet { margin-bottom: 16px; padding: 28px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 768px) { .sheet { padding: 48px 52px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sheet-head .logo { height: 32px; width: auto; }
.sheet-head .host { max-width: 160px; max-height: 44px; object-fit: contain; }
.sheet .h1 { margin: 28px 0 8px; font-size: 28px; }
.sheet .meta { font-size: 15px; color: var(--ink-3); }
.sheet .sec { margin: 32px 0 14px; font-size: 17px; font-weight: 800; }
/* 보고서 안의 작은 제목(프로그램별 전반 만족도 등): 관리 화면용 회색 라벨이 아니라 본문 소제목처럼 */
.sheet .t-label { font-size: 15px; font-weight: 700; color: var(--ink); }
.sheet > .sec:first-child, .sheet > .avoid:first-child > .sec:first-child { margin-top: 0; }
.hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.hero div { padding: 16px; border-radius: var(--r); background: var(--line-soft); }
.hero div.dark { background: var(--ink); color: #fff; }
.hero b small { font-size: 15px; font-weight: 650; opacity: 0.8; }
.hero b { display: block; font-size: 30px; font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero span { font-size: 15px; font-weight: 650; opacity: 0.86; }
@media (max-width: 480px) { .hero b { font-size: 24px; } .hero span { font-size: 13px; } .hero div { padding: 12px; } }
.summary { font-size: 16px; line-height: 1.7; color: var(--ink); }
.summary > * { display: block; }
.summary .sum-gap { height: 0.8em; }
.summary .sum-head { font-weight: 700; margin-bottom: 2px; }
.summary .sum-item { display: grid; grid-template-columns: 1.6em 1fr; }
.summary .sum-item i { font-style: normal; font-variant-numeric: tabular-nums; }
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.photos.one { grid-template-columns: 1fr; }
.photos img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--r); }
.foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); text-align: center; }

/* ── 알림·확인 창 ── */
#toast { position: fixed; left: 50%; bottom: 96px; z-index: 200; max-width: calc(100% - 32px); padding: 13px 18px; border-radius: var(--r); background: #0a0a0d; color: #fff; font-size: 15px; font-weight: 600; opacity: 0; transform: translateX(-50%) translateY(16px); transition: 0.2s; pointer-events: none; }
#toast.visible { opacity: 1; transform: translateX(-50%); }
dialog.confirm { width: calc(100% - 32px); max-width: 440px; padding: 24px; border: 0; border-radius: var(--r-sheet); box-shadow: 0 16px 48px rgba(17, 19, 24, 0.18); }
dialog.confirm::backdrop { background: rgba(20, 20, 30, 0.32); }
dialog.confirm p { margin: 10px 0 22px; font-size: 16px; color: var(--ink-2); }
dialog.confirm .actions { justify-content: flex-end; }
@media (max-width: 600px) { dialog.confirm .actions .btn { flex: 1; } }

/* ── 인쇄(보고서 A4 세 쪽) ── */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .report-tools, .tabs, .side, .topbar, #toast { display: none !important; }
  .report { max-width: none; padding: 0; }
  .sheet { margin: 0; padding: 0; border: 0; border-radius: 0; break-after: page; }
  .sheet:last-child { break-after: auto; }
  .hero div, .hero div.dark, .dist, .dist i, .fill, .track, .mark, .d1, .d2, .d3, .d4, .d5, .comment, .chip { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .avoid { break-inside: avoid; }
  .sheet .h1 { margin-top: 16px; font-size: 22px; }
  .sheet .sec { margin: 16px 0 8px; font-size: 14px; }
  .sheet .t-label { font-size: 12.5px; }
  .sheet-head { padding-bottom: 12px; }
  .hero { margin-top: 14px; }
  .hero div { padding: 10px 12px; }
  .hero b { font-size: 22px; }
  .hero span, .meta { font-size: 11.5px; }
  .summary { font-size: 12.5px; line-height: 1.65; }
  .bars { gap: 7px; }
  .bar { font-size: 11.5px; }
  .track { height: 8px; }
  .photos img { height: 140px; }
  .qdist { gap: 9px; }
  .qdist h3 { margin-bottom: 3px; font-size: 12px; }
  .dist { height: 14px; }
  .note, .legend { margin-top: 5px; font-size: 10.5px; }
  .chip { min-height: 26px; font-size: 11.5px; padding: 0 10px; }
  .comment { padding: 8px 10px; font-size: 12px; }
  .foot { font-size: 10.5px; }
}
