/* =========================================================
   Flomo — Interactive demos (관제 / 얼굴인증 / 앱 / 정류장 매칭)
   All data is synthetic. Flat light style to match illus.js.
   ========================================================= */

.demo-band { padding: clamp(44px, 6vw, 72px) 0; background: var(--bg-soft); }
.demo-band .container { max-width: 1120px; }

.demo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.demo-head h3 { margin: 0; font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.demo-head p { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 62ch; }

.demo-badge {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: var(--blue); background: #fff; border: 1px solid #ccd7f5;
  border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}
.demo-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: demo-blip 1.6s infinite; }
@keyframes demo-blip { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* frame ------------------------------------------------- */
.demo-frame {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.demo-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfcfe;
}
.demo-bar .spacer { flex: 1 1 auto; }
.demo-tabs { display: flex; gap: 6px; }
.demo-tabs button, .demo-btn {
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 13px; transition: all .18s var(--ease); white-space: nowrap;
}
.demo-tabs button:hover, .demo-btn:hover { border-color: #b9c0cd; }
.demo-tabs button.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.demo-btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.demo-btn--primary:hover { background: var(--blue-600); border-color: var(--blue-600); }
.demo-btn--danger { color: #c0392f; border-color: #f0c8c4; background: #fff6f5; }
.demo-btn--danger:hover { background: #ffecea; border-color: #e5a8a1; }
.demo-btn[disabled] { opacity: .45; cursor: default; }

.demo-body { display: grid; grid-template-columns: 1fr 288px; }
.demo-stage { position: relative; padding: 14px; border-right: 1px solid var(--line); min-width: 0; }
.demo-stage svg { width: 100%; height: auto; display: block; }
.demo-side { padding: 14px 16px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.demo-side h4 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }

@media (max-width: 860px) {
  .demo-body { grid-template-columns: 1fr; }
  .demo-stage { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* SVG 안의 글자는 viewBox 와 함께 축소되므로 좁은 화면에서 실효 5~6px 까지
   내려간다. font-size 는 CSS 가 presentation attribute 를 이기므로 여기서
   되돌려 준다. 값은 실효 11~12px 가 되도록 잡았다. */
@media (max-width: 620px) { .demo-stage svg text { font-size: 16px; } }
@media (max-width: 440px) { .demo-stage svg text { font-size: 22px; } }

/* alarm banner ------------------------------------------ */
.demo-alarm {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px; font-size: 13px; font-weight: 700;
  background: #fff4f2; border: 1px solid #f3c7c1; color: #b9362b;
  opacity: 0; transform: translateY(8px); transition: all .3s var(--ease); pointer-events: none;
}
.demo-alarm.is-on { opacity: 1; transform: none; }
.demo-alarm.is-stop { background: #fff8ec; border-color: #f2d9a8; color: #96631a; }

/* event stream ------------------------------------------ */
.demo-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.demo-log li {
  display: grid; grid-template-columns: 46px 1fr; gap: 8px; align-items: baseline;
  font-size: 12.5px; line-height: 1.5; padding: 7px 9px; border-radius: 8px;
  background: var(--bg-soft); animation: demo-in .28s var(--ease);
}
.demo-log li time { font-variant-numeric: tabular-nums; color: var(--muted-2); font-size: 11.5px; }
.demo-log li b { color: var(--ink); font-weight: 700; }
.demo-log li.lv-warn { background: #fff4f2; }
.demo-log li.lv-warn b { color: #b9362b; }
.demo-log li.lv-info b { color: var(--blue); }
@keyframes demo-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* key-value readout ------------------------------------- */
.demo-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin: 0; }
.demo-kv dt { color: var(--muted); }
.demo-kv dd { margin: 0; text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-empty { font-size: 13px; color: var(--muted-2); line-height: 1.7; }

/* score bars (face demo) -------------------------------- */
.demo-scores { display: flex; flex-direction: column; gap: 9px; margin: 0; }
.demo-score { font-size: 12.5px; }
.demo-score .lbl { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 4px; }
.demo-score .lbl b { color: var(--ink); font-variant-numeric: tabular-nums; }
/* span 이라 display:block 을 반드시 줘야 한다 — inline 이면 height/width 가 먹지 않아 막대가 사라진다 */
.demo-score .track { display: block; height: 6px; border-radius: 3px; background: var(--card); overflow: hidden; }
.demo-score .fill { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 3px; transition: width .5s var(--ease); }

.demo-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.demo-steps li { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted-2); padding: 5px 0; transition: color .2s; }
.demo-steps li s { flex: none; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--line); margin-top: 1px; text-decoration: none;
  font-size: 10px; font-weight: 800; display: grid; place-items: center; color: transparent; transition: all .25s var(--ease); }
.demo-steps li.is-done { color: var(--ink); }
.demo-steps li.is-done s { background: var(--blue); border-color: var(--blue); color: #fff; }
.demo-steps li.is-now { color: var(--ink); font-weight: 700; }
.demo-steps li.is-now s { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,50,200,.12); }

.demo-verdict { border-radius: 10px; padding: 11px 13px; font-size: 13px; line-height: 1.6; background: var(--bg-soft); color: var(--muted); }
.demo-verdict.is-ok { background: #eefaf1; color: #1c7a41; font-weight: 700; }
.demo-verdict.is-cascade { background: #fff8ec; color: #96631a; font-weight: 700; }

/* stats table (matching demo) --------------------------- */
.demo-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.demo-table th { text-align: left; font-size: 11px; letter-spacing: .04em; color: var(--muted-2); font-weight: 700; padding: 0 0 7px; }
.demo-table th:last-child, .demo-table td:last-child { text-align: right; }
.demo-table td { padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-table tr.is-hit td { animation: demo-flash 1s var(--ease); }
@keyframes demo-flash { from { background: #e4ecff; } to { background: transparent; } }

/* phone mockup (app demo) ------------------------------- */
.demo-body--phone { grid-template-columns: 1fr 288px; }
.demo-phone-stage { display: grid; place-items: center; padding: 26px 14px; background:
  radial-gradient(120% 90% at 50% 0%, #eef2fb 0%, var(--bg-soft) 60%, var(--bg-soft) 100%); border-right: 1px solid var(--line); }
@media (max-width: 860px) { .demo-phone-stage { border-right: 0; border-bottom: 1px solid var(--line); } }

.demo-phone {
  position: relative; width: 268px; max-width: 100%; height: 500px;
  background: #fff; border: 9px solid #0b1233; border-radius: 34px;
  box-shadow: 0 18px 46px rgba(8,11,37,.22); overflow: hidden; display: flex; flex-direction: column;
}
.demo-phone::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 92px; height: 20px; background: #0b1233; border-radius: 0 0 12px 12px; z-index: 4; }
.dp-status { flex: none; height: 30px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 15px; font-size: 10.5px; font-weight: 700; color: var(--ink); }
.dp-nav { flex: none; display: flex; align-items: center; gap: 8px; padding: 7px 14px 10px; border-bottom: 1px solid var(--line); }
.dp-nav span { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.dp-screen { flex: 1 1 auto; position: relative; overflow: hidden; }
.dp-view { position: absolute; inset: 0; padding: 13px 14px; display: flex; flex-direction: column; gap: 9px;
  opacity: 0; transform: translateX(14px); transition: opacity .32s var(--ease), transform .32s var(--ease); pointer-events: none; }
.dp-view.is-on { opacity: 1; transform: none; pointer-events: auto; }
.dp-card { border: 1px solid var(--line); border-radius: 11px; padding: 10px 11px; }
.dp-card.is-active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,50,200,.09); }
.dp-card h5 { margin: 0 0 3px; font-size: 12.5px; font-weight: 800; color: var(--ink); }
.dp-card p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.dp-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .03em; padding: 3px 7px;
  border-radius: 5px; background: #e7edff; color: var(--blue); margin-bottom: 5px; }
.dp-tag.is-warn { background: #fff1e6; color: #b3660d; }
.dp-tag.is-ok { background: #e6f7ec; color: #1c7a41; }
.dp-btn { margin-top: auto; text-align: center; font-size: 12.5px; font-weight: 800; color: #fff;
  background: var(--blue); border-radius: 10px; padding: 11px; }
.dp-face { height: 132px; border-radius: 11px; background: #0b1233; display: grid; place-items: center; position: relative; overflow: hidden; }
.dp-face svg { width: 100%; height: 100%; }
.dp-toast {
  position: absolute; top: 8px; left: 10px; right: 10px; z-index: 5;
  background: rgba(11,18,51,.94); color: #fff; border-radius: 11px; padding: 9px 11px;
  font-size: 11.5px; line-height: 1.5; opacity: 0; transform: translateY(-12px);
  transition: all .35s var(--ease);
}
.dp-toast.is-on { opacity: 1; transform: none; }
.dp-toast b { display: block; font-size: 11px; color: #9fb4ff; margin-bottom: 2px; }

.demo-foot {
  padding: 11px 16px; border-top: 1px solid var(--line); background: #fbfcfe;
  font-size: 12px; color: var(--muted-2); line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .demo-badge i { animation: none; }
  .demo-log li, .demo-table tr.is-hit td { animation: none; }
  .dp-view, .dp-toast, .demo-alarm, .demo-score .fill { transition: none; }
}

/* =========================================================
   Live face demo (demo-face.html) — 실제 FaceMatch API
   ========================================================= */
.fd-band [hidden] { display: none !important; }
.demo-badge--live { color: #1c7a41; border-color: #bfe3cb; }
.demo-badge--live i { background: #1c7a41; }

.fd-steps { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.fd-steps > * { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none;
  font-family: inherit; cursor: pointer; transition: border-color .18s var(--ease), color .18s var(--ease); }
.fd-steps > button:hover { border-color: #b9c0cd; color: var(--ink); }
.fd-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--card); color: var(--muted); }
.fd-steps .is-active { border-color: var(--blue); color: var(--ink); }
.fd-steps .is-active b { background: var(--blue); color: #fff; }
.fd-steps .is-soon { opacity: .7; }
.fd-steps em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted-2); margin-left: 4px; }

.fd-body { grid-template-columns: 1fr 320px; }
.fd-stage { display: flex; flex-direction: column; gap: 12px; }
.fd-session { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.fd-session code { font-size: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--ink); }

.fd-view { position: relative; aspect-ratio: 4 / 3; background: #0b1233 center/cover no-repeat; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.fd-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: none; }
.fd-view.is-live video { display: block; }
.fd-view::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .15s; }
.fd-view.flash::after { opacity: .7; transition: none; }
.fd-hint { position: relative; z-index: 2; text-align: center; color: #c8d3ff; font-size: 14px; line-height: 1.8; padding: 20px; }
.fd-hint b { color: #fff; }
.fd-view.is-still .fd-hint { display: none; }
.fd-guide { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; text-align: center; color: #fff;
  background: rgba(11,18,51,.72); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.fd-guide em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #9fb4ff; }
.fd-guide b { font-size: clamp(16px, 2.2vw, 20px); font-weight: 800; letter-spacing: -.01em; }
.fd-guide span { font-size: 12px; color: #c8d3ff; }
/* 얼굴을 맞출 타원 — 프리뷰 중앙, 높이의 62% */
.fd-oval { position: absolute; top: 50%; left: 50%; z-index: 1; width: 46%; height: 62%; max-width: 260px; transform: translate(-50%, -46%);
  border: 2.5px dashed rgba(255,255,255,.75); border-radius: 50%; box-shadow: 0 0 0 9999px rgba(11,18,51,.28); pointer-events: none; }
.fd-oval.is-done { border-style: solid; border-color: #6fd28f; }
.fd-oval.is-wide { width: 84%; height: 58%; max-width: none; border-radius: 18px; transform: translate(-50%, -50%); }

/* 하단 안내 + 도입 상담 CTA */
.fd-foot { display: flex; align-items: center; gap: 18px; }
.fd-foot p { margin: 0; flex: 1 1 auto; }
.fd-cta { flex: none; height: 40px; padding: 0 18px; display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 640px) { .fd-foot { flex-direction: column; align-items: stretch; } .fd-cta { justify-content: center; } }

/* 매칭 결과 레이어 팝업 (2·3단계) */
.fd-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px;
  background: rgba(8,11,37,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fd-fade .18s var(--ease); }
.fd-modal[hidden] { display: none !important; }
body.fd-modal-open { overflow: hidden; }
.fd-modal-box { width: min(1040px, 100%); max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(8,11,37,.35); overflow: hidden; animation: fd-pop .22s var(--ease); }
.fd-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.fd-modal-head h4 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.fd-modal-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.fd-modal-close:hover { color: var(--ink); border-color: #b9c0cd; }
/* flex 자식이 스크롤되려면 min-height:0 이 필수 — 없으면 넘친 만큼 박스 밖으로 잘린다(모바일에서 결과 텍스트가 사라지던 원인) */
.fd-modal-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 16px; padding: 16px 18px;
  overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.fd-modal-head, .fd-modal-foot { flex: none; }
.fd-modal-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fd-modal-side .demo-verdict { font-size: 15px; }
.fd-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #fbfcfe; }
.fd-modal-foot .demo-btn { height: 40px; padding: 0 18px; display: inline-flex; align-items: center; text-decoration: none; }
@keyframes fd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fd-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .fd-modal { padding: 10px; align-items: end; }
  .fd-modal-box { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  /* 1열 grid 는 이미지 행 높이를 잘못 잡아(auto 행이 66px) 아래 텍스트를 덮었다 → 세로 flex 로 */
  .fd-modal-body { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px; }
  .fd-modal-body > * { flex: none; }
  .fd-modal-foot { padding: 10px 14px; }
  .fd-modal-foot .demo-btn { flex: 1 1 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .fd-modal, .fd-modal-box { animation: none; } }

.fd-result { position: relative; border-radius: 12px; overflow: hidden; background: #0b1233; line-height: 0; align-self: start; width: 100%; }
.fd-result img { width: 100%; height: auto; display: block; }
.fd-boxes { position: absolute; inset: 0; }
.fd-box { position: absolute; border: 2.5px solid #9fb4ff; border-radius: 4px; box-sizing: border-box; }
.fd-box.is-bg { border-color: rgba(255,255,255,.35); border-width: 1.5px; border-style: dashed; }
.fd-box.is-ok { border-color: #4fd37a; box-shadow: 0 0 0 2px rgba(79,211,122,.25); }
.fd-box.is-no { border-color: #ff7d6e; }
.fd-box.is-amb { border-color: #ffc555; }
.fd-box span { position: absolute; left: -2.5px; bottom: 100%; margin-bottom: 4px; white-space: nowrap; line-height: 1.4;
  font-size: 11.5px; font-weight: 800; color: #0b1233; background: #9fb4ff; border-radius: 5px; padding: 2px 7px; }
.fd-box.is-ok span { background: #4fd37a; }
.fd-box.is-no span { background: #ff7d6e; color: #fff; }
.fd-box.is-amb span { background: #ffc555; }
.fd-table td b { color: #1c7a41; }
.fd-table tr.is-ok td { background: #eefaf1; }
.demo-verdict small { font-weight: 400; color: var(--muted); }
.fd-shutter { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.25); border: 3px solid #fff; display: grid; place-items: center; cursor: pointer; transition: transform .12s; }
.fd-shutter span { width: 42px; height: 42px; border-radius: 50%; background: #fff; }
.fd-shutter:hover { transform: translateX(-50%) scale(1.05); }
.fd-shutter:active span { transform: scale(.9); }
.fd-shutter[disabled] { opacity: .35; cursor: default; }

.fd-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.fd-slot { position: relative; aspect-ratio: 1; border-radius: 10px; border: 1.5px dashed var(--line); background: var(--bg-soft); overflow: hidden; display: grid; place-items: end center; }
.fd-slot.is-next { border-color: var(--blue); border-style: solid; box-shadow: 0 0 0 3px rgba(0,50,200,.1); }
.fd-slot.has { border-style: solid; border-color: var(--line); }
.fd-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fd-slot .lb { position: relative; z-index: 1; font-size: 11px; font-weight: 700; color: var(--muted); padding: 3px 8px; }
.fd-slot.has .lb { color: #fff; background: rgba(11,18,51,.65); border-radius: 6px 6px 0 0; }
.fd-slot .x { position: absolute; top: 4px; right: 4px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(11,18,51,.75); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }

.fd-form { display: flex; gap: 8px; }
.fd-name { flex: 1 1 auto; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; font-family: inherit; font-size: 14px; color: var(--ink); background: #fff; }
.fd-name:focus { outline: none; border-color: var(--blue); }
.fd-reg { height: 40px; padding: 0 18px; }
.demo-frame.is-busy .fd-reg { position: relative; color: transparent; }
.demo-frame.is-busy .fd-reg::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: fd-spin .7s linear infinite; }
@keyframes fd-spin { to { transform: rotate(360deg); } }

.fd-listwrap { display: flex; flex-direction: column; gap: 8px; }
.fd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fd-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; background: var(--bg-soft); animation: demo-in .28s var(--ease); }
.fd-list img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--card); }
.fd-list .m { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 12px; color: var(--muted); }
.fd-list .m b { font-size: 13px; color: var(--ink); }
.fd-list .m code { font-size: 11.5px; }
.fd-list .ttl { color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; }
.fd-list .x { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.fd-list .x:hover { color: #c0392f; border-color: #f0c8c4; }

.demo-verdict code, .demo-kv code { font-size: 12px; }
.demo-kv dd[title] { cursor: help; }

@media (max-width: 860px) { .fd-body { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .fd-steps > * { font-size: 13px; padding: 7px 12px 7px 8px; }
  .fd-slot .lb { font-size: 10px; padding: 2px 6px; }
  .fd-form { flex-direction: column; }
}

/* 음파 존 송출 (demo-sonic.js) ---------------------------- */
.sd-body { grid-template-columns: 1fr 260px; }
.sd-vol { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.sd-vol input { width: 96px; accent-color: var(--blue); }
.demo-bar select.demo-btn { cursor: pointer; }
.demo-bar .is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* 프레임 구조 — 실제로 나가는 56비트를 그대로 그린다 */
.sd-frame { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.sd-seg { display: flex; flex-direction: column; gap: 5px; }
.sd-seg span { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.sd-seg > div { display: flex; gap: 2px; }
.sd-seg i { width: 7px; height: 20px; border-radius: 2px; background: var(--card); }
.sd-seg i.on { background: var(--blue); }

.sd-meters { display: grid; gap: 8px; margin-bottom: 14px; }
.sd-meter { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; }
.sd-meter b { font-size: 11.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.sd-bar { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.sd-bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .12s linear; }
.sd-meter:last-child .sd-bar i { background: #2f5bff; }

.sd-status { margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.sd-status.is-on { color: var(--blue); font-weight: 700; }
.sd-status.is-warn { color: #b9362b; font-weight: 700; }

.sd-qr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.sd-qr svg { display: block; width: 100%; height: auto; }
.sd-qrnote { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.sd-qrnote code { font-size: 11px; word-break: break-all; }

@media (max-width: 860px) { .sd-body { grid-template-columns: 1fr; } }
