/* 온음악보 관리자: 카페24 악보 쇼핑몰 신규 출판사 연동 시연 (notation)
   인상: 악보 종이와 인쇄 먹색, 황동색 하나. 장식은 얇은 오선 다섯 줄뿐이고, 움직임은 호출 비교 막대 하나만 쓴다. */

.nt {
  --bg: #F6F6F0;
  --surface: #FFFFFF;
  --surface-2: #EFEFE6;
  --text: #1B1B18;
  --muted: #6A6A60;
  --line: #D9D8CC;
  --line-strong: #BDBBAC;
  --primary: #86650F;
  --primary-press: #6E520B;
  --primary-soft: #F3ECD8;
  --accent: #1C3FAA;
  --accent-soft: #E6EBF7;
  --ok: #1E7F4F;
  --ok-soft: #E3F1E9;
  --warn: #B25E09;
  --warn-ink: #8E4A06;
  --warn-soft: #F8ECDD;
  --danger: #B3261E;
  --danger-soft: #F7E4E2;
  --display: "Bodoni Moda", "Pretendard Variable", Pretendard, serif;
  --mono: "Spline Sans Mono", "Pretendard Variable", ui-monospace, monospace;
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --r: 3px;
  --max: 1240px;
  --side: 216px;
}

*, *::before, *::after { box-sizing: border-box; }
.nt {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:where(.nt) :where(p, h1, h2, h3, h4, ol, ul, dl, dd, figure, fieldset) { margin: 0; }
:where(.nt) :where(ol, ul) { padding: 0; list-style: none; }
:where(.nt) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.nt [hidden] { display: none !important; }
.nt :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.nt a { color: var(--accent); }
.nt-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.nt-muted { color: var(--muted); }
.nt-r { text-align: right; }
.nt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nt-eyebrow { font-size: 13px; color: var(--muted); }
.nt-h1 { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.nt-h2 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.nt-hint { font-size: 13px; color: var(--muted); }
.nt-note { font-size: 13px; color: var(--muted); line-height: 1.6; }
.nt-orig { display: block; font-family: var(--display); font-style: italic; font-size: 13px; color: var(--muted); line-height: 1.4; }
.nt-big { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1; font-variant-numeric: lining-nums; }
.nt-big--primary { color: var(--primary); }

/* ---------- 버튼·태그 ---------- */
.nt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--text) !important;
  cursor: pointer; white-space: nowrap;
}
.nt-btn:hover { background: var(--surface-2); }
.nt-btn:disabled { opacity: .5; cursor: default; }
.nt-btn--primary { background: var(--primary); border-color: var(--primary); color: #fff !important; }
.nt-btn--primary:hover { background: var(--primary-press); }
.nt-btn--ghost { background: transparent; }
.nt-btn--sm { min-height: 40px; padding: 0 12px; font-size: 13px; }
.nt-btn--block { width: 100%; }
.nt-icon-btn {
  width: 44px; height: 44px; flex: none; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); display: inline-grid; place-items: center; cursor: pointer;
}
.nt-link { border: 0; background: none; padding: 0 2px; min-height: 40px; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.nt-chip { min-height: 40px; padding: 0 14px; border: 1px dashed var(--primary); border-radius: var(--r); background: var(--primary-soft); color: var(--primary-press); font-size: 13px; font-weight: 600; cursor: pointer; }
.nt-tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; line-height: 1;
  padding: 4px 6px; border-radius: 2px; border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface);
  white-space: nowrap; vertical-align: 1px;
}
.nt-tag--ok, .nt-tag--new { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.nt-tag--warn { color: var(--warn-ink); border-color: var(--warn); background: var(--warn-soft); }
.nt-tag--danger, .nt-tag--ended { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.nt-tag--price, .nt-tag--accent { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.nt-add {
  display: inline-block; font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 5px; border-radius: 2px;
  color: var(--primary-press); border: 1px solid var(--primary); background: var(--primary-soft); vertical-align: 1px;
}

/* ---------- 안내 띠·머리말 ---------- */
.nt-band {
  height: 28px; line-height: 28px; text-align: center; padding: 0 12px;
  font-size: 12px; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nt-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.nt-head__inner {
  max-width: var(--max); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
}
.nt-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text) !important; min-width: 0; }
.nt-brand__mark { width: 32px; height: 32px; flex: none; }
.nt-brand__text { display: grid; line-height: 1.2; }
.nt-brand__name { font-size: 18px; font-weight: 700; }
.nt-brand__sub { font-size: 12px; color: var(--muted); }
.nt-head__tools { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 틀: 왼쪽 메뉴 + 본문 ---------- */
.nt-shell {
  max-width: var(--max); margin: 0 auto; padding: 20px 20px 48px;
  display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 24px; align-items: start;
}
.nt-side {
  position: sticky; top: 12px; display: grid; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 12px;
}
.nt-side__group { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 8px 2px; }
.nt-side__group + .nt-menu { margin-bottom: 6px; }
.nt-menu { display: grid; gap: 2px; }
.nt-menu__item {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 44px; padding: 0 10px;
  border-radius: var(--r); font-size: 15px; font-weight: 600; text-decoration: none; color: var(--text) !important;
}
.nt-menu__item:hover { background: var(--surface-2); }
.nt-menu__item.is-on { background: var(--primary); color: #fff !important; }
.nt-menu__item.is-on .nt-add { background: #fff; }
.nt-side__note { font-size: 12px; color: var(--muted); line-height: 1.5; padding: 8px 8px 0; border-top: 1px solid var(--line); }
.nt-main { min-width: 0; }
.nt-wrap { display: grid; gap: 20px; min-width: 0; }
.nt-pagehead { display: grid; gap: 4px; }
.nt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
/* 오선 다섯 줄 무늬(장식은 이것 하나) */
.nt-sechead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap;
  margin-bottom: 14px; padding-bottom: 20px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 3px) left bottom / 100% 13px no-repeat;
}

/* ---------- 결과 띠 ---------- */
.nt-result {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: var(--r);
}
.nt-result__text { font-size: 15px; }
.nt-result .nt-link { margin-left: auto; }

/* ---------- 호출 비교 막대(시그니처) ---------- */
.nt-compare { display: grid; gap: 16px; }
.nt-compare__lead { font-size: 18px; font-weight: 600; line-height: 1.45; }
.nt-compare__lead b { font-weight: 700; }
.nt-bars { display: grid; gap: 14px; }
.nt-bar { display: grid; grid-template-columns: 190px minmax(0, 1fr) 230px; align-items: center; gap: 14px; }
.nt-bar__label { font-size: 15px; font-weight: 600; line-height: 1.3; }
.nt-bar__label small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.nt-bar__track { position: relative; height: 28px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 2px; }
.nt-bar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); min-width: 2px; background: var(--primary); }
.nt-bar__fill--full { background: repeating-linear-gradient(90deg, #A9A79A 0 6px, #B9B7AA 6px 12px); }
.nt-bar__pin { position: absolute; left: calc(var(--w) + 8px); top: 50%; transform: translateY(-50%); font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--primary); white-space: nowrap; }
.nt-bar__val { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.nt-bar--diff .nt-bar__val { color: var(--text); }
.nt-compare__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- 3단 그림 ---------- */
.nt-flow { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); align-items: stretch; gap: 8px; }
.nt-flow__step {
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--line-strong); border-radius: var(--r);
  padding: 12px 14px; display: grid; gap: 4px; align-content: start; transition: opacity .2s, border-color .2s;
}
.nt-flow__step:not(.is-done):not(.is-on) { opacity: .35; }
.nt-flow__step.is-on { border-top-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.nt-flow__step.is-done { border-top-color: var(--primary); }
.nt-flow__k { font-size: 13px; font-weight: 700; color: var(--muted); }
.nt-flow__v { font-size: 18px; font-weight: 700; }
.nt-flow__s { font-size: 13px; color: var(--muted); }
.nt-flow__s b { color: var(--ok); }
.nt-flow__arrow { align-self: center; text-align: center; color: var(--muted); font-size: 18px; }

/* ---------- 표 ---------- */
.nt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nt-table th {
  text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 10px 8px;
  border-bottom: 1px solid var(--line-strong);
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 3px) left top / 100% 13px no-repeat;
  padding-top: 18px;
  white-space: nowrap;
}
.nt-table th.nt-r { text-align: right; }
.nt-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.nt-table tfoot td { border-bottom: 0; border-top: 2px solid var(--line-strong); }
.nt-table small { font-size: 12px; }
.nt-table--click tbody tr { cursor: pointer; }
.nt-table--click tbody tr:hover { background: #FBFAF4; }
.nt-table tbody tr.is-on { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.nt-table tr.is-today { background: #FBF7EA; }
.nt-table tr.is-muted td { color: var(--muted); font-size: 13px; }
.nt-table tr.is-trace { box-shadow: inset 3px 0 0 var(--accent); }
.nt-table tr.is-changed td[data-cell="won"] b { color: var(--accent); }
.nt-change { font-size: 13px; }
.nt-change__was, .nt-change__now { display: block; white-space: nowrap; }
.nt-change__was { color: var(--muted); }
.nt-change__now { font-weight: 600; }
.nt-keep { display: block; margin-top: 4px; color: var(--ok); font-weight: 600; }
.nt-scroll { overflow-x: auto; }
.nt-nowrap { white-space: nowrap; }
.nt-card .nt-table th { background: none; padding-top: 10px; }
.nt-sub { display: block; font-size: 12px; color: var(--muted); }

/* ---------- 탭 ---------- */
.nt-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-tab {
  min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface);
  font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nt-tab:hover { border-color: var(--text); }
.nt-tab.is-on { background: var(--text); border-color: var(--text); color: #fff; }
.nt-tab.is-on .nt-add { background: #fff; }

/* ---------- 변경분 ---------- */
.nt-changes { display: grid; gap: 12px; }
.nt-changes .nt-sechead { margin-bottom: 0; }
.nt-changes__body { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.nt-changes__list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.nt-detail { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: var(--r); padding: 16px; display: grid; gap: 8px; position: sticky; top: 12px; }
.nt-detail__title { font-size: 18px; font-weight: 700; }
.nt-detail__orig { font-family: var(--display); font-style: italic; color: var(--muted); font-size: 15px; }
.nt-detail__h { font-size: 13px; font-weight: 700; margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.nt-detail__h small { font-weight: 400; color: var(--muted); }
.nt-diff { display: grid; border: 1px solid var(--line); border-radius: var(--r); }
.nt-diff__row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.nt-diff__row:last-child { border-bottom: 0; }
.nt-diff__row dt { color: var(--muted); }
.nt-diff__row dd { color: var(--muted); }
.nt-diff__row.is-changed { background: #FBF5E3; }
.nt-diff__row.is-changed dd { color: var(--text); }
.nt-diff__row.is-changed .nt-diff__now { font-weight: 700; color: var(--primary-press); }
.nt-keepbox { font-size: 13px; padding: 8px 10px; border: 1px solid var(--ok); background: var(--ok-soft); border-radius: var(--r); }
.nt-log { display: grid; gap: 6px; }
.nt-log li { display: grid; gap: 2px; padding: 8px 10px; background: #FAFAF6; border: 1px solid var(--line); border-radius: var(--r); font-size: 12px; }
.nt-log__t { color: var(--muted); }
.nt-log__req b { color: var(--accent); }
.nt-log__body { color: var(--muted); }
.nt-log__res { color: var(--ok); }

/* ---------- 상품 매핑 ---------- */
.nt-mapwrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }
.nt-picker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; position: sticky; top: 12px; }
.nt-picker__h { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.nt-picker__h small { font-weight: 400; color: var(--muted); }
.nt-picker__list { display: grid; gap: 4px; }
.nt-pick {
  width: 100%; min-height: 44px; padding: 6px 8px; display: grid; gap: 2px; text-align: left; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--r); background: transparent; font-size: 13px;
}
.nt-pick:hover { background: var(--surface-2); }
.nt-pick.is-on { border-color: var(--primary); background: var(--primary-soft); }
.nt-pick .nt-mono { font-size: 12px; color: var(--muted); }
.nt-pick__t { font-weight: 600; }
.nt-pick .nt-tag { justify-self: start; }
.nt-mapcard { display: grid; gap: 14px; }
.nt-mapcard__head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; }
.nt-mapcard__img { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.nt-staff { display: block; width: 100%; height: auto; }
.nt-mapcols { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.25fr); font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 2px; }
.nt-maprows { display: grid; gap: 8px; }
.nt-maprow { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.25fr); align-items: stretch; }
.nt-src, .nt-dst { display: grid; gap: 3px; align-content: start; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.nt-src { background: #FAFAF6; }
.nt-dst { background: #fff; border-left: 3px solid var(--primary); }
.nt-k { font-size: 12px; font-weight: 700; color: var(--muted); }
.nt-k small { font-weight: 400; }
.nt-v { font-size: 14px; line-height: 1.5; }
.nt-why { font-size: 12px; color: var(--muted); display: block; }
.nt-why .nt-tag { margin-left: 6px; }
.nt-next { color: var(--warn-ink); font-weight: 600; }
.nt-wire { position: relative; }
.nt-wire::before { content: ""; position: absolute; left: 4px; right: 10px; top: 50%; border-top: 1.5px solid var(--primary); }
.nt-wire::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border-top: 1.5px solid var(--primary); border-right: 1.5px solid var(--primary); transform: translateY(-50%) rotate(45deg); }
.nt-search { display: grid; gap: 10px; }
.nt-search .nt-sechead { margin-bottom: 0; }
.nt-searchbox { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 2px solid var(--text); border-radius: 24px; background: #fff; }
.nt-searchbox__mall { font-weight: 700; font-size: 13px; white-space: nowrap; color: var(--primary-press); }
.nt-searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 18px; background: transparent; padding: 8px 0; }
.nt-results { display: grid; gap: 8px; }
.nt-result-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); }
.nt-result-item__img { border: 1px solid var(--line); }
.nt-result-item__body { display: grid; gap: 2px; font-size: 14px; }
.nt-result-item__body small { color: var(--muted); font-size: 12px; }
.nt-select { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; font-size: 14px; }
.nt-cats tr.is-unmapped { background: #FDF8EF; }
.nt-cats tr.is-brand td { border-top: 2px solid var(--line-strong); }

/* ---------- 계산기 ---------- */
.nt-calcbox { display: grid; gap: 14px; }
.nt-calcbox .nt-sechead { margin-bottom: 0; }
.nt-knobs { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr); gap: 14px; align-items: start; }
.nt-knob { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px 12px; display: grid; gap: 6px; min-width: 0; }
.nt-knob legend { font-size: 13px; font-weight: 700; padding: 0 4px; }
.nt-radio { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; min-height: 44px; padding: 6px 4px; cursor: pointer; border-radius: var(--r); }
.nt-radio:hover { background: var(--surface-2); }
.nt-radio input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); }
.nt-radio span { display: grid; gap: 2px; font-size: 14px; }
.nt-radio small { font-size: 12px; color: var(--muted); }
.nt-calcout { border: 1px solid var(--primary); background: var(--primary-soft); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 2px; }
.nt-calcout__k { font-size: 12px; font-weight: 700; color: var(--muted); }
.nt-calcout__v { margin-bottom: 6px; }
.nt-calcout__v--t { font-size: 18px; font-weight: 700; }
.nt-cases tr.is-on td { background: var(--primary-soft); font-weight: 600; }
.nt-order { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: o; }
.nt-order li { counter-increment: o; display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; position: relative; }
.nt-order li::before { content: counter(o); font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--primary); }
.nt-order li b { font-size: 14px; }
.nt-order li span { color: var(--muted); }

/* ---------- 환산값 ---------- */
.nt-fx { display: grid; gap: 14px; }
.nt-formula { font-size: 18px; padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r); background: #FAFAF6; }
.nt-formula small { display: block; font-size: 12px; margin-top: 2px; }
.nt-fxval { font-size: 24px; font-weight: 600; color: var(--primary-press); }
.nt-pending { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 6px; }
.nt-fxedit { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 12px; border: 1px solid var(--primary); background: var(--primary-soft); border-radius: var(--r); }
.nt-fxedit__field { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.nt-fxedit__field input { width: 160px; min-height: 48px; padding: 0 12px; font-family: var(--mono); font-size: 24px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; }
.nt-fxedit__btns { display: flex; gap: 8px; margin-left: auto; }
.nt-impact { padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: var(--r); background: #FAFAF6; font-size: 14px; }
.nt-impact.is-on { border-left-color: var(--warn); background: var(--warn-soft); }
.nt-impact__line { display: block; }
.nt-impact__line + .nt-impact__line { margin-top: 4px; }

/* ---------- 주문 ---------- */
.nt-orders { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.nt-orders__list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.nt-orders__flow { display: grid; gap: 10px; position: sticky; top: 12px; }
.nt-flowcard { display: grid; gap: 10px; border-top: 3px solid var(--primary); }
.nt-timeline { display: grid; gap: 0; }
.nt-timeline__step { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; padding-bottom: 12px; position: relative; }
.nt-timeline__step::before { content: ""; position: absolute; left: 10px; top: 16px; bottom: 0; border-left: 2px solid var(--line); }
.nt-timeline__step:last-child::before { display: none; }
.nt-timeline__dot { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ok); background: var(--ok-soft); position: relative; z-index: 1; }
.nt-timeline__step.is-ok .nt-timeline__dot::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border-right: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(45deg); }
.nt-timeline__step.is-warn .nt-timeline__dot { border-color: var(--warn); background: var(--warn-soft); }
.nt-timeline__step.is-warn .nt-timeline__dot::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--warn-ink); }
.nt-timeline__step.is-wait .nt-timeline__dot { border-color: var(--line-strong); background: #fff; }
.nt-timeline__step.is-wait { opacity: .5; }
.nt-timeline__label { font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.nt-timeline__note { font-size: 13px; color: var(--muted); }
.nt-alert { padding: 10px 12px; border: 1px solid var(--warn); background: var(--warn-soft); border-radius: var(--r); display: grid; gap: 4px; }
.nt-alert__h { font-size: 12px; font-weight: 700; color: var(--warn-ink); }
.nt-alert__b { font-size: 14px; }
.nt-twocol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.nt-mypage { display: grid; gap: 10px; }
.nt-mylist { display: grid; gap: 8px; }
.nt-mylist li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); }
.nt-mylist__img { border: 1px solid var(--line); }
.nt-mylist__body { display: grid; gap: 2px; font-size: 14px; }
.nt-mylist__body small { color: var(--muted); font-size: 12px; }
#downloads { scroll-margin-top: 16px; display: grid; gap: 8px; }

/* ---------- 바닥글·고정 버튼 ---------- */
.nt-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 18px 20px 88px; }
.nt-foot__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; }
.nt-foot__diff { font-size: 14px; font-weight: 600; }
.nt-foot__note { font-size: 13px; color: var(--muted); grid-column: 1; }
.nt-foot__inner .nt-btn { grid-column: 2; grid-row: 1 / span 2; }
.nt .demo-notice { max-width: var(--max); margin: 10px auto 0; font-size: 12px; color: var(--muted); }
.nt-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 20; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px;
  border-radius: 22px; border: 1px solid var(--text); background: var(--text); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(27, 27, 24, .25);
}

/* ---------- 대화상자 ---------- */
.nt-dialog { border: 0; padding: 0; border-radius: var(--r); width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--text); box-shadow: 0 18px 48px rgba(27, 27, 24, .28); }
.nt-dialog--wide { width: min(1000px, calc(100vw - 24px)); }
.nt-dialog--sm { width: min(420px, calc(100vw - 24px)); }
.nt-dialog::backdrop { background: rgba(27, 27, 24, .45); }
.nt-dialog__body { padding: 20px; display: grid; gap: 12px; }
.nt-dialog__head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.nt-dialog__title { font-size: 24px; font-weight: 700; }
.nt-dialog__sub { font-size: 15px; font-weight: 700; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.nt-dialog__foot { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.nt-info { font-size: 15px; }
.nt-map { display: grid; gap: 0; counter-reset: m; }
.nt-map li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.nt-map__need { font-weight: 600; }
.nt-map__show { color: var(--accent); text-align: left; background: none; border: 0; padding: 0; font-size: 14px; cursor: pointer; text-decoration: underline; min-height: 24px; }
.nt-diffs { display: grid; gap: 6px; font-size: 13px; color: var(--muted); list-style: disc !important; padding-left: 18px !important; }
.nt-steps-list { display: grid; gap: 10px; counter-reset: s; }
.nt-steps-list li { counter-increment: s; display: grid; gap: 3px; padding: 10px 12px 10px 44px; border: 1px solid var(--line); border-radius: var(--r); position: relative; font-size: 14px; }
.nt-steps-list li::before { content: counter(s); position: absolute; left: 12px; top: 8px; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--primary); }
.nt-steps-list li span { color: var(--muted); font-size: 13px; }
.nt-report { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nt-report__col { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 8px; align-content: start; }
.nt-report__h { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nt-report__list { display: grid; gap: 4px; font-size: 13px; list-style: disc !important; padding-left: 18px !important; }
.nt-report__list--num { list-style: decimal !important; }
.nt-notice { border: 1px solid var(--accent); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 10px; background: #F7F9FE; }
.nt-notice__dl { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 6px 12px; font-size: 14px; }
.nt-notice__dl dt { font-weight: 700; color: var(--accent); }
.nt-notice__state { font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- 알림 ---------- */
.nt-toast {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 40; max-width: calc(100vw - 32px);
  padding: 12px 16px; border-radius: var(--r); background: var(--text); color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.nt-toast[data-tone="ok"] { border-left: 4px solid #7FD3A6; }

/* ---------- 중간 폭 ---------- */
@media (max-width: 1100px) {
  .nt-bar { grid-template-columns: 160px minmax(0, 1fr) 190px; }
  .nt-knobs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .nt-calcout { grid-column: 1 / -1; }
  .nt-order { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .nt-shell { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 12px; }
  .nt-side { position: static; grid-template-columns: minmax(0, 1fr); padding: 8px 10px; }
  .nt-menu { display: flex; flex-wrap: wrap; gap: 4px; }
  .nt-menu__item { min-height: 40px; padding: 0 10px; font-size: 14px; border: 1px solid var(--line); }
  .nt-side { gap: 2px; }
  .nt-side__group + .nt-menu { margin-bottom: 2px; }
  .nt-side__group { padding: 4px 2px 0; }
  .nt-side__note { display: none; }
  .nt-changes__body, .nt-orders, .nt-twocol, .nt-mapwrap { grid-template-columns: minmax(0, 1fr); }
  .nt-detail, .nt-orders__flow, .nt-picker { position: static; }
  .nt-picker__list { display: flex; flex-wrap: wrap; gap: 4px; }
  .nt-pick { width: auto; border-color: var(--line); }
  .nt-report { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 모바일 ---------- */
@media (max-width: 640px) {
  .nt-head__inner { padding: 8px 12px; }
  .nt-head__tools { width: 100%; }
  .nt-head__tools .nt-btn { flex: 1; }
  .nt-shell { padding: 10px 12px 40px; }
  .nt-band__long { display: none; }
  .nt-card { padding: 14px; }
  .nt-h1 { font-size: 24px; }
  .nt-compare__lead { font-size: 15px; }
  .nt-bar { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .nt-bar__val { justify-content: flex-start; }
  .nt-big { font-size: 24px; }
  .nt-flow { grid-template-columns: minmax(0, 1fr); }
  .nt-flow__arrow { transform: rotate(90deg); height: 18px; line-height: 18px; }
  .nt-result .nt-link { margin-left: 0; }
  .nt-mapcard__head { grid-template-columns: minmax(0, 1fr); }
  .nt-mapcols { display: none; }
  .nt-maprow { grid-template-columns: minmax(0, 1fr); }
  .nt-wire { height: 22px; }
  .nt-wire::before { left: 50%; right: auto; top: 2px; bottom: 6px; border-top: 0; border-left: 1.5px solid var(--primary); }
  .nt-wire::after { left: calc(50% - 4px); right: auto; top: auto; bottom: 4px; transform: rotate(135deg); }
  .nt-result-item { grid-template-columns: 72px minmax(0, 1fr); }
  .nt-result-item > .nt-mono { grid-column: 2; }
  .nt-knobs { grid-template-columns: minmax(0, 1fr); }
  .nt-order { grid-template-columns: minmax(0, 1fr); }
  .nt-fxedit__btns { margin-left: 0; width: 100%; }
  .nt-fxedit__btns .nt-btn { flex: 1; }
  .nt-mylist li { grid-template-columns: 60px minmax(0, 1fr); }
  .nt-mylist li .nt-btn { grid-column: 1 / -1; }
  .nt-map li { grid-template-columns: minmax(0, 1fr); }
  .nt-notice__dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .nt-notice__dl dd { margin-bottom: 6px; }
  .nt-foot { padding: 16px 12px 88px; }
  .nt-foot__inner { grid-template-columns: minmax(0, 1fr); }
  .nt-foot__inner .nt-btn { grid-column: 1; grid-row: auto; justify-self: start; }
  .nt-diff__row { grid-template-columns: 78px minmax(0, 1fr); }

  /* 표 → 카드 목록 */
  .nt-table--cards thead { display: none; }
  .nt-table--cards, .nt-table--cards tbody, .nt-table--cards tfoot, .nt-table--cards tr, .nt-table--cards td { display: block; width: 100%; }
  .nt-table--cards tr { border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 8px; padding: 6px 10px; background: var(--surface); }
  .nt-table--cards tfoot tr { border-width: 2px; border-color: var(--line-strong); }
  .nt-table--cards td { border: 0; padding: 3px 0 3px 92px; position: relative; text-align: left !important; min-height: 26px; }
  .nt-table--cards td::before { content: attr(data-label); position: absolute; left: 0; top: 5px; width: 84px; font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.4; }
  .nt-table--cards td[data-label=""]::before { content: none; }
  .nt-table--cards td[data-label=""] { padding-left: 0; }
  .nt-table--cards .nt-orig { display: block; }
  .nt-table--cards tfoot td { border-top: 0; }
  .nt-changes__list, .nt-orders__list { background: transparent; border: 0; }
  .nt-table tbody tr.is-on { box-shadow: inset 3px 0 0 var(--primary); }
}

@media (prefers-reduced-motion: reduce) {
  .nt-flow__step, .nt-bar__fill { transition: none !important; }
}
