/* ===== 토큰 ===== */
:root {
  --primary: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-sunk: #f1f5f9;
  --ok: #059669;
  --ok-50: #ecfdf5;
  --warn: #b45309;
  --warn-50: #fffbeb;
  --danger: #dc2626;
  --danger-50: #fef2f2;
  --gold: #a16207;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 4px 16px rgb(15 23 42 / .06);
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: calc(16px * var(--font-scale, 1)); }
body {
  margin: 0;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: -0.02em; color: var(--heading, inherit); }
h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding-top: 40px; padding-bottom: 40px; }
.section + .section { padding-top: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-line; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ===== 헤더 ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--primary); display: grid; place-items: center; color: #fff; }
.brand-mark svg { width: 18px; height: 18px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink-2); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--primary-50); color: var(--primary-700); text-decoration: none; }
.nav-toggle { display: none; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* ===== 푸터 ===== */
.site-footer { margin-top: 64px; background: var(--bg-sunk); border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: .9rem; }
.site-footer strong { color: var(--ink-2); }
.site-footer .row { gap: 8px 20px; }

/* ===== 버튼 ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-700); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-sunk); }
.btn-danger { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: var(--danger-50); }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ===== 배지 ===== */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--bg-sunk); color: var(--ink-2); white-space: nowrap; }
.badge-open { background: var(--primary-50); color: var(--primary-700); }
.badge-ok { background: var(--ok-50); color: var(--ok); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-dday { background: var(--ink); color: #fff; }

/* ===== 카드 ===== */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-link { display: block; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { text-decoration: none; border-color: var(--primary); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card-meta { display: grid; gap: 2px; font-size: .9rem; color: var(--ink-2); margin: 12px 0 0; }
.card-meta dt { display: inline; color: var(--muted); margin-right: 6px; }
.card-meta dd { display: inline; margin: 0; }

/* 포스터 */
.card-poster { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-poster > *:not(.thumb) { padding-left: 20px; padding-right: 20px; }
.card-poster > .row { padding-top: 16px; }
.card-poster > .card-meta { padding-bottom: 20px; }
.card-poster .thumb { aspect-ratio: 5 / 7; background: #f1f5f9; overflow: hidden; }
.card-poster .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-link:hover .thumb img { transform: scale(1.02); transition: transform .3s; }
.poster { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.poster img { width: 100%; display: block; }


/* ===== 히어로 ===== */
.hero { background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -80px; top: -40px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgb(255 255 255 / .05); }
.hero .eyebrow { color: #93c5fd; font-weight: 700; letter-spacing: .02em; margin-bottom: 8px; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 12px; }
.hero p { color: #cbd5e1; font-size: 1.05rem; max-width: 560px; }
.hero .btn-outline { background: transparent; color: #fff; border-color: rgb(255 255 255 / .35); }
.hero .btn-outline:hover { border-color: #fff; color: #fff; }

.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: -32px; position: relative; z-index: 2; }
@media (min-width: 720px) { .quick { grid-template-columns: repeat(4, 1fr); } }
.quick a { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; color: var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.quick a:hover { text-decoration: none; border-color: var(--primary); }
.quick strong { font-size: 1rem; }
.quick span { font-size: .85rem; color: var(--muted); }
.quick svg { width: 24px; height: 24px; color: var(--primary); margin-bottom: 4px; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }

/* ===== 목록 ===== */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 4px; color: var(--ink); }
.list a:hover { text-decoration: none; background: var(--bg-soft); }
.list .title { font-weight: 600; flex: 1; min-width: 0; }
.list .date { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.pin { color: var(--primary-700); font-weight: 800; margin-right: 6px; }

/* ===== 페이지 헤더 ===== */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 32px 0 28px; }
.page-head h1 { margin-bottom: 6px; }
.crumb { font-size: .875rem; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); }

/* ===== 표 ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); color: var(--ink-2); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.info-table th { width: 110px; }
@media (max-width: 560px) {
  .info-table th, .info-table td { display: block; width: auto; border: 0; padding: 4px 14px; }
  .info-table th { padding-top: 12px; background: none; color: var(--muted); font-size: .85rem; }
  .info-table tr { display: block; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
}

/* ===== 탭 ===== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 24px 0 20px; overflow-x: auto; }
.tabs a { padding: 12px 16px; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-selected="true"] { color: var(--primary-700); border-color: var(--primary); }

.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 4px; }

/* ===== 레이아웃: 상세 ===== */
.detail { display: grid; gap: 24px; }
@media (min-width: 960px) { .detail { grid-template-columns: 1fr 320px; align-items: start; } .detail aside { position: sticky; top: 84px; } }

.callout { border-radius: var(--radius); padding: 14px 16px; background: var(--primary-50); border: 1px solid var(--primary-100); color: var(--ink-2); }
.callout-warn { background: var(--warn-50); border-color: #fde68a; }
.callout-danger { background: var(--danger-50); border-color: #fecaca; }
.callout-ok { background: var(--ok-50); border-color: #a7f3d0; }
.callout strong { color: var(--ink); }

/* ===== 폼 ===== */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 700; font-size: .95rem; }
.req::after { content: ' *'; color: var(--danger); }
.hint { font-size: .85rem; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgb(59 130 246 / .2); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .85rem; font-weight: 600; }
.err:empty { display: none; }
.fields-2 { display: grid; gap: 18px; }
.lookup-inline { display: grid; gap: 12px; }
@media (min-width: 720px) { .lookup-inline { grid-template-columns: 1fr 1fr auto; align-items: end; } }
@media (min-width: 640px) { .fields-2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; padding: 0; }

.choice-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; font-weight: 700; min-height: 48px; justify-content: center; }
.choice small { font-weight: 500; color: var(--muted); }
.choice input:checked + span { border-color: var(--primary); background: var(--primary-50); color: var(--primary-700); box-shadow: inset 0 0 0 1px var(--primary); }
.choice input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.choice input:disabled + span { opacity: .45; background: var(--bg-sunk); }
.division-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.division-grid .choice span { height: 100%; justify-content: flex-start; }
.choice-group { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--muted); }
.choice input:checked + span .choice-group { color: var(--primary-600); }
.group-label { font-size: .85rem; color: var(--muted); font-weight: 700; margin: 12px 0 6px; }

.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.check-body { flex: 1; }
.policy { font-size: .85rem; color: var(--muted); background: var(--bg-soft); border-radius: 6px; padding: 10px 12px; margin-top: 8px; white-space: pre-line; max-height: 140px; overflow: auto; }

.piece { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--bg-soft); position: relative; }
.piece-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 800; }
.piece .fields-2 { gap: 12px; }

/* ===== 단계 표시 ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 0 0 28px; counter-reset: step; }
.steps li { counter-increment: step; font-size: .8rem; color: var(--muted); font-weight: 700; display: grid; gap: 8px; text-align: center; }
.steps li::before { content: ''; height: 4px; border-radius: 4px; background: var(--line); }
.steps li[data-state="done"]::before, .steps li[data-state="current"]::before { background: var(--primary); }
.steps li[data-state="current"] { color: var(--primary-700); }
.steps li span::before { content: counter(step) '. '; }

.apply-layout { display: grid; gap: 24px; }
@media (min-width: 960px) { .apply-layout { grid-template-columns: 1fr 300px; align-items: start; } .apply-layout aside { position: sticky; top: 84px; } }
.summary { display: grid; gap: 8px; font-size: .95rem; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.fee-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.fee-total strong { font-size: 1.5rem; color: var(--primary-700); letter-spacing: -0.02em; }
.form-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.mobile-bar { display: none; }
@media (max-width: 959px) {
  .apply-layout aside { display: none; }
  .mobile-bar { display: flex; position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; margin: 0 -16px; justify-content: space-between; align-items: center; z-index: 10; }
  .mobile-bar strong { color: var(--primary-700); font-size: 1.15rem; }
}

.done { text-align: center; padding: 16px 0; }
.done .appno { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 800; letter-spacing: .04em; color: var(--primary-700); background: var(--primary-50); border-radius: var(--radius); padding: 16px; margin: 16px 0; font-variant-numeric: tabular-nums; }
.done-check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-50); color: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; }

/* ===== 결과 ===== */
.result-group { margin-bottom: 28px; }
.result-group h3 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.award { font-weight: 800; }
.award-대상 { color: var(--gold); }
.award-최우수상 { color: #b45309; }
.award-금상 { color: #a16207; }

.status-steps { display: flex; gap: 0; margin: 12px 0; }
.status-steps div { flex: 1; text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line); }
.status-steps div.on { color: var(--primary-700); border-color: var(--primary); }

.empty { text-align: center; color: var(--muted); padding: 48px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--bg-soft); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.pagination span[aria-current] { background: var(--primary); border-color: var(--primary); color: #fff; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 100; box-shadow: var(--shadow); }
.spinner { width: 18px; height: 18px; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

@media print {
  .site-header, .site-footer, .form-nav, .no-print, .mobile-bar { display: none !important; }
  body { font-size: 12pt; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===== 메인 배너 슬라이드 ===== */
.hero-slider { padding: 0; min-height: clamp(420px, 56vw, 620px); display: grid; }
.hero-slider::after { display: none; }
.hero-track { display: grid; grid-template-areas: "stack"; min-height: inherit; }
.hero-slide { grid-area: stack; position: relative; display: flex; align-items: center; min-height: inherit;
  opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center;
  filter: blur(18px) saturate(1.25) brightness(.9); transform: scale(1.1); }
.hero-shade { position: absolute; inset: 0;
  background: linear-gradient(105deg, rgb(8 15 30 / .88) 0%, rgb(8 15 30 / .7) 46%, rgb(8 15 30 / .38) 100%); }
.hero-slide:not(:has(.hero-bg)) .hero-shade { background: linear-gradient(160deg, var(--hero-1, #0f172a) 0%, var(--hero-2, #1e3a8a) 70%, var(--primary) 100%); }
.hero-inner { position: relative; z-index: 2; display: flex; gap: 36px; align-items: center; padding: 44px 16px 72px; width: 100%; }
.hero-poster { flex: none; height: clamp(250px, 34vw, 420px); border-radius: 10px; overflow: hidden;
  box-shadow: 0 18px 40px rgb(0 0 0 / .45); border: 1px solid rgb(255 255 255 / .18); line-height: 0; }
.hero-poster img { height: 100%; width: auto; display: block; }
.hero-copy { min-width: 0; }
.hero-copy h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.hero-copy .eyebrow { color: #cbd5e1; font-weight: 700; letter-spacing: .12em; font-size: .85rem; margin-bottom: 10px; text-transform: uppercase; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dday-chip { background: #fff; color: #0f172a; font-weight: 800; font-size: .84rem; border-radius: 999px; padding: 4px 12px; }
.hero-meta { display: grid; gap: 6px; margin: 0; color: #e2e8f0; font-size: .98rem; }
.hero-meta div { display: flex; gap: 12px; }
.hero-meta dt { color: #94a3b8; min-width: 42px; font-size: .88rem; padding-top: 1px; }
.hero-meta dd { margin: 0; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 46px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.hero-dot { border: 0; background: none; padding: 6px; cursor: pointer; line-height: 0; }
.hero-dot span { display: block; width: 9px; height: 9px; border-radius: 50%; background: rgb(255 255 255 / .42); transition: all .2s; }
.hero-dot.is-active span { background: #fff; width: 26px; border-radius: 5px; }
@media (max-width: 720px) {
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 36px 16px 52px; }
  .hero-poster { height: 230px; }
  .hero-meta { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* ===== 오시는 길 ===== */
.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-sunk); }
.map-embed iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ===== 관리자 현장 편집 ===== */
body.live-editing .tx { outline: 1px dashed rgb(59 130 246 / .6); outline-offset: 3px; border-radius: 3px; cursor: text; }
body.live-editing .tx:focus { outline: 2px solid var(--primary); background: rgb(59 130 246 / .08); }
.live-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 90;
  background: #0f172a; color: #fff; border-radius: 999px; padding: 8px 10px; display: flex; align-items: center; gap: 6px;
  box-shadow: 0 10px 30px rgb(15 23 42 / .35); font-size: .86rem; max-width: calc(100vw - 24px); flex-wrap: wrap; }
.live-title { font-weight: 800; padding: 0 8px; color: #93c5fd; }
.live-btn { background: rgb(255 255 255 / .12); color: #fff; border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer; font: inherit; }
.live-btn:hover { background: rgb(255 255 255 / .22); text-decoration: none; color: #fff; }
.live-save { background: var(--primary); }
.live-count { color: #fde68a; padding: 0 6px; }
.live-panel { position: absolute; bottom: calc(100% + 10px); right: 0; background: #fff; color: var(--ink);
  border-radius: 12px; padding: 14px; width: 280px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.live-panel label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .88rem; }
.live-panel input[type=color] { width: 44px; height: 30px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.live-panel select { border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; font: inherit; }
.live-panel-actions { display: flex; gap: 6px; justify-content: flex-end; }
.live-panel .live-btn { background: var(--bg-sunk); color: var(--ink); }
.live-panel .live-save { background: var(--primary); color: #fff; }
.live-hint { margin: 0; font-size: .78rem; color: var(--muted); }

/* 관리자가 에디터로 쓴 글 */
.prose-tight > *:first-child { margin-top: 0; }
.prose-tight > *:last-child { margin-bottom: 0; }
.prose-tight h3 { font-size: 1.02rem; margin: 14px 0 6px; }
.prose-tight table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.prose-tight th, .prose-tight td { border: 1px solid var(--line); padding: 6px 10px; font-size: .95rem; }
.prose-tight img { border-radius: 8px; margin: 8px 0; }
