/* 콕매트릭스 장표 전용 요소. 기본 틀·색·글꼴은 deck.css(개인화메시지MCP 리더 장표)를 그대로 쓴다. */
@font-face { font-family: Pretendard; src: url("font/PretendardVariable.woff2") format("woff2"); font-weight: 100 900; }
:root { --orange: #ea580c; --orange-soft: #fff1e8; }

/* 2 · 시연: 4단계 */
.flow4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dstep { background: var(--wash); border-radius: 16px; padding: 18px 18px 20px; display: flex; flex-direction: column; }
.dstep-n { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: var(--brand); }
.dstep-n i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 14px; }
.dstep.human .dstep-n { color: var(--orange); }
.dstep.human .dstep-n i { background: var(--orange); }
.dstep-t { font-size: 24px; font-weight: 800; letter-spacing: -0.035em; margin-top: 10px; }
.dstep-s { font-size: 15px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; min-height: 46px; }
.dstep img { width: 100%; height: 300px; object-fit: cover; object-position: left top; border-radius: 10px; margin-top: 14px; border: 1px solid var(--line); background: #fff; }
.verdict2 { margin-top: 26px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; text-align: center; }
.verdict2 em { font-style: normal; color: var(--brand); }

/* 3 · 3층 구조 */
.layers { display: grid; grid-template-columns: 230px 1fr 230px; gap: 34px; align-items: center; }
.io { display: flex; flex-direction: column; gap: 16px; }
.iobox { border: 2px solid var(--ink-1); border-radius: 14px; padding: 18px 20px; }
.iobox.dash { border-style: dashed; border-color: var(--orange); }
.iobox.out { border-color: var(--orange); background: var(--orange-soft); }
.iobox-k { font-size: 13.5px; font-weight: 800; color: var(--ink-3); }
.iobox.dash .iobox-k { color: var(--orange); }
.iobox-t { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.iobox-s { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.stack { display: flex; flex-direction: column-reverse; gap: 12px; }
.layer { border-radius: 14px; padding: 18px 24px; display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; }
.layer.l1 { background: var(--brand); color: #fff; }
.layer.l2 { background: #7c74f0; color: #fff; }
.layer.l3 { background: var(--brand-soft); color: var(--ink-1); }
.layer-k { font-size: 15px; font-weight: 800; opacity: 0.85; }
.layer-t { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 15px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
.layer.l3 .chips span { background: #fff; color: var(--brand-deep); }
.stack .layer.rv { transform: translateY(18px); }
.stack .layer.rv.vis { transform: none; }

/* 4 · 단안 3D */
.mono svg { width: 100%; height: auto; display: block; }
.mono text { font-family: Pretendard, sans-serif; }
.mono .ray { stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 6 6; fill: none; }
.mono .traj { fill: none; stroke: var(--ink-1); stroke-width: 4; stroke-linecap: round; transition: opacity 0.6s ease, stroke 0.6s ease, stroke-width 0.6s ease; }
.mono .traj.dim { opacity: 0.12; }
.mono .traj.pick { stroke: var(--brand); stroke-width: 7; }
.mono .q { font-size: 30px; font-weight: 800; fill: var(--ink-3); transition: opacity 0.5s ease; }
.mono .q.dim { opacity: 0; }
.mono g.rv, .mono path.rv, .mono text.rv, .mono circle.rv, .mono line.rv { transform: none; }

/* 6 · 승자 판정 */
.judge { display: grid; grid-template-columns: 1fr 120px 1fr; gap: 26px; align-items: center; }
.ev { display: flex; flex-direction: column; gap: 18px; }
.evc { background: var(--wash); border-radius: 16px; padding: 22px 26px; border-left: 6px solid var(--brand); }
.evc-k { font-size: 14px; font-weight: 800; color: var(--brand); }
.evc-t { font-size: 25px; font-weight: 800; letter-spacing: -0.035em; margin-top: 6px; }
.evc-s { font-size: 16px; color: var(--ink-2); margin-top: 8px; line-height: 1.55; }
.cmp { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--ink-1); display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.wouts { display: flex; flex-direction: column; gap: 12px; }
.wout { display: grid; grid-template-columns: 150px 1fr 110px; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; border: 2px solid var(--line); }
.wout b { font-size: 21px; font-weight: 800; }
.wout span { font-size: 15.5px; color: var(--ink-2); }
.wout em { font-style: normal; font-size: 15px; font-weight: 800; text-align: right; }
.wout.ok { border-color: var(--good); background: var(--good-soft); }
.wout.ok em { color: var(--good); }
.wout.single em { color: var(--ink-1); }
.wout.clash { border-color: var(--warn); background: var(--warn-soft); }
.wout.clash em, .wout.none em { color: var(--stop); }
.wout.none { border-style: dashed; }

/* 7 · 등급 */
.coach { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.gflow { display: grid; grid-template-columns: 170px 40px 170px 40px 1fr; align-items: center; gap: 0; }
.gnode { border-radius: 14px; padding: 18px 16px; text-align: center; border: 2px solid var(--ink-1); }
.gnode.me { background: var(--brand-soft); border-color: var(--brand); }
.gnode b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.gnode span { font-size: 14px; color: var(--ink-2); }
.garr { text-align: center; font-size: 26px; font-weight: 800; color: var(--ink-3); }
.grades { display: flex; flex-direction: column; gap: 10px; }
.grade { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 12px; }
.grade i { font-style: normal; font-size: 17px; font-weight: 800; text-align: center; padding: 8px 0; border-radius: 9px; }
.grade span { font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.g1 i { background: var(--brand); color: #fff; }
.g2 i { background: #a5a0ff; color: var(--ink-1); }
.g3 i { background: #fdc9a8; color: var(--ink-1); }
.g4 i { background: var(--orange); color: #fff; }
.good-mark { font-size: 14px; font-weight: 800; color: var(--brand); margin: 2px 0 2px 86px; }
.cmp4 table.t td { font-size: 17px; }
.cmp4 table.t td.me { background: var(--warn-soft); font-weight: 800; }
.cmp4 h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }

/* 8 · 검증 */
.vcards { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 22px; align-items: stretch; }
.vc { background: var(--wash); border-radius: 16px; padding: 26px 28px; }
.vc.main { background: var(--brand-soft); outline: 3px solid var(--brand); }
.vc-k { font-size: 15px; font-weight: 800; color: var(--ink-3); }
.vc.main .vc-k { color: var(--brand); }
.vc-t { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.vc-rows { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.vc-row { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.vc-row span { font-size: 16px; color: var(--ink-2); }
.vc-row b { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.vc-row b small { font-size: 15px; font-weight: 700; color: var(--ink-3); margin-left: 6px; }
.vc-s { font-size: 14.5px; color: var(--ink-3); margin-top: 14px; line-height: 1.5; }

/* 부록 표 */
table.t.app td { font-size: 16px; text-align: left; vertical-align: top; }
table.t.app th { text-align: left; }
table.t.app code { font-family: var(--mono); font-size: 14.5px; background: var(--wash); padding: 1px 6px; border-radius: 5px; }
