@charset "UTF-8";

/* ---------- Tokens: 브라우저 개발자 도구의 라이트 테마를 기준으로 합니다 ---------- */
:root {
  --page: #f6f7f9;
  --panel: #ffffff;
  --chrome: #f1f3f4;
  --line: #dadce0;
  --line-soft: #eceef1;
  --ink: #1f2328;
  --ink-2: #3c4043;
  --muted: #6b7178;
  --blue: #1a73e8;
  --blue-soft: #e8f0fe;
  --red: #d93025;
  --red-soft: #fce8e6;
  --green: #188038;
  --green-soft: #e6f4ea;
  --purple: #8430ce;
  --string: #c41a16;
  --wait: #9aa0a6;
  --inspect: rgb(111 168 220 / 45%);
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 17px/1.75 var(--sans); word-break: keep-all; overflow-wrap: break-word;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 650; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
::selection { background: #c6dafc; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.col { max-width: 720px; margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 50; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 6px; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Top bar: 개발자 도구의 탭 줄 ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--chrome); border-bottom: 1px solid var(--line); }
.topbar .wrap { height: 44px; display: flex; align-items: stretch; gap: 20px; font: 13px var(--mono); }
.dots { display: flex; align-items: center; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #d3d6da; }
.brand { display: flex; align-items: center; font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.tabs-nav { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs-nav a { display: flex; align-items: center; padding: 0 12px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs-nav a:hover { color: var(--ink); background: #e8eaed; }
.tabs-nav a.on { color: var(--ink); border-bottom-color: var(--blue); }
.topbar .mail { margin-left: auto; display: flex; align-items: center; color: var(--blue); text-decoration: none; white-space: nowrap; }
@media (max-width: 760px) { .topbar .mail, .dots { display: none; } .topbar .wrap { gap: 8px; } .tabs-nav a { padding: 0 8px; } }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; padding: 88px 0 72px; }
.prompt { font: 14px var(--mono); color: var(--muted); }
.prompt b { color: var(--blue); font-weight: 600; }
.hero h1 { font-size: clamp(38px, 6.2vw, 66px); line-height: 1.16; letter-spacing: -.045em; font-weight: 800; margin: 30px 0 48px; }
.inspect { position: relative; background: var(--inspect); box-shadow: 0 0 0 1px rgb(26 115 232 / 55%); }
.inspect-tip {
  position: absolute; left: 0; top: calc(100% + 6px); padding: 3px 8px; border-radius: 4px;
  background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 22%); font: 500 12px/1.6 var(--mono); letter-spacing: 0;
  color: var(--purple); white-space: nowrap;
}
.inspect-tip span { color: var(--muted); }
.lead { font-size: clamp(17px, 2vw, 19px); line-height: 1.8; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel); font: 600 14px var(--sans); text-decoration: none; color: var(--ink);
}
.btn:hover { background: var(--chrome); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #1765cc; }
.files { align-self: end; padding: 16px 0 4px 20px; border-left: 1px solid var(--line); font: 13px/2 var(--mono); }
.files p { color: var(--muted); }
.files a { display: block; color: var(--ink-2); text-decoration: none; padding-left: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files a:hover { color: var(--blue); }
.files a span { color: var(--blue); margin-right: 8px; }
.files .hint { margin-top: 12px; font: 12.5px/1.6 var(--sans); color: var(--muted); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 64px; } .files { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; } }

/* ---------- Sections ---------- */
.case, .block { padding: 88px 0 16px; border-top: 1px solid var(--line); }
.path { font: 13.5px var(--mono); color: var(--blue); }
.path span { color: var(--muted); }
.case h2, .block h2 { font-size: clamp(27px, 3.8vw, 40px); line-height: 1.3; letter-spacing: -.035em; font-weight: 800; margin: 12px 0 18px; }
.case .col > p + p, .block .col > p + p { margin-top: 14px; }
.case .col p:not(.lead), .block .col p:not(.lead) { color: var(--ink-2); }
.sub { font-size: 21px; line-height: 1.45; letter-spacing: -.025em; font-weight: 750; margin: 72px 0 12px; }
.panel + .col > p:first-child { margin-top: 20px; }
.inline { color: var(--blue); font-weight: 600; text-decoration: none; white-space: nowrap; }
.inline:hover { text-decoration: underline; }

.rules { display: grid; grid-template-columns: 1fr 1fr; margin-top: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.rules > div { padding: 18px 20px; }
.rules > div + div { border-left: 1px solid var(--line); }
.rules h3 { font: 600 13px var(--mono); color: var(--purple); margin-bottom: 6px; }
.rules p { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
@media (max-width: 640px) { .rules { grid-template-columns: 1fr; } .rules > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Panel: 데모와 그림을 감싸는 개발자 도구 창 ---------- */
.panel { margin-top: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgb(60 64 67 / 8%), 0 8px 28px -14px rgb(60 64 67 / 30%); }
.panel-tabs { display: flex; align-items: stretch; height: 36px; padding: 0 6px 0 12px; gap: 2px; background: var(--chrome); border-bottom: 1px solid var(--line); font: 12.5px var(--mono); color: var(--muted); }
.panel-tabs .rec { align-self: center; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--wait); margin-right: 10px; }
.panel[data-state="playing"] .rec { border-color: var(--red); background: var(--red); animation: blink 1.1s ease-in-out infinite; }
.panel[data-state="done"] .rec { border-color: var(--green); background: var(--green); }
@keyframes blink { 50% { opacity: .35; } }
.panel-tabs .tab { display: flex; align-items: center; padding: 0 10px; border-bottom: 2px solid transparent; white-space: nowrap; }
.panel-tabs .tab.on { color: var(--ink); border-bottom-color: var(--blue); }
.panel-tabs .title { display: flex; align-items: center; min-width: 0; margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reload { margin-left: auto; align-self: center; flex: none; height: 26px; padding: 0 10px; border: 1px solid transparent; border-radius: 4px; background: none; font: 12.5px var(--mono); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.reload:hover { background: #e3e5e8; border-color: var(--line); }
/* Sources(코드) | Stage(동작) 두 칸, 아래에 Console */
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sources { min-width: 0; border-right: 1px solid var(--line); background: #fff; }
.stage { min-width: 0; display: flex; flex-direction: column; }
.side-label { font: 12px var(--mono); color: var(--muted); margin-bottom: 6px; }
@media (max-width: 900px) {
  .panel-grid { grid-template-columns: 1fr; }
  .sources { order: 2; border-right: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) { .panel-tabs .title { display: none; } }

.src-head { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--line-soft); background: #fafafa; font: 12px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; }
.src-head b { color: var(--ink-2); font-weight: 600; }
.src-head span { overflow: hidden; text-overflow: ellipsis; }
.src { list-style: none; padding: 8px 0; margin: 0; font: 12px/22px var(--mono); font-variant-ligatures: none; overflow-x: auto; }
.src li { display: flex; align-items: center; min-width: max-content; padding-right: 14px; white-space: pre; transition: background .2s; }
.src .ln { flex: none; width: 38px; padding-right: 12px; text-align: right; color: #b0b4ba; user-select: none; }
.src code { font: inherit; color: var(--ink); }
.src li.ran .ln { color: var(--blue); font-weight: 600; }
.src li.hit { background: var(--blue-soft); box-shadow: inset 3px 0 var(--blue); }
.src li.hit.ok { background: var(--green-soft); box-shadow: inset 3px 0 var(--green); }
.src li.hit.err { background: var(--red-soft); box-shadow: inset 3px 0 var(--red); }
.iv { margin-left: 14px; padding: 0 7px; border-radius: 3px; background: #fef7e0; color: #8a5a00; font-size: 11.5px; line-height: 18px; }
.iv:empty { display: none; }
.iv.ok { background: var(--green-soft); color: var(--green); }
.iv.err { background: var(--red-soft); color: var(--red); }
.t-k { color: #aa0d91; }
.t-s { color: var(--string); }
.t-c { color: #237a3c; }
.t-tag { color: #881280; }

.grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 12px; border-top: 1px solid var(--line); background: #fbfbfc; margin-top: auto; }
.grade .field-box { margin-top: 8px; }
.grade .plan { margin-top: 8px; }
@media (max-width: 480px) { .grade { grid-template-columns: 1fr; } }

/* Console 드로어: 시연의 단계를 누적 로그로 남깁니다. */
.console { border-top: 1px solid var(--line); }
.console-bar { padding: 4px 14px; background: var(--chrome); border-bottom: 1px solid var(--line-soft); font: 12px var(--mono); color: var(--ink-2); }
.console-log { list-style: none; padding: 0; height: 168px; overflow-y: auto; font-size: 14.5px; line-height: 1.6; }
.console-log li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; padding: 6px 14px; border-bottom: 1px solid var(--line-soft); animation: slide-in .25s ease-out; }
.console-log li::before { content: "›"; font: 600 13px/1.75 var(--mono); color: var(--wait); text-align: center; }
.console-log li.error { background: var(--red-soft); color: #a50e0e; border-bottom-color: #f7d4d0; }
.console-log li.error::before { content: "✕"; color: var(--red); }
.console-log li.ok { background: var(--green-soft); color: #0d652d; border-bottom-color: #cfe8d6; }
.console-log li.ok::before { content: "✓"; color: var(--green); }
@keyframes slide-in { from { opacity: 0; transform: translateY(4px); } }

/* Network 표 */
.net { font: 13px var(--mono); min-width: 0; }
.net-row { display: grid; grid-template-columns: 96px 78px minmax(0, 1fr) 48px; align-items: center; min-height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); }
.net-row.req { grid-template-columns: minmax(0, 1fr) 56px 76px 64px; }
.net-head { min-height: 30px; color: var(--muted); background: #fafafa; border-bottom: 1px solid var(--line); }
.net-group { padding: 6px 14px; background: #f8f9fa; border-bottom: 1px solid var(--line-soft); font: 600 12.5px var(--sans); }
.net-group.bad { color: var(--red); }
.net-group.ok { color: var(--green); }
.net-status { color: var(--muted); }
.net-status.fail { color: var(--red); font-weight: 600; }
.net-row.fail .net-name { color: var(--red); }
.net-time { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.net-wf { position: relative; height: 12px; margin-right: 8px; }
.net-wf i { position: absolute; top: 1px; bottom: 1px; border-radius: 2px; }
.net-wf .w { background: repeating-linear-gradient(-45deg, var(--wait) 0 3px, transparent 3px 6px); opacity: .8; }
.net-wf .a { background: var(--blue); min-width: 2px; }
.net-wf .a.stale, .net-wf .a.failed { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.net-wf .a.ignored { background: var(--wait); }
.net-tag { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 8px; padding: 1px 7px; border-radius: 3px; font: 600 11px/1.6 var(--sans); white-space: nowrap; }
.net-tag:empty { display: none; }
.net-tag.stale { background: var(--red); color: #fff; }
.net-tag.ignored { background: #e8eaed; color: var(--ink-2); }
.net-ruler { display: grid; grid-template-columns: 96px 78px minmax(0, 1fr) 48px; padding: 0 14px; height: 26px; font: 11px var(--mono); color: var(--muted); }
.net-ruler div { position: relative; grid-column: 3; margin-right: 8px; }
.net-ruler span { position: absolute; top: 5px; }
.net-row.idle { opacity: .35; }
.net-empty { padding: 10px 14px; color: var(--wait); font: 12.5px var(--mono); }
/* 재생 중에 행이 늘어나도 패널 높이가 변하지 않도록 최종 행 수만큼 자리를 잡아 둡니다. */
[data-chart], [data-reqs] { min-height: 175px; }
.net-status { white-space: nowrap; }
@media (max-width: 560px) {
  .net-row, .net-ruler { grid-template-columns: 62px 70px minmax(0, 1fr) 38px; padding: 0 10px; }
  .net-row.req { grid-template-columns: minmax(0, 1fr) 40px 70px 54px; }
  .net-row .dim { display: none; }
  .net-tag { display: none; }
}
@media (max-width: 640px) { .inspect-tip { display: none; } }

/* Preview 화면 */

/* 요청 경쟁: 방식마다 화면과 요청을 한 줄로 */
.lane + .lane { border-top: 1px solid var(--line); }
.lane-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 8px 14px; background: #f8f9fa; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.lane-head b { font-weight: 700; }
.lane.bad .lane-head b { color: var(--red); }
.lane.ok .lane-head b { color: var(--green); }
.lane-head span { color: var(--muted); }
.lane-body { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: start; }
.lane .net-row, .lane .net-ruler { grid-template-columns: 58px minmax(0, 1fr) 40px; padding-left: 12px; }
.lane .net-row > :nth-child(2) { display: none; }
.lane .net-ruler div { grid-column: 2; }
.lane.short [data-chart] { min-height: 70px; }
.lane.short .lane-body { min-height: 150px; }
.mini-screen { margin: 12px 0 12px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: background .25s, border-color .25s; }
.mini-screen.bad { border-color: #f4b8b2; background: var(--red-soft); }
.mini-screen.ok { border-color: #a8d5b5; background: var(--green-soft); }
.screen-tabs { display: flex; gap: 4px; }
.screen-tabs span { flex: 1; text-align: center; border-radius: 4px; border: 1px solid var(--line); font: 600 12px/20px var(--mono); color: var(--muted); background: var(--panel); }
.screen-tabs span.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.mini-screen dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.mini-screen dt { font: 11px var(--mono); color: var(--muted); }
.mini-screen dd { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mini-screen.bad [data-shown] { color: var(--red); }
.mini-screen.ok [data-shown] { color: var(--green); }
.mini-screen p { margin-top: 6px; min-height: 2.9em; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 560px) { .lane-body { grid-template-columns: 1fr; } .mini-screen { margin: 10px 10px 0; } }

/* 리뷰 폼 미리보기 */
.score { display: flex; align-items: baseline; gap: 6px; }
.score b { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.score span { font: 13px var(--mono); color: var(--muted); }
.dim { color: var(--muted); }
.field-box { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font-size: 14px; line-height: 1.55; }
.learners { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.learners span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12.5px; color: var(--muted); transition: background .2s, color .2s, border-color .2s; }
.learners span.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.count { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.count small { display: block; font: 11.5px var(--mono); color: var(--muted); }
.count b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.plan { font: 12.5px var(--mono); color: var(--muted); }
.plan b { color: var(--blue); font-family: var(--sans); }

/* Components 인스펙터 */
.views { padding: 18px 16px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; background: #fbfbfc; }
.view-card { position: relative; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); opacity: .55; transition: opacity .25s, box-shadow .25s; }
.view-card.on { opacity: 1; box-shadow: 0 0 0 2px var(--blue); }
.view-card.on::after { content: ""; position: absolute; inset: 0; border-radius: 8px; background: rgb(111 168 220 / 14%); pointer-events: none; }
.view-card .tip { position: absolute; left: 8px; top: -11px; padding: 0 6px; border-radius: 3px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 20%); font: 11.5px/1.7 var(--mono); color: var(--purple); visibility: hidden; }
.view-card.on .tip { visibility: visible; }
.view-card h4 { margin: 4px 0 8px; font: 600 13px var(--sans); display: flex; justify-content: space-between; }
.stepper { display: flex; gap: 3px; align-items: center; }
.stepper i { width: 16px; height: 4px; border-radius: 2px; background: var(--line); }
.stepper i.on { background: var(--blue); }
.fld { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.fld-v { display: block; margin-top: 3px; min-height: 34px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.fld-v.multi { min-height: 56px; }
.fld-v:empty::before { content: "비어 있음"; color: #b8bcc2; }
.inspector { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); border-top: 1px solid var(--line); font: 12.5px/1.75 var(--mono); min-width: 0; }
.tree { padding: 8px 0; border-right: 1px solid var(--line); }
.tree div { padding: 0 12px; color: var(--purple); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree div.sel { background: var(--blue-soft); }
.tree .t1 { padding-left: 26px; } .tree .t2 { padding-left: 40px; }
.tree .attr { color: #994500; } .tree .val { color: #1a1aa6; }
.props { padding: 8px 12px 12px; }
.props .sec { color: var(--muted); margin-top: 4px; }
.props .kv { padding-left: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 2px; }
.props .k { color: var(--purple); }
.props .s { color: var(--string); }
.props .n { color: var(--wait); }
.props .b { color: #1a1aa6; }
.props .flash { animation: flash 1.1s ease-out; }
@keyframes flash { from { background: #fdd663; } to { background: transparent; } }
@media (max-width: 560px) { .inspector { grid-template-columns: 1fr; } .tree { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .views { grid-template-columns: 1fr; } }

/* Performance 필름스트립 */
.perf { position: relative; padding: 12px 14px 6px; }
.perf-ruler { position: relative; height: 30px; margin-left: 168px; border-bottom: 1px solid var(--line); font: 11px var(--mono); color: var(--muted); }
.perf-ruler span { position: absolute; bottom: 5px; transform: translateX(-50%); white-space: nowrap; }
.perf-ruler .mark { color: var(--blue); }
.playhead { position: absolute; top: 12px; bottom: 6px; width: 0; border-left: 1.5px solid var(--red); z-index: 2; pointer-events: none; }
.perf-track { display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.perf-track:last-child { border-bottom: 0; }
.perf-label { font-size: 14px; font-weight: 650; line-height: 1.45; }
.perf-label small { display: block; margin-top: 4px; font: 12px var(--mono); color: var(--muted); }
.perf-label small b { color: var(--blue); }
.film { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.frame { aspect-ratio: 4 / 3; border: 1px dashed var(--line); border-radius: 6px; padding: 7px; display: grid; grid-template-rows: 7px 1.4fr 1fr 1fr; gap: 5px; background: #fafafa; }
.frame.shot { border-style: solid; background: #fff; animation: slide-in .25s ease-out; }
.frame i { border-radius: 3px; }
.frame.shot i { background: #eceef1; }
.frame.shot i:first-child { background: #dadce0; }
.frame.shot i.on { background: var(--blue); }
.frame.shot i.on:nth-child(3) { background: #34a853; }
.frame.shot i.on:nth-child(4) { background: #f9ab00; }
.frame-time { font: 11px var(--mono); color: var(--muted); text-align: center; margin-top: 3px; }
@media (max-width: 640px) { .perf-track { grid-template-columns: 1fr; } .perf-ruler { margin-left: 0; } .playhead { display: none; } }

/* 정적 그림 */
.figure-body { padding: 28px; }
.figure-cap { padding: 0 28px 20px; font-size: 13.5px; color: var(--muted); text-align: center; }
.layers { display: grid; gap: 8px; max-width: 480px; margin: 0 auto; }
.layers .pair, .sdk-pkgs .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.layer { padding: 11px 14px; border-radius: 6px; border: 1px solid var(--line); background: #fff; text-align: center; line-height: 1.45; }
.layer small { display: block; font: 11.5px var(--mono); color: var(--purple); }
.layer strong { font-size: 14px; }
.layer.core { background: var(--inspect); border-color: rgb(26 115 232 / 55%); padding: 16px 14px; }
.layer.core small { color: #174ea6; }
.layers .join, .sdk-pkgs .join { height: 10px; position: relative; }
.layers .join::before, .sdk-pkgs .join::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1.5px dashed var(--line); }
.flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.flow .layer { min-width: 130px; }
.flow .arrow { font-family: var(--mono); color: var(--muted); }
.summary { font: 13px var(--mono); }
.summary > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.summary > div:last-child { border-bottom: 0; }
.summary .who { color: var(--muted); }
.summary .bar { position: relative; height: 24px; background: var(--chrome); border-radius: 3px; overflow: hidden; }
.summary .bar i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--wait); }
.summary .bar i.after { width: 78.7%; background: var(--blue); }
.summary .bar span { position: absolute; left: 10px; top: 0; line-height: 24px; color: #fff; font-weight: 600; }
.statusline { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.statusline b { color: var(--ink); }

/* 수치 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 40px 0 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.stat { padding: 18px 20px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 30px; line-height: 1.2; letter-spacing: -.03em; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } .stat + .stat { border-left: 0; border-top: 1px solid var(--line); } }

/* 표 */
.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.table-wrap th, .table-wrap td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { font: 12px var(--mono); color: var(--muted); background: #fafafa; border-bottom-color: var(--line); white-space: nowrap; }
.table-wrap td { color: var(--ink-2); }
.table-wrap td.to { font: 600 13px var(--mono); color: var(--purple); white-space: nowrap; }
@media (max-width: 640px) { .table-wrap table { min-width: 540px; } }

/* ---------- 웹 프론트엔드를 넘어선 문제들 ---------- */
.probe { margin-top: 64px; }
.probe-head { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 16px; max-width: 720px; margin-inline: auto; }
.probe-no { font: 700 26px/1.2 var(--mono); color: var(--blue); }
.probe-head h3 { font-size: clamp(21px, 2.6vw, 26px); line-height: 1.4; letter-spacing: -.03em; font-weight: 800; margin: 4px 0 10px; }
.probe-head > div > p:not(.path) { font-size: 16.5px; line-height: 1.8; color: var(--ink-2); }
.probe .panel { margin-top: 20px; }
.probe-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.hyp { list-style: none; padding: 0; counter-reset: hyp; min-width: 0; }
.hyp li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 16px 18px 16px 50px; border-bottom: 1px solid var(--line-soft); counter-increment: hyp; }
.hyp li:last-child { border-bottom: 0; }
.hyp li::before { content: counter(hyp); position: absolute; left: 16px; top: 17px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font: 600 11.5px/20px var(--mono); text-align: center; color: var(--muted); background: #fff; }
.hyp b { grid-column: 1; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.hyp span { grid-column: 1; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.hyp em { grid-column: 2; grid-row: 1; align-self: start; font: 600 11.5px/1.7 var(--mono); font-style: normal; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.hyp li.out b { color: var(--muted); text-decoration: line-through; text-decoration-color: #c4c7cc; }
.hyp li.out em { background: var(--chrome); color: var(--muted); }
.hyp li.keep em { background: #fef7e0; color: #8a5a00; }
.hyp li.keep::before { border-color: #f9ab00; color: #8a5a00; }
.hyp li.ok em { background: var(--green-soft); color: var(--green); }
.hyp li.ok::before { border-color: var(--green); background: var(--green); color: #fff; }
.mine { margin-left: 6px; padding: 1px 7px; border-radius: 3px; background: var(--blue-soft); color: var(--blue); font: 600 11px/1.6 var(--sans); font-style: normal; vertical-align: 2px; }
.viz { min-width: 0; padding: 20px; border-left: 1px solid var(--line); background: #fbfbfc; display: flex; flex-direction: column; gap: 10px; }
.viz figcaption { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); }
.big b { display: block; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big span { font-size: 13px; color: var(--muted); }
.stack { display: flex; height: 30px; border-radius: 4px; overflow: hidden; font: 600 12.5px/30px var(--mono); }
.stack i { font-style: normal; padding: 0 10px; color: var(--ink-2); background: #e3e5e8; }
.stack i.hot { color: #fff; background: var(--red); }
.legend-row { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.legend-row i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: #e3e5e8; margin-right: 6px; vertical-align: -1px; }
.legend-row i.hot { background: var(--red); }
.track-axis { position: relative; height: 70px; margin: 14px 8px 0; border-bottom: 2px solid var(--line); }
.track-axis .tick { position: absolute; bottom: -22px; transform: translateX(-50%); font: 11px var(--mono); color: var(--muted); }
.track-axis .needle { position: absolute; bottom: 0; top: 18px; border-left: 3px solid var(--red); }
.track-axis .needle b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-70%); margin-bottom: 2px; padding: 1px 7px; border-radius: 3px; background: var(--red); color: #fff; font: 600 11.5px/1.6 var(--mono); white-space: nowrap; }
.track-axis + figcaption { margin-top: 28px; }
.seq-label { font: 600 12px var(--mono); color: var(--muted); margin-top: 4px; }
.seq-label.bad { color: var(--red); }
.seq-label.ok { color: var(--green); }
.seq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.seq span { position: relative; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 13px; line-height: 1.4; }
.seq span + span::before { content: "→"; position: absolute; left: -7px; top: 50%; transform: translate(-50%, -50%); color: var(--wait); font-family: var(--mono); font-size: 11px; }
.seq span + span { margin-left: 8px; }
.seq.chain span:not(:last-child) { opacity: .75; }
.seq .x { border-color: #f4b8b2; background: var(--red-soft); color: #a50e0e; font-weight: 600; }
.seq .v { border-color: #a8d5b5; background: var(--green-soft); color: #0d652d; font-weight: 600; }
.seq code, .dom code { background: none; padding: 0; }
.dom { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 13px; }
.dom .node { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: 12.5px var(--mono); color: var(--purple); text-align: center; }
.dom .same { grid-column: 1 / -1; padding: 8px 10px; border-radius: 6px; background: var(--inspect); box-shadow: 0 0 0 1px rgb(26 115 232 / 55%); text-align: center; font-weight: 600; color: #174ea6; }
.dom .new { grid-column: 1 / -1; padding: 6px 10px; border: 1px dashed var(--line); border-radius: 6px; text-align: center; color: var(--muted); }
.probe-after { max-width: 720px; margin: 16px auto 0; padding: 16px 20px; border-left: 3px solid var(--purple); background: #faf7fd; border-radius: 0 8px 8px 0; }
.probe-after p:not(.why-label) { font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.probe-after b { color: var(--ink); }
@media (max-width: 900px) {
  .probe-grid { grid-template-columns: 1fr; }
  .viz { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) { .probe-head { grid-template-columns: 1fr; } .probe-no { font-size: 20px; } }

/* ---------- 왜 이 구조였나 ---------- */
.why { margin-top: 24px; padding: 18px 22px; border-left: 3px solid var(--purple); background: #faf7fd; border-radius: 0 8px 8px 0; }
.why-label { font: 600 12.5px var(--mono); color: var(--purple); margin-bottom: 8px; }
.case .col .why p:not(.why-label), .why p:not(.why-label) { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.why p + p, .probe-after p + p { margin-top: 12px; }
.why .why-label { font: 600 14px/1.6 var(--sans); }
.why b { color: var(--ink); }
code { font: 0.9em var(--mono); background: var(--chrome); padding: 1px 5px; border-radius: 3px; }
.src code { background: none; padding: 0; border-radius: 0; font-size: inherit; }

/* ---------- 오픈소스 ---------- */
.oss { margin-top: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.oss a { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); text-decoration: none; font-size: 15px; color: var(--ink-2); }
.oss a:last-child { border-bottom: 0; }
.oss a:hover { background: #fafafa; }
.oss .repo { font: 13.5px var(--mono); color: var(--ink); }
.oss .repo b { color: var(--blue); font-weight: 600; }
.oss .merged { font: 600 12px var(--mono); color: #8250df; background: #f3eefe; padding: 2px 8px; border-radius: 999px; }
@media (max-width: 680px) { .oss a { grid-template-columns: 1fr auto; } .oss a > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- 연락 ---------- */
.contact { padding: 72px 0 96px; }
.terminal { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 8px 28px -14px rgb(60 64 67 / 30%); }
.terminal-body { padding: clamp(28px, 5vw, 52px); }
.terminal-body .prompt { margin-bottom: 14px; }
.terminal h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.3; letter-spacing: -.035em; font-weight: 800; }
.terminal p { margin-top: 10px; color: var(--ink-2); }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 13.5px; color: var(--muted); }

/* SDK 구성 · 호출 흐름 */
.sdk-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.sdk-pkgs { display: grid; gap: 8px; }
.sdk-pkgs .layer em { display: block; margin-top: 6px; font: normal 12px/1.5 var(--sans); color: var(--muted); }
.sdk-calls { margin: 0; padding: 0; list-style: none; counter-reset: call; display: grid; gap: 10px; }
.sdk-calls li { counter-increment: call; display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; font-size: 13.5px; line-height: 1.55; }
.sdk-calls li::before { content: counter(call); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 11px var(--mono); color: var(--muted); }
.sdk-calls b { font: 600 12px var(--mono); color: var(--ink-2); }
@media (max-width: 760px) { .sdk-map { grid-template-columns: 1fr; } }

/* 세 번의 저장 주기를 한 시간축에서 비교합니다. */
.cycle-status { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.cycle-status b { color: var(--blue); }
.cycle-status span { color: var(--muted); }
[data-demo="save-fetch"] .net-tag { display: none; }
.request-legend { padding: 8px 14px; border-bottom: 1px solid var(--line); }
.request-impact { margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.65; color: var(--muted); }
.request-legend .request-wait { background: repeating-linear-gradient(-45deg, var(--wait) 0 3px, transparent 3px 6px); }
.request-legend .request-active { background: var(--blue); }
.playback-row { background: #faf7fd; }
.playback-row .net-name, .playback-row .net-time { color: var(--purple); }
.playback-progress { display: block; appearance: none; width: 100%; height: 8px; margin-top: 2px; border: 0; border-radius: 4px; overflow: hidden; background: #eee5f5; accent-color: var(--purple); }
.playback-progress::-webkit-progress-bar { background: #eee5f5; border-radius: 4px; }
.playback-progress::-webkit-progress-value { background: var(--purple); border-radius: 4px; }
.playback-progress::-moz-progress-bar { background: var(--purple); border-radius: 4px; }
