/* 포항인연(포연) — 모바일 우선 자체 CSS (320px 최소 / 390px 기준 / 768px 태블릿 / 1100px PC) */
@font-face {
  font-family: 'Pretendard';
  src: url('/vendor/fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --navy: #0E2A4A;
  --pink: #E0245A;
  --pink-dark: #C21B4C;
  --pink-light: #fff0f3;
  --text: #203244;
  --muted: #6e7a87;
  --border: #e8eaf0;
  --bg: #FFF9F7;
  --white: #fff;
  --ok: #15803d; --ok-bg: #e9f7ee;
  --warn: #b45309; --warn-bg: #fff4e0;
  --bad: #c0262d; --bad-bg: #fdecec;
  --info: #1d5f99; --info-bg: #eaf3fb;
  --kakao: #FEE500;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(14, 42, 74, 0.07);
  --gutter: 16px;
  --tabbar: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
}
body.admin, body.room-page { padding-bottom: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--navy); line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
/* SVG 아이콘 */
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -6px; }
/* 홈 카테고리: 사진 타일 */
.cat-tile.has-photo { padding: 0 0 14px; overflow: hidden; gap: 4px; }
.cat-photo { display: block; width: 100%; aspect-ratio: 3 / 2; margin-bottom: 8px; background: var(--pink-light); overflow: hidden; }
.cat-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.cat-tile.has-photo:hover .cat-photo img { transform: scale(1.04); }
.cat-tile.has-photo b, .cat-tile.has-photo small { padding: 0 10px; }
@media (max-width: 767px) { .pc-only { display: none !important; } .pc-only + .pc-only + .wiz-head, .pc-only + .pc-only + .alert { margin-top: 0; } }
/* 슬로건 (홈 히어로) */
.slogan { color: var(--navy); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; min-height: 1.4em; }
.slogan-type .ty-ch { opacity: 0; transition: opacity .12s ease-out; }
.slogan-type .ty-ch.on { opacity: 1; }
@media (min-width: 768px) { .slogan { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .slogan-type .ty-ch { opacity: 1; transition: none; } }
.ic-sm { width: 16px; height: 16px; vertical-align: -3px; stroke-width: 2; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 12px; z-index: 99; }
.muted { color: var(--muted); } .pink { color: var(--pink); } .small { font-size: 13px; } .center { text-align: center; }
.pre { white-space: pre-line; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.gap-8 { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-2 > * { min-width: 0; }
input { min-width: 0; max-width: 100%; }
@media (max-width: 479px) { .row-2.stack-sm { grid-template-columns: 1fr; gap: 0; } }
:focus-visible { outline: 3px solid rgba(224, 36, 90, .45); outline-offset: 2px; }
.wrap { max-width: 1100px; margin-left: auto; margin-right: auto; padding: 0 var(--gutter); } /* 위아래 여백은 mt-* 로 */
.wrap.narrow { max-width: 640px; }
.text-link { color: var(--pink); text-decoration: none; font-weight: 600; }
.text-link:hover { text-decoration: underline; }
ul.plain { list-style: none; padding: 0; margin: 0; } ul.plain li { padding: 4px 0; }
code { background: #f1f2f6; padding: 2px 6px; border-radius: 6px; font-size: 13px; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .inner { max-width: 1100px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px; }
.site-header .spacer { flex: 1; }
.logo img { height: 30px; width: auto; }
.top-nav { display: none; gap: 4px; margin-left: 12px; }
.top-nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.top-nav a.on, .top-nav a:hover { color: var(--navy); background: #f3f4f8; }
.me-chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--navy); max-width: 50vw; }
.me-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 하단 탭바 (모바일) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); height: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.tabbar a .ic { width: 24px; height: 24px; vertical-align: 0; }
.tabbar a.on { color: var(--pink); } .tabbar a.on .ic { stroke-width: 2.2; }

.site-footer { margin-top: 48px; padding: 24px 0 32px; border-top: 1px solid var(--border); background: #fff; }
.site-footer .inner { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.site-footer a { color: var(--muted); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--pink);
  background: var(--pink); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; }
.btn:hover { background: var(--pink-dark); border-color: var(--pink-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.is-loading { opacity: .7; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-xs { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-outline { background: #fff; color: var(--pink); }
.btn-outline:hover { background: var(--pink-light); color: var(--pink-dark); }
.btn-navy { background: var(--navy); border-color: var(--navy); } .btn-navy:hover { background: #081c33; border-color: #081c33; }
.btn-ok { background: var(--ok); border-color: var(--ok); } .btn-ok:hover { background: #0f6631; border-color: #0f6631; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--muted); } .btn-ghost:hover { background: #f3f4f8; color: var(--text); border-color: var(--border); }
.btn-kakao { background: var(--kakao); border-color: var(--kakao); color: #191600; } .btn-kakao:hover { background: #f2d900; border-color: #f2d900; }
.btn-arrive { min-height: 60px; font-size: 18px; }

/* 폼 */
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
input[type=text], input[type=search], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=password], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; }
textarea { min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--pink); outline: none; box-shadow: 0 0 0 3px rgba(224,36,90,.12); }
input:disabled, select:disabled, textarea:disabled { background: #f5f6f8; color: var(--muted); }
.is-invalid { border-color: var(--bad) !important; }
.field-msg { color: var(--bad); font-size: 13px; margin-top: 4px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pink); flex: none; }
.check-all { border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 8px; }
.consent { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.consent details summary { font-size: 13px; color: var(--muted); cursor: pointer; margin-left: 28px; }
.policy-body { white-space: pre-line; }
.consent .policy-body { background: #fafbfc; border-radius: 10px; padding: 10px 12px; margin: 6px 0 6px 28px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label, .cat-pick label span, .chip-check span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; background: #fff; }
.seg label { margin: 0; color: var(--text); }
.seg input { accent-color: var(--pink); }
.cat-pick, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pick input, .chip-check input, .avatar-pick input { position: absolute; opacity: 0; pointer-events: none; }
.cat-pick label, .chip-check { position: relative; margin: 0 !important; }
.cat-pick input:checked + span, .chip-check input:checked + span { border-color: var(--pink); background: var(--pink-light); color: var(--pink-dark); }
.cat-pick input:focus-visible + span, .chip-check input:focus-visible + span, .avatar-pick input:focus-visible + .avatar { outline: 3px solid rgba(224,36,90,.45); }
/* 팅 만들기 카테고리: 한 줄에 3개 */
.cat-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cat-pick label span { width: 100%; justify-content: center; padding: 10px 6px; white-space: nowrap; }
.cat-pick input:disabled + span { opacity: .6; cursor: not-allowed; }
.avatar-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.avatar-pick label { position: relative; display: flex; justify-content: center; cursor: pointer; }
.avatar-pick .avatar { border: 3px solid transparent; }
.avatar-pick input:checked + .avatar { border-color: var(--pink); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input[type=text], .inline-form input[type=search] { flex: 1; min-width: 160px; min-height: 38px; }
.inline-form select { width: auto; min-height: 38px; }
.inline-form .form-error { flex-basis: 100%; }

.alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.alert.ok { background: var(--ok-bg); color: var(--ok); } .alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.error { background: var(--bad-bg); color: var(--bad); } .alert.info { background: var(--info-bg); color: var(--info); }
.form-error:not(:empty) { margin: 8px 0; }
.ok-text { color: var(--ok); }
.empty { background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); }

/* 배지·태그 */
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef0f4; color: var(--muted); vertical-align: middle; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.status-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tone-pink { background: var(--pink-light); color: var(--pink-dark); } .tone-ok { background: var(--ok-bg); color: var(--ok); }
.tone-warn { background: var(--warn-bg); color: var(--warn); } .tone-bad { background: var(--bad-bg); color: var(--bad); } .tone-muted { background: #eef0f4; color: var(--muted); }
.cat-tag { font-size: 13px; font-weight: 700; color: var(--navy); }
.chip { display: inline-block; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #f3f4f8; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* 아바타 */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; line-height: 1; }
.avatar .ic { vertical-align: 0; stroke-width: 1.7; }
.avatar-sm { width: 30px; height: 30px; } .avatar-sm .ic { width: 18px; height: 18px; stroke-width: 2; }
.avatar-md { width: 48px; height: 48px; } .avatar-md .ic { width: 28px; height: 28px; }
.avatar-lg { width: 68px; height: 68px; } .avatar-lg .ic { width: 40px; height: 40px; stroke-width: 1.6; }

/* 홈 */
.hero { background: linear-gradient(160deg, #fff 0%, var(--pink-light) 100%); padding: 36px 0 32px; border-bottom: 1px solid var(--border); }
.eyebrow { color: var(--pink); font-weight: 800; font-size: 14px; }
.hero h1 { font-size: 28px; margin-top: 8px; }
.lead { color: var(--text); font-size: 16px; margin-top: 12px; }
.sec-title { font-size: 20px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-tile { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.cat-tile:hover { border-color: var(--pink); }
.cat-emoji { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.cat-emoji .ic { width: 26px; height: 26px; vertical-align: 0; }
.cat-volunteer { background: #e8f6ec; color: #22803f; } .cat-hobby { background: #f0e9fb; color: #6a3fb5; } .cat-dating { background: var(--pink-light); color: var(--pink); }
.cat-social { background: #f6ece2; color: #8a5a2b; } .cat-sports { background: #e3f0fb; color: #1d5f99; } .cat-learning { background: #fff4d9; color: #a06a00; }
.cat-tile b { color: var(--navy); } .cat-tile small { color: var(--muted); font-size: 12px; }
.feature-grid { display: grid; gap: 10px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.feat-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--pink-light); color: var(--pink); display: inline-flex; align-items: center; justify-content: center; }
.feat-ic .ic { vertical-align: 0; } .feature b { display: block; color: var(--navy); margin-top: 4px; } .feature p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.login-logo { margin: 0 auto; max-width: 220px; height: auto; }

/* 팅 카드·목록 */
.ting-grid { display: grid; gap: 12px; }
.ting-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-decoration: none; box-shadow: var(--shadow); }
.ting-card:hover { border-color: var(--pink); }
.tc-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ting-card h3 { font-size: 17px; margin-top: 8px; }
.tc-meta { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; color: var(--text); }
.tc-meta li { padding: 1px 0; }
.tc-host { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.cat-filter { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cat-filter::-webkit-scrollbar { display: none; }
.cat-filter a { flex: none; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 14px; font-weight: 600; }
.cat-filter a.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* 팅 상세 */
.host-row { display: flex; align-items: center; gap: 12px; text-decoration: none; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; }
.notice-box { background: var(--warn-bg); border-radius: 14px; padding: 12px 14px; }
.notice-box p { margin-top: 4px; white-space: pre-line; }
dl.info { display: grid; grid-template-columns: 84px 1fr; gap: 10px 12px; margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
dl.info dt { font-weight: 700; color: var(--muted); font-size: 14px; }
dl.info dd { margin: 0; font-size: 15px; }
.req-list, .att-list, .people, .my-list { list-style: none; padding: 0; margin: 0; }
.req-list li, .att-list li { padding: 12px 0; border-top: 1px solid var(--border); }
.req-list li:first-child, .att-list li:first-child { border-top: 0; }
.who { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.att-list .att-ARRIVAL_REPORTED { background: var(--pink-light); margin: 0 -12px; padding: 12px; border-radius: 12px; }
.att-list .att-CONFIRMED .small { color: var(--ok); font-weight: 700; }
.att-me { background: #fafbfc; border-radius: 14px; padding: 14px; }
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.people a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 6px 12px 6px 6px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; }
details summary { cursor: pointer; }
.my-list li a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.my-list li a .status-tag { align-self: flex-start; }
.my-list small { color: var(--muted); }

/* 가입 단계 */
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
.steps li { flex: 1; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.steps span { width: 24px; height: 24px; border-radius: 50%; background: #eef0f4; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.steps li.on { color: var(--pink); } .steps li.on span { background: var(--pink); color: #fff; }
.steps li.done span { background: var(--ok); color: #fff; }

/* 사이버 명함 */
.cyber-card { background: linear-gradient(140deg, #fff 0%, #fff6f8 60%, #eef4fb 100%); border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.cc-top { display: flex; align-items: center; gap: 14px; }
.cc-name { font-size: 20px; font-weight: 800; color: var(--navy); }
.cc-no { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.cc-no b { color: var(--navy); font-family: ui-monospace, monospace; font-size: 14px; }
.cc-intro { margin-top: 12px; white-space: pre-line; }
.cc-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 13px; }

/* 토스트 */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); top: 12px; z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; transition: opacity .4s; }
.toast.ok { background: var(--ok); } .toast.warn { background: var(--warn); } .toast.error { background: var(--bad); } .toast.pink { background: var(--pink); }
.toast.out { opacity: 0; }
.toast-link { color: #fff; font-weight: 700; flex: none; }

/* 팅방 */
.room { display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 760px; margin: 0 auto; background: #fff; }
.room-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.room-head .back { font-size: 28px; text-decoration: none; padding: 0 8px; color: var(--navy); }
.room-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.room-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--navy); }
.room-title small { color: var(--muted); font-size: 12px; }
.conn { width: 10px; height: 10px; border-radius: 50%; background: #c9ced6; flex: none; }
.conn.on { background: #22c55e; }
.room-body { flex: 1; overflow-y: auto; padding: 14px 12px; background: #f6f7fb; display: flex; flex-direction: column; gap: 10px; }
.load-more { align-self: center; }
.msg { display: flex; flex-direction: column; max-width: 82%; }
.msg .who { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.msg .bubble { padding: 10px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--border); white-space: pre-line; }
.msg time { font-size: 11px; color: var(--muted); margin-top: 2px; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.mine .bubble { background: var(--pink); color: #fff; border-color: var(--pink); }
.msg.notice .bubble { background: var(--warn-bg); color: var(--text); border-color: #f5d9a8; }
.msg .hidden-msg { color: var(--muted) !important; font-style: italic; background: #eef0f4 !important; border-color: #eef0f4 !important; }
.msg.sys { align-self: center; max-width: 92%; font-size: 12px; color: var(--muted); background: #eceef3; padding: 4px 12px; border-radius: 999px; text-align: center; }
.msg-report { align-self: flex-start; border: 0; background: none; font-size: 11px; color: var(--muted); padding: 2px 0; cursor: pointer; }
.report-inline { display: flex; gap: 6px; margin-top: 4px; }
.report-inline select { min-height: 34px; padding: 4px 8px; font-size: 13px; }
.room-foot { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: #fff; }
.room-foot .btn { white-space: nowrap; flex: none; }
.room-foot textarea { min-height: 42px; max-height: 120px; padding: 10px 12px; }
.room-foot.readonly { justify-content: center; color: var(--muted); font-size: 14px; }
.notice-toggle { display: flex; align-items: center; gap: 4px; min-height: 42px; cursor: pointer; color: var(--warn); }

/* 오류 */
.error-code { font-size: 56px; font-weight: 900; color: var(--pink); }

/* 운영자 */
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px; background: var(--navy); color: #fff; }
.admin-brand { color: #fff; font-weight: 800; text-decoration: none; }
.admin-bar nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.admin-bar nav a { color: #c9d4e3; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.admin-bar nav a.on, .admin-bar nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.admin-bar .btn-ghost { color: #c9d4e3; border-color: rgba(255,255,255,.25); }
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 20px 16px 48px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-decoration: none; display: flex; flex-direction: column; }
.stat b { font-size: 26px; color: var(--navy); }
.stat.hot { border-color: var(--pink); } .stat.hot b { color: var(--pink); }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 14px; display: block; overflow-x: auto; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.tbl th { background: #f7f8fb; font-size: 13px; color: var(--muted); white-space: nowrap; }
.evidence { background: #f7f8fb; border-radius: 10px; padding: 8px 12px; }
.evidence small { color: var(--muted); }
.qr { border: 1px solid var(--border); border-radius: 12px; }

@media (min-width: 768px) {
  :root { --gutter: 24px; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .top-nav { display: flex; }
  .logo img { height: 34px; }
  h1 { font-size: 28px; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 18px; max-width: 640px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .ting-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .panel { padding: 24px; }
}
@media (min-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .ting-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.ok-title { display: flex; align-items: center; gap: 6px; } .ok-title .ic { color: var(--ok); vertical-align: 0; }
.tc-meta li .ic { color: var(--muted); }
.icon-list li { display: flex; align-items: center; gap: 6px; } .icon-list .ic { color: var(--pink); }

/* 휴대전화 인증 */
.rrn { display: flex; align-items: center; gap: 8px; }
.rrn #birth6 { flex: 1; letter-spacing: 1px; }
.rrn #rrn_digit { width: 48px; text-align: center; padding: 10px 0; }
.rrn-dash { color: var(--muted); }
.rrn-mask { color: var(--muted); letter-spacing: 2px; font-size: 12px; white-space: nowrap; }
.input-btn { display: flex; gap: 8px; align-items: center; }
.input-btn input { flex: 1; }
.input-btn .btn { flex: none; white-space: nowrap; min-height: 48px; }
.otp-timer { flex: none; color: var(--pink); font-weight: 700; min-width: 44px; text-align: right; }
.otp-timer.expired { color: var(--muted); }
.verified-badge { color: var(--ok); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }

/* 닉네임 설정: 프로필 사진 */
.avatar-photo { overflow: hidden; background: #eef0f4; }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xl { width: 96px; height: 96px; } .avatar-xl .ic { width: 56px; height: 56px; stroke-width: 1.5; }
.photo-pick { display: flex; gap: 16px; align-items: center; }
.photo-preview { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none; background: #eef0f4; display: flex; align-items: center; justify-content: center; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-options { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.photo-options .opt { min-height: 32px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; flex-wrap: wrap; }
.photo-options .opt input[type=radio] { accent-color: var(--pink); width: 18px; height: 18px; }
.upload-opt input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-opt .file-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid var(--border); border-radius: 999px; font-size: 13px; background: #fff; }
.upload-opt input[type=file]:focus-visible + .file-btn { outline: 3px solid rgba(224,36,90,.45); }

/* 아이콘 가운데 정렬·크게 (모바일·PC 공통) */
.cat-tile { align-items: center; text-align: center; padding: 18px 12px; }
.cat-emoji { width: 60px; height: 60px; border-radius: 18px; margin-bottom: 8px; }
.cat-emoji .ic { width: 34px; height: 34px; }
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 16px; }
.feat-ic { width: 60px; height: 60px; border-radius: 18px; margin-bottom: 4px; }
.feat-ic .ic { width: 32px; height: 32px; }
.tabbar a .ic { width: 28px; height: 28px; }
/* 슬로건 (홈 히어로) */
.slogan { color: var(--navy); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; min-height: 1.4em; }
.slogan-type .ty-ch { opacity: 0; transition: opacity .12s ease-out; }
.slogan-type .ty-ch.on { opacity: 1; }
@media (min-width: 768px) { .slogan { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .slogan-type .ty-ch { opacity: 1; transition: none; } }
.ic-sm { width: 18px; height: 18px; vertical-align: -4px; }
.ok-title .ic { width: 28px; height: 28px; }

/* 팅 만들기 단계 */
.wiz-head { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; position: sticky; top: 58px; z-index: 30; box-shadow: var(--shadow); }
/* 글자 입력 중에는 진행 카드를 고정하지 않음 → 위로 스크롤되어 입력칸을 가리지 않는다 */
.wiz-typing .wiz-head { position: static; box-shadow: none; }
.wiz-count { font-size: 13px; color: var(--muted); } .wiz-count b { color: var(--pink); font-size: 16px; }
.wiz-bar { height: 6px; background: #eef0f4; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.wiz-bar span { display: block; height: 100%; width: 25%; background: var(--pink); border-radius: 999px; transition: width .25s; }
.wiz-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.wiz-steps button { width: 100%; border: 0; background: none; padding: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.wiz-steps button span { width: 24px; height: 24px; border-radius: 50%; background: #eef0f4; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.wiz-steps button.on { color: var(--pink); } .wiz-steps button.on span { background: var(--pink); color: #fff; }
.wiz-steps button.done span { background: var(--ok); color: #fff; }
.wiz-steps button:disabled { cursor: default; opacity: .7; }
.wiz-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.wiz-nav [data-wiz-prev][hidden] + [data-wiz-next] { grid-column: 1 / -1; }
.wiz:not(.wiz-on) .wiz-nav { display: none; }
.wiz-submit { margin-top: 10px; }
@media (min-width: 768px) { .wiz-head { top: 66px; } }

/* 2단계: 알림·대기실·온도·현장 */
.bell { position: relative; display: inline-flex; color: var(--navy); padding: 6px; }
.bell .ic { width: 26px; height: 26px; vertical-align: 0; }
.bell-n { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.bell-n.inline { position: static; margin-left: 4px; }
.noti-list { list-style: none; padding: 0; margin: 0; }
.noti-list li a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.noti-list li.unread a { border-color: var(--pink); background: var(--pink-light); }
.noti-type { font-size: 12px; font-weight: 700; color: var(--pink); } .noti-list time { font-size: 12px; color: var(--muted); }
.me-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.me-links a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 4px; font-size: 12px; font-weight: 700; color: var(--navy); }
.me-links .ic { color: var(--pink); vertical-align: 0; }
.temp { font-weight: 800; color: var(--pink); white-space: nowrap; }
.ml-auto { margin-left: auto; }
.host-row { align-items: center; }
.temp-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lobby-grid { display: grid; gap: 12px; }
.lobby-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.lobby-card .lc-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.online { color: var(--ok); font-weight: 700; }
.dialog { border: 0; border-radius: var(--radius); padding: 20px; width: min(92vw, 440px); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dialog::backdrop { background: rgba(14, 42, 74, .45); }
.review-row { padding-top: 12px; border-top: 1px solid var(--border); }
.review-cta { display: block; text-decoration: none; }
.invite-card h3 { font-size: 17px; }
@media (min-width: 768px) { .lobby-grid { grid-template-columns: repeat(3, 1fr); } }

/* 운영 프로세스 */
.process .pflow { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.process .pflow li { position: relative; background: #f7f8fb; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; flex: 1 1 150px; display: flex; flex-direction: column; gap: 4px; }
.process .pflow li b { color: var(--navy); font-size: 14px; } .process .pflow li small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.process .pflow li:not(:last-child)::after { content: '→'; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); color: var(--pink); font-weight: 800; background: #fff; border-radius: 50%; width: 14px; text-align: center; font-size: 12px; z-index: 1; }
.process .rules { padding-left: 18px; margin: 0; font-size: 14px; } .process .rules li { padding: 3px 0; }
.process section { scroll-margin-top: 70px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 12px; }
.settings-grid .field { margin: 0; } .settings-grid input[type=number] { min-height: 38px; }
.settings-form h3 { margin-top: 4px; }

/* 운영 통계 */
.chart-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.chart { border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.chart-title { display: flex; justify-content: space-between; align-items: baseline; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: 10px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar span { width: 100%; background: var(--pink); border-radius: 6px 6px 0 0; min-height: 2px; opacity: .85; }
.bar small { font-size: 11px; color: var(--navy); font-weight: 700; }
.bar em { font-style: normal; font-size: 10px; color: var(--muted); }
.tbl tr.row-hot td { background: #fff6f8; }
mark { background: #ffe58a; padding: 0 2px; border-radius: 3px; }
@media (min-width: 768px) { .tbl { display: table; } } /* PC: 표 전체 너비, 모바일: 가로 스크롤 */
