/* 맑은벽 리허설(가상) · 외벽청소/앵커링 로봇 연동 시뮬레이터 시연 · 청록 바탕의 시험장 계측 화면 */
:root {
  --bg: #0E5F5B;
  --bg-deep: #0B504C;
  --surface: #FBFAF5;
  --surface-2: #F1F4F0;
  --text: #10201F;
  --muted: #55696A;
  --muted-on: #BFDAD6;
  --line: #C9D6D2;
  --primary: #F2C200;
  --primary-ink: #1A1600;
  --accent: #0A3F3D;
  --ok: #1F8A4C;
  --ok-soft: #E2F2E8;
  --warn: #B45F06;
  --warn-soft: #FBEEDC;
  --danger: #D3261C;
  --danger-soft: #FCE6E4;
  --body: "Pretendard Variable", "Pretendard", system-ui, sans-serif;
  --mono: "Chivo Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 2px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.an {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}
:where(.an) button, :where(.an) input, :where(.an) select { font: inherit; color: inherit; }
:where(.an) button { cursor: pointer; }
.an :focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.an [hidden] { display: none !important; }
.an-sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
/* 한글이 섞인 수치는 본문 서체의 고정폭 숫자로 씁니다(Chivo Mono 에는 한글이 없습니다) */
.num, .an-robot__dl dd, .an-tl__zline, .an-sum dd, .an-a4 td, .an-runs td, .an-play__mode { font-family: var(--body); font-variant-numeric: tabular-nums; }

/* 안내 띠 · 틀 */
.an-band { height: 28px; display: flex; align-items: center; justify-content: center; padding: 0 10px; background: var(--accent); color: var(--muted-on); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.an-shell { display: block; }
.an-main { min-width: 0; padding: 0 12px 16px; }
.an-side { background: var(--accent); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.an-brand { display: flex; align-items: center; gap: 10px; padding: 10px 12px 6px; color: #fff; text-decoration: none; }
.an-brand__mark { width: 28px; height: 28px; flex: none; }
.an-brand__name { font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.an-nav { display: flex; gap: 2px; overflow-x: auto; padding: 0 8px 8px; scrollbar-width: none; }
.an-nav::-webkit-scrollbar { display: none; }
.an-nav__item { display: flex; align-items: center; gap: 6px; flex: none; min-height: 38px; padding: 6px 10px; color: rgba(255, 255, 255, .84); text-decoration: none; font-size: 13.5px; font-weight: 600; border-radius: var(--r); white-space: nowrap; }
.an-nav__item svg { flex: none; }
.an-nav__item small { display: none; }
.an-nav__item.is-on { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 -3px 0 var(--primary); }
.an-nav__item.is-off { opacity: .5; cursor: default; }
.an-side__report, .an-side__note { display: none; }

.an-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 0 6px; }
.an-top__title { min-width: 0; flex: 1; }
.an-top__crumb { margin: 0; font-size: 12px; color: var(--muted-on); }
.an-top__h1 { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
.an-top__tools { display: flex; align-items: center; gap: 8px; }
.an-top__row { display: block; }
.an-unity { margin: 6px 0 2px; padding: 5px 10px; border-left: 3px solid var(--primary); background: rgba(10, 63, 61, .55); color: #E5F2EF; font-size: 12.5px; }

/* 버튼·입력 */
.an-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--accent); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.an-btn:hover:not(:disabled) { border-color: var(--accent); }
.an-btn:disabled { opacity: .45; cursor: not-allowed; }
.an-btn--primary { background: var(--primary); border-color: #C9A100; color: var(--primary-ink); }
.an-btn--dark { background: var(--accent); border-color: var(--accent); color: #fff; }
.an-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.an-btn--ghost span { display: none; }
.an-btn--sm { min-height: 32px; padding: 3px 10px; font-size: 12.5px; }
.an-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 36px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--accent); flex: none; }
.an-select { height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--text) !important; font-size: 13.5px; max-width: 100%; }
.an-select--sm { height: 32px; font-size: 13px; }
.an-input { width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--text) !important; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.an-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.an-seg button { min-height: 32px; padding: 3px 10px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--accent); font-weight: 700; font-size: 12.5px; }
.an-seg button:last-child { border-right: 0; }
.an-seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.an-seg--dark { background: transparent; border-color: rgba(255, 255, 255, .5); }
.an-seg--dark button { color: #fff; border-color: rgba(255, 255, 255, .5); }
.an-seg--dark button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
.an-tag { display: inline-flex; align-items: center; padding: 1px 7px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.an-tag--warn { border-color: #E7C08E; background: var(--warn-soft); color: var(--warn); }
.an-tag--ok { border-color: #A9D8BA; background: var(--ok-soft); color: var(--ok); }
.an-tag--bad { border-color: #F0A9A3; background: var(--danger-soft); color: var(--danger); }
.an-res { display: inline-block; min-width: 38px; padding: 1px 6px; border-radius: var(--r); font-size: 12px; font-weight: 800; text-align: center; }
.an-res--ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #A9D8BA; }
.an-res--bad { background: var(--danger); color: #fff; border: 1px solid var(--danger); }
.an-mini-label { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.an-mini { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }
.an-card { background: var(--surface); color: var(--text); border: 1px solid #8DB5AE; border-radius: var(--r); padding: 10px 12px; min-width: 0; }
.an-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.an-card__head h2 { margin: 0; font-size: 15px; color: var(--accent); letter-spacing: -.01em; }
.an-card__more { margin-left: auto; }

/* ── 3D 시뮬레이션 ─────────────────────────────────────────── */
.an-sim { display: flex; flex-direction: column; gap: 10px; }
.an-col { display: contents; }
.an-stage { order: 1; display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r); overflow: hidden; background: var(--accent); }
.an-verdict { order: 2; }
.an-inject { order: 3; }
.an-tl { order: 4; }
.an-robots { order: 5; }
.an-stage__view { position: relative; height: 45vh; min-height: 300px; background: linear-gradient(#BFE3DD, #F1F7F4 78%); overflow: hidden; }
.an-stage__canvas { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; }
.an-stage__cv { display: block; width: 100%; height: 100%; }
.an-stage__labels { position: absolute; inset: 0; pointer-events: none; }
.an-tag3d { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border: 1.5px solid var(--accent); border-radius: var(--r); background: rgba(251, 250, 245, .94); color: var(--text); font-size: 12px; white-space: nowrap; box-shadow: 0 2px 6px rgba(6, 30, 28, .18); }
.an-tag3d b { font-size: 12px; }
.an-tag3d i { font-style: normal; font-weight: 700; }
.an-tag3d--r { border-color: #B89300; }
.an-tag3d--r[data-st="clean"] i { color: var(--ok); }
.an-tag3d[data-st="danger"] { border-color: var(--danger); background: var(--danger); color: #fff; }
.an-tag3d[data-st="danger"] i { color: #fff; }
.an-stage__cap { display: none; position: absolute; left: 8px; top: 6px; margin: 0; padding: 2px 7px; background: rgba(10, 63, 61, .82); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: var(--r); }
.an-cams { position: absolute; right: 6px; top: 6px; display: flex; border: 1px solid var(--accent); border-radius: var(--r); overflow: hidden; background: rgba(251, 250, 245, .95); }
.an-cams button { min-height: 30px; padding: 2px 8px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--accent); font-size: 12px; font-weight: 700; }
.an-cams button:last-child { border-right: 0; }
.an-cams button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.an-legend { position: absolute; left: 8px; bottom: 26px; display: flex; flex-wrap: wrap; gap: 2px 8px; max-width: calc(100% - 16px); margin: 0; padding: 3px 7px; list-style: none; background: rgba(251, 250, 245, .92); color: var(--text); font-size: 11px; border-radius: var(--r); }
.an-legend li { display: flex; align-items: center; gap: 4px; }
.sw { display: inline-block; width: 12px; height: 10px; border: 1px solid #7E918E; }
.sw--done { background: #8FCFA6; }
.sw--todo { background: #D9E6E4; }
.sw--manual { background: repeating-linear-gradient(135deg, #F3E2C2 0 3px, #C98A2E 3px 5px); }
.sw--excluded { background: repeating-linear-gradient(45deg, #B3BAB8 0 3px, #7D8684 3px 4px), #B3BAB8; }
.an-stage__note { position: absolute; left: 8px; right: 8px; bottom: 4px; margin: 0; color: #2F4643; font-size: 10.5px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.an-play { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 8px; background: var(--accent); }
.an-play__btn { display: inline-grid; place-items: center; width: 40px; height: 34px; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--r); background: transparent; color: #fff; }
.an-play__btn:first-child { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.an-play__time { margin: 0 0 0 auto; font-size: 12px; color: var(--muted-on); }
.an-play__time b { color: #fff; font-size: 13px; }
.an-play__mode { display: none; font-size: 11.5px; color: var(--muted-on); }

/* 판정 카드 */
.an-verdict__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.an-pick { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.an-pick__label { font-size: 11.5px; font-weight: 700; color: var(--muted); flex: none; }
.an-pick .an-select { flex: 1; min-width: 0; font-weight: 700; color: var(--accent) !important; }
.an-verdict__main { display: flex; align-items: center; gap: 12px; margin: 6px 0 6px; padding: 6px 10px; border-left: 6px solid var(--ok); background: var(--ok-soft); }
.an-verdict__word { font-size: 40px; line-height: 1; font-weight: 900; color: var(--ok); letter-spacing: -.02em; flex: none; }
.an-verdict__sub { margin: 0; font-size: 12px; color: var(--muted); }
.an-verdict.is-fail .an-verdict__main { border-left-color: var(--danger); background: var(--danger-soft); }
.an-verdict.is-fail .an-verdict__word { color: var(--danger); }
.an-checks { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.an-checks th, .an-checks td { padding: 4px 4px; border-top: 1px solid #E3E9E6; text-align: left; vertical-align: middle; }
.an-checks thead th { border-top: 0; padding-top: 0; font-size: 11px; color: var(--muted); font-weight: 700; }
.an-checks tbody th { font-weight: 700; }
.an-checks .num { font-weight: 800; white-space: nowrap; }
.an-checks .lim { color: var(--muted); font-size: 11.5px; }
.an-checks tr.is-bad .num { color: var(--danger); }

/* 주입 */
.an-inject__top { display: flex; gap: 10px; align-items: stretch; }
.an-estop { position: fixed; left: 12px; right: 84px; bottom: 12px; z-index: 36; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; padding: 4px 10px; border: 3px solid #7E120C; border-radius: var(--r); background: var(--danger); color: #fff; box-shadow: 0 0 0 2px #fff, 0 8px 22px rgba(0, 0, 0, .3); }
.an-estop:disabled { background: #9C5550; border-color: #5E2420; color: #F6E1DF; cursor: not-allowed; }
.an-estop__main { font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.an-estop__sub { font-size: 11px; opacity: .92; }
.an-inject__opts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.an-inject__opt { display: flex; align-items: center; gap: 6px; }
.an-inject__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.an-inject__state { font-size: 12px; color: var(--muted); }

/* 로봇 카드·인터록 */
.an-robots__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.an-robot { min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.an-robot__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 0 0 3px; font-size: 12px; color: var(--muted); }
.an-robot__head b { font-size: 14px; color: var(--accent); }
.an-state { display: block; width: 100%; margin-bottom: 3px; padding: 1px 6px; border-radius: var(--r); font-style: normal; font-weight: 800; font-size: 12.5px; color: var(--accent); background: var(--surface-2); border: 1px solid var(--line); }
.an-state[data-fam="ok"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.an-state[data-fam="anchor"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.an-state[data-fam="move"] { background: #FFF6CC; border-color: #D9B100; color: var(--primary-ink); }
.an-state[data-fam="lock"] { background: repeating-linear-gradient(135deg, #fff 0 4px, #DCE7E4 4px 7px); border-color: #7FA39C; }
.an-state[data-fam="danger"] { background: var(--danger); border-color: var(--danger); color: #fff; }
.an-robot__dl { margin: 0; display: grid; gap: 1px; }
.an-robot__dl div { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; line-height: 1.4; }
.an-robot__dl dt { color: var(--muted); flex: none; }
.an-robot__dl dd { margin: 0; font-weight: 700; text-align: right; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-ilock { margin: 8px 0 0; padding: 0; list-style: none; }
.an-ilock li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid #E3E9E6; font-size: 12px; }
.an-ilock__rule b { color: var(--accent); margin-right: 4px; }
.an-ilock__st { flex: none; min-width: 44px; padding: 1px 6px; border-radius: var(--r); font-style: normal; font-weight: 800; text-align: center; background: var(--ok-soft); color: var(--ok); border: 1px solid #A9D8BA; }
.an-ilock__st[data-st="wait"] { background: var(--warn-soft); color: var(--warn); border-color: #E7C08E; }
.an-ilock__st[data-st="bad"] { background: var(--danger); color: #fff; border-color: var(--danger); }

/* 타임라인 */
.an-tl { padding: 8px 10px 6px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r); background: var(--bg-deep); min-width: 0; }
.an-tl__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.an-tl__title { margin: 0; font-size: 14.5px; }
.an-tl__meta { margin: 0; font-size: 12px; color: var(--muted-on); }
.an-tl__legend { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0 0 0 auto; padding: 0; list-style: none; font-size: 11.5px; color: var(--muted-on); }
.an-tl__legend li { display: flex; align-items: center; gap: 4px; }
.lg { display: inline-block; width: 14px; height: 10px; border: 1px solid rgba(255, 255, 255, .5); }
.lg--clean { background: #1F8A4C; }
.lg--move { background: radial-gradient(circle, #0A3F3D 1px, transparent 1.4px) 0 0 / 4px 4px, #9FD3C7; }
.lg--lock { background: repeating-linear-gradient(135deg, #FBFAF5 0 3px, #7FA39C 3px 5px); }
.lg--anchor { background: #0A3F3D; }
.lg--traverse { background: repeating-linear-gradient(-45deg, #F2C200 0 4px, #C7A000 4px 6px); }
.lg--estop { background: #D3261C; }
.an-tl__body { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.an-tl__main { min-width: 0; cursor: pointer; touch-action: pan-y; }
.an-tl__svg { display: block; }
.an-tl__zoom { min-width: 0; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .2); }
.an-tl__zoom svg { display: block; }
.an-tl__zline { margin: 0; font-size: 11.5px; color: #E5F2EF; }
.tl-id { font-family: var(--mono); font-size: 12px; font-weight: 700; fill: #fff; }
.tl-name { font-size: 10.5px; fill: var(--muted-on); }
.tl-bar { font-size: 11px; font-weight: 700; }
.tl-mark { font-size: 11px; font-weight: 700; }
.tl-mark--danger { fill: #FFB3AD; }
.tl-tick { font-family: var(--mono); font-size: 10px; fill: var(--muted-on); }
.tl-zt { font-family: var(--body); font-size: 11.5px; font-weight: 700; fill: #fff; }
.tl-zt.is-bad { fill: #FFB3AD; }
.tl-zt.is-ok { fill: #A9E5BD; }

/* 청록 바탕 위의 머리말·판 */
.an-onhead { margin: 0 0 8px; }
.an-onhead h2 { margin: 0; font-size: 15px; }
.an-onhead p { margin: 2px 0 0; font-size: 12px; color: var(--muted-on); }
.an-dark { padding: 10px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r); background: var(--bg-deep); min-width: 0; }
.an-path__side, .an-scn__side { display: grid; gap: 10px; align-content: start; min-width: 0; }

/* ── 시나리오 관리 ─────────────────────────────────────────── */
.an-scn { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.an-scn__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.an-scn-item { display: block; width: 100%; padding: 8px 10px; border: 1px solid #8DB5AE; border-left: 5px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text); text-align: left; }
.an-scn-item[aria-current="true"] { border-color: var(--primary); border-left-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.an-scn-item__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.an-scn-item__id { font-family: var(--mono); font-weight: 700; color: var(--accent); }
.an-scn-item__name { font-weight: 800; }
.an-scn-item__verdict { margin-left: auto; }
.an-scn-item p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.an-scn-item p b { color: var(--text); font-weight: 700; }
.an-scn__detail { display: grid; gap: 10px; }
.an-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.an-form label { display: grid; gap: 2px; min-width: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.an-form label.is-wide { grid-column: 1 / -1; }
.an-form .unit { font-weight: 600; color: var(--muted); font-size: 11px; }
.an-form .an-select, .an-form .an-input { width: 100%; }
.an-form .an-fixed { display: flex; align-items: center; min-height: 34px; color: var(--text); font-size: 13px; font-weight: 600; }
.an-input:disabled { background: var(--surface-2); color: var(--muted) !important; }
.an-steps { margin: 0; padding-left: 22px; font-size: 13px; }
.an-steps li { padding: 2px 0; }
.an-steps li.is-inject { color: var(--danger); font-weight: 700; }
.an-sub { margin: 10px 0 6px; font-size: 13px; color: var(--accent); }
.an-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.an-dirty { color: var(--warn); font-weight: 800; }

/* ── 경로 생성 ─────────────────────────────────────────────── */
.an-path { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.an-elev-wrap { position: relative; margin: 0 auto; width: 100%; max-width: 520px; }
.an-elev { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border: 2px solid var(--accent); background: #A4B3B0; gap: 1px; }
.an-elev__cell { aspect-ratio: 3 / 4; min-width: 0; padding: 0; border: 0; background: #D9E6E4; position: relative; }
.an-elev__cell[data-m="manual"] { background: repeating-linear-gradient(135deg, #F3E2C2 0 4px, #D9A14E 4px 6px); }
.an-elev__cell[data-m="excluded"] { background: repeating-linear-gradient(45deg, #B3BAB8 0 4px, #7D8684 4px 5px), #B3BAB8; }
.an-elev__cell[data-m="excluded"][data-user="1"] { box-shadow: inset 0 0 0 2px var(--danger); }
.an-elev__cell[data-path="clean"] { background: #BFE5CC; }
.an-elev__cell[data-path="lost"] { background: repeating-linear-gradient(90deg, #EAD9D7 0 3px, #fff 3px 6px); box-shadow: inset 0 0 0 2px #C46A63; }
.an-elev__svg { position: absolute; left: 2px; top: 2px; pointer-events: none; overflow: visible; }
.an-elev__axis { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); max-width: 520px; margin: 2px auto 0; font-size: 10.5px; color: var(--muted-on); text-align: center; font-family: var(--mono); }
.an-elev-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 11.5px; color: var(--muted-on); }
.an-elev-legend li { display: flex; align-items: center; gap: 4px; }
.sw--path { background: #BFE5CC; }
.sw--lost { background: repeating-linear-gradient(90deg, #EAD9D7 0 3px, #fff 3px 6px); border-color: #C46A63; }
.an-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; }
.an-sum div { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; min-width: 0; }
.an-sum dt { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.an-sum dd { margin: 0; font-size: 18px; font-weight: 800; color: var(--accent); }
.an-sum dd small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.an-sum .is-wide { grid-column: 1 / -1; }
.an-setting { display: grid; gap: 8px; }
.an-setting__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.an-setting__row > span:first-child { min-width: 96px; font-weight: 700; color: var(--muted); font-size: 12px; }
.an-order { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* ── 결과 검증 리포트 ──────────────────────────────────────── */
.an-report { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.an-a4 { background: #fff; color: var(--text); border: 1px solid #8DB5AE; padding: 16px 14px; box-shadow: 0 10px 30px rgba(3, 30, 28, .3); min-width: 0; }
.an-a4__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding-bottom: 8px; border-bottom: 3px solid var(--accent); }
.an-a4__head h2 { margin: 0; font-size: 20px; color: var(--accent); letter-spacing: -.02em; }
.an-a4__head p { margin: 0; font-size: 12px; color: var(--muted); }
.an-a4 h3 { margin: 14px 0 6px; font-size: 14px; color: var(--accent); }
.an-a4 table { width: 100%; border-collapse: collapse; font-size: 12px; }
.an-a4 th, .an-a4 td { padding: 4px 5px; border: 1px solid #D5DED9; text-align: left; vertical-align: top; }
.an-a4 thead th { background: var(--surface-2); font-size: 11.5px; }
.an-a4 tbody th, .an-a4 .an-nw { white-space: nowrap; }
.an-a4 tr.is-bad td, .an-a4 tr.is-bad th { background: #FFF3F2; }
.an-a4__facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 12.5px; }
.an-a4__facts div { display: flex; gap: 8px; }
.an-a4__facts dt { flex: none; width: 76px; color: var(--muted); font-weight: 700; }
.an-a4__facts dd { margin: 0; }
.an-a4__summary { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 10px 0 0; }
.an-a4__summary span { padding: 3px 10px; border: 2px solid var(--accent); font-weight: 800; font-size: 13px; }
.an-a4__summary .is-bad { border-color: var(--danger); color: var(--danger); }
.an-risk { margin: 0; padding: 10px 12px; border: 2px solid var(--danger); background: repeating-linear-gradient(135deg, #fff 0 10px, #FFF5F4 10px 20px); }
.an-risk h4 { margin: 0 0 4px; font-size: 13.5px; color: var(--danger); }
.an-risk p { margin: 2px 0; font-size: 12.5px; }
.an-a4__fig { margin: 0; padding: 8px; background: var(--bg-deep); border-radius: var(--r); }
.an-a4__fig svg { display: block; width: 100%; height: auto; }
.an-a4__fig figcaption { color: var(--muted-on); font-size: 11px; margin-top: 4px; }
.an-a4__foot { margin: 14px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.an-runs { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.an-runs th, .an-runs td { padding: 4px 4px; border-top: 1px solid #E3E9E6; text-align: left; }
.an-runs thead th { border-top: 0; font-size: 11px; color: var(--muted); }
.an-report__side { display: grid; gap: 10px; align-content: start; }

/* 공고 대응표 · 알림 */
.an-fab { position: fixed; right: 12px; bottom: 14px; z-index: 35; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 2px solid var(--accent); border-radius: var(--r); background: #fff; color: var(--accent); font-weight: 800; font-size: 13px; box-shadow: 0 6px 18px rgba(3, 30, 28, .35); }
.an--sim .an-fab { width: 64px; min-height: 54px; padding: 0 4px; font-size: 11.5px; line-height: 1.2; text-align: center; flex-direction: column; justify-content: center; gap: 1px; }
.an-toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 50; max-width: calc(100vw - 24px); padding: 9px 14px; background: var(--accent); color: #fff; border: 1px solid #fff; border-radius: var(--r); font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px rgba(3, 30, 28, .4); }
.an-sheet { width: min(700px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--accent); border-radius: var(--r); color: var(--text); }
.an-sheet::backdrop { background: rgba(3, 30, 28, .6); }
.an-sheet__body { padding: 16px; }
.an-sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.an-eyebrow { margin: 0; font-size: 12px; color: var(--muted); font-weight: 700; }
.an-sheet__title { margin: 0; font-size: 19px; color: var(--accent); }
.an-map-list { margin: 0; padding: 0; list-style: none; }
.an-map-list__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 7px 0; border-top: 1px solid #E3E9E6; font-size: 13px; }
.an-map-list__need { font-weight: 700; }
.an-map-list__show { color: var(--accent); font-weight: 600; }
.an-sheet__foot { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.demo-notice { padding: 14px 0 76px; font-size: 11.5px; color: var(--muted-on); text-align: center; }
.an--sim .demo-notice { padding-bottom: 84px; }

@media (min-width: 521px) {
  .an-btn--ghost span { display: inline; }
  .an-stage__cap { display: block; }
  .an-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .an-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .an-a4 { padding: 22px 26px; }
  .an-a4__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-map-list__row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; }
}

@media (min-width: 760px) {
  .an-estop { position: static; flex: none; width: 150px; box-shadow: none; min-height: 64px; }
  .an--sim .an-fab { width: auto; min-height: 44px; padding: 0 12px; flex-direction: row; font-size: 13px; }
  .an--sim .demo-notice, .demo-notice { padding-bottom: 24px; }
  .an-tl__body { flex-direction: row; align-items: flex-start; }
  .an-tl__main { flex: 1; }
  .an-tl__zoom { flex: none; width: 300px; padding: 0 0 0 10px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .2); }
}

@media (min-width: 1000px) {
  .an-shell { display: grid; grid-template-columns: 176px minmax(0, 1fr); min-height: calc(100vh - 28px); }
  .an-side { position: sticky; top: 0; align-self: start; min-height: calc(100vh - 28px); border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .16); padding-bottom: 16px; }
  .an-brand { padding: 14px 12px 12px; }
  .an-nav { flex-direction: column; overflow: visible; padding: 0 6px; gap: 1px; }
  .an-nav__item { white-space: normal; align-items: flex-start; padding: 7px 8px; }
  .an-nav__item svg { margin-top: 2px; }
  .an-nav__item > span { display: flex; flex-direction: column; line-height: 1.3; }
  .an-nav__item small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted-on); }
  .an-nav__item.is-on { box-shadow: inset 3px 0 0 var(--primary); }
  .an-side__report { display: flex; align-items: center; gap: 8px; margin: 14px 8px 0; padding: 9px 10px; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--r); color: #fff; text-decoration: none; font-weight: 800; font-size: 13px; }
  .an-side__report svg { color: var(--primary); flex: none; }
  .an-side__report span { display: flex; flex-direction: column; line-height: 1.3; }
  .an-side__report small { font-size: 11.5px; color: var(--primary); }
  .an-side__note { display: block; margin: 12px 12px 0; font-size: 11px; color: var(--muted-on); }
  .an-main { padding: 0 16px 12px; }
  .an-top__h1 { font-size: 18px; }
  .demo-notice, .an--sim .demo-notice { padding: 10px 0 18px; }
  /* 넓은 화면에서는 비어 있는 좌측 메뉴 아래쪽에 둡니다(본문의 타임라인을 가리지 않게) */
  .an-fab, .an--sim .an-fab { bottom: 16px; left: 12px; right: auto; width: 152px; justify-content: center; }
  .an--sim .an-top__crumb { display: none; }
  .an--sim .an-top .an-btn { min-height: 32px; padding: 3px 10px; }
  .an-top { padding: 6px 0 8px; }
  .an-top__row { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
  .an-unity { margin: 0; padding: 3px 10px; font-size: 12px; }
  .an-checks th, .an-checks td { padding: 2px 4px; }
  .an-verdict__head .an-select { height: 32px; }
  .an-verdict__word { font-size: 38px; }
  .an-checks { font-size: 12px; }
  .an-checks thead th { font-size: 10.5px; }
  .an-checks .an-res { font-size: 11.5px; padding: 0 6px; }
  .an-estop__sub { font-size: 10.5px; }
  .an-inject .an-seg button { min-height: 30px; padding: 2px 9px; }
  .an-inject .an-select--sm { height: 30px; }
  .an-robot__dl div { font-size: 11.5px; }
  .an-toast { bottom: 24px; }

  .an-sim { display: grid; grid-template-columns: minmax(0, 1fr) 372px; grid-template-areas: "stage col" "tl tl"; gap: 8px 10px; }
  .an-stage { grid-area: stage; }
  .an-col { grid-area: col; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .an-tl { grid-area: tl; }
  .an-stage__view { flex: 1; height: auto; min-height: 420px; }
  .an-play__mode { display: inline; }
  .an-card { padding: 8px 10px; }
  .an-verdict__main { margin: 5px 0; padding: 4px 10px; }
  .an-robot { padding: 5px 8px; }
  .an-ilock { margin-top: 6px; }
  .an-ilock li { padding: 3px 0; }
  .an-mini { margin-top: 3px; }
  .an-inject__bottom { margin-top: 6px; }
  .an-estop { width: 128px; min-height: 58px; }
  .an-inject__opts { flex-direction: column; align-items: flex-start; gap: 6px; }

  .an-scn { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: start; }
  .an-path { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: start; }
  .an-elev-wrap { max-width: 316px; }
  .an-elev__axis { max-width: 316px; margin-left: auto; margin-right: auto; }
  .an-report { grid-template-columns: minmax(0, 780px) minmax(240px, 1fr); align-items: start; }
}

@media (min-width: 1000px) and (max-height: 900px) {
  .an-stage__view { min-height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  .an-toast { transition: none; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body.an { background: #fff !important; color: var(--text); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .an-band, .an-side, .an-top, .an-unity, .an-report__side, .an-fab, .an-toast, .demo-notice, .an-sheet { display: none !important; }
  .an-shell { display: block; }
  .an-main { padding: 0; }
  .an-report { display: block; }
  .an-a4 { box-shadow: none; border: 0; padding: 0; font-size: 11px; }
}
