*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,'Segoe UI','Apple SD Gothic Neo','Malgun Gothic',sans-serif;background:#f8fafc;color:#0f172a;padding:20px;line-height:1.5}
.hidden{display:none !important}

#app{max-width:1280px;margin:0 auto}
header{margin-bottom:20px}
h1{font-size:22px;font-weight:700}
.subtitle{color:#64748b;font-size:13px;margin-top:4px}

.card{background:#fff;border-radius:14px;padding:20px;box-shadow:0 1px 3px rgba(0,0,0,0.05);margin-bottom:16px}
.card h2{font-size:18px;font-weight:700;margin-bottom:8px}

label{display:block;font-size:13px;font-weight:600;color:#475569;margin-bottom:6px}
input,select,textarea{width:100%;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;font-family:inherit}
input:focus,select:focus,textarea:focus{outline:none;border-color:#0f172a}

button,.primary,.ghost,.danger{cursor:pointer;border:none;font-family:inherit;font-size:14px;font-weight:600;padding:10px 16px;border-radius:8px;display:inline-block;text-decoration:none;text-align:center}
.primary{background:#0f172a;color:#fff;width:100%;margin-top:12px}
.primary:hover{background:#1e293b}
.primary.big{padding:14px;font-size:15px}
.danger{background:#dc2626;color:#fff;width:100%;margin-top:12px;padding:14px;font-size:15px}
.danger:hover{background:#b91c1c}
.danger.safe{background:#16a34a}
.danger.safe:hover{background:#15803d}
.ghost{background:#f1f5f9;color:#475569;width:100%;margin-top:8px}
.ghost:hover{background:#e2e8f0}

.test-bar{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:10px 14px;margin-bottom:14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.toggle-row{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer;font-weight:500;color:#334155;margin:0}
.toggle-row input[type=checkbox]{width:auto;margin:0}
.test-phone{flex:1;min-width:180px;padding:6px 10px;font-size:13px}

.warn-box{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;padding:12px 14px;border-radius:8px;font-size:13px;line-height:1.5;margin-bottom:12px}
.warn-box.safe{background:#f0fdf4;border-color:#bbf7d0;color:#166534}

.field{margin-bottom:16px}
.hint{font-size:12px;color:#64748b;margin-top:8px;line-height:1.5}

.legend{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.legend span{font-size:12px;padding:4px 10px;border-radius:12px;font-weight:500}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px}

.scard{background:#fff;border-radius:14px;padding:16px;border-top:6px solid;cursor:pointer;transition:transform 0.15s,box-shadow 0.15s;position:relative}
.scard:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.08)}
.scard-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:10px}
.sid{font-size:11px;color:#94a3b8;font-weight:600}
.실명{font-size:15px;font-weight:700}
.회차lbl{font-size:11px;color:#475569;margin-top:2px}
.count{background:#0f172a;color:#fff;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px}
.팀명{font-size:11px;color:#64748b;margin-top:6px}
.멤버칩{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.멤버칩 span{background:#f1f5f9;color:#334155;font-size:11px;padding:2px 7px;border-radius:5px}

.status-bar{display:flex;align-items:center;gap:8px;margin-top:10px;padding:6px 10px;background:#f8fafc;border-radius:6px;font-size:12px}
.status-pending{color:#64748b}
.status-sent{color:#2563eb}
.status-done{color:#16a34a}
.resp-count{margin-left:auto;font-weight:600}

.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{padding:8px 12px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;font-size:13px;cursor:pointer;user-select:none}
.chip.on{background:#0f172a;color:#fff;border-color:#0f172a}

.radio-group{display:flex;gap:8px}
.radio-chip{display:flex;align-items:center;gap:6px;padding:10px 14px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;cursor:pointer;flex:1;justify-content:center;font-weight:500;color:#475569;margin:0}
.radio-chip:has(input:checked){background:#0f172a;color:#fff;border-color:#0f172a}
.radio-chip input[type=radio]{display:none}

.menu-preview{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:10px 14px;margin-top:10px}
.menu-preview img{width:72px;height:72px;border-radius:8px;object-fit:cover;background:#f1f5f9}
.menu-preview-name{font-size:14px;font-weight:600;color:#0f172a}

.slot-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:14px 16px;margin-bottom:16px}
.slot-line{display:flex;align-items:center;gap:10px;font-size:14px}
.slot-line + .slot-line{margin-top:4px}
.slot-key{font-size:16px;width:20px}
.slot-val{color:#0f172a;font-weight:600}

.modal{position:fixed;inset:0;background:rgba(0,0,0,0.5);display:flex;align-items:center;justify-content:center;padding:20px;z-index:100}
.modal-content{background:#fff;border-radius:14px;padding:24px;max-width:520px;width:100%;max-height:90vh;overflow-y:auto}
.modal-content h3{font-size:18px;font-weight:700;margin-bottom:6px}
.modal-sub{font-size:13px;color:#64748b;margin-bottom:14px}
.msg-preview{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:12px;font-size:13px;color:#334155;white-space:pre-wrap;margin-bottom:12px;font-family:'D2Coding','Consolas',monospace}

.step-tabs{display:flex;gap:4px;background:#f1f5f9;padding:4px;border-radius:10px;margin-bottom:16px}
.step-tab{flex:1;background:transparent;color:#475569;padding:8px;font-size:13px;border-radius:7px}
.step-tab.active{background:#fff;color:#0f172a;box-shadow:0 1px 2px rgba(0,0,0,0.06)}

.resp-summary{display:flex;gap:10px;margin-bottom:12px}
.resp-summary > div{flex:1;background:#f8fafc;border-radius:8px;padding:10px;text-align:center;font-size:12px;color:#64748b}
.resp-summary b{display:block;font-size:18px;color:#0f172a;margin-bottom:2px}
.resp-slot{background:#f0f9ff;border:1px solid #bae6fd;border-radius:8px;padding:10px 14px;font-size:13px;margin-bottom:14px;color:#0c4a6e}

.resp-h{font-size:14px;font-weight:700;margin:14px 0 8px}
.order-list{background:#fff;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;margin-bottom:8px}
.order-row{display:flex;justify-content:space-between;padding:8px 12px;border-bottom:1px solid #f1f5f9;font-size:13px}
.order-row:last-child{border-bottom:none}
.order-row .qty{font-weight:700;color:#0f172a}
.order-row.total{background:#f8fafc;font-weight:700}

.attendee-list{background:#fff;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;margin-bottom:8px}
.attendee-row{display:flex;align-items:start;gap:10px;padding:8px 12px;border-bottom:1px solid #f1f5f9;font-size:13px}
.attendee-row:last-child{border-bottom:none}
.attendee-row .name{font-weight:600;color:#0f172a;min-width:56px}
.attendee-row .menu{color:#334155;flex:1}
.attendee-row .note{color:#64748b;font-size:12px;font-style:italic;margin-top:2px}
.temp-hot{background:#fee2e2;color:#991b1b;font-size:11px;padding:1px 6px;border-radius:4px;font-weight:600;margin-left:4px}
.temp-ice{background:#dbeafe;color:#1e40af;font-size:11px;padding:1px 6px;border-radius:4px;font-weight:600;margin-left:4px}
.temp-any{background:#f1f5f9;color:#475569;font-size:11px;padding:1px 6px;border-radius:4px;font-weight:600;margin-left:4px}

.other-details{margin-top:14px;font-size:13px}
.other-details summary{cursor:pointer;color:#475569;font-weight:600;padding:6px 0}
.other-row{display:flex;gap:10px;padding:4px 12px;font-size:13px;color:#475569}
.other-row .badge-decline{background:#fee2e2;color:#991b1b;font-size:11px;padding:2px 6px;border-radius:4px;font-weight:600}
.other-row .badge-pending{background:#fef3c7;color:#92400e;font-size:11px;padding:2px 6px;border-radius:4px;font-weight:600}
