/* 시그마 웹 · Fable 스타일 (fable-review 제안본, 2026-10-16)
   - 토큰은 디자인규칙.md의 App.html :root 와 같은 이름 (--ink --sub --mut --line --brand --brand2 --up --dn --ok --warn --err --sh)
   - 부품 이름은 전부 fx- (sigma-fable.css 기준 v1에서 쓰는 것만 그대로 가져오고, 로그인용 부품 fx-auth·fx-brand·fx-field·fx-msg 만 보탬)
   - 화면은 전부 <div class="fx"> 안에 그림 */
:root{--bg:#F3F5FA;--card:#fff;--ink:#141A2A;--sub:#6B7385;--mut:#9AA1B2;--line:#E7EAF1;--brand:#4F46E5;--brand2:#7C3AED;
  --up:#E0343A;--dn:#2F6BE0;--ok:#16A36A;--warn:#F59E0B;--err:#E0343A;--sh:0 1px 2px rgba(20,26,42,.04),0 4px 14px rgba(20,26,42,.05)}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;
  font:14px/1.5 Pretendard,"Apple SD Gothic Neo","Noto Sans KR",-apple-system,BlinkMacSystemFont,"Malgun Gothic",sans-serif;letter-spacing:-.15px}
button,input,select{font-family:inherit}

/* ── 기준 부품 (sigma-fable.css v1에서 그대로) ── */
.fx{--fx-r:16px;--fx-r2:12px;--fx-sky:#0284C7;--fx-soft:#F7F8FC;--fx-soft2:#F1F3F8;--fx-sel:#F5F4FF;--fx-hero:#141A2A;--fx-in:#D9DEE8;font-size:14px;letter-spacing:-.15px;color:var(--ink)}
.fx *{box-sizing:border-box}
.fx .fx-num{font-variant-numeric:tabular-nums}
.fx .fx-sp{flex:1}
.fx-pgh{display:flex;align-items:center;gap:10px;margin:4px 0 12px}
.fx-pgh b{font-size:19px;font-weight:800;display:block;letter-spacing:-.4px}
.fx-pgh small{color:var(--sub);font-size:12.5px}
.fx-pill{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 10px;font-size:11.5px;font-weight:700;white-space:nowrap;background:var(--fx-soft2);color:var(--sub)}
.fx-pill.live{background:#ECFDF3;color:#15803D}
.fx-pill.live i{width:7px;height:7px;border-radius:50%;background:#16A36A;box-shadow:0 0 0 3px rgba(22,163,106,.18)}
.fx-pill.ai{background:#F3E8FF;color:#6D28D9}
.fx-pill.warn{background:#FEF3C7;color:#B45309}
.fx-pill.sky{background:#E0F2FE;color:#0369A1}
.fx-pill.glass{background:rgba(255,255,255,.12);color:#fff}
.fx-card{background:#fff;border:1px solid var(--line);border-radius:var(--fx-r);box-shadow:var(--sh);padding:16px;margin-bottom:12px}
.fx-ch{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.fx-ch b{font-size:15.5px;font-weight:800}
.fx-ch small{color:var(--sub);font-size:12px}
.fx-note{font-size:11.5px;color:var(--mut);line-height:1.55;margin-top:10px}
.fx-hero{border-radius:20px;padding:20px 20px 16px;color:#fff;margin-bottom:12px;position:relative;overflow:hidden;box-shadow:0 10px 30px rgba(20,26,42,.25);
  background:radial-gradient(1200px 400px at 10% -20%,#6D5BFF 0%,transparent 60%),radial-gradient(800px 300px at 100% 120%,#1EA7FD 0%,transparent 55%),var(--fx-hero)}
.fx-hero-hd{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap}
.fx-hero-nm{font-size:20px;font-weight:800;letter-spacing:-.4px}
.fx-hero-nm small{display:block;font-size:12px;color:rgba(255,255,255,.65);font-weight:500;margin-top:3px}
.fx-hero-foot{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px;font-size:12px;color:rgba(255,255,255,.75)}
.fx-hero-foot b{color:#fff}
.fx-kpi{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:16px}
.fx-kpi>div{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:11px 13px}
.fx-kpi small{display:block;font-size:11.5px;color:rgba(255,255,255,.65);font-weight:500}
.fx-kpi b{display:block;font-size:24px;font-weight:800;letter-spacing:-.5px;margin:2px 0 1px;font-variant-numeric:tabular-nums}
.fx-kpi em{display:block;font-style:normal;font-size:11.5px;color:rgba(255,255,255,.7)}
.fx-btn{border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 13px;font-size:13px;font-weight:600;color:var(--ink);cursor:pointer;font-family:inherit}
.fx-btn.pri{background:var(--ink);color:#fff;border-color:var(--ink)}
.fx-btn.brand{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;border:0;box-shadow:0 4px 12px rgba(79,70,229,.3)}
.fx-btn.sm{padding:5px 10px;font-size:12px;border-radius:8px}
.fx-btn:disabled{opacity:.5;cursor:default}
.fx-btns{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px}
.fx-tblw{overflow-x:auto}
.fx-tbl{width:100%;border-collapse:collapse;font-size:12.5px}
.fx-tbl th{font-size:11px;color:var(--sub);font-weight:700;text-align:right;padding:7px 8px;border-bottom:1px solid var(--line);white-space:nowrap;background:none}
.fx-tbl td{padding:8px;text-align:right;border-bottom:1px solid var(--fx-soft2);white-space:nowrap}
.fx-tbl th:first-child,.fx-tbl td:first-child{text-align:left}
.fx-tbl.fx-txt th,.fx-tbl.fx-txt td{text-align:left}   /* 글자 위주 표(사람·초대코드)는 왼쪽 맞춤 */
.fx-steps{display:flex;gap:6px;margin-bottom:12px}
.fx-steps>div{flex:1;padding:8px 10px;border-radius:10px;background:var(--fx-soft2);font-size:12px;font-weight:700;color:var(--sub);display:flex;gap:6px;align-items:center}
.fx-steps>div.on{background:var(--fx-hero);color:#fff}
.fx-steps em{font-style:normal;width:18px;height:18px;border-radius:50%;background:#E3E6EF;display:inline-flex;align-items:center;justify-content:center;font-size:11px;flex:none}
.fx-steps>div.on em{background:rgba(255,255,255,.2)}
.fx-frm{display:grid;grid-template-columns:1fr 1fr;gap:10px}.fx-frm .full{grid-column:1/-1}
.fx-frm label{display:block;font-size:12px;font-weight:700;color:#3A4254;margin:0 0 5px}
.fx-frm input,.fx-frm select{width:100%;border:1px solid var(--fx-in);border-radius:10px;padding:9px 11px;font-size:13.5px;background:#fff;font-family:inherit;color:var(--ink)}
.fx-alert{display:flex;gap:10px;align-items:center;background:#FFF8E1;border:1px solid #FDE68A;border-radius:var(--fx-r2);padding:10px 12px;font-size:12.5px}
.fx-alert b{color:#92400E}
.fx-alert.err{background:#FEF2F2;border-color:#FECACA}.fx-alert.err b{color:#B91C1C}
.fx-g2{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.fx-g2>*{min-width:0}
.fx-g2>.fx-card{margin-bottom:0}
.fx-row{margin-bottom:12px}

/* ── 로그인·가입용 보탬 부품 (fx- 이름, 기준 부품과 안 겹침) ── */
.fx-page{max-width:1180px;margin:0 auto;padding:16px 16px 40px}        /* 홈: 기준 .wrap 과 같은 폭 */
.fx-auth{max-width:420px;margin:0 auto;padding:24px 16px 48px;min-height:100vh;display:flex;flex-direction:column;justify-content:center}
.fx-auth .fx-card{padding:20px}
.fx-brand{display:flex;align-items:center;gap:11px;margin:0 0 16px}
.fx-brand i{width:38px;height:38px;border-radius:12px;flex:none;display:flex;align-items:center;justify-content:center;color:#fff;font-style:normal;font-weight:800;font-size:19px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));box-shadow:0 4px 12px rgba(79,70,229,.3)}
.fx-brand b{display:block;font-size:19px;font-weight:800;letter-spacing:-.4px;line-height:1.2}
.fx-brand small{display:block;color:var(--sub);font-size:12.5px;margin-top:2px}
.fx-field{display:block;margin-top:12px}
.fx-frm .fx-field{margin-top:0}
.fx-field>span{display:block;font-size:12px;font-weight:700;color:#3A4254;margin:0 0 5px}
.fx-field>span small{font-weight:500;color:var(--mut);font-size:11.5px;margin-left:4px}
.fx-field input,.fx-field select{width:100%;border:1px solid var(--fx-in);border-radius:10px;padding:10px 12px;font-size:14px;background:#fff;color:var(--ink);font-family:inherit}
.fx-field input:focus,.fx-field select:focus,.fx-frm input:focus,.fx-frm select:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 3px rgba(79,70,229,.15)}
.fx-field input.fx-code{font-size:24px;letter-spacing:8px;text-align:center;font-weight:800;font-variant-numeric:tabular-nums;padding:12px}
.fx-full{width:100%;margin-top:16px;padding:12px 14px;font-size:14px;font-weight:700}
.fx-msg{display:none;margin-top:12px;border-radius:var(--fx-r2);padding:10px 12px;font-size:12.5px;font-weight:600;line-height:1.45}
.fx-msg.err{display:block;background:#FEF2F2;border:1px solid #FECACA;color:#B91C1C}
.fx-msg.ok{display:block;background:#ECFDF3;border:1px solid #BBF7D0;color:#15803D}
.fx-foot{text-align:center;font-size:12.5px;color:var(--sub);margin-top:14px}
.fx-link{background:none;border:0;padding:0;color:var(--brand);font:inherit;font-weight:700;cursor:pointer}
.fx-help{display:grid;gap:3px;justify-items:center;margin-top:18px;font-size:11.5px;color:var(--mut);text-align:center}
.fx-qr{display:flex;justify-content:center;align-items:center;min-height:120px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:var(--fx-r2);margin:10px 0}
.fx-qr svg{width:200px;height:200px}
.fx-secret{font-family:ui-monospace,Menlo,Consolas,monospace;background:var(--fx-soft);border-radius:10px;padding:9px 11px;word-break:break-all;font-size:13px;font-weight:600;letter-spacing:.3px}
.fx-big{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:24px;font-weight:800;letter-spacing:2px;text-align:center;padding:14px;margin-top:12px;background:var(--fx-sel);border:1.5px dashed var(--brand);border-radius:var(--fx-r2);color:var(--brand)}
.fx-big small{display:block;font-family:inherit;font-size:11.5px;letter-spacing:0;font-weight:600;color:var(--sub);margin-top:4px}
.fx-guide{padding-left:20px;margin:6px 0 10px;color:var(--sub);font-size:13px}.fx-guide li{margin:4px 0}
.fx-hidden{display:none}
.fx-me{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}

/* ── 휴대폰 (760px 이하) ── */
@media (max-width:760px){
 .fx-kpi{grid-template-columns:1fr 1fr;gap:8px}.fx-kpi b{font-size:21px}
 .fx-g2,.fx-frm{grid-template-columns:1fr}
 .fx-g2>.fx-card{margin-bottom:12px}
 .fx-hero{padding:16px 14px 14px;border-radius:18px}.fx-hero-nm{font-size:18px}
 .fx-tblw .fx-tbl{min-width:520px}
 .fx-btns .fx-btn.brand,.fx-btns .fx-btn.pri{flex:1}
 .fx-auth{justify-content:flex-start;padding-top:28px}
}
