/* 렌더온 스튜디오 · Windows 배포 빌드 (installer 데모 전용) */
.ib {
  --bg: #11151C;
  --surface: #181E28;
  --surface-2: #1F2633;
  --sunken: #0C1016;
  --line: #2A3343;
  --line-2: #364154;
  --text: #E6EAF0;
  --muted: #95A1B5;
  --primary: #3D8BFF;
  --primary-ink: #06101F;
  --accent: #8CBCFF;
  --ok: #3DDC84;
  --warn: #F2B544;
  --danger: #FF6B78;
  --p-root: #95A1B5;
  --p-asar: #3D8BFF;
  --p-unpack: #B49CFF;
  --p-extra: #2FD3C0;
  --p-setup: #F2B544;
  --r: 8px;
  --mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.ib *, .ib *::before, .ib *::after { box-sizing: border-box; }
:where(.ib) :where(h1, h2, h3, p, ul, ol, dl, dd, pre) { margin: 0; }
:where(.ib) :where(ul, ol) { padding: 0; list-style: none; }
:where(.ib) a { color: var(--accent); }
:where(.ib) button { font: inherit; color: inherit; }
:where(.ib) code { font-family: var(--mono); }
.ib .mono { font-family: var(--mono); font-variant-ligatures: none; letter-spacing: -0.01em; }
.ib :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.ib-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 안내 띠 (공용 partial 을 맨 위로) */
.ib .demo-notice {
  order: -1;
  flex: none;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  background: #0A0D12;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

/* ── 상단 ─────────────────────────── */
.ib-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.ib-brand { display: flex; align-items: center; gap: 10px; color: var(--text) !important; text-decoration: none; min-width: 0; }
.ib-brand__mark { flex: none; display: flex; }
.ib-brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ib-brand__text b { font-size: 15px; font-weight: 700; }
.ib-brand__text small { font-size: 12px; color: var(--muted); }
.ib-top__right { display: flex; align-items: center; gap: 10px; flex: none; }
.ib-buildchip {
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.ib-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 4px;
  padding: 0 28px;
  background: rgba(17, 21, 28, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.ib-nav::-webkit-scrollbar { display: none; }
.ib-nav__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  color: var(--muted) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.ib-nav__item .mono { font-size: 11px; color: var(--muted); }
.ib-nav__item:hover { color: var(--text) !important; }
.ib-nav__item.is-on { color: var(--text) !important; border-bottom-color: var(--primary); }
.ib-nav__item.is-on .mono { color: var(--primary); }

.ib-main {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 28px 96px;
}

/* ── 공통 요소 ─────────────────────── */
.ib-head { margin-bottom: 20px; }
.ib-eyebrow { font-size: 12px; color: var(--primary); letter-spacing: 0.04em; margin-bottom: 6px; }
.ib-head h1 { font-size: 26px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
.ib-lead { margin-top: 8px; max-width: 760px; color: var(--muted); font-size: 15px; }

.ib-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  min-width: 0;
}
.ib-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ib-card__head h2 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ib-card__aside { font-size: 12px; color: var(--muted); }
.ib-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.55; }

.ib-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}
.ib-tag--assume { color: var(--warn); border: 1px dashed rgba(242, 181, 68, 0.6); }
.ib-tag--mock { color: var(--accent); border: 1px dashed rgba(140, 188, 255, 0.6); }

.ib-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.ib-btn--primary { background: var(--primary); color: var(--primary-ink) !important; }
.ib-btn--primary:hover { background: #5A9CFF; }
.ib-btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.ib-btn--ghost:hover { border-color: var(--muted); }
.ib-btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.ib-btn:disabled { opacity: 0.5; cursor: progress; }

.ib-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r); }
.ib-seg button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ib-seg button.is-on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.ib-seg--wide { display: flex; margin: 4px 0 14px; }
.ib-seg--wide button { flex: 1; min-height: 40px; }

.ib-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.ib-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ib-badge--ok { color: var(--ok); background: rgba(61, 220, 132, 0.12); }
.ib-badge--fail { color: var(--danger); background: rgba(255, 107, 120, 0.12); }

.ib-place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.ib-place::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--muted)); }
.ib-place--root { --c: var(--p-root); }
.ib-place--asar { --c: var(--p-asar); }
.ib-place--unpack { --c: var(--p-unpack); }
.ib-place--extra { --c: var(--p-extra); }
.ib-place--setup { --c: var(--p-setup); }

.ib-code {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 12.5px;
  line-height: 1.65;
  color: #CFE0FF;
  overflow-x: auto;
  white-space: pre;
}

/* ── 01 패키징 구성 ─────────────────── */
.ib-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.ib-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-width: 0;
}
.ib-stat span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ib-stat b { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-stat--link { text-decoration: none; color: var(--text) !important; }
.ib-stat--link b { color: var(--accent); }
.ib-stat--link:hover { border-color: var(--line-2); }

.ib-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 16px;
  align-items: start;
}
.ib-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.ib-tree__root {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 0 2px 8px;
  overflow-wrap: anywhere;
}
.ib-tree__list { display: flex; flex-direction: column; gap: 4px; }
.ib-tree__list > li { padding-left: calc(var(--depth, 0) * 22px); position: relative; }
.ib-tree__list > li[style*="--depth: 1"]::before {
  content: "";
  position: absolute;
  left: 9px;
  top: -4px;
  bottom: -4px;
  border-left: 1px dashed var(--line-2);
}
.ib-tree__dir { font-size: 13px; color: var(--muted); padding: 6px 2px 2px 12px; }
.ib-tree__sep { height: 1px; background: var(--line); margin: 8px 0; }
.ib-node {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  min-height: 44px;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
}
.ib-node:hover { border-color: var(--line-2); }
.ib-node.is-on { border-color: var(--primary); background: #1B2740; box-shadow: inset 3px 0 0 var(--primary); }
.ib-node__file { font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.ib-node__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ib-node__name { font-size: 13px; color: var(--muted); font-weight: 600; }
.ib-node.is-on .ib-node__name { color: var(--text); }

.ib-writes {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
}
.ib-writes__title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.ib-writes dl { display: flex; flex-direction: column; gap: 6px; }
.ib-writes dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.ib-writes dt { color: var(--muted); }
.ib-writes dd { overflow-wrap: anywhere; }

.ib-detail__body header { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ib-detail__body h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.ib-detail__sub { color: var(--muted); font-size: 13.5px; margin-top: -4px; }
.ib-path {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-left: 3px solid var(--p-extra);
  border-radius: var(--r);
}
.is-dev .ib-path { border-left-color: var(--warn); }
.ib-path__label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ib-path__value { font-size: 13px; color: var(--text); overflow-wrap: anywhere; line-height: 1.55; }
.ib-detail__why { margin-top: 14px; font-size: 14.5px; line-height: 1.7; }
.ib-detail__size { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ib-detail__size b { color: var(--text); font-size: 15px; font-weight: 500; }

.ib-bars { display: flex; flex-direction: column; gap: 2px; }
.ib-bar {
  width: 100%;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 8px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}
.ib-bar:hover { background: var(--surface-2); }
.ib-bar__name { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-bar__track { height: 10px; display: block; }
.ib-bar__fill { display: block; height: 100%; min-width: 4px; background: rgba(61, 139, 255, 0.45); border-radius: 0 4px 4px 0; }
.ib-bar__val { font-size: 12.5px; color: var(--muted); text-align: right; }
.ib-bar.is-on .ib-bar__fill { background: var(--primary); }
.ib-bar.is-on .ib-bar__name, .ib-bar.is-on .ib-bar__val { color: var(--text); }

.ib-meter { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ib-meter > p:first-child { font-size: 13px; color: var(--muted); }
.ib-meter > p:first-child b { color: var(--text); font-weight: 500; }
.ib-meter__track { display: block; height: 8px; margin-top: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.ib-meter__track span { display: block; height: 100%; background: var(--p-extra); border-radius: 0 4px 4px 0; }

.ib-yaml {
  overflow: auto;
  padding: 10px 0;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 12.5px;
  line-height: 1.75;
  color: #B9C6DA;
}
.ib-yaml__line { display: block; padding: 0 14px 0 0; white-space: pre; border-left: 3px solid transparent; }
.ib-yaml__line i { display: inline-block; width: 40px; padding-right: 12px; text-align: right; color: #56627A; font-style: normal; user-select: none; }
.ib-yaml__line.is-on { background: rgba(61, 139, 255, 0.14); border-left-color: var(--primary); color: var(--text); }
.ib-yaml__line.is-on i { color: var(--accent); }

/* ── 02 클린 PC 검증 ───────────────── */
.ib-vgrid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.ib-vside, .ib-vmain { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.ib-env { display: flex; flex-direction: column; }
.ib-env > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ib-env > div:last-child { border-bottom: 0; }
.ib-env dt { color: var(--muted); }
.ib-env dd { text-align: right; }

.ib-steps { display: flex; flex-direction: column; gap: 0; }
.ib-step { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; position: relative; }
.ib-step + .ib-step::before { content: ""; position: absolute; left: 14px; top: -10px; height: 20px; border-left: 1px solid var(--line-2); }
.ib-step__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.ib-step__text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.ib-step__text b { font-size: 14px; font-weight: 600; }
.ib-step__text small { font-size: 12px; color: var(--muted); }
.ib-step__state { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ib-step[data-state="run"] .ib-step__dot { border-color: var(--primary); color: var(--primary); animation: ib-pulse 1s ease-in-out infinite; }
.ib-step[data-state="run"] .ib-step__state { color: var(--primary); }
.ib-step[data-state="ok"] .ib-step__dot { background: var(--ok); border-color: var(--ok); color: #06210F; }
.ib-step[data-state="ok"] .ib-step__dot span { display: none; }
.ib-step[data-state="ok"] .ib-step__dot::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #06210F; border-bottom: 2px solid #06210F; transform: translateY(-2px) rotate(-45deg); }
.ib-step[data-state="ok"] .ib-step__state { color: var(--ok); }
.ib-step[data-state="fail"] .ib-step__dot { background: var(--danger); border-color: var(--danger); color: #2A0509; }
.ib-step[data-state="fail"] .ib-step__dot span { display: none; }
.ib-step[data-state="fail"] .ib-step__dot::after { content: "×"; font-size: 18px; font-weight: 700; line-height: 1; color: #2A0509; }
.ib-step[data-state="fail"] .ib-step__state { color: var(--danger); }
@keyframes ib-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 139, 255, 0.45); } 50% { box-shadow: 0 0 0 6px rgba(61, 139, 255, 0); } }

.ib-run .ib-card__head h2 { font-weight: 600; color: var(--muted); }
.ib-run .ib-card__head h2 .mono { color: var(--text); font-size: 13.5px; overflow-wrap: anywhere; }
.ib-run__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ib-run__label { margin-top: 16px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ib-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ib-chip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ib-chip:hover { border-color: var(--danger); }
.ib-chip.is-on { border-color: var(--danger); background: rgba(255, 107, 120, 0.12); color: #FFC2C8; }
.ib-chip:disabled { opacity: 0.5; cursor: progress; }

.ib-console { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sunken); overflow: hidden; }
.ib-console__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #10141B; }
.ib-console__bar > span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.ib-console__bar p { margin-left: 8px; font-size: 11.5px; color: var(--muted); }
.ib-console__body {
  height: 280px;
  overflow-y: auto;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #C8D3E4;
}
.ib-console__body li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.ib-console__body li span { overflow-wrap: anywhere; white-space: pre-wrap; }
.ib-console__body time { color: #56627A; }
.ib-console__body li.is-muted { color: var(--muted); display: block; }
.ib-console__body li.is-muted time { margin-right: 8px; }
.ib-console__body li.is-step { color: var(--accent); margin-top: 6px; font-weight: 500; }
.ib-console__body li.is-err { color: var(--danger); }
.ib-console__body li.is-ok { color: var(--ok); margin-top: 6px; font-weight: 500; }

.ib-diag, .ib-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 107, 120, 0.45);
  background: rgba(255, 107, 120, 0.06);
}
.ib-result { border-color: rgba(61, 220, 132, 0.45); background: rgba(61, 220, 132, 0.05); }
.ib-diag header, .ib-result header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ib-diag h3, .ib-result h3 { font-size: 15px; font-weight: 700; }
.ib-diag dl { display: flex; flex-direction: column; gap: 10px; }
.ib-diag dl > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.65; }
.ib-diag dt { color: var(--muted); font-weight: 700; font-size: 13px; padding-top: 1px; }
.ib-diff {
  margin: 14px 0;
  padding: 10px 12px;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 12.5px;
  line-height: 1.65;
  color: #B9C6DA;
  overflow-x: auto;
  white-space: pre;
}
.ib-diff span { display: block; }
.ib-diff .is-add { color: var(--ok); background: rgba(61, 220, 132, 0.08); }
.ib-diff .is-del { color: var(--danger); background: rgba(255, 107, 120, 0.08); }

.ib-result__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.ib-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 35%, rgba(255, 196, 120, 0.55), transparent 32%),
    linear-gradient(180deg, #1C2E52 0%, #35507F 52%, #1A2438 53%, #0F1622 100%);
}
.ib-video__frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--primary) 100%, transparent 0); }
.ib-video__play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(6, 16, 31, 0.7); }
.ib-video__play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.ib-video__time { position: absolute; right: 8px; bottom: 10px; font-size: 11px; color: #fff; background: rgba(6, 16, 31, 0.7); padding: 1px 6px; border-radius: 3px; }
.ib-video p { margin-top: 6px; font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.ib-cmp { width: 100%; border-collapse: collapse; font-size: 13px; }
.ib-cmp caption { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding-bottom: 6px; }
.ib-cmp th, .ib-cmp td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.ib-cmp th:first-child { text-align: left; font-weight: 500; color: var(--muted); }
.ib-cmp thead th { font-size: 12px; color: var(--muted); font-weight: 600; }

.ib-hist { display: flex; flex-direction: column; }
.ib-hist__empty { font-size: 13px; color: var(--muted); padding: 6px 0; }
.ib-hist__row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ib-hist__row:last-child { border-bottom: 0; }
.ib-hist__no { color: var(--muted); font-size: 12px; }
.ib-hist__case { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.ib-hist__case small { font-size: 11.5px; color: var(--muted); }
.ib-hist__res { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }

/* ── 03 빌드 인계 ───────────────────── */
.ib-hgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ib-hside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 64px; }
.ib-doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 24px;
  min-width: 0;
}
.ib-doc__sec { padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 64px; }
.ib-doc__sec:last-child { border-bottom: 0; }
.ib-doc__sec h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.ib-doc__sec h2 .mono { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--primary); font-size: 13px; }
.ib-doc__sec > p { font-size: 14.5px; line-height: 1.75; }
.ib-doc__sec > p + p { margin-top: 8px; }
.ib-doc__sec p code, .ib-doc__sec li code { font-size: 0.92em; color: var(--accent); }
.ib-doc__list { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.ib-doc__list li { padding-left: 16px; position: relative; }
.ib-doc__list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 1px; background: var(--muted); }
.ib-doc__out { margin-top: 12px; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.ib-doc__out code { color: var(--text); }

.ib-cmds { display: flex; flex-direction: column; gap: 10px; }
.ib-cmds p { font-size: 13px; color: var(--muted); margin-top: 4px; padding-left: 2px; }
.ib-cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  min-height: 44px;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.ib-cmd code { font-size: 13px; color: #CFE0FF; overflow-wrap: anywhere; }
.ib-copy {
  flex: none;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.ib-copy:hover { border-color: var(--primary); }

.ib-ver { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.ib-ver__now { display: flex; align-items: baseline; gap: 12px; }
.ib-ver__now span { font-size: 13px; color: var(--muted); }
.ib-ver__now b { font-size: 26px; font-weight: 500; color: var(--text); }
.ib-ver__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.ib-ver__btns .mono { color: var(--primary); font-weight: 500; }
.ib-ver__effects { display: flex; flex-direction: column; gap: 6px; }
.ib-ver__effects li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.ib-ver__effects span { color: var(--muted); }
.ib-ver__effects code { overflow-wrap: anywhere; }

.ib-lock { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 13px; }
.ib-lock th, .ib-lock td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.ib-lock th { font-size: 12px; color: var(--muted); font-weight: 600; }

.ib-trouble { display: flex; flex-direction: column; gap: 6px; }
.ib-trouble a {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
}
.ib-trouble a:hover { border-color: var(--danger); }
.ib-trouble b { color: #FFC2C8; font-weight: 700; }
.ib-trouble span { color: var(--muted); }

.ib-deliv { display: flex; flex-direction: column; }
.ib-deliv li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ib-deliv li:last-child { border-bottom: 0; }
.ib-deliv__mark { width: 12px; height: 12px; margin-top: 5px; border-radius: 3px; border: 1px solid var(--line-2); }
.ib-deliv b { display: block; font-size: 14px; font-weight: 600; }
.ib-deliv small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.ib-deliv__state { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.ib-deliv li[data-state="ok"] .ib-deliv__mark { background: var(--ok); border-color: var(--ok); }
.ib-deliv li[data-state="ok"] .ib-deliv__state { color: var(--ok); }

.ib-checks { display: flex; flex-direction: column; gap: 4px; }
.ib-check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 2px; cursor: pointer; font-size: 14px; }
.ib-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ok); flex: none; }

/* ── 공고 대응표·알림 ──────────────── */
.ib-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: #142441;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.ib-fab:hover { background: #1A2E55; }
.ib-sheet { position: fixed; inset: 0; z-index: 60; }
.ib-sheet[hidden] { display: none; }
.ib-sheet__scrim { position: absolute; inset: 0; background: rgba(4, 6, 10, 0.66); }
.ib-sheet__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100%);
  overflow-y: auto;
  padding: 20px;
  background: var(--surface);
  border-left: 1px solid var(--line);
}
.ib-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ib-sheet__head h2 { font-size: 17px; font-weight: 700; }
.ib-iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; cursor: pointer; }
.ib-map { display: flex; flex-direction: column; gap: 8px; }
.ib-map li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.ib-map__no { color: var(--primary); font-size: 13px; padding-top: 2px; }
.ib-map__req { font-weight: 700; font-size: 14px; line-height: 1.5; }
.ib-map__shown { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ib-map a { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; }
.ib-sheet__foot { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.ib-toast {
  position: fixed;
  left: 50%;
  bottom: 76px;
  z-index: 70;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border-radius: var(--r);
  background: #E6EAF0;
  color: #0C1016;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.ib-toast[hidden] { display: none; }

/* ── 반응형 ─────────────────────────── */
@media (max-width: 1080px) {
  .ib-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ib-vgrid { grid-template-columns: 320px minmax(0, 1fr); }
  .ib-hgrid { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 900px) {
  .ib-top { padding: 10px 16px; }
  .ib-nav { padding: 0 8px; }
  .ib-main { padding: 20px 16px 96px; }
  .ib-head h1 { font-size: 22px; }
  .ib-lead { font-size: 14px; }

  .ib-grid { grid-template-columns: minmax(0, 1fr); }
  .ib-col { display: contents; }
  .ib-tree { order: 1; }
  .ib-detail { order: 2; scroll-margin-top: 60px; }
  .ib-sizes { order: 3; }
  .ib-config { order: 4; }

  .ib-vgrid { grid-template-columns: minmax(0, 1fr); }
  .ib-vside, .ib-vmain { display: contents; }
  .ib-run { order: 1; }
  .ib-vside > .ib-card:not(.ib-snap) { order: 2; }
  .ib-vmain > .ib-card:not(.ib-run) { order: 3; }
  .ib-snap { order: 4; }

  .ib-hgrid { grid-template-columns: minmax(0, 1fr); }
  .ib-hside { position: static; }
  .ib-doc { padding: 4px 16px; }
}

@media (max-width: 560px) {
  .ib-buildchip { display: none; }
  .ib-top__right .ib-btn { padding: 0 10px; }
  .ib-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ib-stat:last-child { grid-column: 1 / -1; }
  .ib-stat b { font-size: 15px; }
  .ib-card { padding: 14px; }
  .ib-bar { grid-template-columns: 96px minmax(0, 1fr) 56px; gap: 8px; padding: 0 4px; }
  .ib-bar__name { font-size: 12px; }
  .ib-writes dl > div { grid-template-columns: 1fr; gap: 0; }
  .ib-result__grid { grid-template-columns: minmax(0, 1fr); }
  .ib-console__body { height: 240px; font-size: 12px; }
  .ib-console__body li { display: block; }
  .ib-console__body time { font-size: 11px; margin-right: 6px; }
  .ib-hist__row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .ib-hist__res { grid-column: 2 / -1; text-align: left; }
  .ib-diag dl > div { grid-template-columns: 1fr; gap: 2px; }
  .ib-trouble a { grid-template-columns: 1fr; gap: 2px; }
  .ib-ver__effects li { grid-template-columns: 1fr; gap: 0; }
  .ib-sheet__panel { top: auto; left: 0; width: 100%; max-height: 86vh; border-left: 0; border-top: 1px solid var(--line); border-radius: 14px 14px 0 0; }
  .ib-fab { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ib *, .ib *::before, .ib *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
