:root{--teal:#0F766E;--teal-l:#CCFBF1;--ink:#0F172A;--sub:#475569;--line:#CBD5E1;--red:#B91C1C;--bg:#F1F5F9}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Noto Sans KR","Malgun Gothic",system-ui,sans-serif;font-size:17px;-webkit-text-size-adjust:100%}
main{max-width:640px;margin:0 auto;padding:12px 14px 40px}
header{padding:14px 4px}header h1{margin:0 0 4px;font-size:24px;color:var(--teal)}header p{margin:0;color:var(--sub);font-size:15px}
.box{background:#fff;border-radius:16px;padding:14px;margin:12px 0;box-shadow:0 1px 3px rgba(15,23,42,.08)}
.box h2{margin:0 0 10px;font-size:18px}
label{display:block;margin:12px 0 6px;font-weight:700;font-size:15px}label small{font-weight:400;color:var(--sub)}
textarea{width:100%;border:2px solid var(--line);border-radius:12px;padding:10px;font-size:17px;font-family:inherit;resize:vertical}
textarea:focus{outline:none;border-color:var(--teal)}
.kinds{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.kind{display:flex;flex-direction:column;gap:4px;padding:14px 10px;border:2px solid var(--line);border-radius:14px;background:#fff;text-align:left;font-size:17px;color:var(--ink)}
.kind small{color:var(--sub);font-size:13px}.kind.on{border-color:var(--teal);background:var(--teal-l)}
.kinds.two .chip{min-height:52px;font-size:17px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.chip{min-height:44px;padding:0 16px;border:2px solid var(--line);border-radius:22px;background:#fff;font-size:16px;color:var(--ink)}
.chip.on{border-color:var(--teal);background:var(--teal);color:#fff;font-weight:700}
.names .chip{min-width:84px}
.photos{display:flex;flex-wrap:wrap;gap:10px}
.ph{position:relative}.ph img{width:96px;height:96px;object-fit:cover;border-radius:10px;border:1px solid var(--line)}
.ph button{position:absolute;top:-8px;right:-8px;width:28px;height:28px;border-radius:14px;border:0;background:var(--red);color:#fff;font-size:14px}
.phadd{display:flex;align-items:center;justify-content:center;width:150px;height:96px;margin:0;border:2px dashed var(--line);border-radius:10px;font-weight:600;color:var(--sub);text-align:center}
.phadd input{display:none}
.send{display:block;width:100%;height:58px;margin-top:16px;border:0;border-radius:14px;background:var(--teal);color:#fff;font-size:20px;font-weight:800}
.send:disabled{opacity:.6}
.err{color:var(--red);font-weight:700;min-height:1em}.muted{color:var(--sub);font-size:14px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.done{text-align:center;padding:28px 16px}.done h1{color:var(--teal)}

.ngrp{margin:8px 0}.ngrp>b{display:block;font-size:14px;color:var(--sub);margin-bottom:2px}.names .chips{margin-top:4px}

/* 설문조사 (2026-11-16) */
.kinds.three{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.stars{display:flex;align-items:center;gap:4px;margin:2px 0 6px}.star{width:48px;height:48px;border:0;background:none;font-size:38px;line-height:1;color:#CBD5E1;padding:0}.star.on{color:#F59E0B}
.req{color:var(--red);font-weight:700}

/* 기다리는 중 표시 (2026-11-16 사용자 '처음 접속도 느려서 끊긴 줄 알아 · 열리는 중·등록 중인 걸 알아야') */
.loading{text-align:center;padding:28px 16px}.loading h1{font-size:20px;margin:10px 0 6px}
.spin{width:44px;height:44px;margin:4px auto 6px;border:5px solid #CCFBF1;border-top-color:#0F766E;border-radius:50%;animation:sfspin .9s linear infinite}
@keyframes sfspin{to{transform:rotate(360deg)}}
.wait{position:fixed;inset:0;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;z-index:50;padding:16px}
.wait .box{width:100%;max-width:420px;text-align:center;padding:24px 18px}.wait h2{margin:6px 0}
.pbar{height:12px;background:#E2E8F0;border-radius:6px;overflow:hidden;margin:12px 0 6px}.pbar i{display:block;height:100%;width:0;background:#0F766E;transition:width .3s}
.retry{margin-top:12px}
