/* ==========================================================================
   바다결 트레이딩 — DREXLY 템플릿 (농수산물 도매·수출 B2B)
   색·활자·상태는 00-디자인보드.png, 면 구성은 01-home.png / 02-페이지시안.png
   에서 읽었다. 배관 얼개(토큰·서랍·아코디언·토스트·등장효과)는 lumiere-hair
   구현본을 따르되, 보이는 모습은 이 시안에서만 가져왔다.
   ========================================================================== */

:root {
  /* 브랜드 — 디자인보드 「컬러」 #0B2D4D / #FF6A00 / #F2F6F9 */
  --navy: #0b2d4d;
  --navy-900: #071f36;
  --navy-700: #0f3a63;
  --navy-500: #1b5688;
  --navy-300: #6f9dc0;
  --orange: #ff6a00;
  --orange-700: #e05c00;
  --orange-50: #fff3ea;

  /* 중립 */
  --ice: #f2f6f9;
  --ice-2: #e7eff5;
  --ice-3: #d8e5ee;
  --surface: #ffffff;
  --ink: #12212e;
  --ink-2: #41586b;
  --muted: #78899a;
  --line: #dce6ed;
  --line-2: #edf3f7;

  /* 의미색 — 디자인보드 「디자인 시스템 & 상태」 #22C356 / #F5A00B / #EF4A44
     (본문 대비 AA 를 맞추려고 글자용은 한 단계 어둡게 쓴다) */
  --ok: #22c356;
  --ok-ink: #0d7a37;
  --ok-bg: #e9f8ef;
  --warn: #f5a00b;
  --warn-ink: #8a5a00;
  --warn-bg: #fff4e0;
  --err: #ef4a44;
  --err-ink: #c0322c;
  --err-bg: #fdeceb;
  --info-bg: #eaf2fa;

  /* 활자 — 디자인보드 「타이포그래피」 Noto Sans KR + Pretendard */
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --head: "Noto Sans KR", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* 조판 */
  --wrap: 1240px;
  --gutter: 32px;
  --section: clamp(60px, 6.4vw, 100px);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --pill: 999px;
  --sh-1: 0 1px 2px rgba(11, 45, 77, 0.05), 0 6px 18px rgba(11, 45, 77, 0.06);
  --sh-2: 0 2px 6px rgba(11, 45, 77, 0.07), 0 18px 40px rgba(11, 45, 77, 0.1);
  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);

  /* z 층 */
  --z-header: 60;
  --z-tabbar: 70;
  --z-scrim: 80;
  --z-drawer: 90;
  --z-sheet: 95;
  --z-toast: 120;
}

/* --------------------------------------------------------------- 기본 */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ice);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: -0.005em;
  /* 한국어는 어절 단위로 끊는다 */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img {
  max-width: 100%;
  display: block;
  /* 이미지 기본 드래그가 포인터를 가로채는 사고를 막는다 */
  -webkit-user-drag: none;
  user-select: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.36; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
figure { margin: 0; }

:focus-visible {
  outline: 3px solid var(--navy-500);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow { max-width: 960px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-sm { width: 16px; height: 16px; stroke-width: 1.7; }
.ico-lg { width: 28px; height: 28px; stroke-width: 1.4; }

/* 사진 액자 — 인라인 요소엔 aspect-ratio 가 먹지 않는다 */
.frame { display: block; overflow: hidden; background: var(--ice-2); border-radius: var(--r); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* JS 가 있어야 뜻이 있는 조작부 — display 를 되돌리지 않고 「없을 때만」 숨긴다
   (display:revert 로 되돌리면 grid·flex 로 짠 상자가 block 으로 무너진다) */
html:not(.js) .js-only { display: none !important; }
html.js .no-js-only { display: none !important; }

/* ------------------------------------------------------------- 활자 계층 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-500);
}
.display {
  font-size: clamp(30px, 4.1vw, 50px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.035em;
}
.section-title {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.032em;
}
.page-title {
  font-size: clamp(27px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.lead { color: var(--ink-2); font-size: 16.5px; line-height: 1.8; }
.small { font-size: 13.5px; }
.muted { color: var(--muted); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.section { padding-block: calc(var(--section) / 2); }
.section-first { padding-top: var(--section); }
.section-last { padding-bottom: var(--section); }
.section-alt { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head p { margin-top: 12px; color: var(--ink-2); }
.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

/* ---------------------------------------------------------------- 버튼 */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.btn-accent { --btn-bg: var(--orange); --btn-fg: #fff; --btn-bd: var(--orange); }
.btn-accent:hover { --btn-bg: var(--orange-700); --btn-bd: var(--orange-700); box-shadow: 0 8px 20px rgba(255, 106, 0, 0.24); }

.btn-navy { --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy); }
.btn-navy:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }

.btn-line { --btn-bg: var(--surface); --btn-fg: var(--navy); --btn-bd: var(--ice-3); }
.btn-line:hover { --btn-bd: var(--navy-300); --btn-bg: #fbfdff; }

.btn-on-navy { --btn-bg: rgba(255, 255, 255, 0.08); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.45); }
.btn-on-navy:hover { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: #fff; }

.btn-sm { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: var(--navy-500);
  font-family: var(--head);
  font-size: 14px;
  font-weight: 700;
}
.btn-text .ico { transition: transform 0.25s var(--ease); }
.btn-text:hover { color: var(--orange-700); }
.btn-text:hover .ico { transform: translateX(3px); }

/* ---------------------------------------------------------------- 배지 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-family: var(--head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.badge .ico { width: 13px; height: 13px; stroke-width: 2; }
.badge-ok { background: var(--ok-bg); color: var(--ok-ink); border-color: #bfe9cf; }
.badge-run { background: var(--info-bg); color: var(--navy-700); border-color: #c6ddf1; }
.badge-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: #f4dda6; }
.badge-err { background: var(--err-bg); color: var(--err-ink); border-color: #f6c8c5; }
.badge-wait { background: var(--ice-2); color: var(--muted); border-color: var(--ice-3); }
.badge-line { background: var(--surface); color: var(--navy-700); border-color: var(--ice-3); }
.badge-accent { background: var(--orange-50); color: var(--orange-700); border-color: #ffd7ba; }

/* ---------------------------------------------------------------- 카드 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
}
.card-pad { padding: 22px; }

.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--info-bg);
  border: 1px solid #cfe0f0;
  color: var(--navy-700);
  font-size: 13.5px;
  line-height: 1.6;
}
.note .ico { margin-top: 2px; color: var(--navy-500); }
.note-warn { background: var(--warn-bg); border-color: #f4dda6; color: var(--warn-ink); }
.note-warn .ico { color: var(--warn-ink); }
.note b { font-weight: 700; }

/* ------------------------------------------------------------- 헤더 §06 */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-stuck {
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(11, 45, 77, 0.07);
}
/* 스크롤 진행 표시 — 지원 브라우저에서만 (장식이라 미지원 시 사라져도 손실 없음) */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: sp-grow linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes sp-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--navy);
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name {
  display: block;
  font-family: var(--head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.brand-name small {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--navy-300);
  margin-top: 1px;
}
.navlinks { display: flex; align-items: center; gap: 30px; }
.navlinks a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 74px;
  font-family: var(--head);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
}
.navlinks a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.navlinks a:hover { color: var(--navy); }
.navlinks a[aria-current="page"] { color: var(--navy); }
.navlinks a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-700);
}
.nav-tel:hover { color: var(--orange-700); }
.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
}

/* --------------------------------------------------------------- 서랍 */
.scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-scrim);
  background: rgba(7, 31, 54, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.scrim.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: var(--z-drawer);
  width: min(340px, 88vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.34s var(--ease), visibility 0.34s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
}
.drawer-close {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
}
.drawer-nav { padding: 10px 12px; }
.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-family: var(--head);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.drawer-nav a:hover { background: var(--ice); }
.drawer-nav a[aria-current="page"] { background: var(--ice); color: var(--navy); }
.drawer-nav a[aria-current="page"] .ico { color: var(--orange); }
.drawer-contact {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 16px 18px 22px;
  border-top: 1px solid var(--line-2);
  background: var(--ice);
}
.drawer-note { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* ---------------------------------------------------- 모바일 하단 탭 §08 */
.tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-tabbar);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar ul { display: flex; }
.tabbar li { flex: 1 1 0; min-width: 0; }
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  padding: 6px 2px;
  font-family: var(--head);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.03em;
}
.tabbar a[aria-current="page"] { color: var(--orange-700); }
.tabbar .ico { width: 21px; height: 21px; }

/* --------------------------------------------------------------- 히어로 */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 68%, #051828 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 74% at 22% 112%, rgba(255, 106, 0, 0.17), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 46px;
  align-items: center;
  padding-block: clamp(44px, 5.4vw, 78px);
}
.hero h1 { margin: 16px 0 18px; color: #fff; }
.hero .eyebrow { color: #8fc0e2; }
.hero-lead { color: #c9dced; font-size: 17px; line-height: 1.82; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}
.hero-fact { display: flex; align-items: baseline; gap: 8px; }
.hero-fact b {
  font-family: var(--head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-fact span { font-size: 13px; color: #a9c6dc; }
.hero-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  aspect-ratio: 400 / 436;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-stamp {
  position: absolute;
  left: 14px; bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--pill);
  background: rgba(7, 31, 54, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #dbe9f4;
  font-size: 12px;
  font-family: var(--mono);
}

/* --------------------------------------------- 면 머리(하위 4면) */
.page-head {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #fff;
  padding-block: clamp(34px, 4.2vw, 58px);
}
.page-head .eyebrow { color: #8fc0e2; }
.page-head h1 { margin: 12px 0 12px; color: #fff; }
.page-head p { color: #bed3e4; max-width: 46em; }
.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: center;
}
.head-media {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 144 / 140;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
}
.head-media img { width: 100%; height: 100%; object-fit: cover; }
.head-stat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}
.head-stat div b {
  display: block;
  font-family: var(--head);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.head-stat div span { font-size: 12.5px; color: #a9c6dc; }

/* --------------------------------------------------- §05 산지 → 항만 경로 */
.route { position: relative; }
.route-track {
  position: relative;
  margin-top: 30px;
  padding-top: 34px;
}
.route-rail {
  position: absolute;
  left: 0; right: 0; top: 14px;
  height: 4px;
  border-radius: 3px;
  background: var(--ice-3);
  overflow: hidden;
}
.route-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-500) 55%, var(--orange) 100%);
  transform-origin: 0 50%;
}
.js .route-fill { transform: scaleX(var(--p, 0)); transition: transform 0.35s var(--ease); }
.route-stops {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.stop { position: relative; padding-right: 8px; }
.stop::before {
  content: "";
  position: absolute;
  top: -34px;
  left: 0;
  width: 14px; height: 14px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--ice-3);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.stop-no {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.stop h3 {
  margin: 4px 0 6px;
  font-size: 17px;
  font-weight: 700;
  transition: color 0.3s var(--ease);
}
.stop p { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.stop-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--ice-2);
  color: var(--navy-500);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.js .route[data-anim] .stop { opacity: 0.55; transition: opacity 0.35s var(--ease); }
.js .route[data-anim] .stop.is-on { opacity: 1; }
.stop.is-on::before { border-color: var(--orange); background: var(--orange); transform: scale(1.12); }
.stop.is-on .stop-ico { background: var(--navy); color: #fff; }
.stop.is-on h3 { color: var(--navy); }
.route-legend {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-2);
}

/* ------------------------------------------------------- 카탈로그 레일 */
.rail-wrap { position: relative; }
.rail {
  position: relative; /* 넘친 상자가 문서 폭을 밀어 올리지 않게 */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 214px;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.rail-item {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.rail-item:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: var(--ice-3); }
.rail-item .frame { border-radius: 0; aspect-ratio: 102 / 104; }
.rail-body { padding: 14px 15px 16px; }
.rail-body h3 { font-size: 16px; font-weight: 700; }
.rail-latin { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 1px; }
.rail-meta { margin-top: 10px; display: grid; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.rail-meta div { display: flex; justify-content: space-between; gap: 8px; }
.rail-meta b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.rail-hint { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------- 통계 띠 */
.band {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #fff;
}
.band .section-title { color: #fff; }
.band .eyebrow { color: #8fc0e2; }
.band-grid {
  display: grid;
  grid-template-columns: 300px repeat(4, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}
.band-stat { border-left: 1px solid rgba(255, 255, 255, 0.18); padding-left: 18px; }
.band-stat .ico { color: #8fc0e2; margin-bottom: 10px; }
.band-stat b {
  display: block;
  font-family: var(--head);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.band-stat b i { font-style: normal; font-size: 15px; font-weight: 700; margin-left: 3px; color: #b9d3e6; }
.band-stat strong { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; color: #e2eef7; }
.band-stat span { display: block; margin-top: 4px; font-size: 12.5px; color: #9dbdd6; line-height: 1.6; }

/* --------------------------------------------------------- 데이터 그리드 */
.grid-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.searchbar:focus-within { border-color: var(--navy-300); box-shadow: 0 0 0 3px rgba(27, 86, 136, 0.12); }
.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  height: 100%;
  outline: none;
}
.searchbar .ico { color: var(--muted); }
.search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--ice-2);
  color: var(--ink-2);
  cursor: pointer;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--ice-3);
  border-radius: var(--pill);
  background: var(--surface);
  font-family: var(--head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--navy-300); color: var(--navy); }
.chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.chip[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--ice-2);
  color: var(--muted);
}
.chip .cnt { font-family: var(--mono); font-size: 11.5px; opacity: 0.75; }

.tools-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.result-line { font-size: 14px; color: var(--ink-2); }
.result-line b { font-family: var(--mono); color: var(--navy); font-size: 16px; }
.sortbox { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }

.dg-wrap {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.dg { font-size: 14px; }
.dg thead th {
  background: var(--ice);
  border-bottom: 1px solid var(--line);
  padding: 12px 11px;
  text-align: left;
  font-family: var(--head);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
/* 좁은 폭에서 표가 넘칠 때만 옆으로 굴린다 — position:relative 가 없으면
   넘친 상자가 문서 스크롤 폭을 밀어 올린다(320·390px 가로 밀림 사고) */
.dg-scroll { position: relative; overflow-x: auto; }
.dg tbody td { padding: 13px 11px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.dg tbody tr:last-child td { border-bottom: 0; }
.dg tbody tr { transition: background 0.18s var(--ease); }
.dg tbody tr:hover { background: #f8fbfd; }
.dg tbody tr.is-picked { background: var(--info-bg); }
.dg tbody tr.is-picked td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.dg .t-name { font-family: var(--head); font-weight: 700; color: var(--navy); }
.dg .t-latin { display: block; font-size: 11.5px; color: var(--muted); font-style: italic; font-weight: 400; }
.dg .t-num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dg .t-right { text-align: right; }
.dg-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--ice-3);
  border-radius: var(--pill);
  background: var(--surface);
  font-family: var(--head);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-700);
  cursor: pointer;
  white-space: nowrap;
}
.dg-pick:hover { border-color: var(--navy-300); background: #f7fbfe; }
.dg tr.is-picked .dg-pick { background: var(--navy); border-color: var(--navy); color: #fff; }

.dg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  border-top: 1px solid var(--line-2);
  background: #fbfdfe;
  font-size: 13px;
  color: var(--muted);
}
.dg-empty { padding: 46px 20px; text-align: center; }
.dg-empty .ico { color: var(--ice-3); }
.dg-empty h3 { margin: 10px 0 6px; font-size: 17px; }
.dg-empty p { color: var(--ink-2); font-size: 14px; margin-bottom: 16px; }

/* 적재 상태(Skeleton) */
.dg-skeleton { display: none; padding: 8px 14px 14px; }
.dg-wrap.is-loading .dg-skeleton { display: block; }
.dg-wrap.is-loading .dg, .dg-wrap.is-loading .dg-foot, .dg-wrap.is-loading .dg-empty { display: none; }
.sk-row {
  height: 44px;
  border-radius: var(--r-sm);
  margin-top: 8px;
  background: linear-gradient(90deg, var(--ice-2) 25%, #f6fafc 37%, var(--ice-2) 63%);
  background-size: 400% 100%;
  animation: sk 1.2s ease infinite;
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------------------------------------------------- 품목 상세 */
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 26px;
  align-items: start;
}
.detail { position: sticky; top: 96px; }
.detail-media { aspect-ratio: 143 / 94; border-radius: 0; }
.detail-blank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 143 / 94;
  background: linear-gradient(150deg, var(--ice-2), var(--ice));
  color: var(--navy-300);
  border-bottom: 1px solid var(--line-2);
}
.detail-blank span { font-size: 12px; color: var(--muted); }
.detail-body { padding: 18px 20px 20px; }
.detail-body h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.035em; }
.detail-latin { font-size: 12.5px; font-style: italic; color: var(--muted); margin-top: 2px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.spec { margin-top: 16px; border-top: 1px solid var(--line-2); }
.spec div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
}
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--ink); }
.spec dd b { font-family: var(--mono); font-weight: 600; }
.detail-price {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.detail-price div {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--ice);
  border: 1px solid var(--line-2);
}
.detail-price span { display: block; font-size: 12px; color: var(--muted); }
.detail-price b {
  display: block;
  margin-top: 2px;
  font-family: var(--head);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.detail-price b i { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-left: 2px; }
.detail-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }

/* --------------------------------------------------------- 거래 조건 3칸 */
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.term-card { padding: 22px; }
.term-card .ico { color: var(--navy-500); }
.term-card h3 { margin: 12px 0 10px; font-size: 17px; }
.term-card li {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line-2);
}
.term-card li:last-child { border-bottom: 0; }
.term-card li b { flex: none; min-width: 74px; color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------- 로트 조회 */
.lot-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px 20px;
}
.lot-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lot-summary {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 238px;
  gap: 22px;
  padding: 20px;
  align-items: start;
}
.lot-photo { aspect-ratio: 143 / 94; }
.lot-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 14px; }
.lot-facts div { border-top: 1px solid var(--line-2); padding-top: 8px; }
.lot-facts dt { font-size: 12px; color: var(--muted); }
.lot-facts dd { margin: 2px 0 0; font-family: var(--mono); font-size: 14px; font-weight: 600; }
.qr-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: var(--r);
  background: var(--ice);
  border: 1px solid var(--line-2);
  text-align: center;
}
.qr-box .qr-code { width: 128px; height: 128px; border-radius: 6px; background: #fff; padding: 6px; border: 1px solid var(--line); }
.qr-cap { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.qr-url {
  width: 100%;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--navy-700);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  overflow-wrap: anywhere;
}
.lot-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 20px; }

/* --------------------------------------------------------------- 타임라인 */
.tl { position: relative; margin-top: 22px; }
.tl::before {
  content: "";
  position: absolute;
  left: 21px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-300) 70%, var(--ice-3) 100%);
}
.tl-item { position: relative; padding-left: 62px; padding-bottom: 14px; }
.tl-mark {
  position: absolute;
  left: 0; top: 14px;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--navy);
  color: var(--navy);
}
.tl-item.is-wait .tl-mark { border-color: var(--ice-3); color: var(--muted); border-style: dashed; }
.tl-item.is-run .tl-mark { border-color: var(--orange); color: var(--orange-700); }
.tl-card { padding: 16px 18px; }
.tl-item.is-wait .tl-card { background: #fbfdfe; border-style: dashed; }
.tl-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.tl-stage { font-family: var(--head); font-size: 12px; font-weight: 700; color: var(--navy-500); letter-spacing: 0.02em; }
.tl-card h3 { margin: 2px 0 4px; font-size: 17px; }
.tl-when { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.tl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 16px;
  align-items: start;
  margin-top: 10px;
}
.tl-thumb { aspect-ratio: 176 / 74; }
.tl-lines { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.tl-lines b { color: var(--ink); font-weight: 600; font-family: var(--mono); font-size: 13px; }

/* 아코디언 */
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--line-2);
  margin-top: 12px;
  background: none;
  font-family: var(--head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-700);
  cursor: pointer;
  text-align: left;
}
.acc-trigger .ico { transition: transform 0.3s var(--ease); }
.acc-trigger[aria-expanded="true"] .ico { transform: rotate(180deg); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}
.acc-panel > div { overflow: hidden; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-body { padding: 10px 0 4px; font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.acc-body dl { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 6px 12px; }
.acc-body dt { color: var(--muted); font-size: 13px; }
.acc-body dd { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--ink); }

/* ----------------------------------------------------------- KPI · 차트 */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 18px 20px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-top span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.kpi-top .ico { color: var(--navy-300); }
.kpi b {
  display: block;
  margin-top: 8px;
  font-family: var(--head);
  font-size: clamp(26px, 2.6vw, 33px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--navy);
}
.kpi b i { font-style: normal; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-left: 3px; }
.kpi.is-ok b { color: var(--ok-ink); }
.kpi small { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }

.chart-card { padding: 20px 20px 16px; }
.chart-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.range-tabs { display: flex; gap: 4px; padding: 4px; background: var(--ice); border-radius: var(--pill); }
.range-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--pill);
  background: none;
  font-family: var(--head);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
}
.range-tabs button[aria-selected="true"] { background: var(--surface); color: var(--navy); box-shadow: var(--sh-1); }
.chart-box { position: relative; }
.chart-svg { display: block; width: 100%; height: auto; }
.chart-svg .grid-line { stroke: var(--line-2); stroke-width: 1; }
.chart-svg .axis-txt { font-family: var(--mono); font-size: 9px; fill: var(--muted); }
.chart-svg .band-ok { fill: rgba(34, 195, 86, 0.08); }
.chart-svg .set-line { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 5 4; fill: none; }
.chart-svg .rec-line { stroke: var(--navy-500); stroke-width: 2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .rec-area { fill: rgba(27, 86, 136, 0.09); }
.js .chart-card.js-anim .rec-line { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); }
.js .chart-card.js-anim .rec-area { opacity: 0; }
.js .chart-card.js-anim.is-drawn .rec-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(0.33, 0.9, 0.36, 1); }
.js .chart-card.js-anim.is-drawn .rec-area { opacity: 1; transition: opacity 0.7s 0.5s var(--ease); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg-line { width: 22px; height: 0; border-top: 2px solid var(--navy-500); }
.lg-dash { width: 22px; height: 0; border-top: 2px dashed var(--muted); }
.lg-band { width: 22px; height: 10px; border-radius: 3px; background: rgba(34, 195, 86, 0.18); border: 1px solid rgba(34, 195, 86, 0.4); }

/* ----------------------------------------------------------- 표 (요약형) */
.tbl { font-size: 14px; }
.tbl th {
  padding: 12px 14px;
  text-align: left;
  background: var(--ice);
  border-bottom: 1px solid var(--line);
  font-family: var(--head);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .t-ship { font-family: var(--head); font-weight: 700; color: var(--navy); }
.tbl .t-ship small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-weight: 400; }
.tbl .t-num { font-family: var(--mono); white-space: nowrap; }

.qa-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.qa { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.qa-ico {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  flex: none;
}
.qa-ico.i-ok { background: var(--ok-bg); color: var(--ok-ink); }
.qa-ico.i-warn { background: var(--warn-bg); color: var(--warn-ink); }
.qa-ico.i-err { background: var(--err-bg); color: var(--err-ink); }
.qa-ico.i-info { background: var(--info-bg); color: var(--navy-700); }
.qa b { display: block; font-family: var(--head); font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.qa b i { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-left: 2px; }
.qa span { font-size: 13px; color: var(--ink-2); }

/* 인증 */
.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cert { padding: 18px 20px; }
.cert-top { display: flex; align-items: center; gap: 10px; }
.cert-top .ico { color: var(--navy-500); }
.cert h3 { font-size: 16px; }
.cert p { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.cert-no {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--warn-bg);
  border: 1px dashed #e8c37a;
  color: var(--warn-ink);
  font-family: var(--mono);
  font-size: 11.5px;
}

/* ---------------------------------------------------------------- 폼 §14 */
.rfq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.steps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--pill);
  background: var(--ice-2);
  color: var(--muted);
  font-family: var(--head);
  font-size: 13.5px;
  font-weight: 700;
}
.step i { font-style: normal; font-family: var(--mono); }
.step.is-on { background: var(--orange); color: #fff; }
.step.is-done { background: var(--ok-bg); color: var(--ok-ink); }

.form-card { padding: 24px; }
.fieldset { border: 0; padding: 0; margin: 0 0 6px; }
.fieldset + .fieldset { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.fieldset legend {
  padding: 0;
  margin-bottom: 14px;
  font-family: var(--head);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.req { color: var(--err-ink); margin-left: 2px; }
.control {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
select.control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378899a' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 36px;
}
textarea.control { min-height: 118px; resize: vertical; line-height: 1.7; }
.control:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(27, 86, 136, 0.13); }
.field.filled .control { border-color: var(--navy-300); }
.field.invalid .control { border-color: var(--err); background: #fffbfb; }
.field.invalid .err-msg { display: flex; }
.err-msg {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--err-ink);
}
.hint { font-size: 12.5px; color: var(--muted); }
.counter { font-size: 12px; color: var(--muted); text-align: right; font-family: var(--mono); }

.stepper { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px 96px; gap: 8px; }
.stepper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
}
.stepper button:hover { border-color: var(--navy-300); background: #f7fbfe; }
.stepper input { text-align: center; font-family: var(--mono); font-weight: 600; }

.agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 6px; }
.agree input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.agree label { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--ink-2); }

.summary { position: sticky; top: 96px; padding: 20px; }
.summary h3 { font-size: 16px; }
.sum-list { margin-top: 14px; }
.sum-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
}
.sum-list dt { color: var(--muted); }
.sum-list dd { margin: 0; font-family: var(--mono); font-weight: 600; text-align: right; }
.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: #fff;
}
.sum-total span { font-size: 13px; color: #b9d3e6; }
.sum-total b { font-family: var(--head); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }

.rfq-done { display: none; padding: 26px; text-align: center; }
.rfq-done.on { display: block; }
.rfq-done .done-ico {
  width: 62px; height: 62px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok-ink);
}
.rfq-done h2 { font-size: 22px; }
.rfq-done p { margin-top: 10px; color: var(--ink-2); }
.rfq-done .code {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  background: var(--ice);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}
.rfq-done .done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* 이력 목록 */
.hist { display: grid; gap: 10px; }
.hist-item { padding: 16px 18px; }
.hist-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hist-top h3 { font-size: 15.5px; }
.hist-sub { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* 문의 카드 */
.help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  border-radius: var(--r-lg);
}
.help h2 { font-size: 21px; color: #fff; }
.help p { margin-top: 8px; color: #bed3e4; font-size: 14.5px; }
.help-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* CTA 분할 */
.cta-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: center;
}
.cta-media { aspect-ratio: 486 / 192; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.cta-list { margin: 18px 0 0; display: grid; gap: 8px; }
.cta-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.cta-list .ico { color: var(--ok-ink); margin-top: 3px; }

/* --------------------------------------------------------------- 푸터 */
.site-footer {
  background: var(--navy-900);
  color: #b9cdde;
  padding-top: 52px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 30px;
  padding-bottom: 34px;
}
.site-footer .brand { color: #fff; }
.site-footer .brand-name small { color: #6f9dc0; }
.footer-desc { margin-top: 14px; line-height: 1.75; color: #9fb8cb; }
.footer-certs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.footer-certs span {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11.5px;
  color: #cfe0ee;
}
.footer-col h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffffff;
  margin-bottom: 14px;
}
.footer-col li a, .footer-col li span { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; color: #b9cdde; }
.footer-col li a:hover { color: #fff; }
.footer-contact div { display: flex; gap: 10px; padding: 5px 0; line-height: 1.65; }
.footer-contact .ico { color: #6f9dc0; margin-top: 4px; }
.footer-contact a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding: 16px 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #8ba7bd;
}
.footer-legal nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a:hover { color: #fff; }
.footer-demo {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: #cfe0ee;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ------------------------------------------------------- 맨 위로 · 토스트 */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 65;
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  box-shadow: var(--sh-1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s var(--ease);
  cursor: pointer;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(560px, calc(100vw - 32px));
  padding: 13px 18px;
  border-radius: var(--r-sm);
  background: var(--navy-900);
  color: #fff;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 16px 40px rgba(7, 31, 54, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
  /* 폭 전체 제출 버튼을 덮어 클릭을 삼키지 않게 */
  pointer-events: none;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ico { color: #7fe3a6; }

/* ------------------------------------------------------------ 등장 효과 */
.reveal {
  opacity: 1;
}
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------- 모바일 시트 */
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sheet);
  max-height: 86vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -14px 44px rgba(7, 31, 54, 0.28);
  transform: translateY(102%);
  visibility: hidden;
  transition: transform 0.32s var(--ease), visibility 0.32s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.open { transform: none; visibility: visible; }
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--line-2);
}
.sheet-head h2 { font-size: 17px; }
.sheet-body { padding: 16px 18px; display: grid; gap: 18px; }
.sheet-body h3 { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.sheet-foot {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 18px 18px;
  background: var(--surface);
  border-top: 1px solid var(--line-2);
}
.filter-btn { display: none; }

/* ═══════════════════════════════════════════════════════ 반응형 §08 */
@media (max-width: 1180px) {
  .band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; }
  .band-head { grid-column: 1 / -1; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr) 330px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .navlinks { gap: 20px; }
  .navlinks a { font-size: 14px; }
  .nav-tel { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .rfq-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .detail { position: static; }
  .detail-media, .detail-blank { aspect-ratio: 3 / 1; }
  .lot-summary { grid-template-columns: 160px minmax(0, 1fr); }
  .qr-box { grid-column: 1 / -1; grid-template-columns: 128px minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; }
  .page-head-grid { grid-template-columns: minmax(0, 1fr) 220px; }
}

@media (max-width: 900px) {
  .route-stops { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .route-rail { display: none; }
  .stop { padding-left: 0; }
  .stop::before { position: static; display: block; margin: 0 0 10px; }
  .cta-split { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
}

@media (max-width: 860px) {
  .navlinks { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero-media { aspect-ratio: 16 / 10; order: -1; }
  .page-head-grid { grid-template-columns: minmax(0, 1fr); }
  .head-media { display: none; }
  .lot-summary { grid-template-columns: minmax(0, 1fr); }
  .lot-photo { max-width: 220px; }
  .help { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  body { padding-bottom: 62px; }
  .tabbar { display: block; }
  .to-top { bottom: 74px; }
  .toast { bottom: 74px; }
  .filter-btn { display: inline-flex; }
  .sortbox { display: none; }
  .chips.desk-only { display: none; }

  /* 터치 영역 44px 이상 §09 */
  .btn-sm { min-height: 44px; }
  .chip { min-height: 44px; }
  .btn-text { min-height: 44px; }
  .range-tabs button { min-height: 44px; }
  .acc-trigger { min-height: 48px; }
  .search-clear { width: 44px; height: 44px; }
  .searchbar { height: 56px; }

  /* 표 → 카드 (PC 축소가 아니라 재조판) */
  .dg thead, .tbl thead { display: none; }
  .dg tbody, .tbl tbody { display: block; }
  .dg tbody tr, .tbl tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 12px;
    padding: 14px;
    border-bottom: 1px solid var(--line-2);
  }
  .dg tbody td, .tbl tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
    border: 0;
    font-size: 13.5px;
  }
  .dg tbody td::before, .tbl tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    flex: none;
  }
  .dg tbody td.cell-name, .tbl tbody td.cell-name {
    grid-column: 1 / -1;
    display: block;
    padding-bottom: 8px;
  }
  .dg tbody td.cell-name::before, .tbl tbody td.cell-name::before { content: none; }
  .dg tbody td.cell-act, .tbl tbody td.cell-act { grid-column: 1 / -1; margin-top: 8px; }
  .dg tbody td.cell-act::before { content: none; }
  .dg-pick { width: 100%; min-height: 44px; }
  .dg tbody tr.is-picked td:first-child { box-shadow: none; }
  .dg tbody tr.is-picked { box-shadow: inset 3px 0 0 var(--orange); }

  .tl-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-thumb { max-width: 260px; }
  .tl-item { padding-left: 52px; }
  .tl-mark { width: 38px; height: 38px; }
  .tl::before { left: 18px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-cta { grid-template-columns: minmax(0, 1fr); }
  .lot-bar { grid-template-columns: minmax(0, 1fr); }
  .lot-pick { grid-template-columns: minmax(0, 1fr); }
  .stepper { grid-template-columns: 52px minmax(0, 1fr) 52px; }
  .stepper .unit-sel { grid-column: 1 / -1; }
  .band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-stat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .qr-box { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .qr-box .qr-code { width: min(128px, 100%); height: auto; }
  .route-stops { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .kpis, .qa-grid, .band-grid { grid-template-columns: minmax(0, 1fr); }
  .band-stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); padding: 14px 0 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-price { grid-template-columns: minmax(0, 1fr); }
  .hero-facts { gap: 10px 18px; }
  .form-card, .card-pad, .chart-card, .summary { padding: 18px; }
  .lot-facts { grid-template-columns: minmax(0, 1fr); }
  .dg tbody tr, .tbl tbody tr { grid-template-columns: minmax(0, 1fr); }
  .range-tabs { width: 100%; justify-content: space-between; }
  .range-tabs button { flex: 1; padding: 0 6px; }
  .tabbar a { font-size: 10px; }
}

@media (max-width: 560px) {
  /* 좁은 화면에서는 상단 CTA 를 접는다 — 같은 과업이 하단 탭바와 서랍에 그대로 있다 */
  .nav-actions > .btn { display: none; }
  .nav { gap: 12px; height: 66px; }
  .navlinks a { height: 66px; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 17px; }
  .brand-mark { width: 30px; height: 30px; }
  .tabbar .ico { width: 19px; height: 19px; }
}

/* 가로 방향(낮은 높이)에서 고정 요소가 화면을 잡아먹지 않게 */
@media (max-height: 460px) and (orientation: landscape) {
  .tabbar { display: none; }
  body { padding-bottom: 0; }
  .to-top, .toast { bottom: 16px; }
}

/* ───────────────────────────────────────────── 모션 줄이기 §05 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* 진행 애니메이션을 없애고 최종 상태를 즉시 보여준다 */
  .js .reveal { opacity: 1; transform: none; }
  .js .route[data-anim] .stop { opacity: 1; }
  .js .route-fill { transform: scaleX(1); }
  .js .chart-card.js-anim .rec-line { stroke-dashoffset: 0; }
  .js .chart-card.js-anim .rec-area { opacity: 1; }
  .scroll-progress { display: none; }
}

/* ─────────────────────────────────────────── 인쇄(= PDF 저장) */
@media print {
  .site-header, .drawer, .scrim, .tabbar, .to-top, .toast, .sheet,
  .lot-actions, .lot-bar, .chips, [data-copy], .filter-btn, .range-tabs,
  .dg-foot, .help, .site-footer .footer-legal { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .page-head { background: none; color: #000; padding-block: 0 12px; }
  .page-head h1, .page-head p, .page-head .eyebrow { color: #000; }
  .card, .dg-wrap { box-shadow: none; border-color: #bbb; break-inside: avoid; }
  .tl-item { break-inside: avoid; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; }
}
