/* promoterpipe — 화면 토큰과 꼴. L4 정적 자원(정책값 아님 · docs/02 §3). 외부 글꼴 0 · 시스템 글꼴 묶음. */
:root {
  --bg: #f7f8fb; --bg-alt: #eef1f7; --card: #ffffff; --fg: #18202e; --mute: #556074;
  --line: #d9dee8; --accent: #2b66d2; --accent-fg: #ffffff; --ok: #1d7a46; --bad: #b42318; --unknown: #8a6d00;
  --radius: 14px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141c; --bg-alt: #151b25; --card: #1a2230; --fg: #e8ecf3; --mute: #a3adbd;
    --line: #2a3445; --accent: #6c9cf0; --accent-fg: #0b1220; --ok: #5cc98a; --bad: #f2867c; --unknown: #e3c15a;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0f141c; --bg-alt: #151b25; --card: #1a2230; --fg: #e8ecf3; --mute: #a3adbd;
  --line: #2a3445; --accent: #6c9cf0; --accent-fg: #0b1220; --ok: #5cc98a; --bad: #f2867c; --unknown: #e3c15a;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--accent); }
img, svg { max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em;
       background: var(--bg-alt); padding: .05em .35em; border-radius: 6px; }
.mute { color: var(--mute); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-fg); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* 머리 막대 · 서랍 */
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 1rem;
       padding: .6rem 16px; background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--fg); text-decoration: none; }
.menu { margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
        background: var(--card); color: var(--fg); cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; margin: 0 auto;
        background: currentColor; position: relative; content: ""; }
.menu-icon::before { position: absolute; top: -6px; } .menu-icon::after { position: absolute; top: 6px; }
.drawer { position: fixed; inset: 61px 0 auto auto; width: min(320px, 100%); max-height: calc(100vh - 61px);
          display: none; flex-direction: column; gap: .25rem; padding: 1rem; overflow: auto;
          background: var(--card); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.drawer.open { display: flex; }
.drawer a { padding: .7rem .8rem; border-radius: 10px; color: var(--fg); text-decoration: none; }
.drawer a:hover { background: var(--bg-alt); }
.drawer .cta { background: var(--accent); color: var(--accent-fg); text-align: center; font-weight: 600; }
.theme { align-self: flex-start; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px;
         background: transparent; color: var(--fg); cursor: pointer; }
@media (min-width: 900px) {
  .menu { display: none; }
  .drawer { position: static; display: flex; flex-direction: row; align-items: center; margin-left: auto;
            width: auto; max-height: none; padding: 0; background: none; border: 0; box-shadow: none; overflow: visible; }
  .theme { align-self: center; }
}

/* 띠 · 틀 */
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 16px; }
.narrow { width: min(680px, 100%); }
.band { padding: 3.5rem 0; }
/* 쪽 안 이동 뒤 섹션 머리가 붙박이 막대 밑에 숨지 않게(2026-11-01 공개 사이트에서 잼: 위치 0 = 막대 아래) */
section[id] { scroll-margin-top: 4.5rem; }
.band.alt { background: var(--bg-alt); }
h1 { font-size: clamp(1.85rem, 1.1rem + 2.6vw, 3.1rem); line-height: 1.22; margin: .2em 0 .4em; text-wrap: balance; }
h2 { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); line-height: 1.3; margin: 0 0 .5em; text-wrap: balance; }
h3 { font-size: 1.12rem; margin: .2em 0 .4em; }

.hero { display: grid; gap: 1.5rem; padding: 3rem 0 2rem; }
.hero .lead { font-size: 1.15rem; color: var(--mute); max-width: 46rem; }
.eyebrow { color: var(--accent); font-weight: 600; margin: 0; }
.hero-art { width: min(420px, 90%); margin: 0 auto; }
.art-dots circle { fill: var(--mute); opacity: .55; }
.art-lines path { stroke: var(--line); stroke-width: 2; fill: none; }
.art-door { fill: var(--accent); }
.art-key { stroke: var(--accent-fg); stroke-width: 4; fill: none; stroke-linecap: round; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.3fr 1fr; align-items: center; width: min(1120px, 100%); margin: 0 auto; }
  .hero .wrap { width: auto; margin: 0; }
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.1rem;
       border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg);
       font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

/* 카드 그리드 */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.two { grid-template-columns: repeat(2, 1fr); } }
.hero-index { grid-template-columns: minmax(0, 1fr); }  /* 그림이 넓어도 칸이 따라 늘지 않게(1280 실측: 첫 화면 그림 넘침) */
.product-card h3 { font-size: 1.4rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.card .tag { margin: 0; font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.card .more { color: var(--mute); font-size: .95rem; }
.card .more ul { padding-left: 1.1rem; margin: .4rem 0 0; }
.fact .big { font-size: 1.6rem; font-weight: 800; margin: 0; }
.fact .src { font-size: .82rem; }
.section ol, .section ul { padding-left: 1.2rem; }

/* 화면으로 보기 — 단계 카드 + 그림(그림 폭 · 높이 속성으로 자리를 미리 잡는다 · 누르면 원본) */
.steps { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.screen .shot { display: block; margin: 0 0 .8rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-alt); }
.screen img { display: block; width: 100%; height: auto; }

/* 첫 화면 — 히어로 흐름 · 번호 붙은 제품 섹션 · 활용 · 도입 단계(docs/02 §2c) */
/* 흐름 그림 — 입력 → 판단 → 적용 → 결과 · 바탕(docs/02 §2d). 그림이 아니라 글이라 화면 읽개도 차례대로 읽는다 */
/* 흐름 그림이 있는 히어로 — 제목 · 행동은 위(읽기 좋은 폭), 그림은 아래 전체 폭(02 §2f · 사용자 「현대식 화면 비율 · 반응형」) */
.hero-stack .hero-text, .hero-stack > .wrap { max-width: 52rem; }
.hero-stack h1 { max-width: 20em; }
@media (min-width: 900px) {
  .hero.hero-stack { grid-template-columns: minmax(0, 1fr); }
  .hero.hero-stack > .wrap { width: 100%; }
}
.dataflow { width: min(760px, 100%); margin: 1.5rem 0 0; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-alt);
            display: grid; gap: .6rem; }
.dataflow figcaption { font-size: .85rem; font-weight: 700; color: var(--mute); }
.df-badge { justify-self: start; display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: .35rem .85rem;
            border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .88rem; font-weight: 600; }
.df-badge .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--ok); flex: none; }
.df-inputs { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) { .df-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.df-box { padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.df-box .df-title { font-size: 1rem; margin: .1rem 0 .2rem; font-weight: 700; line-height: 1.3; }
.df-tag { margin: 0; font-size: .75rem; font-weight: 700; color: var(--accent); }
.df-tag:empty { display: none; }
.df-sum { margin: 0; font-size: .88rem; color: var(--mute); }
.df-box ul { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.df-box li { padding: .15rem .55rem; border-radius: 999px; background: var(--bg-alt); font-size: .8rem; }
.df-stage { border-color: var(--accent); }
.df-result { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.df-result .df-tag, .df-result .df-sum { color: var(--accent-fg); opacity: .9; }
.df-result li { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-fg) 55%, transparent); }   /* 덧칠 배경은 밝은 모드에서 흰 글자 대비를 4.5 아래로 — axe 가 잡음(30 §8h) */
.df-note { margin: .5rem 0 0; font-size: .8rem; color: var(--mute); }
.df-note:empty { display: none; }
.df-base { border-top: 1px dashed var(--line); padding-top: .6rem; }
.df-base .df-box { background: transparent; border-style: dashed; }
.df-arrow { margin: 0; display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--mute); font-size: .82rem; }
.df-line { position: relative; width: 2px; height: 30px; flex: none;
           background: repeating-linear-gradient(to bottom, var(--accent) 0 5px, transparent 5px 10px); }
.df-line::before { content: ""; position: absolute; left: -4px; bottom: -2px; border: 5px solid transparent; border-top-color: var(--accent);
                   border-bottom: 0; }
.df-arrow em { font-style: normal; }
.df-arrow em:empty { display: none; }

/* 넓은 화면: 흐름 줄을 가로로 — 입력 칸은 세로로 쌓고, 단계 · 결과가 오른쪽으로 이어진다. 그림은 본문 폭보다 넓게(1280) 가운데 */
@media (min-width: 1200px) {
  .dataflow { width: min(1280px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%);
              padding: 1.25rem; gap: .9rem; }
  .df-track { display: flex; align-items: stretch; }
  .df-track > .df-inputs { flex: 1 1 0; min-width: 0; grid-template-columns: minmax(0, 1fr); align-content: center; }
  .df-track > .df-box { flex: 1 1 0; min-width: 0; }
  .df-track > .df-arrow { flex: none; width: 58px; flex-direction: column; gap: .35rem; text-align: center; }
  .df-track .df-line { width: 40px; height: 2px;
                       background: repeating-linear-gradient(to right, var(--accent) 0 5px, transparent 5px 10px); }
  .df-track .df-line::before { left: auto; right: -3px; top: -4px; bottom: auto; border: 5px solid transparent;
                               border-left-color: var(--accent); border-right: 0; }
  .df-track .df-arrow em { font-size: .75rem; line-height: 1.3; }
  .df-track .df-box .df-title { font-size: .98rem; }
  .df-track .df-sum { font-size: .84rem; }
  .df-base { display: grid; }
}

/* 흐름 움직임(ingkle 꼴 · 사용자 2026-11-02) — 화살표 점선이 흘러 내리고 점 하나가 떨어지며, 상자는 차례(df-s<n>)대로 잠깐 불이 든다.
   움직임을 줄인 화면(prefers-reduced-motion)은 멈춘 그림 그대로다. 시간 값은 보이는 꼴(정책값 아님). */
@media (prefers-reduced-motion: no-preference) {
  .df-line { animation: df-dash .9s linear infinite; }
  .df-line::after { content: ""; position: absolute; left: -3px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
                    background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: df-drop 1.8s ease-in infinite; }
  .df-box { animation: df-glow 7.2s ease-in-out infinite; }
  .df-s2 { animation-delay: .9s; } .df-s3 { animation-delay: 1.8s; } .df-s4 { animation-delay: 2.7s; }
  .df-s5 { animation-delay: 3.6s; } .df-s6 { animation-delay: 4.5s; } .df-s7 { animation-delay: 5.4s; } .df-s8 { animation-delay: 6.3s; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1200px) {
  .df-track .df-line { animation-name: df-dash-x; }
  .df-track .df-line::after { left: -4px; top: -3px; animation-name: df-drop-x; }
}
@keyframes df-dash { to { background-position: 0 10px; } }
@keyframes df-dash-x { to { background-position: 10px 0; } }
@keyframes df-drop-x { 0% { left: -4px; opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { left: 36px; opacity: 0; } }
@keyframes df-drop { 0% { top: -4px; opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { top: 26px; opacity: 0; } }
@keyframes df-glow {
  0%, 18%, 100% { box-shadow: none; }
  6% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent), 0 6px 18px color-mix(in srgb, var(--accent) 25%, transparent); }
}
.band.intro { padding-bottom: 0; }
/* 제품 바로가기(머리 메뉴 대신 — 제품이 많아도 머리는 한 줄 · 2026-11-28) */
.chips { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem .8rem; border: 1px solid var(--line);
           border-radius: 999px; background: var(--card); color: var(--fg); text-decoration: none; }
.chips a:hover { border-color: var(--accent); }
.chips .num { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.product-band .num { font-variant-numeric: tabular-nums; }
.split { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem; } }
.points { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; }
.points li { display: grid; gap: .15rem; padding-left: 1rem; border-left: 3px solid var(--accent); }
.points span { color: var(--mute); font-size: .95rem; }
.front-shot { margin: 0; }
.front-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px;
                  background: var(--bg-alt); box-shadow: var(--shadow); }
.front-shot figcaption { font-size: .85rem; margin-top: .5rem; }
/* 3D 장면(02 §2h) — 렌더한 그림 한 장. 어두운 장면이라 두 꼴 모두 같은 그림 · 테두리만 꼴을 따른다 */
.scene3d { margin: 0; }
.scene3d img { display: block; width: 100%; height: auto; border-radius: 14px; background: #04070d;
               border: 1px solid var(--line); box-shadow: var(--shadow); }
.scene3d figcaption { font-size: .85rem; margin-top: .5rem; }
.hero > .scene3d { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
@media (min-width: 900px) { .hero:not(.hero-stack) > .scene3d { grid-column: 1 / -1; } }
/* 이야기 장(02 §2i) · 2.5D 도식 판(02 §2j) — 글 위, 아래에 [도식 + 번호 | ①②③ 패널]. 좁으면 한 열 */
.chapters { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 3rem; counter-reset: none; }
.chapter { display: grid; gap: 1rem; }
.chapter h3 { margin: .25rem 0 .5rem; font-size: 1.35rem; }
.chapter .eyebrow { margin: 0; }
.chapter .panel { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .chapter .panel { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.twin-pic { position: relative; }
.twin-band { margin-top: 1.5rem; }
.twin-band h2 { margin: .25rem 0 .5rem; }
.twin-band .panel { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .twin-band .panel { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.twin-pic .marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.marks circle { fill: var(--accent); fill-opacity: .9; stroke: #04070d; stroke-width: 3; }
.marks text { fill: #04070d; font-size: 46px; font-weight: 800; text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
.legend { list-style: none; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
          display: grid; gap: .75rem; counter-reset: lg; }
.legend > li { counter-increment: lg; }
.legend .lg-title { margin: 0; font-weight: 700; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }   /* 꺾인 줄도 번호 옆에 내어쓰기 */
.legend .lg-title::before { content: counter(lg); display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: .5em;
                            border-radius: 50%; background: var(--accent); color: var(--bg); font-size: .85em; }
.legend ul { list-style: disc; margin: .35rem 0 0; padding: 0 0 0 2.6em; display: grid; gap: .2rem; font-size: .95rem; }
.usecase { display: flex; flex-direction: column; }
.usecase .go { margin: auto 0 0; padding-top: .5rem; }
.roadmap { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .roadmap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step .num { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.step .check { margin: .8rem 0 0; padding-top: .7rem; border-top: 1px dashed var(--line); font-size: .92rem; }
.step .check span { display: block; font-size: .8rem; font-weight: 700; color: var(--mute); }
.closing h2 { margin-bottom: 1rem; }

/* 상태 — 색만으로 말하지 않는다(글자를 함께) */
.state { display: flex; align-items: center; gap: .4rem; font-size: .9rem; margin: .4rem 0 0; }
.state .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--unknown); }
.state-ok .dot { background: var(--ok); }
.state-self .dot { background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.chip { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); text-decoration: none; background: var(--card); }

/* 폼 */
/* 칸이 줄어들 수 있게 — 입력칸의 기본 글자 폭(size)이 좁은 화면에서 그리드를 밀어내지 않게(2026-11-01 390px 실측 19px 넘침) */
.form { display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr); }
.form label { display: grid; gap: .35rem; font-weight: 600; min-width: 0; }
.form input, .form select, .form textarea { width: 100%; min-width: 0; font: inherit; padding: .65rem .75rem; border-radius: 10px;
        border: 1px solid var(--line); background: var(--card); color: var(--fg); min-height: 44px; }
.form .hp { position: absolute; left: -9999px; }
.problems { color: var(--bad); }

.foot { padding: 2rem 16px; text-align: center; border-top: 1px solid var(--line); font-size: .9rem; }

@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform .15s ease, box-shadow .15s ease; }
  .card:hover { transform: translateY(-2px); }
}

/* 기본 구성안 · 구성 편집기(docs/02 §2n) — 있는 색 토큰만 */
.plan .go { display: flex; flex-wrap: wrap; gap: .5rem; }
.links { padding-left: 1.2rem; }
.links li { margin: .4rem 0; }
.editor fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 1rem; padding: .6rem 1rem; }
.editor legend { font-weight: 600; padding: 0 .3rem; }
.editor label { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-right: 1rem; }
.editor input { width: 1.2rem; height: 1.2rem; }
.editor-out { border-left: 3px solid var(--accent); padding-left: 1rem; }
/* 그림 구성도(docs/02 §2o) — 제품 그림 타일 · 그림판 · 선(확인한 연동 실선 · 확인 안 됨 점선) */
.canvas { margin: 1rem 0 1.5rem; }
.palette { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tile { display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 120px; min-height: 44px; padding: .4rem; border: 1px solid var(--line);
  border-radius: 10px; background: var(--card); color: var(--fg); font: inherit; font-size: .85rem; cursor: grab; touch-action: none; }
.tile img, .node img { width: 104px; height: 58px; object-fit: cover; border-radius: 6px; pointer-events: none; }
.tile:focus-visible, .node button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.board { position: relative; height: 420px; max-width: 100%; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--bg);
  overflow: hidden; touch-action: none; }
.board-empty[hidden] { display: none; }
.board-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 1rem; text-align: center; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wire { stroke-width: 3; }
.wire.ok { stroke: var(--ok); }
.wire.unknown { stroke: var(--unknown); stroke-dasharray: 8 6; }
.wire.temp { stroke: var(--accent); stroke-dasharray: 4 4; }
.node { position: absolute; width: 128px; padding: .4rem; display: flex; flex-direction: column; align-items: center; gap: .25rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); font-size: .8rem; text-align: center;
  cursor: move; touch-action: none; user-select: none; }
.node .handle, .node .rm { min-height: 32px; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-alt); color: var(--fg); font: inherit; }
.node .handle { cursor: crosshair; border-color: var(--accent); }
.wire-form { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .8rem 0; }
.wire-form label { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.wire-form select { min-height: 40px; max-width: 100%; }
.wire-list li[data-state="ok"] span { color: var(--ok); }
.wire-list li[data-state="unknown"] span { color: var(--unknown); }
@media (max-width: 560px) { .tile { width: calc(50% - .25rem); } .board { height: 360px; } .node { width: 112px; } .tile img, .node img { width: 92px; height: 52px; } }
/* 내 구성안(docs/02 §2p) — NI 연결표 · SI 제품표 · 쇼핑몰 링크 0 */
.result { margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.result .table { width: 100%; border-collapse: collapse; margin: .4rem 0 1rem; font-size: .9rem; display: block; overflow-x: auto; }
.result .table th, .result .table td { border-bottom: 1px solid var(--line); padding: .45rem .5rem; text-align: left; vertical-align: top; }
.result .table ul { margin: 0; padding-left: 1.1rem; }
.result tr[data-state="ok"] td:last-child { color: var(--ok); }
.result tr[data-state="unknown"] td:last-child { color: var(--unknown); }
/* CAD 구성 편집기 · 기본 모델(docs/02 §2q) — 장비 아이콘 · 속성 칸 · 구성 점검 · 길잡이 */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.models { display: grid; gap: 1rem; }
.model { margin: 0; padding: 1rem; }
.model figcaption { margin-bottom: .6rem; }
.chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; }
.chain .tier { position: relative; flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: .25rem; padding: .6rem .7rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: .85rem; }
.chain .tier .ic { color: var(--accent); }
.chain .tier .chips { margin: .2rem 0 0; }
.guide { display: grid; gap: 1rem; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); margin: 1rem 0; }
.steps { margin: 0; padding-left: 1.3rem; }
.steps li { padding: .2rem .3rem; border-radius: 6px; }
.steps li.on { background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.steps li.done { color: var(--mute); text-decoration: line-through; }
.glossary dl { margin: .5rem 0 0; font-size: .9rem; }
.glossary dt { font-weight: 600; margin-top: .4rem; }
.glossary dd { margin: 0; color: var(--mute); }
.palette.devices .tile .ic { width: 40px; height: 40px; color: var(--accent); }
.toolbar { margin: .4rem 0; }
.cad { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: .8rem; align-items: start; }
.board { background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 20px 20px; }
.node.device .ic { width: 44px; height: 44px; color: var(--accent); }
.node .ip { font-size: .72rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.node.sel { outline: 3px solid var(--accent); outline-offset: 2px; }
.node[data-issue="bad"] { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad); }
.node[data-issue="ask"] { border-color: var(--unknown); }
.wires line.hit { stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
.wire.net { stroke: var(--mute); }
.wire.sel { stroke-width: 5; }
.props { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; background: var(--card); }
.props label { display: flex; flex-direction: column; gap: .2rem; margin-bottom: .5rem; font-size: .85rem; }
.props input, .props select, .vlan-table input { min-height: 36px; width: 100%; padding: 0 .4rem; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--fg); font: inherit; }
.checks { margin: 1rem 0; }
.check-sum[data-bad="0"] { color: var(--ok); font-weight: 600; }
.check-sum:not([data-bad="0"]) { color: var(--bad); font-weight: 600; }
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.issue { display: grid; gap: .15rem; width: 100%; text-align: left; padding: .5rem .7rem; border: 1px solid var(--line); border-left-width: 4px;
  border-radius: 8px; background: var(--card); color: var(--fg); font: inherit; font-size: .88rem; cursor: pointer; }
.issues li[data-level="bad"] .issue { border-left-color: var(--bad); }
.issues li[data-level="ask"] .issue { border-left-color: var(--unknown); }
.issue .lv { font-weight: 700; }
.issue .why, .issue .fix { color: var(--mute); }
.json textarea { width: 100%; font-family: ui-monospace, monospace; font-size: .8rem; background: var(--bg); color: var(--fg);
  border: 1px solid var(--line); border-radius: 6px; }
.bad { color: var(--bad); }
@media (max-width: 860px) { .cad, .guide { grid-template-columns: minmax(0, 1fr); } }
/* 작업대 꼴(docs/02 §2v) — 넓은 폭 · 왼쪽 팔레트 · 가운데 도구 막대 + 그림판 · 오른쪽 속성 · 점검 · 아래 탭 */
details.cad-more > .cad-app { width: min(1600px, calc(100vw - 32px)); margin-left: calc(50% - min(800px, 50vw - 16px)); margin-right: 0;
  padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); box-sizing: border-box; }
.cad-bar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; margin: .6rem 0; padding: .4rem .5rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.cad-group { display: inline-flex; align-items: center; gap: .3rem; }
.cad-group + .cad-group { padding-left: .8rem; border-left: 1px solid var(--line); }
.cad-bar .btn { min-height: 36px; padding: 0 .7rem; }
.cad-bar .btn:disabled { opacity: .45; cursor: not-allowed; }
.cad-zoom { min-width: 3.4rem; text-align: center; font-variant-numeric: tabular-nums; color: var(--mute); }
.cad-app .cad { grid-template-columns: 220px minmax(0, 1fr) 300px; gap: .6rem; }
.cad-side { min-width: 0; max-height: 72vh; overflow: auto; padding: .5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.cad-find { width: 100%; min-height: 36px; margin-bottom: .4rem; padding: 0 .5rem; box-sizing: border-box; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--fg); font: inherit; }
.cad-palette .palette { gap: .3rem; }
.cad-palette .palette li[hidden] { display: none; }
.cad-palette .tile { width: 100%; flex-direction: row; justify-content: flex-start; gap: .5rem; padding: .3rem .4rem; text-align: left; }
.cad-palette .tile img { width: 44px; height: 26px; }
.cad-palette .palette.devices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cad-palette .palette.devices .tile { flex-direction: column; align-items: center; text-align: center; }
.cad-palette .palette.devices .tile .ic { width: 28px; height: 28px; }
.cad-stage { min-width: 0; }
.viewport { overflow: auto; max-height: 72vh; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.sizer { position: relative; min-height: 420px; }
.cad-app .board { position: absolute; top: 0; left: 0; max-width: none; border: 0; border-radius: 0; transform-origin: 0 0; }
.wires { overflow: visible; }
.wire-label { font-size: 12px; font-weight: 600; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
.wire-label.ok { fill: var(--ok); }
.wire-label.unknown { fill: var(--unknown); }
.cad-keys { margin: .3rem 0 0; font-size: .8rem; }
.cad-right .props { border: 0; padding: 0 0 .6rem; border-bottom: 1px solid var(--line); border-radius: 0; }
.cad-right .checks { margin: .6rem 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; margin: .3rem 0 0 .3rem; }
.chip { min-height: 28px; padding: 0 .55rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg); font: inherit;
  font-size: .78rem; font-style: normal; cursor: pointer; }
.cad-tabs { margin-top: .8rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.tab-list { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
.tab-list[hidden], .tab-panel[hidden] { display: none; }
.tab-list [role="tab"] { min-height: 40px; padding: 0 .9rem; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--mute); font: inherit; cursor: pointer; }
.tab-list [role="tab"][aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
.tab-list:not([hidden]) ~ .tab-panel > h4 { display: none; }   /* 탭이 서면 판 제목은 탭 글이 대신함 */
/* 동적 판(docs/02 §2w) — 판 옮기기 · 빈 판 시작 · 작은 지도 · 칸 띠 · 상자 고르기 · 찾기 */
.stage-wrap { position: relative; }
.cad-app .viewport { cursor: grab; touch-action: none; overscroll-behavior: contain; }
.cad-app .viewport:active { cursor: grabbing; }
.cad-app .board-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  margin: 0; padding: 1rem; text-align: center; pointer-events: none; }
.cad-app .board-empty[hidden] { display: none; }
.cad-app .board-empty p { margin: 0; color: var(--mute); }
.cad-app .board-empty .start { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.cad-app .board-empty button { pointer-events: auto; }
.minimap { position: absolute; right: 10px; bottom: 10px; width: 180px; height: 120px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); box-shadow: var(--shadow); cursor: pointer; }
.minimap[hidden] { display: none; }
.minimap .mm-node { fill: var(--mute); opacity: .55; }
.minimap .mm-node.sel { fill: var(--accent); opacity: 1; }
.minimap .mm-view { fill: var(--accent); fill-opacity: .08; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sel-count { position: absolute; left: 10px; top: 10px; margin: 0; padding: .2rem .6rem; border-radius: 999px; background: var(--accent); color: var(--accent-fg);
  font-size: .8rem; font-weight: 600; }
.sel-count[hidden] { display: none; }
.wires .band { fill: var(--accent); fill-opacity: .04; stroke: var(--line); stroke-dasharray: 6 5; }
.wires .band-label { font-size: 12px; font-weight: 600; fill: var(--mute); }
.cad-app .box { position: absolute; border: 1px dashed var(--accent); background: rgba(43, 102, 210, .08); pointer-events: none; z-index: 4; }
.cad-app .node.hit { box-shadow: 0 0 0 3px var(--unknown); }
.cad-bar .cad-find { width: 11rem; margin: 0; }
.cad-bar [aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
@media (max-width: 900px) { .minimap { width: 120px; height: 80px; } .cad-bar .cad-find { width: 100%; } }
/* 명령 팔레트 · 누를 수 있는 키 · 막힘 까닭 · 구성 설계서 · 비교(docs/02 §2x · 형제 ciscopipe) */
.cmd { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(15, 20, 28, .35); }
.cmd[hidden] { display: none; }
.cmd-box { width: min(560px, 100%); max-height: 70vh; display: flex; flex-direction: column; gap: .4rem; padding: .8rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.cmd-box .cad-find { width: 100%; margin: 0; font-size: 1rem; min-height: 42px; }
.cmd-hint { margin: 0; font-size: .8rem; }
.cmd-list { list-style: none; margin: 0; padding: 0; overflow: auto; }
.cmd-list li { display: grid; grid-template-columns: 1fr auto auto; gap: .1rem .6rem; align-items: center; padding: .45rem .6rem; border-radius: 8px; cursor: pointer; }
.cmd-list li[aria-selected="true"] { background: var(--bg-alt); outline: 2px solid var(--accent); outline-offset: -2px; }
.cmd-list li[aria-disabled="true"] { cursor: not-allowed; }
.cmd-list li[aria-disabled="true"] .name { color: var(--mute); }
.cmd-list .grp { font-size: .75rem; color: var(--mute); }
.cmd-list kbd { font: inherit; font-size: .75rem; padding: 0 .35rem; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.cmd-list .why { grid-column: 1 / -1; font-size: .78rem; color: var(--unknown); }
.cad-hints { margin: .35rem 0 0; font-size: .82rem; color: var(--fg); }
.doc-body h5 { margin: 1rem 0 .3rem; font-size: .95rem; }
.doc-body .table { width: 100%; border-collapse: collapse; margin: .3rem 0 .8rem; font-size: .85rem; display: block; overflow-x: auto; }   /* 칸 줄 · 줄 바탕(판 96) */
.doc-body .table th, .doc-body .table td { border: 1px solid var(--line); padding: .35rem .5rem; text-align: left; vertical-align: top; }
.doc-body .table thead th { background: var(--bg-alt); font-weight: 600; }
.doc-body .table tbody tr:nth-child(even) td { background: var(--bg); }
.doc-body .table td.none { color: var(--mute); text-align: center; }
.doc-body li[data-level="bad"] { color: var(--bad); }
.doc-text { width: 100%; margin-top: .6rem; font-family: ui-monospace, monospace; font-size: .75rem; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; }
.cmp textarea { width: 100%; font-family: ui-monospace, monospace; font-size: .8rem; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; }
[data-cmp="added"] { color: var(--ok); } [data-cmp="removed"] { color: var(--bad); } [data-cmp="changed"] { color: var(--unknown); }
@media print {                                                               /* 「인쇄」 — 구성 설계서만 찍힘 */
  .print-doc body * { visibility: hidden; }
  .print-doc [data-panel="doc"], .print-doc [data-panel="doc"] * { visibility: visible; }
  .print-doc [data-panel="doc"] { position: absolute; left: 0; top: 0; width: 100%; }
  .print-doc [data-panel="doc"] .doc-act, .print-doc .doc-text { display: none; }
  .print-doc .doc-body .table { display: table; overflow: visible; }                  /* 인쇄 — 칸 줄은 검정 · 줄 바탕은 옅게(잉크) */
  .print-doc .doc-body .table th, .print-doc .doc-body .table td { border-color: #000; }
  .print-doc .doc-body .table tbody tr:nth-child(even) td { background: #f2f2f2; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-doc .doc-body .table tr { break-inside: avoid; }
}
/* 노드 — 손잡이는 오른쪽 가장자리 점 · 빼기는 오른쪽 위 작은 단추(editor.rksna.com 꼴) · 고르거나 올렸을 때만 보임(손가락 화면은 늘) */
.cad-app .node { width: 120px; padding: .45rem .4rem; gap: .2rem; }
.cad-app .node .handle, .cad-app .node .rm { position: absolute; min-height: 0; height: 22px; padding: 0 .45rem; font-size: .7rem; line-height: 20px;
  border-radius: 999px; visibility: hidden; z-index: 2; }
.cad-app .node .handle { right: -14px; top: calc(50% - 11px); background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.cad-app .node .rm { right: -8px; top: -11px; }
.cad-app .node:hover .handle, .cad-app .node:hover .rm, .cad-app .node:focus-within .handle, .cad-app .node:focus-within .rm,
.cad-app .node.sel .handle, .cad-app .node.sel .rm { visibility: visible; }
@media (hover: none) { .cad-app .node .handle, .cad-app .node .rm { visibility: visible; } }
.cad-app .node img { width: 100px; height: 54px; }
.cad-app .node.device .ic { width: 36px; height: 36px; }
@media (max-width: 900px) {
  details.cad-more > .cad-app { width: auto; margin-left: 1rem; margin-right: 1rem; padding: .5rem; }
  .cad-app .cad { grid-template-columns: minmax(0, 1fr); }
  .cad-side { max-height: none; }
  .cad-palette { max-height: 44vh; }                                   /* 가로 띠는 화면 밖으로 이어져 넘침 규칙에 걸림 — 접어 쌓고 세로로 스크롤 */
  .cad-palette .palette, .cad-palette .palette.devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
  .cad-palette .tile, .cad-palette .palette.devices .tile { width: 100%; min-width: 0; }
  .cad-group + .cad-group { padding-left: 0; border-left: 0; }
  .viewport { max-height: 60vh; }
}
/* 쉬운 홍보 층(docs/02 §2r) — 검증 자료 · 직접 설계해 보기는 접힘 */
details.proof, details.cad-more { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
details.proof > summary, details.cad-more > summary { cursor: pointer; padding: .8rem 1rem; font-weight: 600; min-height: 44px; }
details.cad-more > summary { background: var(--accent); color: var(--accent-fg); border-radius: var(--radius); font-size: 1.05rem; }   /* 눈에 띄는 큰 단추 꼴 — 안에 편집기가 있음을 알게(판 86 덧) */
details.cad-more[open] > summary { border-radius: var(--radius) var(--radius) 0 0; }
details.proof > .grid { padding: 0 1rem 1rem; }
details.cad-more > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
.tiers-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .5rem 1rem; margin: 0 0 1rem; font-size: .88rem; }
.tiers-legend dt { display: flex; align-items: center; gap: .4rem; font-weight: 600; }
.tiers-legend dt .ic { width: 22px; height: 22px; color: var(--accent); }
.tiers-legend dd { margin: .1rem 0 0; color: var(--mute); }
.check-sum[data-empty="1"] { color: var(--mute); }
/* 문제별로 찾기(docs/02 §2s) */
.card.problem h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.card.problem .chips { margin-top: .6rem; }
/* 시나리오(docs/02 §2u) — 문제 → 구성 → 해결 */
.scenario-hero .why { max-width: 60rem; }
.scenario-chain .tier { opacity: .45; }
.scenario-chain .tier.on { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.scenario-steps { counter-reset: st; list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.scenario-steps li { counter-increment: st; position: relative; padding: .8rem 1rem .8rem 3.2rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.scenario-steps li::before { content: counter(st); position: absolute; left: .9rem; top: .75rem; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.scenario-limits li, .scenario-start li { margin: .4rem 0; }
.scenario-go { list-style: none; margin: .2rem 0 0; padding: 0; }
.scenario-go a { font-weight: 600; }
.src a { white-space: nowrap; }
