/* ============================================================
   나 사용설명서 교환 웹앱 — 공통 스타일 (참여자 + 관리자)
   ============================================================ */
:root {
  --bg: #FFF9F3;
  --surface: #FFFFFF;
  --ink: #251C17;
  --ink-soft: #4C4038;
  --muted: #887A70;
  --line: #F1E3D7;
  --line-strong: #E7D3C2;
  --coral: #F2633F;
  --coral-deep: #D8482A;
  --coral-soft: #FFE6DC;
  --amber: #F7A81B;
  --amber-soft: #FFF1D6;
  --teal: #0E9C8E;
  --teal-soft: #DFF5F1;
  --plum: #6E56CF;
  --plum-soft: #EEE8FF;
  --radius: 22px;
  --shadow-sm: 0 1px 2px rgba(66, 38, 22, .05), 0 8px 20px -14px rgba(66, 38, 22, .28);
  --shadow-md: 0 24px 50px -30px rgba(66, 38, 22, .45);
  --shadow-lg: 0 40px 90px -50px rgba(66, 38, 22, .6);
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 620px at 8% -8%, #FFE8CE 0%, rgba(255, 232, 206, 0) 62%),
    radial-gradient(820px 520px at 100% 0%, #FFE1E7 0%, rgba(255, 225, 231, 0) 58%),
    radial-gradient(1000px 700px at 50% 118%, #E2F6F2 0%, rgba(226, 246, 242, 0) 62%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font-family: inherit; }
:focus-visible { outline: 3px solid rgba(242, 99, 63, .45); outline-offset: 2px; border-radius: 10px; }
a { color: var(--coral-deep); }

/* ---------------- 상단 바 ---------------- */
.topbar { padding: 18px 20px 6px; }
.topbar-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-logo {
  width: 52px; height: 52px; border-radius: 16px; flex: none; overflow: hidden;
  display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(150deg, #F2633F 0%, #D8482A 100%);
  color: #fff; box-shadow: 0 12px 24px -14px rgba(216, 72, 42, .85);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand-text { min-width: 0; }
.brand-company { font-size: 12px; font-weight: 800; color: var(--coral-deep); letter-spacing: .01em; }
.brand-title { margin: 2px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -.025em; line-height: 1.25; }
.top-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mode-badge {
  font-size: 11px; font-weight: 800; color: #8A4A12; background: var(--amber-soft);
  border: 1px solid #F5D9A3; border-radius: 999px; padding: 6px 11px;
}
.ghost-link {
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.75); color: var(--ink-soft);
  border-radius: 999px; padding: 7px 13px; font-size: 12px; font-weight: 700; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
}
.ghost-link:hover { border-color: #DCC5B4; background: #fff; }

/* ---------------- 단계 ---------------- */
.steps {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 249, 243, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); margin-top: 12px;
}
.steps-inner { max-width: 1120px; margin: 0 auto; display: flex; gap: 6px; padding: 8px 16px; overflow-x: auto; }
.steps-inner::-webkit-scrollbar { display: none; }
.step-tab {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  padding: 8px 13px 8px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted);
}
.step-tab.is-active { background: #fff; color: var(--coral-deep); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.step-num {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--line); color: #6E5F55; font-size: 11px; font-weight: 800; flex: none;
}
.step-tab.is-active .step-num { background: var(--coral); color: #fff; }
.step-tab.is-done .step-num { background: var(--teal-soft); color: var(--teal); }

/* ---------------- 레이아웃 ---------------- */
.app-main { max-width: 1120px; margin: 0 auto; padding: 22px 20px 64px; }
.view { animation: fadeUp .3s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.panel-head p { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }

.hero-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FFF3E6 0%, #FFE9E2 52%, #EFF8F5 100%);
  border: 1px solid #F5DFD0; border-radius: 28px; padding: 30px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.hero-card::after {
  content: ""; position: absolute; right: -70px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(242, 99, 63, .16), rgba(242, 99, 63, 0) 68%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--coral-deep);
  background: #fff; border: 1px solid #F8D9CC; padding: 6px 11px; border-radius: 999px; margin-bottom: 14px;
}
.hero-card h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.04em; line-height: 1.18; }
.hero-card h1 em { font-style: normal; color: var(--coral-deep); }
.hero-lead { margin: 0; max-width: 700px; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.hero-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.hero-step {
  background: rgba(255,255,255,.78); border: 1px solid #F2E2D4; border-radius: 16px; padding: 12px 14px;
}
.hero-step b { display: block; font-size: 12.5px; color: var(--coral-deep); }
.hero-step span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* ---------------- 버튼 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1.5px solid transparent; border-radius: 13px; padding: 11px 16px;
  font-size: 13.5px; font-weight: 800; cursor: pointer; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s;
  line-height: 1.2; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(145deg, #F2633F, #D8482A); color: #fff; box-shadow: 0 14px 26px -16px rgba(216, 72, 42, .9); }
.btn-primary:hover { box-shadow: 0 18px 30px -16px rgba(216, 72, 42, .95); transform: translateY(-1px); }
.btn-soft { background: var(--coral-soft); color: var(--coral-deep); border-color: #FBD3C4; }
.btn-soft:hover { background: #FFDCCE; }
.btn-ghost { background: #fff; color: var(--ink-soft); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: #DCC5B4; background: #FFFCF8; }
.btn-dark { background: var(--ink); color: #FFF7F1; }
.btn-dark:hover { background: #3A2C24; }
.btn-teal { background: var(--teal-soft); color: var(--teal); border-color: #C9EAE4; }
.btn-teal:hover { background: #D3F1EB; }
.btn-sm { padding: 8px 12px; font-size: 12px; border-radius: 11px; }
.btn-lg { padding: 15px 20px; font-size: 15px; border-radius: 15px; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- 폼 ---------------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin-bottom: 16px; }
.field > label, .field-label { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.field-label .hint { font-weight: 600; color: var(--muted); font-size: 11.5px; }
.field-label .counter { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: 13px;
  padding: 12px 14px; font-size: 14px; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input { height: 46px; }
.textarea { min-height: 84px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: #B6A79B; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(242, 99, 63, .12); }
.input:disabled { background: #FAF5F0; color: #B6A79B; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------------- 코드 입장 ---------------- */
.join-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: stretch; }
.code-box {
  display: flex; flex-direction: column; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-sm);
}
.code-input {
  width: 100%; height: 74px; text-align: center; letter-spacing: .38em; text-indent: .38em;
  font-size: 34px; font-weight: 900; color: var(--ink); text-transform: uppercase;
  border: 2px solid var(--line-strong); border-radius: 18px; background: #FFFDFB;
}
.code-input::placeholder { color: #E2D3C6; letter-spacing: .3em; text-indent: .3em; }
.code-input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 5px rgba(242, 99, 63, .12); }
.join-note { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.sample-hint { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 12px; color: var(--muted); }

/* ---------------- 팀 / 이름 선택 ---------------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.team-card {
  border: 1.5px solid var(--line-strong); background: #fff; border-radius: 16px; padding: 15px 16px;
  cursor: pointer; text-align: left; transition: all .15s; position: relative;
}
.team-card:hover { border-color: var(--coral); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.team-card b { display: block; font-size: 15px; letter-spacing: -.01em; }
.team-card small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.team-card.is-on { border-color: var(--coral); background: var(--coral-soft); }
.team-card.is-on b { color: var(--coral-deep); }
.name-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 9px; }
.name-card {
  border: 1.5px solid var(--line-strong); background: #fff; border-radius: 14px; padding: 13px 14px;
  cursor: pointer; text-align: left; transition: all .15s; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.name-card:hover { border-color: var(--coral); background: #FFFCF9; }
.name-card b { font-size: 14px; }
.name-card .go { font-size: 11px; color: var(--muted); }
.name-card.is-on { border-color: var(--coral); background: var(--coral-soft); }
.name-card.is-on b { color: var(--coral-deep); }
.name-card.is-done { border-style: dashed; }
.name-card.is-done .go { color: var(--teal); font-weight: 800; }

.my-type {
  display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px;
  border-radius: 20px; border: 1px solid var(--line); background: #FFFCF8;
}
.my-type .big-emoji { font-size: 40px; line-height: 1; }
.my-type h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.my-type p { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.my-type .spacer { flex: 1; }
.type-badge {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 11px;
  font-size: 11.5px; font-weight: 800; background: var(--type-soft, var(--coral-soft)); color: var(--type-ink, var(--coral-deep));
}

/* ---------------- 작성 화면 ---------------- */
.build-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: start; }
.preview-col { position: sticky; top: 74px; }
.preview-stage {
  border-radius: 26px; padding: 18px;
  background:
    radial-gradient(420px 300px at 12% 0%, #FFE6D4 0%, rgba(255, 230, 212, 0) 70%),
    radial-gradient(420px 300px at 92% 100%, #DDF3EE 0%, rgba(221, 243, 238, 0) 70%),
    linear-gradient(160deg, #FFF6EC, #FFEDE8 55%, #EDF8F5);
  border: 1px solid #F4E1D3; display: grid; place-items: center;
}
.preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.preview-actions .btn { padding: 10px 8px; font-size: 12px; }

.section-block { padding: 18px 0; border-top: 1px dashed var(--line-strong); }
.section-block:first-of-type { padding-top: 4px; border-top: 0; }
.section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.section-title h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.section-title .count { margin-left: auto; font-size: 11.5px; font-weight: 800; color: var(--muted); background: #F7F1EB; border-radius: 999px; padding: 4px 9px; }
.section-desc { margin: 0 0 12px; font-size: 12px; color: var(--muted); line-height: 1.55; }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 9px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all .14s; text-align: left; line-height: 1.35;
}
.chip:hover { border-color: #DCC5B4; transform: translateY(-1px); }
.chip.is-on { background: var(--coral-soft); border-color: var(--coral); color: var(--coral-deep); font-weight: 800; }
.chip.custom { background: #F4EFFF; border-color: #D9CCF0; color: #5B44B8; }
.chip .x { margin-left: 6px; opacity: .6; }
.custom-add { display: flex; gap: 7px; margin-top: 10px; align-items: stretch; }
.custom-add .input { flex: 1; min-width: 0; }
.custom-add .btn { flex: none; }
.custom-add .input { height: 42px; font-size: 13px; }
.strength-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.strength-inputs .input { height: 44px; font-size: 13.5px; font-weight: 700; text-align: center; }
.sos-block { background: #FFF9F5; border: 1px solid #FBE3D6; border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.sos-block .q { font-size: 12px; font-weight: 900; color: var(--coral-deep); margin-bottom: 7px; }
.sos-block .textarea { min-height: 62px; font-size: 13px; }

.build-actions {
  position: static; z-index: 20; margin-top: 18px;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 20px; padding: 13px; box-shadow: 0 -8px 30px -20px rgba(66,38,22,.4);
  display: flex; gap: 9px; flex-wrap: wrap; align-items: center;
}
.build-actions .btn-primary { flex: 1; min-width: 180px; }
.build-actions .save-note { font-size: 11.5px; color: var(--muted); }


/* ---------- 카드: 15문항 ---------- */
.mc-focus { margin: 10px 0 0; font-size: 11px; font-weight: 700; color: #9A8574; line-height: 1.45; }
.mc-focus b { color: var(--acc-ink, var(--coral-deep)); font-weight: 900; letter-spacing: .02em; }
.mc-qa { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.mc-qa-col { min-width: 0; }
.mc-group { margin-bottom: 10px; }
.mc-group h3 { margin: 0 0 6px; font-size: 9.5px; font-weight: 900; letter-spacing: .04em; color: var(--acc, var(--coral)); display: flex; align-items: center; gap: 4px; }
.mc-group dl { margin: 0; }
.mc-item { margin-bottom: 6px; }
.mc-item dt { font-size: 8.6px; font-weight: 800; color: #A2917F; line-height: 1.3; }
.mc-item dd { margin: 1px 0 0; font-size: 9.8px; line-height: 1.45; color: #3E322A; word-break: keep-all; }

/* ---------- 작성: 문항 ---------- */
.type-note {
  background: #FFFBF7; border: 1px solid #F3E2D4; border-radius: 14px;
  padding: 11px 13px; font-size: 11.5px; line-height: 1.6; color: #7A695C; margin-bottom: 18px;
}
.qgroup { margin-bottom: 24px; }
.qgroup-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 13px; }
.qgroup-head h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.qgroup-icon { font-size: 18px; line-height: 1; }
.qgroup-count { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--muted); }
.q { margin-bottom: 17px; }
.q-label { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); margin-bottom: 7px; }
.q-opts { display: flex; flex-direction: column; gap: 6px; }
.q-opt {
  display: flex; gap: 8px; align-items: flex-start; text-align: left;
  border: 1.5px solid var(--line-strong); background: #fff; border-radius: 13px;
  padding: 10px 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft);
  cursor: pointer; transition: border-color .14s, background .14s, color .14s;
}
.q-opt:hover { border-color: #DCC5B4; }
.q-opt.is-on { border-color: var(--coral); background: var(--coral-soft); color: var(--coral-deep); font-weight: 700; }
.q-own { flex: none; font-size: 9.5px; font-weight: 900; background: #fff; border: 1px solid #F5C4B2; color: var(--coral-deep); border-radius: 999px; padding: 2px 6px; margin-top: 1px; white-space: nowrap; }
.q-opt.is-on .q-own { background: #fff; }
.q-text { flex: 1; }
.q-custom-row { margin-top: 6px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.q-custom-row .input { flex: 1; min-width: 160px; }
.q-more { flex: none; border: 0; background: transparent; color: var(--coral-deep); font-size: 11.5px; font-weight: 800; cursor: pointer; padding: 6px 4px; text-decoration: underline; text-underline-offset: 2px; }
.allopts { max-height: 56vh; overflow: auto; margin: 12px -4px; padding: 0 4px; }
.allopts-group { margin-bottom: 12px; }
.allopts-head { font-size: 11px; font-weight: 900; color: var(--muted); margin-bottom: 5px; }
.allopts-item { display: block; width: 100%; text-align: left; border: 1px solid var(--line-strong); background: #fff; border-radius: 11px; padding: 8px 10px; font-size: 12px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; margin-bottom: 5px; }
.allopts-item:hover { border-color: var(--coral); }
.allopts-item.is-on { border-color: var(--coral); background: var(--coral-soft); color: var(--coral-deep); font-weight: 700; }
.allopts-label { display: block; font-size: 10px; font-weight: 800; color: #A2917F; margin-bottom: 2px; }
.allopts-item.is-on .allopts-label { color: var(--coral-deep); }
.q-custom { height: 40px; font-size: 12px; }
.q-custom.is-on { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(110, 86, 207, .1); }

/* ---------------- 카드 ---------------- */
.manual-card {
  width: 100%; max-width: 512px; background: #fff; border-radius: 24px;
  box-shadow: 0 34px 64px -38px rgba(90, 48, 26, .55), 0 2px 0 rgba(255, 255, 255, .8) inset;
  overflow: hidden; border: 1px solid #F3E2D4;
}
.mc-bar { height: 9px; background: var(--acc, var(--coral)); }
.mc-body { padding: 22px 22px 18px; }
.mc-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9.5px; font-weight: 900; letter-spacing: .16em; color: #A2917F; text-transform: uppercase; }
.mc-brand .date { letter-spacing: .04em; font-weight: 700; color: #B5A597; }
.mc-name { margin: 10px 0 0; font-size: 29px; line-height: 1.1; letter-spacing: -.04em; color: var(--ink); }
.mc-name span { font-size: 18px; font-weight: 800; color: var(--ink-soft); margin-left: 1px; }
.mc-sub { margin: 2px 0 0; font-size: 15px; font-weight: 800; letter-spacing: .12em; color: var(--acc-ink, var(--coral-deep)); }
.mc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mc-pill {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800;
  padding: 4px 9px; border-radius: 999px; background: #F8F2EB; color: #6E5F55; border: 1px solid #F0E4D8;
}
.mc-pill.type { background: var(--acc-soft, var(--coral-soft)); color: var(--acc-ink, var(--coral-deep)); border-color: transparent; }
.mc-tag { margin: 10px 0 0; font-size: 11.5px; font-weight: 800; letter-spacing: -.01em; color: #9A8574; line-height: 1.4; }
.mc-intro {
  margin: 10px 0 0; padding: 10px 12px; font-size: 12.5px; line-height: 1.6; color: #4A3D34;
  background: #FFFBF7; border-left: 4px solid var(--acc, var(--coral)); border-radius: 0 12px 12px 0;
}
.mc-sec { margin-top: 15px; }
.mc-sec h3, .mc-sos h3 {
  margin: 0 0 7px; font-size: 10.5px; font-weight: 900; letter-spacing: .07em;
  color: #8B7A6C; display: flex; align-items: center; gap: 5px;
}
.mc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.mc-chips span { font-size: 11px; font-weight: 800; background: var(--acc-soft, var(--coral-soft)); color: var(--acc-ink, var(--coral-deep)); border-radius: 999px; padding: 5px 10px; }
.mc-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mc-sec ul, .mc-sec ol { margin: 0; padding: 0; list-style: none; }
.mc-sec li { position: relative; padding-left: 12px; font-size: 11.5px; line-height: 1.5; color: #3E322A; margin-bottom: 5px; }
.mc-sec li::before { content: ""; position: absolute; left: 0; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--acc, var(--coral)); }
.mc-sec ul.warn li::before { background: #E0563C; }
.mc-sec ol { counter-reset: tip; }
.mc-sec ol li { padding-left: 17px; }
.mc-sec ol li::before {
  counter-increment: tip; content: counter(tip); width: 13px; height: 13px; border-radius: 4px;
  background: #F4EDE6; color: #8B7A6C; font-size: 8.5px; font-weight: 900; display: grid; place-items: center; top: 3px;
}
.mc-sos { margin-top: 15px; background: #FFF7F2; border: 1px solid #FBE3D6; border-radius: 14px; padding: 12px 13px; }
.mc-sos .sos-line { margin-top: 6px; }
.mc-sos .sos-line:first-of-type { margin-top: 0; }
.mc-sos .sl-q { font-size: 10px; font-weight: 900; color: var(--coral-deep); letter-spacing: .02em; }
.mc-sos .sl-a { font-size: 11.5px; line-height: 1.5; color: #44372E; margin-top: 1px; }
.mc-foot { margin-top: 16px; padding-top: 11px; border-top: 1px dashed #EFDDCE; font-size: 9.5px; line-height: 1.6; color: #A2917F; text-align: center; }
.mc-foot b { color: #7A695C; font-weight: 800; }

/* ---------------- 팀 보드 ---------------- */
.team-hero {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(120deg, #FFF4E9, #FFECE7 60%, #ECF8F5);
  border: 1px solid #F5DFD0; border-radius: 24px; padding: 22px 24px; margin-bottom: 18px;
}
.team-hero h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.team-hero p { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); }
.team-hero .spacer { flex: 1; }
.progress-pill {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 9px 15px; font-size: 13px; font-weight: 800; color: var(--ink-soft);
}
.progress-pill b { color: var(--coral-deep); font-size: 16px; }

.sync-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted); margin-bottom: 14px;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.member-slot { position: relative; }
.member-slot .manual-card { max-width: none; }
.member-slot .mine { box-shadow: 0 0 0 3px rgba(242,99,63,.22), 0 34px 64px -38px rgba(90,48,26,.55); }
.slot-label {
  display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: var(--muted);
  margin-bottom: 7px; padding-left: 4px;
}
.slot-label .tag { background: var(--teal-soft); color: var(--teal); border-radius: 999px; padding: 3px 8px; font-size: 10.5px; }
.pending-card {
  border: 2px dashed var(--line-strong); border-radius: 22px; background: rgba(255,255,255,.55);
  min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); text-align: center; padding: 24px;
}
.pending-card .ph-emoji { font-size: 30px; opacity: .55; }
.pending-card b { color: var(--ink-soft); font-size: 14px; }
.pending-card span { font-size: 11.5px; }

.team-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px;
  background: var(--ink); color: #FFF7F1; border-radius: 22px; padding: 20px 22px;
}
.team-cta h3 { margin: 0; font-size: 16px; }
.team-cta p { margin: 4px 0 0; font-size: 12px; color: #D9C8BB; }
.team-cta .spacer { flex: 1; }

/* ---------------- 토스트 / 모달 ---------------- */
#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: #251C17; color: #FFF7F1; padding: 12px 18px; border-radius: 14px;
  font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200;
  max-width: calc(100vw - 40px); text-align: center; box-shadow: var(--shadow-md);
}
#toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.modal-back {
  position: fixed; inset: 0; background: rgba(37, 28, 23, .5); z-index: 300;
  display: grid; place-items: center; padding: 20px; animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 24px; max-width: 440px; width: 100%; padding: 24px;
  box-shadow: var(--shadow-lg); max-height: 88vh; overflow: auto;
}
.modal h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.02em; }
.modal p { margin: 0 0 8px; font-size: 13px; color: var(--ink-soft); line-height: 1.65; }
.modal .modal-actions { display: flex; gap: 8px; margin-top: 16px; }
.modal .modal-actions .btn { flex: 1; }
.modal ol { margin: 8px 0; padding-left: 20px; font-size: 13px; color: var(--ink-soft); line-height: 1.8; }
.modal .thumb-preview { width: 100%; border-radius: 14px; border: 1px solid var(--line); margin-top: 10px; }

/* ---------------- 관리자 ---------------- */
.admin-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-nav { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 12px; position: sticky; top: 74px; }
.admin-nav button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  border: 0; background: transparent; border-radius: 12px; padding: 11px 12px;
  font-size: 13px; font-weight: 700; color: var(--ink-soft); cursor: pointer; margin-bottom: 2px;
}
.admin-nav button:hover { background: #FFF7F1; }
.admin-nav button.is-on { background: var(--coral-soft); color: var(--coral-deep); }
.admin-nav .nav-foot { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--muted); line-height: 1.5; }
.admin-panel { display: none; }
.admin-panel.is-active { display: block; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-sm); }
.stat-card .k { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.stat-card .v { margin-top: 6px; font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.stat-card .s { margin-top: 2px; font-size: 11px; color: var(--muted); }

.drop-zone {
  border: 2px dashed var(--line-strong); border-radius: 18px; background: #FFFCF8;
  padding: 22px; text-align: center; cursor: pointer; transition: all .15s;
}
.drop-zone:hover, .drop-zone.is-over { border-color: var(--coral); background: #FFF6F0; }
.drop-zone b { display: block; font-size: 14px; }
.drop-zone small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; background: #fff; }
table.data th, table.data td { padding: 9px 10px; border-bottom: 1px solid #F7EDE4; text-align: left; vertical-align: middle; }
table.data th { background: #FFF9F3; font-size: 11.5px; color: var(--muted); font-weight: 800; position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: 0; }
table.data input, table.data select { height: 34px; font-size: 12.5px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--line-strong); width: 100%; background: #fff; }
table.data .row-del { border: 0; background: #FDE7EB; color: #96233A; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; font-weight: 900; }
.type-chip { display: inline-block; border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 800; }

.qr-box { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: center; }
.qr-holder { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: grid; place-items: center; min-height: 200px; }
.qr-holder img, .qr-holder canvas { display: block; max-width: 100%; }
.code-display {
  font-size: 30px; font-weight: 900; letter-spacing: .26em; color: var(--coral-deep);
  background: #FFF4EE; border: 1px dashed #F5C4B2; border-radius: 14px; padding: 10px 16px; display: inline-block;
}
.url-field { display: flex; gap: 7px; margin-top: 10px; }
.url-field .input { font-size: 12.5px; height: 40px; }
.logo-preview { width: 92px; height: 92px; border-radius: 18px; border: 1px solid var(--line); background: #fff; object-fit: contain; }

.upload-note { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.err-text { color: #C0452A; font-size: 12px; font-weight: 700; }

.team-status { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.team-status .ts-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; flex-wrap: wrap; }
.team-status .ts-head b { font-size: 14px; }
.team-status .ts-head .spacer { flex: 1; }
.bar { height: 8px; border-radius: 999px; background: #F5EBE3; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #F2633F, #F7A81B); }
.member-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.member-chip { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 4px 9px; background: #F7F1EB; color: var(--muted); }
.member-chip.is-done { background: var(--teal-soft); color: var(--teal); }

/* ---------------- 반응형 ---------------- */
@media (max-width: 980px) {
  .build-grid { grid-template-columns: 1fr; }
  .build-actions { position: sticky; bottom: 8px; background: rgba(255,255,255,.96); }
  .preview-col { position: static; order: -1; }
  .preview-stage .manual-card { max-width: 420px; }
  .join-wrap { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
  .admin-nav button { width: auto; white-space: nowrap; margin: 0; }
  .admin-nav .nav-foot { display: none; }
  .qr-box { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .app-main { padding: 16px 14px 80px; }
  .panel { padding: 18px; border-radius: 20px; }
  .hero-card { padding: 22px; border-radius: 22px; }
  .hero-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .strength-inputs { grid-template-columns: 1fr; }
  .mc-2col { grid-template-columns: 1fr; gap: 0; }
  .mc-qa { gap: 10px; }
  .mc-item dd { font-size: 8.6px; }
  .mc-item dt { font-size: 7.8px; }
  .mc-group h3 { font-size: 8.6px; }
  .mc-name { font-size: 26px; }
  .mc-body { padding: 18px 16px 14px; }
  .card-grid { grid-template-columns: 1fr; }
  .preview-actions { grid-template-columns: 1fr; }
  .team-hero h2 { font-size: 20px; }
  .topbar { padding: 14px 14px 4px; }
  .brand-title { font-size: 16px; }
  .brand-logo { width: 44px; height: 44px; border-radius: 13px; }
}

