
:root{
  --blue:#0f75bc; --blue-dark:#0a5a92; --blue-soft:#e8f2fa;
  --navy:#16273f; --ink:#1f2d3d; --muted:#647588;
  --border:#e2e8f0; --bg:#f4f7fa;
  --ok:#1f8a4c; --warn:#c47f0a; --bad:#c0392b;
  --side:264px; --head:54px; --ribbon:40px;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:"Pretendard",-apple-system,"Segoe UI","Malgun Gothic",sans-serif;
  color:var(--ink);background:var(--bg);font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased;
  height:100vh;overflow:hidden;display:flex;flex-direction:column}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer}

/* 헤더 */
.appbar{height:var(--head);flex:0 0 var(--head);background:var(--navy);color:#fff;
  display:flex;align-items:center;gap:18px;padding:0 18px}
.brand{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:800;letter-spacing:-.4px}
.brand svg{width:26px;height:26px}
.brand em{font-style:normal;color:#7fc2f5}
.proj{font-size:13.5px;color:#a8bdd4;border-left:1px solid rgba(255,255,255,.2);padding-left:18px}
.proj b{color:#fff;font-weight:600}
.appbar .right{margin-left:auto;display:flex;align-items:center;gap:14px;font-size:13px;color:#a8bdd4}
.chip{background:rgba(127,194,245,.16);color:#a8d8f8;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:600}

/* 리본 */
.ribbon{height:var(--ribbon);flex:0 0 var(--ribbon);background:#fff;border-bottom:1px solid var(--border);
  display:flex;align-items:stretch;padding:0 8px}
.ribbon a{display:flex;align-items:center;padding:0 16px;font-size:13.5px;font-weight:600;color:#4a5b6e;
  border-bottom:2px solid transparent}
.ribbon a.on{color:var(--blue);border-bottom-color:var(--blue)}
.ribbon a:hover{color:var(--blue)}

/* 본문 2단 */
.body{flex:1;display:flex;min-height:0}

/* 사이드바 */
.side{width:var(--side);flex:0 0 var(--side);background:#fff;border-right:1px solid var(--border);
  overflow-y:auto;padding:14px 0 40px}
.side h4{font-size:11.5px;font-weight:700;color:#93a3b5;letter-spacing:.06em;
  padding:16px 18px 6px;text-transform:uppercase}
.side h4:first-child{padding-top:4px}
.side .step{display:flex;align-items:center;gap:8px;padding:6px 18px;font-size:12px;color:#93a3b5;font-weight:700}
.side .step i{width:18px;height:18px;border-radius:50%;background:var(--bg);color:var(--muted);
  font-style:normal;font-size:11px;display:grid;place-items:center;flex:0 0 18px}
.nav-item{display:block;padding:7px 18px 7px 30px;font-size:13.5px;color:#3f4f60;border-left:3px solid transparent}
.nav-item:hover{background:var(--bg)}
.nav-item.on{background:var(--blue-soft);color:var(--blue-dark);font-weight:700;border-left-color:var(--blue)}
.nav-item .dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--ok);margin-right:7px;vertical-align:1px}
.nav-item .dot.q{background:#cbd5e1}

/* 메인 */
.main{flex:1;min-width:0;overflow-y:auto}
.panel{display:none;padding:0 0 70px}
.panel.on{display:block}

/* 패널 헤더 — 모든 화면에서 위치 고정 */
.phead{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid var(--border);
  padding:16px 28px;display:flex;align-items:flex-start;gap:20px}
.phead h2{font-size:20px;font-weight:800;letter-spacing:-.5px}
.phead .spec{font-size:12.5px;color:var(--muted);margin-top:5px}
.phead .acts{margin-left:auto;display:flex;gap:8px;flex:0 0 auto}
.b{padding:7px 14px;border-radius:5px;font-size:13px;font-weight:600;border:1px solid var(--border);
  background:#fff;color:#3f4f60;white-space:nowrap}
.b:hover{border-color:#b6c6d6;background:#fafcfe}
.b-solid{background:var(--blue);border-color:var(--blue);color:#fff}
.b-solid:hover{background:var(--blue-dark);border-color:var(--blue-dark)}

/* 결과 블록 */
.wrap{padding:24px 28px}
.block{background:#fff;border:1px solid var(--border);border-radius:8px;padding:22px 24px;margin-bottom:18px}
.block > h3{font-size:14.5px;font-weight:800;margin-bottom:14px;letter-spacing:-.2px}
.block > h3 span{font-weight:500;color:var(--muted)}
.note{font-size:12px;color:var(--muted);margin-top:10px;line-height:1.7}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media (max-width:1200px){.cols{grid-template-columns:1fr}}

/* APA 3선표 */
table.apa{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
table.apa th,table.apa td{padding:7px 10px;text-align:right}
table.apa th:first-child,table.apa td:first-child{text-align:left}
table.apa thead tr:first-child th{border-top:2px solid var(--ink)}
table.apa thead tr:last-child th{border-bottom:1px solid var(--ink)}
table.apa tbody tr:last-child td{border-bottom:2px solid var(--ink)}
table.apa th{font-weight:700;color:#33475e}
table.apa td.l,table.apa th.l{text-align:left}
table.apa td.c,table.apa th.c{text-align:center}
table.apa tbody tr:hover{background:#fafcfe}
table.apa .sub td:first-child{padding-left:24px;color:#4a5b6e}
table.apa .rule td,table.apa .rule th{border-bottom:1px solid #cfd8e3}
.dim{color:#93a3b5}

/* 배지 */
.badge{display:inline-block;padding:2px 8px;border-radius:4px;font-size:11.5px;font-weight:700}
.badge.ok{background:#e7f6ec;color:var(--ok)}
.badge.warn{background:#fdf3e0;color:var(--warn)}
.badge.bad{background:#fdeceb;color:var(--bad)}

/* 판정 요약줄 */
.verdict{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.vcard{flex:1 1 150px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:14px 16px}
.vcard span{font-size:11.5px;color:var(--muted);display:block}
.vcard b{font-size:22px;font-weight:800;letter-spacing:-.5px;display:block;margin:2px 0 4px}

/* 코드 박스 */
pre.code{background:#0f1b2d;color:#dbe7f3;padding:18px 20px;border-radius:8px;font-size:12.5px;
  line-height:1.75;overflow-x:auto;font-family:"D2Coding","Consolas",monospace}
pre.code .k{color:#7fc2f5}
pre.code .c{color:#6b8199}
.tabs{display:flex;gap:6px;margin-bottom:14px}
.tabs button{padding:6px 14px;border-radius:5px;border:1px solid var(--border);background:#fff;font-size:13px;font-weight:600;color:#4a5b6e}
.tabs button.on{background:var(--blue);border-color:var(--blue);color:#fff}

/* 스프레드시트 */
table.grid{width:100%;border-collapse:collapse;font-size:12.5px;font-variant-numeric:tabular-nums}
table.grid th,table.grid td{border:1px solid var(--border);padding:5px 9px;text-align:right}
table.grid th{background:var(--bg);font-weight:700;color:#33475e;text-align:center}
table.grid td:first-child,table.grid th:first-child{background:var(--bg);text-align:center;color:var(--muted);font-weight:600}

/* 모형 캔버스 */
.canvas{background:#fbfcfe;border:1px solid var(--border);border-radius:8px;padding:18px}
:focus-visible{outline:3px solid #f0a01e;outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}


/* ===== v3 밸런스 조정 : 글자·숫자 확대, 그래프 축소 ===== */
:root{ --head:60px; --ribbon:76px; --side:280px; }
body{ font-size:16px; }

/* 표 — SPSS 출력창 수준으로 확대 */
table.apa{ font-size:15.5px; }
table.apa th, table.apa td{ padding:10px 13px; }
table.apa th{ font-size:15px; }
table.grid{ font-size:14.5px; }
table.grid th, table.grid td{ padding:8px 12px; }
.note{ font-size:14px; line-height:1.75; margin-top:14px; }
.block{ padding:26px 28px; margin-bottom:22px; }
.block > h3{ font-size:18px; margin-bottom:18px; }
.wrap{ padding:26px 30px; }

/* 그래프 — 폭을 제한해 글자와 균형 */
.canvas{ display:flex; justify-content:center; padding:14px 10px; }
.canvas svg{ width:100%; max-width:430px; height:auto; }
.cols{ gap:24px; }

/* 패널 헤더 */
.phead{ padding:20px 30px; }
.phead h2{ font-size:24px; }
.phead .spec{ font-size:14.5px; margin-top:7px; }
.b{ font-size:15px; padding:10px 18px; border-radius:6px; }

/* 사이드바 */
.side .step{ font-size:13.5px; padding:9px 20px; }
.side .step i{ width:21px; height:21px; flex:0 0 21px; font-size:12px; }
.nav-item{ font-size:15.5px; padding:9px 20px 9px 34px; }

/* 헤더 */
.brand{ font-size:21px; }
.brand svg{ width:30px; height:30px; }
.proj{ font-size:15px; }
.appbar .right{ font-size:14px; }
.chip{ font-size:13px; padding:4px 12px; }

/* ===== 큰 리본 (SmartPLS 방식) ===== */
.ribbon{ height:var(--ribbon); flex:0 0 var(--ribbon); padding:0 14px; gap:4px; }
.ribbon a{ flex-direction:column; justify-content:center; gap:5px; padding:0 22px;
  font-size:15px; font-weight:700; border-bottom:3px solid transparent; border-radius:8px 8px 0 0; }
.ribbon a svg{ width:26px; height:26px; }
.ribbon a.on{ background:var(--blue-soft); }
.ribbon a:hover{ background:#f4f9fd; }

/* 판정 카드 */
.vcard{ padding:16px 18px; }
.vcard span{ font-size:13px; }
.vcard b{ font-size:26px; }
.badge{ font-size:13px; padding:3px 10px; }

/* ===== 표준 해석 블록 (DB 매칭 출력) ===== */
.interp{ background:#f7fbfe; border:1px solid #cfe4f5; border-left:5px solid var(--blue);
  border-radius:8px; padding:20px 24px; margin-bottom:22px; }
.interp .ih{ display:flex; align-items:center; gap:12px; margin-bottom:12px; flex-wrap:wrap; }
.itag{ background:var(--blue); color:#fff; font-size:13px; font-weight:800; padding:4px 12px; border-radius:5px; }
.irule{ font-size:12.5px; color:#5d7d9c; font-family:"D2Coding",Consolas,monospace; }
.interp p{ font-size:15.5px; line-height:1.85; color:#22384f; }
.interp p + p{ margin-top:10px; }
.interp .cite{ font-size:13.5px; color:var(--muted); margin-top:12px; }

/* ===== 내보내기 버튼 ===== */
.exp{ display:inline-flex; align-items:center; gap:6px; padding:10px 15px; border-radius:6px;
  border:1px solid var(--border); background:#fff; font-size:14.5px; font-weight:700; color:#3f4f60; }
.exp:hover{ border-color:#b6c6d6; background:#fafcfe; }
.exp i{ font-style:normal; font-size:11px; font-weight:800; padding:2px 6px; border-radius:3px; color:#fff; }
.exp.xls i{ background:#1d6f42; } .exp.pdf i{ background:#c0392b; } .exp.doc i{ background:#1b5ebe; }

/* ===== 데이터 시트 ===== */
.sheetbar{ display:flex; gap:0; border-bottom:2px solid var(--border); margin-bottom:0; }
.sheetbar button{ padding:12px 30px; font-size:16px; font-weight:700; color:#647588;
  background:#f4f7fa; border:1px solid var(--border); border-bottom:none; border-radius:8px 8px 0 0; margin-right:4px; }
.sheetbar button.on{ background:#fff; color:var(--blue); border-bottom:2px solid #fff; margin-bottom:-2px; }
.sheetwrap{ border:1px solid var(--border); border-top:none; border-radius:0 0 8px 8px; background:#fff; padding:0; overflow:auto; }
.sheetwrap table{ margin:0; }
table.grid td.txt{ text-align:left; }
table.grid tr.sel td{ background:#e8f2fa; }
.toolstrip{ display:flex; gap:8px; padding:12px 14px; border-bottom:1px solid var(--border); background:#fafcfe; flex-wrap:wrap; }
.toolstrip button{ padding:8px 14px; font-size:14px; font-weight:600; color:#3f4f60;
  background:#fff; border:1px solid var(--border); border-radius:6px; }
.toolstrip button:hover{ border-color:#b6c6d6; }
.drop{ border:2px dashed #b6cfe4; border-radius:10px; padding:30px; text-align:center; background:#f7fbfe; }
.drop b{ font-size:17px; display:block; margin-bottom:6px; }
.drop p{ font-size:14.5px; color:var(--muted); }
.fmt{ display:inline-block; background:#fff; border:1px solid var(--border); border-radius:5px;
  padding:5px 11px; font-size:13.5px; font-weight:600; margin:4px 4px 0 0; color:#4a5b6e; }


/* ===== v4 : 2단 리본 + 그룹 사이드바 + 시트 스크롤 ===== */
:root{ --ribbon2:56px; }

.ribbon2{ height:var(--ribbon2); flex:0 0 var(--ribbon2); background:#f7fafd;
  border-bottom:1px solid var(--border); display:flex; align-items:stretch; padding:0 14px; gap:2px; overflow-x:auto; }
.ribbon2 button{ display:flex; align-items:center; gap:8px; padding:0 20px; white-space:nowrap;
  font-size:15.5px; font-weight:700; color:#4a5b6e; background:none; border:none;
  border-bottom:3px solid transparent; }
.ribbon2 button:hover{ color:var(--blue); background:#eef6fc; }
.ribbon2 button.on{ color:var(--blue-dark); background:#fff; border-bottom-color:var(--blue); }
.ribbon2 button em{ font-style:normal; width:24px; height:24px; border-radius:50%;
  background:#e2eaf2; color:#647588; font-size:12.5px; font-weight:800;
  display:grid; place-items:center; flex:0 0 24px; }
.ribbon2 button.on em{ background:var(--blue); color:#fff; }

.sidehead{ padding:18px 20px 10px; font-size:17px; font-weight:800; color:var(--navy);
  letter-spacing:-.4px; border-bottom:1px solid var(--border); margin-bottom:8px; }
.sidehead small{ display:block; font-size:12.5px; font-weight:500; color:var(--muted); margin-top:4px; }
.navgroup{ display:none; }
.navgroup.on{ display:block; }
.nav-item.off{ color:#b3c0cd; cursor:default; }
.nav-item.off:hover{ background:none; }

/* ===== 시트 스크롤 : 수백 변수 · 수백 케이스 대응 ===== */
.sheetwrap{ max-height:560px; overflow:auto; position:relative; }
.sheetwrap .toolstrip{ position:sticky; top:0; left:0; z-index:6; }
.sheetwrap table.grid{ border-collapse:separate; border-spacing:0; }
.sheetwrap table.grid th, .sheetwrap table.grid td{ border-right:1px solid var(--border);
  border-bottom:1px solid var(--border); border-left:none; border-top:none; white-space:nowrap; }
.sheetwrap table.grid thead th{ position:sticky; top:53px; z-index:4; background:#eef3f8;
  box-shadow:0 1px 0 var(--border); }
.sheetwrap table.grid thead th:first-child{ left:0; z-index:5; }
.sheetwrap table.grid tbody td:first-child{ position:sticky; left:0; z-index:3;
  background:#eef3f8; font-weight:700; box-shadow:1px 0 0 var(--border); }
.sheetwrap table.grid tbody tr.sel td{ background:#e8f2fa; }
.sheetwrap table.grid tbody tr.sel td:first-child{ background:#cfe4f5; }
.sheetwrap table.grid td.txt{ text-align:left; }
.sheetwrap table.grid td.miss{ color:var(--bad); font-weight:700; }
.sheetmeta{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  padding:10px 14px; background:#fafcfe; border-top:1px solid var(--border); font-size:13.5px; color:var(--muted); }
.sheetmeta b{ color:var(--ink); }
.jump{ display:flex; gap:6px; align-items:center; }
.jump input{ width:74px; padding:5px 8px; border:1px solid var(--border); border-radius:5px;
  font-family:inherit; font-size:13.5px; text-align:right; }
.jump button{ padding:5px 12px; font-size:13.5px; font-weight:600; border:1px solid var(--border);
  background:#fff; border-radius:5px; color:#4a5b6e; }


/* ===== v5 : 1단 리본을 로고줄로 올리고, 프로젝트 정보는 2단 아래로 ===== */
:root{ --head:76px; }
.appbar{ height:var(--head); flex:0 0 var(--head); gap:10px; padding:0 20px; }
.brand{ flex:0 0 auto; padding-right:16px; border-right:1px solid rgba(255,255,255,.16); }

/* 1단 리본이 헤더 안으로 들어옴 — 어두운 배경용 스타일 */
.appbar .ribbon{ height:var(--head); flex:1 1 auto; min-width:0; background:transparent;
  border-bottom:none; padding:0 4px; overflow-x:auto; overflow-y:hidden; }
.appbar .ribbon::-webkit-scrollbar{ height:0; }
.appbar .ribbon a{ color:#b9d2e8; padding:0 17px; border-radius:0;
  border-bottom:3px solid transparent; font-size:14.5px; }
.appbar .ribbon a svg{ width:24px; height:24px; opacity:.9; }
.appbar .ribbon a:hover{ color:#fff; background:rgba(255,255,255,.08); }
.appbar .ribbon a.on{ color:#fff; background:rgba(127,194,245,.18); border-bottom-color:#7fc2f5; }
.appbar .right{ flex:0 0 auto; padding-left:14px; border-left:1px solid rgba(255,255,255,.16); }

/* 2단은 그대로, 다만 위로 붙음 */
.ribbon2{ border-bottom:1px solid var(--border); }

/* 프로젝트 정보 바 — 2단 아래 */
.projbar{ flex:0 0 48px; height:48px; display:flex; align-items:center; gap:14px;
  padding:0 24px; background:#fff; border-bottom:1px solid var(--border);
  font-size:15px; color:var(--muted); white-space:nowrap; overflow-x:auto; }
.projbar b{ color:var(--ink); font-weight:700; }
.projbar .sep{ width:1px; height:18px; background:var(--border); flex:0 0 1px; }
.projbar .pj b{ color:var(--blue-dark); }
.projbar .pjact{ margin-left:auto; display:flex; gap:8px; padding-left:16px; }
.projbar .pjact button{ padding:7px 14px; font-size:13.5px; font-weight:600; color:#4a5b6e;
  background:#fff; border:1px solid var(--border); border-radius:6px; }
.projbar .pjact button:hover{ border-color:#b6c6d6; background:#fafcfe; }

@media (max-width:1100px){
  .appbar .ribbon a{ padding:0 12px; font-size:13.5px; }
  .projbar .pjact{ display:none; }
}

/* ===== 페이지 분리판 공통 ===== */
.appbar .ribbon a{ cursor:pointer; }
.setsw{ display:flex; gap:0; margin-left:auto; }
.setsw a{ padding:8px 18px; font-size:14px; font-weight:700; border:1px solid var(--border);
  background:#fff; color:#647588; }
.setsw a:first-child{ border-radius:6px 0 0 6px; }
.setsw a:last-child{ border-radius:0 6px 6px 0; border-left:none; }
.setsw a.on{ background:var(--blue); border-color:var(--blue); color:#fff; }

/* SPSS형 변수지정 대화상자 */
.dlg{ display:grid; grid-template-columns:1fr 58px 1.25fr; gap:14px; align-items:start; }
@media (max-width:1000px){ .dlg{ grid-template-columns:1fr; } }
.vlist{ border:1px solid var(--border); border-radius:8px; background:#fff; }
.vlist h4{ font-size:14px; font-weight:700; padding:11px 14px; border-bottom:1px solid var(--border);
  background:#f7fafd; color:#33475e; border-radius:8px 8px 0 0; }
.vlist .search{ padding:9px 12px; border-bottom:1px solid var(--border); }
.vlist .search input{ width:100%; padding:7px 10px; border:1px solid var(--border);
  border-radius:5px; font-family:inherit; font-size:14px; }
.vlist ul{ list-style:none; max-height:330px; overflow-y:auto; padding:6px 0; }
.vlist li{ padding:7px 14px; font-size:14.5px; color:#3f4f60; display:flex; align-items:center; gap:8px; }
.vlist li:hover{ background:#f4f9fd; }
.vlist li i{ font-style:normal; font-size:11px; font-weight:800; width:26px; text-align:center;
  border-radius:3px; padding:2px 0; color:#fff; flex:0 0 26px; }
.i-s{ background:#0f75bc; } .i-n{ background:#8a6bbf; } .i-o{ background:#c47f0a; }
.arrows{ display:flex; flex-direction:column; gap:10px; padding-top:64px; align-items:center; }
.arrows button{ width:44px; height:36px; border:1px solid var(--border); background:#fff;
  border-radius:6px; font-size:16px; color:var(--blue); font-weight:800; }
.slots{ display:flex; flex-direction:column; gap:12px; }
.slot{ border:1px solid var(--border); border-radius:8px; background:#fff; }
.slot h4{ font-size:14px; font-weight:700; padding:10px 14px; border-bottom:1px solid var(--border);
  background:#f7fafd; color:#33475e; border-radius:8px 8px 0 0; display:flex; gap:8px; align-items:center; }
.slot h4 span{ font-weight:500; color:var(--muted); font-size:12.5px; }
.slot .body{ min-height:56px; padding:10px 12px; display:flex; flex-wrap:wrap; gap:7px; align-content:flex-start; }
.slot .body:empty::after{ content:"변수를 이곳으로 옮기십시오"; color:#b3c0cd; font-size:13.5px; }
.tok{ background:var(--blue-soft); color:var(--blue-dark); border:1px solid #a9d1ec;
  padding:5px 11px; border-radius:5px; font-size:14px; font-weight:600; }
.tok.n{ background:#f3eefa; color:#6b4fa0; border-color:#cfc0e6; }
.tok.o{ background:#fdf5e6; color:#a06a06; border-color:#e8d3a8; }
.optrow{ display:flex; flex-wrap:wrap; gap:9px; margin-top:16px; }
.optrow button{ padding:9px 16px; font-size:14px; font-weight:600; color:#3f4f60;
  background:#fff; border:1px solid var(--border); border-radius:6px; }
.dlgfoot{ display:flex; gap:9px; margin-top:20px; padding-top:18px; border-top:1px solid var(--border); }
.dlgfoot .grow{ flex:1; }
.chks{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:9px 18px; }
.chk{ display:flex; align-items:center; gap:9px; font-size:14.5px; color:#3f4f60; }
.chk i{ width:17px; height:17px; border:1.8px solid #b6c6d6; border-radius:4px; flex:0 0 17px;
  display:grid; place-items:center; font-style:normal; font-size:12px; color:#fff; }
.chk.on i{ background:var(--blue); border-color:var(--blue); }
.chk.on i::after{ content:"✓"; }
.syntax{ background:#0f1b2d; color:#dbe7f3; padding:16px 18px; border-radius:8px;
  font-size:13px; line-height:1.7; font-family:"D2Coding",Consolas,monospace; overflow-x:auto; }
.idxwrap{ max-width:1180px; margin:0 auto; padding:34px 26px 70px; }
.idxgrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(330px,1fr)); gap:18px; }
.idxcard{ background:#fff; border:1px solid var(--border); border-radius:10px; padding:20px 22px; }
.idxcard h3{ font-size:17px; font-weight:800; margin-bottom:4px; display:flex; align-items:center; gap:9px; }
.idxcard h3 em{ font-style:normal; width:26px; height:26px; border-radius:50%; background:var(--blue);
  color:#fff; font-size:13px; display:grid; place-items:center; flex:0 0 26px; }
.idxcard ol{ list-style:none; margin-top:12px; }
.idxcard li{ display:flex; align-items:center; gap:10px; padding:6px 0; font-size:14.5px;
  border-top:1px solid #f0f4f8; }
.idxcard li b{ flex:1; font-weight:500; color:#3f4f60; }
.idxcard li a{ font-size:12.5px; font-weight:700; padding:4px 10px; border-radius:5px;
  border:1px solid var(--border); color:#4a5b6e; }
.idxcard li a.r{ background:var(--blue-soft); border-color:#a9d1ec; color:var(--blue-dark); }

/* ===== v6 : 그림 확대·축소 ===== */
.figbar{ display:flex; align-items:center; gap:14px; margin-bottom:14px; flex-wrap:wrap; }
.figtitle{ font-size:18px; font-weight:800; letter-spacing:-.2px; color:var(--ink); }
.zoom{ margin-left:auto; display:flex; align-items:center; gap:5px; }
.zoom button{ min-width:36px; height:32px; padding:0 11px; border:1px solid var(--border);
  background:#fff; border-radius:6px; font-size:14.5px; font-weight:700; color:#4a5b6e; }
.zoom button:hover{ border-color:var(--blue); color:var(--blue); background:#f7fbfe; }
.zoom b{ min-width:56px; text-align:center; font-size:13.5px; color:var(--muted); font-variant-numeric:tabular-nums; }
.figview{ overflow:auto; background:#fbfcfe; border:1px solid var(--border); border-radius:8px; padding:16px; }
.figinner{ transform-origin:top center; transition:transform .12s ease; display:flex; justify-content:center; }
.figinner svg{ width:100%; max-width:780px; height:auto; }
.figinner.big svg{ max-width:none; width:1180px; }

/* ===== SPSS형 상관표 ===== */
.ssswrap{ overflow-x:auto; }
table.spss{ border-collapse:collapse; font-size:14.5px; font-variant-numeric:tabular-nums; min-width:640px; }
table.spss th, table.spss td{ border:1px solid #b8c6d4; padding:7px 13px; text-align:right; }
table.spss thead th{ background:#eef3f8; font-weight:700; color:#33475e; text-align:center; }
table.spss th.cnr{ background:#e3eaf2; }
table.spss td.rh{ background:#eef3f8; font-weight:700; text-align:left; color:#1f2d3d; vertical-align:middle; }
table.spss td.sh{ background:#f7fafd; text-align:left; color:#4a5b6e; font-size:13.5px; white-space:nowrap; }
table.spss td.pv{ color:#647588; font-size:13.5px; }
table.spss td.diag{ background:#f2f6fa; font-weight:700; }
table.spss tr.nrow td{ color:#8fa3b8; font-size:13px; border-bottom:2px solid #b8c6d4; }
table.spss sup{ color:#c0392b; font-weight:800; }

/* 코드 생성 버튼 */
.exp.mpl i{ background:#5b3fa0; } .exp.sta i{ background:#1a5276; }

/* 자동 생성된 그림 확대·축소 (기존 .canvas 블록) */
.figview.autoview{ background:#fbfcfe; }
.figview.autoview .canvas{ border:none; background:transparent; padding:0; }
.figinner .canvas svg{ max-width:640px; }
.figbar.autobar .figtitle{ font-size:14px; font-weight:600; color:var(--muted); }

/* 헤더 우측 요금제·FAQ·로그인·회원가입 */
.appbar .right{ gap:6px; }
.head-link{ color:#cdddec!important; padding:7px 12px; border-radius:6px; font-size:14px; font-weight:600; }
.head-link:hover{ background:rgba(255,255,255,.12); color:#fff!important; }
.head-cta{ color:#eaf4fc!important; padding:7px 14px; border-radius:6px; font-size:14px; font-weight:700;
  border:1px solid rgba(255,255,255,.28); }
.head-cta:hover{ background:rgba(255,255,255,.14); }
.head-join{ background:var(--blue); border-color:var(--blue); color:#fff!important; }
.head-join:hover{ background:#1a86cf; }

/* ═══════════ 랜딩 모드 (index.html) ═══════════ */
body.landing{ height:auto; overflow:visible; display:block; }
body.landing .appbar{ position:sticky; top:0; z-index:50; }
body.landing .ribbon2{ position:sticky; top:var(--head); z-index:49; }
/* 분석 데모 화면: 고정 높이 부여해 그 안에서만 스크롤 */
body.landing .body{ height:72vh; min-height:520px; border-bottom:3px solid var(--blue); }
body.landing .projbar{ position:relative; }

.lp-hero{ background:linear-gradient(160deg,#0d2c4a,#123a5f 55%,#0f4d78); color:#fff;
  padding:56px 24px 60px; text-align:center; }
.lp-hero-in{ max-width:860px; margin:0 auto; }
.lp-badge{ display:inline-block; padding:7px 16px; border-radius:999px; background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22); font-size:14px; font-weight:600; margin-bottom:20px; }
.lp-hero h1{ font-size:42px; font-weight:900; letter-spacing:-1.2px; line-height:1.2; margin-bottom:16px; }
.lp-hero h1 span{ color:#7fc2f5; }
.lp-hero p{ font-size:17px; color:#c6d8ea; max-width:600px; margin:0 auto 26px; }
.lp-cta{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.lp-btn{ display:inline-flex; align-items:center; justify-content:center; padding:13px 28px;
  font-size:16px; font-weight:700; border-radius:9px; border:1px solid transparent; cursor:pointer; }
.lp-btn-solid{ background:var(--blue); color:#fff; }
.lp-btn-solid:hover{ background:#1a86cf; }
.lp-btn-ghost{ background:rgba(255,255,255,.1); color:#fff; border-color:rgba(255,255,255,.3); }
.lp-btn-ghost:hover{ background:rgba(255,255,255,.18); }
.lp-btn-white{ background:#fff; color:var(--blue-dark); }
.lp-scroll{ margin-top:22px; font-size:14px; color:#9fb8ce; }
.lp-demolabel{ background:#eaf4fc; color:#0a5a92; text-align:center; font-size:13.5px; font-weight:600;
  padding:9px 16px; border-bottom:1px solid #cfe4f5; }

.lp-sections{ background:var(--bg); }
.lp-sec{ max-width:1140px; margin:0 auto; padding:64px 24px; }
.lp-head{ text-align:center; margin-bottom:40px; }
.lp-k{ font-size:14px; font-weight:800; color:var(--blue); letter-spacing:1px; }
.lp-head h2{ font-size:32px; font-weight:900; letter-spacing:-.6px; color:var(--navy); margin:6px 0 10px; }
.lp-head p{ font-size:16px; color:var(--muted); max-width:600px; margin:0 auto; }
.lp-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.lp-grid-2{ grid-template-columns:repeat(2,1fr); gap:24px; max-width:960px; margin-left:auto; margin-right:auto; }
@media (max-width:840px){ .lp-grid, .lp-grid-2{ grid-template-columns:1fr; } }
.lp-card{ background:#fff; border:1px solid var(--border); border-radius:15px; padding:32px 30px; }
.lp-grid-2 .lp-card{ padding:36px 34px; }
.lp-card-ico{ width:52px; height:52px; border-radius:13px; background:var(--blue-soft);
  display:grid; place-items:center; font-size:26px; color:var(--blue); margin-bottom:16px; }
.lp-card-num{ width:46px; height:46px; border-radius:12px; background:#3a9be0; color:#fff;
  display:grid; place-items:center; font-size:22px; font-weight:900; margin-bottom:16px;
  letter-spacing:-.5px; }
.lp-card-link:hover .lp-card-num{ background:#0f75bc; color:#fff; }
.fx-ico-num{ position:absolute; top:-10px; right:-10px; width:26px; height:26px; border-radius:50%;
  background:#3a9be0; color:#0d2c4a; font-size:12px; font-weight:900; display:grid; place-items:center; }
.fx-ico{ position:relative; }

.lp-card h3{ font-size:21px; font-weight:800; color:var(--navy); margin-bottom:10px; letter-spacing:-.4px; }
.lp-grid-2 .lp-card h3{ font-size:22px; color:#3a9be0; }
.lp-card p{ font-size:15.5px; color:var(--muted); line-height:1.7; }
.lp-grid-2 .lp-card p{ font-size:16px; }
.lp-progs-sec{ background:#fff; border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  max-width:none; }
.lp-progs-sec .lp-head, .lp-progs{ max-width:1140px; margin-left:auto; margin-right:auto; }
.lp-progs{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.lp-prog{ padding:11px 22px; border-radius:10px; background:var(--bg); border:1px solid var(--border);
  font-size:15px; font-weight:700; color:#3f4f60; }
.lp-prog b{ color:var(--blue); }
.lp-prices{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; max-width:900px; margin:0 auto; }
@media (max-width:840px){ .lp-prices{ grid-template-columns:1fr; max-width:400px; } }
.lp-price{ background:#fff; border:1.5px solid var(--border); border-radius:15px; padding:30px 26px;
  text-align:center; position:relative; }
.lp-price.lp-best{ border-color:var(--blue); box-shadow:0 10px 30px rgba(15,117,188,.13); }
.lp-tag{ position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--blue);
  color:#fff; font-size:12.5px; font-weight:800; padding:4px 15px; border-radius:999px; }
.lp-price h3{ font-size:19px; font-weight:800; color:var(--navy); margin-bottom:12px; }
.lp-amt{ font-size:36px; font-weight:900; color:var(--navy); letter-spacing:-1px; }
.lp-amt small{ font-size:16px; font-weight:700; color:var(--muted); }
.lp-per{ font-size:14px; color:var(--muted); margin:8px 0 20px; }
.lp-price .lp-btn{ width:100%; padding:11px; }
.lp-faq{ max-width:740px; margin:0 auto; display:flex; flex-direction:column; gap:14px; }
.lp-qa{ background:#fff; border:1px solid var(--border); border-radius:12px; padding:22px 24px; }
.lp-qa h3{ font-size:17px; font-weight:800; color:var(--navy); margin-bottom:8px; }
.lp-qa p{ font-size:15px; color:var(--muted); }
.lp-qa a{ color:var(--blue); font-weight:700; }
.lp-final{ background:linear-gradient(135deg,#0f4d78,#123a5f); color:#fff; text-align:center; padding:60px 24px; }
.lp-final h2{ font-size:30px; font-weight:900; letter-spacing:-.5px; margin-bottom:12px; }
.lp-final p{ font-size:16px; color:#c6d8ea; margin-bottom:24px; }
.lp-foot{ background:var(--navy); color:#b8c8d8; padding:40px 24px 30px; text-align:center; }
.lp-foot-links{ display:flex; gap:20px; justify-content:center; flex-wrap:wrap; margin-bottom:20px; }
.lp-foot-links a{ font-size:14.5px; font-weight:600; color:#d4e1ee; }
.lp-biz{ font-size:13px; line-height:1.9; color:#8da6bf; }
.lp-biz b{ color:#c6d6e6; }
.lp-copy{ margin-top:16px; font-size:12.5px; color:#6d86a0; }

/* ═══════ 기능 카드 링크 (index) ═══════ */
.lp-card-link{ display:block; text-decoration:none; transition:transform .15s, box-shadow .15s, border-color .15s; }
.lp-card-link:hover{ transform:translateY(-3px); box-shadow:0 12px 28px rgba(15,117,188,.12); border-color:var(--blue); }
.lp-card-more{ display:inline-block; margin-top:12px; font-size:14px; font-weight:700; color:var(--blue); }

/* ═══════ 기능 상세페이지 (features/*.php) — 목업 확정본 ═══════ */
body.fxpage{ height:auto !important; overflow:visible !important; display:block !important; background:#fff; }
body.fxpage .appbar{ position:sticky; top:0; z-index:100; }

.fx-hero{ background:radial-gradient(120% 140% at 50% 0%, #16406a 0%, #0d2c4a 60%, #0a2138 100%);
  color:#fff; padding:48px 24px 54px; text-align:center; }
.fx-back{ display:inline-block; font-size:14px; color:#9fb8ce; margin-bottom:20px; }
.fx-back:hover{ color:#fff; }
.fx-ico{ width:60px; height:60px; border-radius:16px; background:rgba(127,194,245,.16);
  border:1px solid rgba(127,194,245,.3); display:grid; place-items:center; font-size:28px;
  color:#7fc2f5; margin:0 auto 16px; }
.fx-hero h1{ font-size:34px; font-weight:900; letter-spacing:-1px; margin-bottom:12px; }
.fx-hero p{ font-size:16px; color:#c6d8ea; max-width:600px; margin:0 auto 22px; line-height:1.7; }
.fx-statbig{ display:inline-flex; align-items:baseline; gap:9px; padding:12px 24px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14); border-radius:12px; }
.fx-statbig b{ font-size:28px; font-weight:900; color:#7fc2f5; }
.fx-statbig span{ font-size:14px; color:#c6d8ea; }

/* 본문 — 가운데 정렬, 좌우 여백 56 (목업 확정) */
.fx-rows{ display:block; width:100%; max-width:1000px; margin-left:auto; margin-right:auto;
  padding:16px 56px 40px; box-sizing:border-box; }
.fx-row{ display:grid; grid-template-columns:1.05fr .95fr; gap:44px; align-items:start;
  padding:48px 0; border-bottom:1px solid var(--border); }
.fx-row:last-child{ border-bottom:none; }
.fx-row.rev .fx-txt{ order:2; }
.fx-row.rev .fx-shot{ order:1; }

.fx-step{ font-size:30px; font-weight:900; color:var(--blue); opacity:.22; line-height:1; margin-bottom:6px; }
.fx-txt h2{ font-size:25px; font-weight:900; color:var(--navy); letter-spacing:-.5px; margin-bottom:14px; line-height:1.35; }
.fx-txt p{ font-size:17px; color:#3f4f60; line-height:1.9; }

.fx-shot{ max-width:440px; width:100%; }
.fx-shot-frame{ border-radius:12px; overflow:hidden; box-shadow:0 14px 38px rgba(13,44,74,.15);
  border:1px solid var(--border); background:#fff; }
.fx-shot-cap{ height:34px; line-height:34px; background:var(--navy); color:#cdddec;
  font-size:12px; font-weight:600; padding:0 14px; }
.fx-svg{ display:block; width:100%; height:auto; }
.fx-shot-link{ display:inline-block; margin-top:12px; font-size:14px; font-weight:700; color:var(--blue); text-decoration:none; }
.fx-shot-link:hover{ text-decoration:underline; }

@media (max-width:820px){
  .fx-rows{ padding:16px 24px 40px; }
  .fx-row{ grid-template-columns:1fr; gap:22px; padding:36px 0; }
  .fx-row .fx-shot{ order:-1 !important; max-width:100%; }
  .fx-row.rev .fx-txt{ order:2; }
  .fx-hero h1{ font-size:28px; }
}

.fx-final{ background:linear-gradient(135deg,#0f4d78,#123a5f); color:#fff; text-align:center; padding:60px 24px; }
.fx-final h2{ font-size:27px; font-weight:900; letter-spacing:-.5px; margin-bottom:12px; }
.fx-final p{ font-size:16px; color:#c6d8ea; margin-bottom:24px; }
.fx-final-cta{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.lp-btn-white{ background:#fff; color:var(--navy); }
.lp-btn-white:hover{ background:#eaf4fc; }

.fx-pager{ display:flex; gap:16px; justify-content:space-between; width:100%; max-width:1000px;
  margin-left:auto; margin-right:auto; padding:28px 56px 60px; box-sizing:border-box; }
.fx-pg{ flex:1; max-width:320px; padding:18px 22px; border:1px solid var(--border); border-radius:12px;
  background:#fff; display:flex; flex-direction:column; gap:4px; text-decoration:none; }
.fx-pg:hover{ border-color:var(--blue); box-shadow:0 8px 22px rgba(15,117,188,.1); }
.fx-pg span{ font-size:13px; color:var(--muted); font-weight:700; }
.fx-pg b{ font-size:16px; color:var(--navy); font-weight:800; }
.fx-pg-next{ text-align:right; margin-left:auto; }
#features .lp-head h2{ color:#3a9be0; }
