@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --brand: #0064ff;
  --public-blue: #3182f6;
  --ink: #000000;
  --fg: #1b1c1f;
  --muted: #6e6f73;
  --hairline: #dadbdf;
  --border: #dadbdf;
  --canvas: #ffffff;
  --wash: #f7f8fb;
  --hover: #f2f3f7;
  --shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 0 6px rgba(0, 0, 0, 0.2);
  --radius: 16px;
  --pill: 9999px;
  --nav-w: 240px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
}
* { box-sizing: border-box }
html, body { margin: 0; height: 100% }
body {
  background: var(--wash);
  color: var(--fg);
  font-family: Pretendard, -apple-system, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}
code, .mono, .tcid {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}
.layout {
  display: grid;
  grid-template-columns: var(--nav-w) 1fr;
  min-height: 100vh;
}
.side {
  background: var(--canvas);
  border-right: 1px solid var(--hairline);
  padding: var(--space-7) var(--space-5);
  position: sticky;
  top: 0;
  height: 100vh;
}
.logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 19px;
  color: var(--fg);
}
.logo img {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent;
  display: block;
}
.logo small {
  flex-basis: 100%;
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
}
.nav { display: grid; gap: 4px; margin-top: var(--space-7) }
.nav button {
  border: 0;
  background: transparent;
  color: var(--fg);
  text-align: left;
  padding: 0 var(--space-4);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
  cursor: pointer;
  height: 48px;
}
.nav button:hover { background: var(--wash) }
.nav button.on { background: var(--wash) }
.sidefoot {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-5);
  right: var(--space-5);
  color: var(--muted);
  font-size: 12px;
  line-height: 14px;
}
.main { min-width: 0; padding: 24px 28px 56px }
body > main { padding: 24px 28px 56px; max-width: 960px }
.eyebrow {
  color: var(--public-blue);
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
}
h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  margin: 4px 0 8px;
  color: var(--ink);
}
h2 {
  font-size: 16px;
  font-weight: 700;
  line-height: 19px;
  margin: 0 0 8px;
  color: var(--fg);
}
.muted { color: var(--muted) }
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.metric {
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
button.metric { border: 1px solid var(--hairline); background: var(--canvas); }
button.metric:hover { background: var(--hover); }
.metric span { font-size: 12px; color: var(--muted); font-weight: 400; line-height: 14px }
.metric strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  margin-top: 2px;
  color: var(--ink);
}
.metric.pass strong { color: var(--brand) }
.metric.fail strong { color: var(--fg) }
.metric.change strong { color: var(--public-blue) }
.metric.error strong { color: var(--muted) }
.runinfo { display: grid; grid-template-columns: repeat(3, 1fr) }
.kv { padding: 12px 16px; border-right: 1px solid var(--hairline) }
.kv:last-child { border-right: 0 }
.kv span { display: block; color: var(--muted); font-size: 12px; line-height: 14px }
.kv b { font-size: 14px; font-weight: 700; line-height: 17px; color: var(--fg) }
.section { margin-top: 16px }
header + .section, header + .chart { margin-top: 10px }
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 8px;
}
.tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}
.filter, .btn {
  border: 1px solid var(--fg);
  background: var(--canvas);
  color: var(--fg);
  border-radius: var(--radius);
  padding: 4px 12px;
  min-height: 32px;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  cursor: pointer;
}
.filter.on {
  background: var(--wash);
  font-weight: 700;
}
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.search {
  margin-left: auto;
  width: 220px;
  height: 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  color: var(--fg);
  background: var(--canvas);
  box-shadow: none;
}
.search:hover { background: var(--wash); box-shadow: none }
.tablewrap { overflow: auto; border-radius: var(--radius) }
table { border-collapse: collapse; width: 100%; min-width: 640px }
th {
  text-align: left;
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
  color: var(--muted);
  background: var(--canvas);
  padding: 8px 12px;
  border-bottom: 1px solid var(--hairline);
}
td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top }
tbody tr { cursor: pointer }
tbody tr:hover { background: var(--hover) }
tbody tr:last-child td { border-bottom: 0 }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px 2px 6px;
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
  white-space: nowrap;
  border: 0;
  border-radius: var(--pill);
  background: var(--wash);
  color: var(--fg);
  height: 26px;
}
.bp { color: var(--brand); background: #f4f8ff }
.bc { color: var(--public-blue); background: var(--wash) }
.bf { color: var(--fg); background: var(--hover) }
.be { color: var(--muted); background: var(--canvas); border: 1px solid var(--hairline) }
.bn { color: var(--muted) }
.name b { display: block; color: var(--fg); font-size: 14px; font-weight: 700; line-height: 18px }
.name span { font-size: 12px; color: var(--muted); line-height: 14px }
.callout {
  padding: 10px 12px;
  font-size: 14px;
  line-height: 20px;
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--fg);
}
.callout.good { background: #f4f8ff; color: var(--fg) }
.callout.bad { background: var(--wash); color: var(--fg) }
.callout.err { background: var(--canvas); border: 1px solid var(--hairline); color: var(--muted) }
.callout.ui { background: var(--wash); color: var(--fg) }
.steplist { display: grid; gap: 4px }
.step {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
}
.step:last-child { border-bottom: 0 }
.num {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: var(--pill);
  background: var(--wash);
  color: var(--public-blue);
  font-size: 12px;
  font-weight: 700;
}
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-3);
}
.shot {
  border: 1px solid var(--hairline);
  background: var(--fg);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot img {
  width: 100%;
  display: block;
  background: var(--fg);
  cursor: zoom-in;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-7);
  background: rgba(0, 0, 0, 0.72);
  cursor: zoom-out;
}
.lightbox.on {
  display: flex;
}
.lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  cursor: default;
  background: #000;
}
.lightbox-cap {
  margin: 0;
  max-width: 900px;
  color: #e8e9ed;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}
body.lb-open { overflow: hidden }
.shot figcaption {
  padding: var(--space-2) var(--space-3);
  font-size: 12px;
  line-height: 14px;
  color: var(--muted);
  background: var(--canvas);
}
.compare { display: grid; grid-template-columns: 1fr 32px 1fr; gap: var(--space-3); align-items: center }
.compare .arrow { text-align: center; color: var(--muted); font-size: 20px }
.doc-list { display: grid; gap: 0; background: transparent; border-top: 1px solid var(--hairline) }
.doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  border-radius: 0;
}
.doc-item:hover { background: var(--hover) }
.doc-item b { display: block; font-size: 14px; font-weight: 700; line-height: 18px; color: var(--fg) }
.doc-body {
  margin-top: 12px;
  padding: 16px 20px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.doc-body h1 { font-size: 24px; line-height: 30px }
.doc-body h2 { font-size: 16px; margin: 16px 0 8px }
.doc-body table { min-width: 0; margin: var(--space-3) 0 }
.frame {
  width: 100%;
  min-height: 72vh;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  border-radius: var(--radius);
}
.hidden { display: none !important }
.hist { display: grid; gap: 0 }
.hist a, .hist button, .hist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  font: inherit;
  cursor: default;
  border-radius: 0;
}
.hist button { cursor: pointer }
.hist button:hover, .hist-row:hover { background: var(--hover) }
.hist-more { margin-top: 2px; border-top: 0 }
.hist-more summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 8px 2px }
.hist-more[open] summary { margin-bottom: 0 }
.page-compact h1 { font-size: 22px; line-height: 26px; margin: 2px 0 8px }
.page-compact td { padding: 8px 10px }
.page-compact th { padding: 6px 10px }
.notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--wash);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.chart {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 12px 12px 4px;
  margin: 12px 0 0;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0 4px 4px;
}
.chart-head b { font-size: 14px }
.chart svg { width: 100%; height: 168px; display: block }
.chart-x { font-size: 11px; fill: var(--muted) }
.chart-peak { font-size: 11px; font-weight: 700; fill: var(--brand) }
.case-sheet { margin-top: 10px }
.case-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.case-head h1 { font-size: 18px; line-height: 22px; margin: 4px 0 0 }
.case-body { padding: 10px 12px }
.case-body .section { margin-top: 10px }
.case-body h2 { margin-bottom: 4px }
.case-body p { margin: 2px 0 }
.spec-list {
  margin: 4px 0 0;
  padding-left: 18px;
}
.spec-list li { margin: 4px 0; line-height: 22px }
.spec-prose { font-size: 15px; line-height: 22px }
.spec-meta { margin: 0 0 4px; }
.case-body .muted { margin-top: 10px }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-7);
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.kicker { color: var(--public-blue); font-size: 12px; font-weight: 400; margin: 0 }
.top nav a {
  color: var(--fg);
  text-decoration: none;
  margin-left: var(--space-4);
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
}
.top nav a.on { color: var(--brand) }
.log {
  min-height: 280px;
  max-height: 52vh;
  overflow: auto;
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--canvas);
  border: 1px solid var(--hairline);
}
.composer { display: flex; gap: var(--space-2); margin-top: var(--space-3) }
.composer input {
  flex: 1;
  height: 48px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 var(--space-4);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.composer button {
  height: 48px;
  border: 0;
  background: var(--canvas);
  color: var(--ink);
  padding: 0 var(--space-5);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
  cursor: pointer;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.composer button:hover,
.composer input:hover {
  background: var(--wash);
  box-shadow: var(--shadow-hover);
}
@media (max-width: 900px) {
  .layout { display: block }
  .side { position: relative; height: auto }
  .sidefoot { position: static; margin-top: var(--space-6) }
  .main, body > main { padding: var(--space-6) var(--space-5) 48px }
  h1 { font-size: 32px; line-height: 38px }
  .grid4 { grid-template-columns: 1fr 1fr }
  .runinfo { grid-template-columns: 1fr }
  .compare { grid-template-columns: 1fr }
  .search { margin-left: 0; width: 100% }
}
