/* ==========================================================
   페이지투웹 kit · 디자인 "사양" (spec) — shadcn 겉모습(공용 토큰은 shadcn.css), 제품 하나를 깊게.
   2026-11-21부터 한 화면형: 위 줄 + 왼쪽 고정 칸(누끼 · 이름 · 핵심 숫자 · 버튼) + 오른쪽 탭 칸(내용만 바뀜, 칸 안에서 스크롤).
   바탕은 흰색, 회색 단계는 zinc. 색 면은 오른쪽 칸 아래 문의 줄 하나(고객 색을 검정에 섞은 것).
   ========================================================== */
@import url("shadcn.css");

/* ---------- 한 화면형(2026-11-21): 위 줄 + 왼쪽 고정 칸 + 오른쪽 탭 칸 ----------
   PC(1024px 이상)는 페이지가 스크롤되지 않는다. 긴 탭은 오른쪽 칸(.sp-panels) 안에서만 스크롤.
   휴대폰은 위에서 아래로: 요약 칸 → 붙는 탭 줄 → 고른 탭 하나. 인쇄는 모든 탭이 차례로 */
.sp { --sp-top: 56px; }
.sp main { overflow-x: clip; }
.sp-top { border-bottom-color: var(--ui-border); }
.sp-top-in { display: flex; align-items: center; gap: 16px; height: var(--sp-top); padding-inline: clamp(16px, 2vw, 28px); }
.sp-top .sp-crumb { margin: 0 0 0 8px; padding-left: 16px; border-left: 1px solid var(--ui-border); }
.sp-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ui-muted-fg); min-width: 0; }
.sp-crumb span + span::before { content: "/"; margin-right: 8px; color: var(--ui-300); }
.sp-crumb [aria-current] { color: var(--ui-fg); font-weight: 600; }

.sp-shell { display: grid; grid-template-columns: minmax(340px, 30%) minmax(0, 1fr); }
.sp-side { display: flex; flex-direction: column; gap: 18px; padding: 20px clamp(16px, 2vw, 28px) 24px; border-right: 1px solid var(--ui-border); background: var(--ui-bg); }
.sp-main { min-width: 0; display: flex; flex-direction: column; }

/* 왼쪽: 누끼 · 이름 · 설명 · 숫자 · 버튼 */
.sp-stage { position: relative; margin: 0; flex: 1 1 auto; min-height: 180px; max-height: 360px; border-radius: var(--ui-radius-lg); background: var(--ui-100); overflow: hidden; }
.sp-stage::after { content: ""; position: absolute; left: 24%; right: 28%; bottom: 7%; height: 5%; border-radius: 50%; background: rgb(9 9 11 / .16); filter: blur(12px); }
.sp-stage img, .sp-stage video { position: absolute; z-index: 1; left: 50%; bottom: 6%; height: 88%; width: auto; transform: translateX(-46%); }
.sp-stage.has-photo img { inset: 0; height: 100%; width: 100%; object-fit: cover; transform: none; }
.sp-stage video { opacity: 0; transition: opacity .6s; }
.sp-stage.is-playing video { opacity: 1; }
.sp-name { margin: 0; font-size: clamp(36px, 3.2vw, 56px); line-height: .98; font-weight: 600; letter-spacing: -.05em; }
.sp-name .sp-kicker { display: inline; margin-left: .3em; font-size: .46em; letter-spacing: -.03em; color: var(--ui-500); vertical-align: .12em; }
.sp-tagline { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--ui-700); word-break: keep-all; text-wrap: pretty; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sp-actions .ui-btn { flex: 1 1 auto; }
.sp-hero .sp-hero-copy > *, .sp-stage img { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ui-ease), transform .8s var(--ui-ease); }
.sp-stage img { transform: translateX(-46%) translateY(24px); }
.sp-hero.is-ready .sp-hero-copy > * { opacity: 1; transform: none; }
.sp-hero.is-ready .sp-stage img { opacity: 1; transform: translateX(-46%); transition-delay: .15s; }
.sp-hero.is-ready .sp-stage.has-photo img { transform: none; }
.sp-hero-copy > :nth-child(2) { transition-delay: .05s; } .sp-hero-copy > :nth-child(3) { transition-delay: .1s; }
.sp-hero-copy > :nth-child(4) { transition-delay: .15s; } .sp-hero-copy > :nth-child(5) { transition-delay: .2s; }

/* 핵심 숫자: 두 칸씩, 회색 면 하나 */
.sp-stats { margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; border-radius: var(--ui-radius-lg); overflow: hidden; background: #fff; }
.sp-stats > div { display: flex; flex-direction: column-reverse; justify-content: start; gap: 6px; padding: 12px 14px; background: var(--ui-100); min-width: 0; }
.sp-stats > div:last-child:nth-child(odd) { grid-column: span 2; }
.sp-stats dt { font-size: 13px; color: var(--ui-muted-fg); font-weight: 500; }
.sp-stats dd { margin: 0; font-size: clamp(22px, 1.7vw, 28px); line-height: 1; font-weight: 600; white-space: nowrap; }
.sp-stats dd small, .sp-pre { font-size: max(13px, .46em); font-weight: 500; color: var(--ui-muted-fg); letter-spacing: 0; }
.sp-stats dd small { margin-left: 3px; }
.sp-pre { font-size: .7em; color: var(--ui-fg); margin-right: 1px; }
.sp-lines { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.sp-lines li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.sp-lines svg { width: 16px; height: 16px; color: var(--ui-muted-fg); }
.sp-lines a { color: var(--ui-fg); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.sp-lines a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 오른쪽: 탭 줄 + 탭 내용 */
.sp-tabs { display: flex; gap: 2px; padding: 0 clamp(16px, 2.4vw, 40px); border-bottom: 1px solid var(--ui-border); background: rgb(255 255 255 / .97); overflow-x: auto; scrollbar-width: none; }
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tab { position: relative; flex: none; height: 52px; padding: 0 14px; border: 0; background: none; font: 500 15px/1 var(--ui-font); color: var(--ui-muted-fg); cursor: pointer; transition: color .15s; }
.sp-tab:hover { color: var(--ui-fg); }
.sp-tab[aria-selected="true"] { color: var(--ui-fg); font-weight: 600; }
.sp-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--ui-950); }
.sp-tab:focus-visible { outline: 2px solid var(--ui-700); outline-offset: -4px; border-radius: var(--ui-radius); }
.sp-panels { container-type: inline-size; padding: 0 clamp(16px, 2.4vw, 40px); }
.sp-panel { padding: 28px 0 40px; }
.sp-panel[hidden] { display: none; }
.sp-panel:focus-visible { outline: none; }
.sp-panel > .ui-sec-head { margin-bottom: 24px; }
.sp-panel .ui-h2 { font-size: clamp(24px, 2vw, 32px); }

/* 문의 한 줄 · 바닥글: 오른쪽 칸 맨 아래 */
.sp-ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; padding: 24px; border-radius: var(--ui-radius-lg); background: var(--ui-brand-deep); color: #fff; }
.sp-ask h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.sp-ask p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: rgb(255 255 255 / .8); max-width: 52ch; word-break: keep-all; }
.sp-ask-end { display: grid; gap: 4px; justify-items: start; }
.sp-ask .ui-btn { background: #fff; color: var(--ui-950); border-color: #fff; }
.sp-ask .sp-lines { margin: 0; }
.sp-ask .sp-lines a { color: #fff; }
.sp-ask .sp-lines svg { color: rgb(255 255 255 / .7); }
.sp-foot { margin-top: 24px; padding: 24px 0 32px; }
.sp-foot > div { padding: 0; }

/* 크게 보기 창 */
.sp-zoom-btn { margin-left: 8px; }
.sp-zoom { width: min(1200px, 94vw); max-height: 92svh; padding: 16px; border: 0; border-radius: var(--ui-radius-lg); box-shadow: 0 24px 64px rgb(9 9 11 / .28); }
.sp-zoom::backdrop { background: rgb(9 9 11 / .55); }
.sp-zoom form { display: flex; justify-content: end; margin-bottom: 8px; }
.sp-zoom-body .sp-dw-view { margin-inline: auto; }

@media (min-width: 1024px) {
  html:has(body.sp), body.sp { height: 100%; overflow: hidden; }
  .sp .ui-top { position: relative; }
  .sp-shell { height: calc(100svh - var(--sp-top) - 1px); grid-template-rows: minmax(0, 1fr); }
  .sp-side { overflow-y: auto; scrollbar-width: thin; }
  .sp-main { height: 100%; }
  .sp-tabs { flex: none; }
  .sp-panels { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
@media (max-width: 1023px) {
  .sp-shell { display: block; }
  .sp-side { border-right: 0; padding: 16px 16px 8px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; align-items: start; }
  .sp-stage { min-height: 0; aspect-ratio: 4 / 5; max-height: none; }
  .sp-tabs { position: sticky; top: var(--sp-top); z-index: 40; padding-inline: 8px; }
  .sp-panels { padding-inline: 16px; }
  .sp-panel { padding-top: 20px; }
  .sp-ask { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* 요약 칸: 사진 | 이름·설명, 아래로 숫자 세 칸 · 버튼. 전화·메일은 맨 아래 문의 줄에 있으니 뺀다 */
  .sp-side { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 0 14px; padding-bottom: 4px; }
  .sp-stage { grid-row: 1 / 3; aspect-ratio: 3 / 4; align-self: stretch; }
  .sp-hero-copy { display: contents; }
  .sp-name { grid-column: 2; align-self: end; font-size: 40px; }
  .sp-name .sp-kicker { display: block; margin: 6px 0 0; font-size: 17px; }
  .sp-tagline { grid-column: 2; align-self: start; font-size: 14px; margin-top: 8px; }
  .sp-stats, .sp-actions { grid-column: 1 / -1; }
  .sp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
  .sp-stats > div { padding: 10px; }
  .sp-stats > div:last-child:nth-child(odd) { grid-column: auto; }
  .sp-stats dd { font-size: 20px; }
  .sp-actions { margin-top: 12px; }
  .sp-side .sp-lines { display: none; }
  .sp-top .sp-crumb { display: none; }   /* 이름은 바로 아래 요약 칸에 크게 있다 */
  .sp-stats > div:nth-child(3n + 1):last-child { grid-column: 1 / -1; }
  .sp-stats > div:nth-child(3n + 2):last-child { grid-column: span 2; }
}
@media print {
  html:has(body.sp), body.sp { height: auto !important; overflow: visible !important; }
  .sp-shell { display: block; height: auto !important; }
  .sp-panels { overflow: visible !important; }
  .sp-tabs, .sp-zoom-btn { display: none !important; }
  .sp-panel[hidden] { display: block !important; }
  .sp-panel { break-before: page; }
}

/* ---------- 특징: 사진·글 번갈아 ---------- */
.sp-feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.sp-feat + .sp-feat { margin-top: clamp(40px, 5vw, 72px); }
.sp-feat:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.sp-feat:nth-of-type(even) figure { order: 2; }
.sp-feat figure { margin: 0; aspect-ratio: 4 / 3; background: var(--ui-100); }
.sp-feat figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-feat figure.is-cut img { object-fit: cover; object-position: var(--focus); transform: scale(var(--zoom)); transform-origin: var(--focus); }
.sp-feat h3 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -.035em; word-break: keep-all; }
.sp-feat-copy p { margin: 14px 0 0; color: var(--ui-600); line-height: 1.7; max-width: 46ch; word-break: keep-all; }
.sp-checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.sp-checks li { display: flex; gap: 10px; align-items: start; font-size: 14px; font-weight: 500; }
.sp-checks svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ui-brand); }
/* 숫자·모델명이 서로 다른 태그로 나뉘어도 한 덩어리로 */
.sp-checks li > span, .sp-val, .sp-stats dd, .sp-swatches b { word-break: keep-all; }
.sp-val .ui-badge { white-space: nowrap; }

/* 사진 위 관절 표시: 누끼 비율 그대로의 칸 안에 % 자리로 */
.sp-fig-marks { position: relative; background: var(--ui-100); }
.sp-marks { position: absolute; top: 6%; bottom: 8%; left: 50%; transform: translateX(-50%); aspect-ratio: 1025 / 1271; }
.sp-feat .sp-marks img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sp-marks ul { list-style: none; margin: 0; padding: 0; }
.sp-marks li { position: absolute; display: flex; align-items: center; gap: 6px; transform: translate(-11px, -50%); white-space: nowrap; }
.sp-marks li::before { content: ""; position: absolute; left: 0; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 2px solid #fff; background: var(--ui-brand); opacity: .35; }
.sp-marks li.is-left { flex-direction: row-reverse; transform: translate(calc(-100% + 11px), -50%); }
.sp-marks li.is-left::before { left: auto; right: 0; }
.sp-marks b { position: relative; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ui-950); color: #fff; font-size: 13px; font-weight: 600; }
.sp-marks span { padding: 2px 8px; border-radius: 6px; background: rgb(255 255 255 / .92); font-size: 13px; font-weight: 500; color: var(--ui-800); }
.sp-fig-marks figcaption { position: absolute; left: 16px; bottom: 14px; font-size: 13px; color: var(--ui-600); }

/* 티치 펜던트 화면(HTML로 그린 제품 화면) */
.sp-fig-screen { display: grid; place-items: center; padding: clamp(16px, 3vw, 40px); background: var(--ui-100); }
.sp-scr { width: 100%; max-width: 520px; border-radius: 14px; border: 10px solid var(--ui-900); background: #fff; overflow: hidden; font-size: 13px; }
.sp-scr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--ui-border); }
.sp-scr-top b { font-size: 14px; font-weight: 600; }
.sp-scr-blocks { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; counter-reset: blk; }
.sp-scr-blocks li { display: grid; grid-template-columns: 22px 58px minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 8px; background: var(--ui-50); counter-increment: blk; }
.sp-scr-blocks li::before { content: counter(blk); color: var(--ui-muted-fg); font-variant-numeric: tabular-nums; }
.sp-scr-blocks em { font-style: normal; font-weight: 600; font-size: 13px; padding: 2px 0; text-align: center; border-radius: 5px; background: var(--ui-200); color: var(--ui-800); }
.sp-scr-blocks .is-grip em { background: color-mix(in srgb, var(--ui-brand) 16%, #fff); color: color-mix(in srgb, var(--ui-brand) 80%, #000); }
.sp-scr-blocks :is(.is-io, .is-wait) em { background: color-mix(in srgb, var(--ui-warn) 26%, #fff); color: #6b4300; }
.sp-scr-blocks .is-loop em { background: var(--ui-800); color: #fff; }
.sp-scr-blocks span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ui-900); }
.sp-scr-blocks small { font-size: 13px; color: var(--ui-muted-fg); font-variant-numeric: tabular-nums; }
.sp-scr-blocks .is-now { background: #fff; box-shadow: inset 0 0 0 2px var(--ui-brand); }
.sp-scr-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--ui-border); color: var(--ui-muted-fg); }
.sp-scr-btn { padding: 6px 12px; border-radius: 6px; background: var(--ui-900); color: #fff; font-weight: 500; }

/* 툴 플랜지 정면 도면(폭 고정이라 SVG 글자 대신 옆 표) */
.sp-feat .sp-mini-dw { aspect-ratio: auto; }
.sp-mini-dw { margin: 24px 0 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-lg); background: var(--ui-50); max-width: 460px; }
.sp-mini-dw svg { width: 150px; height: auto; display: block; }
.sp-mini-dw .fl-body { fill: #fff; stroke: var(--ui-900); stroke-width: 1.2; }
.sp-mini-dw .fl-pcd { fill: none; stroke: var(--ui-500); stroke-width: .6; stroke-dasharray: 5 2 1 2; }
.sp-mini-dw .fl-center { fill: var(--ui-100); stroke: var(--ui-900); stroke-width: 1; }
.sp-mini-dw .fl-hole { fill: #fff; stroke: var(--ui-900); stroke-width: 1; }
.sp-mini-dw .fl-pin { fill: var(--ui-brand); stroke: none; }
.sp-mini-dw .fl-axis { stroke: var(--ui-400); stroke-width: .5; stroke-dasharray: 6 2 1 2; }
.sp-mini-dw .fl-dim, .sp-mini-dw .fl-ext { stroke: var(--ui-900); stroke-width: .6; }
.sp-mini-dw dl { margin: 0; display: grid; gap: 6px; font-size: 13px; }
.sp-mini-dw dl div { display: flex; justify-content: space-between; gap: 12px; }
.sp-mini-dw dt { color: var(--ui-muted-fg); }
.sp-mini-dw dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* LED 색 견본 */
.sp-swatches { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sp-swatches li { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); }
.sp-swatches i { width: 100%; height: 8px; border-radius: 999px; background: var(--c); margin-bottom: 8px; }
.sp-swatches b { font-size: 14px; font-weight: 600; }
.sp-swatches span { font-size: 13px; color: var(--ui-muted-fg); }

/* 2열로 묶인 특징 */
.sp-feat-pair { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sp-feat-half { display: flex; flex-direction: column; }
.sp-feat-half figure { margin: 0; aspect-ratio: 16 / 10; background: var(--ui-100); overflow: hidden; }
.sp-feat-half figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-feat-half figure.is-cut img { object-position: var(--focus); transform: scale(var(--zoom)); transform-origin: var(--focus); }
.sp-feat-half .sp-feat-copy { padding: clamp(20px, 2.4vw, 32px); }
.sp-feat-half h3 { font-size: clamp(20px, 1.8vw, 24px); }

/* ---------- 작업 범위 도면 ---------- */
.sp-reach { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; }
.sp-dw { position: relative; background: var(--ui-50); }
.sp-dw-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 10px; font-size: 13px; color: var(--ui-muted-fg); background: var(--ui-bg); border-bottom: 1px solid var(--ui-border); }
.sp-dw-views { padding: clamp(12px, 2vw, 24px); }
.sp-dw-view { position: relative; width: 100%; }
.sp-dw-view[hidden] { display: none; }
.sp-dw-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y pinch-zoom; cursor: crosshair; user-select: none; overflow: visible; }
.sp-dw-svg * { vector-effect: non-scaling-stroke; }
.sp-dw-svg .rb-link, .sp-dw-svg .rb-link-o { vector-effect: none; }
.sp-dw-area { fill: color-mix(in srgb, var(--ui-brand) 8%, #fff); stroke: var(--ui-brand); stroke-width: 1.5; transition: fill .3s; }
.sp-dw-grid { fill: none; stroke: var(--ui-300); stroke-width: 1; stroke-dasharray: 3 4; }
.sp-dw-axis { fill: none; stroke: var(--ui-400); stroke-width: 1; stroke-dasharray: 12 4 2 4; }
.sp-dw-floor { stroke: var(--ui-900); stroke-width: 1.5; }
.sp-dw-floorfill { stroke: none; }
.sp-dw-dead { fill: color-mix(in srgb, var(--ui-warn) 18%, #fff); fill-opacity: .8; stroke: color-mix(in srgb, var(--ui-warn) 70%, #000); stroke-width: 1; stroke-dasharray: 4 3; }
.sp-dw-base { fill: #fff; stroke: var(--ui-900); stroke-width: 1.5; }
.sp-dw-hatch { stroke: var(--ui-400); stroke-width: 1; }
.sp-dw-dim path { fill: none; stroke: var(--ui-900); stroke-width: 1; }
.sp-dw-ray, .sp-dw-vline { fill: none; stroke: var(--ui-900); stroke-width: 2; }
.sp-dw-over { fill: none; stroke: color-mix(in srgb, var(--ui-warn) 75%, #000); stroke-width: 2; stroke-dasharray: 5 4; }
.sp-dw-pt { fill: var(--ui-brand); stroke: #fff; stroke-width: 3; transition: fill .2s; }
#reach.is-out .sp-dw-pt, #reach.is-close .sp-dw-pt { fill: var(--ui-warn); }
#reach.is-out .sp-dw-vline { stroke: color-mix(in srgb, var(--ui-warn) 75%, #000); stroke-dasharray: 5 4; }
#reach.is-out .sp-dw-area { fill: #fff; }
/* 로봇 옆모습 선 그림: 팔은 굵은 선 두 겹(검정 테두리 + 흰 속)으로 캡슐 모양 */
.rb-base { fill: var(--ui-200); stroke: var(--ui-900); stroke-width: 1.5; }
.rb-col { fill: #fff; stroke: var(--ui-900); stroke-width: 1.5; }
.rb-link-o { fill: none; stroke: var(--ui-900); stroke-width: 100; stroke-linecap: round; stroke-linejoin: round; }
.rb-link { fill: none; stroke: #fff; stroke-width: 88; stroke-linecap: round; stroke-linejoin: round; }
.rb-joint { fill: color-mix(in srgb, var(--ui-brand) 85%, #000); stroke: var(--ui-900); stroke-width: 1.5; }
.rb-led { stroke: #16A34A; stroke-width: 3; }
/* 도면 글자(HTML) */
.sp-dw-lab { position: absolute; transform: translate(-50%, -50%); padding: 1px 6px; border-radius: 4px; background: rgb(250 250 250 / .92); font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ui-900); white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.sp-dw-lab.is-above { transform: translate(-50%, -125%); }
.sp-dw-lab.is-vert { transform: translate(-50%, -50%) rotate(-90deg); }
.sp-dw-lab.is-note { font-weight: 500; color: var(--ui-600); }
.sp-dw-lab.is-probe { transform: translate(0, -100%); background: var(--ui-950); color: #fff; }
.sp-dw-lab.is-probe.is-left { transform: translate(-100%, -100%); }
.sp-dw-lab.is-joint { background: var(--ui-950); color: #fff; border-radius: 999px; padding: 1px 8px; }
#reach.is-out .sp-dw-lab.is-probe { background: color-mix(in srgb, var(--ui-warn) 30%, #fff); color: #4d3000; }
.sp-dw-legend { list-style: none; margin: 0; padding: 0 18px 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ui-600); }
.sp-dw-legend li { display: flex; align-items: center; gap: 8px; }
.sp-dw-legend i { width: 14px; height: 14px; border-radius: 3px; }
.sp-dw-legend .is-area { background: color-mix(in srgb, var(--ui-brand) 8%, #fff); border: 1.5px solid var(--ui-brand); border-radius: 50%; }
.sp-dw-legend .is-dead { background: color-mix(in srgb, var(--ui-warn) 18%, #fff); border: 1px dashed color-mix(in srgb, var(--ui-warn) 70%, #000); }
.sp-dw-legend .is-pt { width: 10px; height: 10px; border-radius: 50%; background: var(--ui-brand); }
.sp-reach-side { display: grid; gap: 16px; }
.sp-probe-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.sp-probe-input { height: 56px; }
.sp-probe-input input { font-size: 28px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sp-probe-input span { font-size: 15px; color: var(--ui-muted-fg); }
.sp-range { width: 100%; margin: 14px 0 0; accent-color: var(--ui-900); height: 36px; cursor: pointer; }
.sp-range-scale { position: relative; display: flex; justify-content: space-between; height: 20px; font-size: 13px; color: var(--ui-muted-fg); font-variant-numeric: tabular-nums; }
.sp-range-scale span:nth-child(2) { position: absolute; transform: translateX(-50%); color: var(--ui-brand); font-weight: 600; }
.sp-range-scale span:nth-child(2)::before { content: ""; position: absolute; left: 50%; top: -8px; width: 1px; height: 6px; background: currentColor; }
.sp-verdict { margin: 14px 0 0 !important; font-size: 14px; line-height: 1.7; color: var(--ui-700); min-height: 3.4em; word-break: keep-all; }
.sp-verdict .ui-badge { margin-right: 6px; vertical-align: 1px; }
.sp-probe-note { margin-top: 14px !important; padding: 12px 14px; border-radius: var(--ui-radius); background: var(--ui-100); font-size: 13px; color: var(--ui-600); line-height: 1.6; word-break: keep-all; }
.sp-reach-side .ui-table tbody th { width: 44%; }

/* ---------- 사양표 ---------- */
.sp-spec-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sp-search { width: min(320px, 100%); }
.sp-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
.sp-col { display: grid; align-content: start; }
#specs.is-filtered .sp-groups { grid-template-columns: 1fr; }
.sp-group { margin-bottom: 16px; display: block; }
.sp-group[hidden] { display: none; }
.sp-group.is-wide { grid-column: 1 / -1; }
.sp-group-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.sp-joints { margin: 0; padding: 8px 20px 16px; }
.sp-joints .sp-dw-view { max-width: 420px; margin: 0 auto; }
.sp-joints .sp-dw-svg { cursor: default; }
.sp-joints figcaption { margin-top: 8px; font-size: 13px; color: var(--ui-muted-fg); text-align: center; }
.sp-val + .sp-val { margin-left: 16px; }
.sp-group h3 { font-size: 15px; padding: 16px 16px 6px; }
.sp-group .ui-table th, .sp-group .ui-table td { padding-block: 10px; }
.sp-group .ui-badge { margin-left: 6px; vertical-align: 1px; }
.is-matrix thead th { background: var(--ui-50); }
.is-matrix tbody th { width: auto; color: var(--ui-fg); font-weight: 600; }
.sp-empty { padding: 32px; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 15px; }
.sp-empty[hidden] { display: none; }
.sp-empty p { margin: 0; }
.sp-empty .ui-btn { margin-top: 8px; }

/* ---------- 구성·옵션 ---------- */
.sp-opts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-opt { display: flex; flex-direction: column; }
.sp-opt figure { margin: 0; aspect-ratio: 4 / 3; background: var(--ui-100); }
.sp-opt figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-opt figure.is-figure { display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 2.4vw, 32px); background: var(--ui-100); color: var(--ui-950); }
.sp-opt figure.is-figure > b { font-size: clamp(26px, 3.2vw, 48px); line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.sp-opt figure.is-figure > span { margin-top: 8px; font-size: 13px; color: var(--ui-muted-fg); }
.sp-code { margin: 18px 0 0; display: grid; gap: 8px; }
.sp-code div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; }
.sp-code dt { display: grid; place-items: center; height: 34px; border-radius: var(--ui-radius); background: var(--ui-950); color: #fff; font-size: 18px; font-weight: 600; }
.sp-code dd { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ui-600); word-break: keep-all; }
.sp-code dd b { display: block; font-size: 14px; color: var(--ui-950); font-weight: 600; }
.sp-opt .ui-card-pad { display: flex; flex-direction: column; gap: 10px; flex: 1; align-items: start; }
.sp-opt p { font-size: 14px; line-height: 1.65; word-break: keep-all; }
.sp-opt-fig { margin-top: auto !important; padding: 10px 12px; border-radius: var(--ui-radius); background: var(--ui-100); width: 100%; display: flex; justify-content: space-between; align-items: baseline; }
.sp-opt-fig span { color: var(--ui-600); }
.sp-opt-fig b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

/* ---------- 적용 사례 ---------- */
.sp-apps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-width: 520px; justify-content: end; }
.sp-apps .ui-badge { height: 28px; padding: 0 12px; font-size: 13px; }
.sp-app { height: 36px; padding: 0 14px; border: 1px solid var(--ui-border); border-radius: 999px; background: #fff; color: var(--ui-800); font: 500 14px/1 var(--ui-font); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.sp-app:hover { background: var(--ui-100); }
.sp-app[aria-pressed="true"] { background: var(--ui-950); border-color: var(--ui-950); color: #fff; }
.sp-app-note { margin-bottom: 16px; padding: 18px 22px; }
.sp-app-note [data-note] { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, auto); gap: 6px 24px; align-items: baseline; }
.sp-app-note [hidden] { display: none; }
.sp-app-note b { font-size: 16px; font-weight: 600; }
.sp-app-note p { font-size: 15px; line-height: 1.6; color: var(--ui-700); word-break: keep-all; }
.sp-app-needs { font-size: 14px !important; color: var(--ui-600) !important; }
.sp-app-needs span { display: block; font-size: 13px; color: var(--ui-muted-fg); }
.sp-case-photos { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
.sp-case-photos figure { position: relative; margin: 0; aspect-ratio: 3 / 2; }
.sp-case-photos figure:nth-child(2) { aspect-ratio: auto; }
.sp-case-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-case-photos figcaption { position: absolute; left: 14px; bottom: 14px; }
.sp-inds { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-inds p { margin-top: 8px; font-size: 14px; line-height: 1.65; word-break: keep-all; }

/* ---------- 자료 받기 ---------- */
.sp-files { list-style: none; margin: 0; padding: 0; }
.sp-files li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--ui-border); }
.sp-files li:first-child { border-top: 0; }
.sp-file { display: grid; gap: 2px; min-width: 0; }
.sp-file b { font-weight: 600; font-size: 15px; }
.sp-file > span { font-size: 13px; }   /* > : page.js가 b 안에 넣는 nobr 칸까지 작아지지 않게 */
.sp-langs { display: flex; gap: 6px; flex: none; }
.sp-langs .ui-btn { height: 36px; padding: 0 12px; font-size: 13px; }
.sp-langs .ui-btn[aria-disabled="true"] { opacity: .55; border-style: dashed; }

/* ---------- 문의 색 면 ---------- */

/* ---------- 좁은 칸: 화면 폭이 아니라 오른쪽 칸 폭(container)으로 ---------- */
@container (max-width: 760px) {
  .sp-feat, .sp-feat:nth-of-type(even), .sp-reach, .sp-feat-pair, .sp-group-split { grid-template-columns: 1fr; }
  .sp-app-note [data-note] { grid-template-columns: 1fr; }
  .sp-apps { max-width: none; justify-content: start; }
  .sp-feat:nth-of-type(even) figure { order: 0; }
  .sp-groups { grid-template-columns: 1fr; }
  .sp-opts, .sp-inds { grid-template-columns: 1fr; }
  .sp-case-photos { grid-template-columns: 1fr; }
  .sp-case-photos figure:nth-child(2) { aspect-ratio: 3 / 2; }
}
.sp-swipe-hint, .sp-dw-unit { display: none; }
@container (max-width: 560px) {
  /* 특징: 휴대폰에서는 옆으로 넘기는 카드 한 줄(다음 카드가 조금 보인다) */
  .sp-swipe-hint { display: block; margin: -12px 0 12px; font-size: 13px; color: var(--ui-muted-fg); }
  .sp-feats { display: flex; gap: 12px; margin-inline: -16px; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; align-items: start; }
  .sp-feats::-webkit-scrollbar { display: none; }
  .sp-feats .sp-feat-pair { display: contents; }
  .sp-feats > article, .sp-feats .sp-feat-half { flex: 0 0 86%; scroll-snap-align: start; margin: 0 !important; }
  .sp-feats figure { aspect-ratio: 4 / 3; }
  .sp-dw-bar > span { display: none; }   /* 단위 mm는 좁을 때 범례 칸으로 */
  .sp-dw-unit { display: block; color: var(--ui-muted-fg); }
  .sp-dw-bar .ui-tab { padding-inline: 10px; }
  /* 구성: 같은 넘기는 줄. 적용 사진: 두 장 나란히 */
  .sp-opts { display: flex !important; gap: 12px; margin-inline: -16px; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; align-items: stretch; }
  .sp-opts::-webkit-scrollbar { display: none; }
  .sp-opts > li { flex: 0 0 86%; scroll-snap-align: start; }
  .sp-case-photos { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .sp-case-photos figure, .sp-case-photos figure:nth-child(2) { aspect-ratio: 1 !important; }
  .sp-case-photos figcaption { left: 8px; bottom: 8px; right: 8px; }
  .sp-files li { flex-direction: column; align-items: start; }
  .sp-spec-tools { flex-direction: column; align-items: stretch; }
  .sp-search { width: 100%; }
  .sp-group .ui-table tbody th { width: 40%; }
  .sp-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-mini-dw { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .sp-mini-dw svg { width: 110px; }
  .sp-scr-blocks li { grid-template-columns: 18px 52px minmax(0, 1fr); }
  .sp-scr-blocks small { display: none; }
  .sp-marks span { display: none; }
  .sp-val { display: block; }
  .sp-val + .sp-val { margin: 6px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .sp-hero .sp-hero-copy > *, html:not(.force-motion) .sp-stage img { transform: none !important; }
  html:not(.force-motion) .sp-stage:not(.has-photo) img { transform: translateX(-46%) !important; }
}

/* ---------- 2026-11-17 2차: 테두리 상자 대신 회색 면 + 간격으로 묶기 ---------- */
.sp-group, .sp-app-note, .sp-inds > li, .sp-case-photos figure.ui-card { border: 0; box-shadow: none; }
.sp-group, .sp-app-note, .sp-inds > li { background: var(--ui-100); }
.sp-group h3 { font-size: 17px; padding: 20px 20px 8px; }
.sp-group .ui-table th, .sp-group .ui-table td { border-bottom-color: #fff; border-bottom-width: 2px; }
.sp-group .ui-table th:first-child, .sp-group .ui-table td:first-child { padding-left: 20px; }
.sp-group .ui-table tbody tr:hover { background: rgb(255 255 255 / .6); }
.sp-group .ui-badge.is-outline, .sp-group .ui-badge { background: #fff; }
.sp-inds > li h3 { font-size: 18px; }
.sp-inds > li p { color: var(--ui-700); }
