/* c-home-b · 고객사 홈 시안 B '현장 실사'
   - 배너 · 바로가기 = 클린미션 현장 실사(자르기만) · 업체 카드 = 사진 없이 정보 네 가지
   - 휴대폰 400 = 한 칸 · 넓은 화면 = 카드 두 칸 · 아래 고정 버튼 = 화면 아래 붙음 */
.x-body .hb.sw-view { padding-bottom: 0; --hb-pad: 32px; }
@media (max-width: 1100px) { .x-body .hb.sw-view { --hb-pad: var(--ui-gutter, 20px); } }
.x-body .hb { color: var(--ui-ink, #191f28); }
.x-body .hb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 사업장 줄 */
.x-body .hb-site { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 16px; min-width: 0; }
.x-body .hb-site-btn { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: -8px; padding: 0 8px; border: 0; border-radius: 12px; background: transparent; color: var(--ui-ink, #191f28); font: 700 22px/1.3 var(--ui-font, inherit); letter-spacing: -.02em; cursor: pointer; }
.x-body .hb-site-btn > svg:first-child { color: var(--ui-brand, #4c00ff); }
.x-body .hb-site-btn > svg:last-child { color: var(--ui-ink-2, #4e5968); }
.x-body .hb-site-btn:hover { background: var(--ui-press, rgba(2, 32, 71, .05)); }
.x-body .hb-site-btn:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .hb-site-at { font: 500 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }

/* 위 묶음 = 배너 · 종이 없는 한 줄 · 바로가기(휴대폰 = 스테이지 순서 그대로 · 넓은 화면 = 배너 옆에 바로가기 2×2) */
.x-body .hb-top { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "ban" "paper" "tiles"; }
.x-body .hb-ban { grid-area: ban; }
.x-body .hb-paper { grid-area: paper; }
.x-body .hb-tiles { grid-area: tiles; }

/* 배너 = 실사 한 장 + 아래쪽만 옅은 먹색 그림자 */
.x-body .hb-ban { position: relative; overflow: hidden; min-height: 300px; border-radius: var(--ui-radius-card, 20px); background: #9a9c9e; isolation: isolate; }
/* 사진 원본 1080×810 · 게시물 머리 줄(y 312 위)에 고객사 상호(LIVET)가 있어 그 아래만 보이게 자름: 아래 498px 를 배너 높이에 맞춤(810/498 = 162.65%) */
.x-body .hb-ban-img { position: absolute; left: 0; bottom: 0; top: auto; right: auto; width: auto; height: 162.65%; min-width: 100%; max-width: none; object-fit: cover; object-position: 0 100%; display: block; }
.x-body .hb-ban::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(53, 56, 57, .6) 0%, rgba(53, 56, 57, .3) 30%, rgba(53, 56, 57, 0) 52%); }
.x-body .hb-ban-tx { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 32px 28px; }
.x-body .hb-ban-h { margin: 0; color: #fff; font: 700 34px/1.25 var(--ui-font, inherit); letter-spacing: -.02em; }
.x-body .ui-btn.hb-ban-btn { flex: none; min-height: 48px; padding: 0 20px; border-radius: 14px; background: #fff; color: var(--ui-ink, #191f28); font: 700 16px/1.2 var(--ui-font, inherit); }
.x-body .ui-btn.hb-ban-btn:hover:not(:disabled) { background: #f2f4f6; }
.x-body .ui-btn.hb-ban-btn:active:not(:disabled) { background: #e5e8eb; }

/* 종이 없는 안전관리 한 줄 */
.x-body .hb-paper { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font: 500 16px/1.4 var(--ui-font, inherit); color: var(--ui-ink-body, #333d4b); min-width: 0; }
.x-body .hb-paper svg { flex: none; color: var(--ui-brand, #4c00ff); }
.x-body .hb-paper span { min-width: 0; }

/* 바로가기 4 = 정사각 실사 타일 + 아래 이름 */
.x-body .hb-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; }
.x-body .hb-tile { -webkit-appearance: none; appearance: none; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ui-ink, #191f28); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.x-body .hb-tile-ph { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: #e9eaea; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); transition: transform .16s ease, box-shadow .16s ease; }
.x-body .hb-tile-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.x-body .hb-tile.is-floor img { object-position: 50% 60%; }
.x-body .hb-tile.is-tag img { object-position: 50% 18%; }
/* 고객사 상호가 찍힌 곳을 빼고 정사각으로 자름(원본 픽셀 기준 · 칸이 정사각이라 top % = 가로 기준과 같음)
   교육 = board-install 1080×810 의 x 90 · y 140 · 380 칸(게시판 머리 '안전 · 보건 게시판' + 첫 줄 게시물 · 오른쪽 MAGICWRAP 로고 뺌)
   무료 위험성평가 = warning-sign 810×1080 의 x 392 · y 664 · 256 칸(포스터 머리 KOREA SLING 아래 · 왼쪽 달력 뺌) */
.x-body .hb-tile.is-board img, .x-body .hb-tile.is-sign img { inset: auto; height: auto; max-width: none; object-fit: fill; }
.x-body .hb-tile.is-board img { width: 284.21%; left: -23.68%; top: -36.84%; }
.x-body .hb-tile.is-sign img { width: 316.41%; left: -153.13%; top: -259.38%; }
.x-body .hb-tile-nm { max-width: 100%; font: 600 16px/1.35 var(--ui-font, inherit); text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.x-body .hb-tile:hover .hb-tile-ph { transform: translateY(-2px); }
.x-body .hb-tile:active .hb-tile-ph { transform: scale(.97); }
.x-body .hb-tile[aria-pressed=true] .hb-tile-ph { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ui-brand, #4c00ff); }
.x-body .hb-tile[aria-pressed=true] .hb-tile-nm { color: var(--ui-brand, #4c00ff); }
.x-body .hb-tile:focus-visible { outline: none; }
.x-body .hb-tile:focus-visible .hb-tile-ph { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ui-brand, #4c00ff); }
.x-body .hb-free { position: absolute; top: 8px; right: 8px; z-index: 1; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--ui-brand, #4c00ff); color: #fff; font: 700 12px/1 var(--ui-font, inherit); }

/* 넓은 화면 = 배너 | 바로가기 2×2 · 아래 종이 없는 한 줄 */
@media (min-width: 1000px) {
  .x-body .hb-top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ban tiles" "paper paper"; column-gap: 28px; align-items: stretch; }
  .x-body .hb-tiles { margin: 0; grid-template-columns: repeat(2, 148px); gap: 18px 20px; align-content: start; }
  .x-body .hb-ban { min-height: 0; }
  .x-body .hb-paper { margin-top: 20px; }
}

/* 업체 목록 */
.x-body .hb-list { margin: 44px 0 0; scroll-margin-top: calc(var(--sw-top, 76px) + 16px); }
@media (max-width: 1100px) { .x-body .hb-list { scroll-margin-top: calc(var(--sw-top, 76px) + 64px); } }
.x-body .hb-list-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.x-body .hb-h2 { margin: 0; font: var(--ui-t-section-title, 700 1.25rem/1.4 sans-serif); letter-spacing: -.02em; color: var(--ui-ink, #191f28); font-size: 22px; }
.x-body .hb-all { -webkit-appearance: none; appearance: none; flex: none; display: inline-flex; align-items: center; gap: 2px; min-height: 40px; margin-right: -8px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ui-ink-2, #4e5968); font: 500 15px/1 var(--ui-font, inherit); cursor: pointer; }
.x-body .hb-all:hover { background: var(--ui-press, rgba(2, 32, 71, .05)); color: var(--ui-ink, #191f28); }
.x-body .hb-all[hidden] { display: none; }
.x-body .hb-tabs { display: flex; gap: 8px; margin: 14px calc(var(--hb-pad) * -1) 0; padding: 2px var(--hb-pad) 4px; overflow-x: auto; scrollbar-width: none; }
.x-body .hb-tabs::-webkit-scrollbar { display: none; }
.x-body .hb-tabs .ui-chip { flex: none; white-space: nowrap; }
.x-body .hb-tabs .ui-chip[aria-pressed=true] { background: var(--ui-ink, #191f28); color: #fff; }
.x-body .hb-grp { margin: 24px 0 0; }
.x-body .hb-h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 12px; font: 700 17px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .hb-h3 b { font-weight: 700; color: var(--ui-brand, #4c00ff); }
.x-body .hb-h3-side { margin-left: auto; font: 500 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .hb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 760px) { .x-body .hb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.x-body .hb-none { margin: 24px 0 0; font: 500 16px/1.5 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .ui-btn.hb-more { margin-top: 12px; min-height: 48px; border-radius: 14px; }

/* 업체 카드(사진 없음) */
.x-body .hb-card { min-width: 0; padding: 18px 20px 18px; border: 1px solid var(--ui-line-strong, #e5e8eb); border-radius: var(--ui-radius-card, 20px); background: #fff; }
.x-body .hb-card.is-partner { border-color: #d9ccff; }
.x-body .hb-card-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.x-body .hb-card-nm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; min-width: 0; padding-top: 7px; font: 700 18px/1.4 var(--ui-font, inherit); letter-spacing: -.01em; color: var(--ui-ink, #191f28); }
.x-body .hb-card-nm > span:first-child { min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.x-body .hb-tag, .x-sheet .hb-tag { display: inline-flex; align-items: center; flex: none; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); font: 600 12px/1 var(--ui-font, inherit); white-space: nowrap; }
.x-sheet .hb-tag { margin-left: 8px; vertical-align: 2px; }
.x-body .ui-btn.hb-pick { flex: none; min-width: 96px; }
.x-body .ui-btn.hb-pick[aria-pressed=true] { background: #fff; color: var(--ui-brand, #4c00ff); box-shadow: inset 0 0 0 1.5px #d9ccff; }
.x-body .ui-btn.hb-pick[aria-pressed=true]:hover:not(:disabled) { background: var(--ui-brand-tint, #f4f0ff); }
.x-body .hb-card-meta { margin: 4px 0 0; font: 500 15px/1.5 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .hb-card-kinds { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--ui-line, #f2f4f6); display: flex; flex-direction: column; gap: 6px; }
.x-body .hb-card-kinds li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; font: 400 15px/1.5 var(--ui-font, inherit); }
.x-body .hb-card-kinds b { font-weight: 600; color: var(--ui-ink, #191f28); white-space: nowrap; }
.x-body .hb-card-kinds span { min-width: 0; color: var(--ui-ink-body, #333d4b); }

/* 회사 정보 */
.x-body .hb-foot { display: grid; gap: 12px; margin: 56px 0 0; padding: 20px 0 28px; border-top: 1px solid var(--ui-line-strong, #e5e8eb); font: 400 13px/1.6 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .hb-foot p { margin: 0; }
.x-body .hb-foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.x-body .hb-foot-links a { color: var(--ui-ink-2, #4e5968); font-weight: 600; text-decoration: none; }
.x-body .hb-foot-links a:hover { color: var(--ui-ink, #191f28); }
.x-body .hb-foot-links a.is-privacy { color: var(--ui-brand, #4c00ff); }
.x-body .hb-biz summary { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; list-style: none; cursor: pointer; }
.x-body .hb-biz summary::-webkit-details-marker { display: none; }
.x-body .hb-biz summary svg { transition: transform .16s ease; }
.x-body .hb-biz[open] summary svg { transform: rotate(180deg); }
.x-body .hb-biz dl { display: grid; gap: 4px; margin: 10px 0 0; font-size: 12px; }
.x-body .hb-biz dl div { display: flex; gap: 12px; }
.x-body .hb-biz dt { flex: none; min-width: 92px; color: var(--ui-ink-3, #8b95a1); }
.x-body .hb-biz dd { margin: 0; min-width: 0; color: var(--ui-ink-2, #4e5968); }

/* 아래 고정 [견적 한 번에 받기] */
.x-body .hb-bar { position: sticky; bottom: 0; z-index: 6; margin: 0 calc(var(--hb-pad) * -1); padding: 12px var(--hb-pad) calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); box-shadow: 0 -8px 24px rgba(0, 27, 55, .06); }
.x-body .hb-bar-in { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-width: 0; }
.x-body .hb-bar-sum { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .hb-bar-sum b { font-weight: 700; color: var(--ui-ink, #191f28); }
.x-body .ui-btn.hb-bar-btn { flex: none; min-width: 320px; }
.x-body .hb-n, .x-sheet .hb-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: #fff; color: var(--ui-brand, #4c00ff); font: 700 13px/1 var(--ui-font, inherit); }
@media (max-width: 760px) {
  .x-body .hb-bar-sum { display: none; }
  .x-body .ui-btn.hb-bar-btn { flex: 1; min-width: 0; }
}

/* 휴대폰 400 */
@media (max-width: 760px) {
  .x-body .hb-site { margin-bottom: 12px; }
  .x-body .hb-site-btn { font-size: 20px; }
  .x-body .hb-site-at { font-size: 14px; }
  .x-body .hb-ban { min-height: 0; aspect-ratio: 6 / 5; }
  .x-body .hb-ban-tx { flex-wrap: wrap; gap: 12px; padding: 0 20px 20px; }
  .x-body .hb-ban-h { font-size: 24px; }
  .x-body .ui-btn.hb-ban-btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .x-body .hb-paper { margin-top: 16px; font-size: 15px; gap: 8px; }
  .x-body .hb-tiles { gap: 10px; margin-top: 24px; }
  .x-body .hb-tile { gap: 8px; }
  .x-body .hb-tile-ph { border-radius: 16px; }
  .x-body .hb-tile-nm { margin: 0 -5px; max-width: calc(100% + 10px); font-size: 13px; font-weight: 600; }
  .x-body .hb-free { top: 5px; right: 5px; height: 20px; padding: 0 7px; font-size: 11px; }
  .x-body .hb-list { margin-top: 36px; }
  .x-body .hb-h2 { font-size: 20px; }
  .x-body .hb-card { padding: 16px; }
  .x-body .hb-card-nm { font-size: 17px; padding-top: 8px; }
  .x-body .ui-btn.hb-pick { min-width: 88px; }
  .x-body .hb-card-meta { font-size: 14px; }
  .x-body .hb-card-kinds li { font-size: 14px; }
}

/* 시트 안 */
.x-sheet .hb-sites { display: flex; flex-direction: column; gap: 8px; }
.x-sheet .hb-site-row { -webkit-appearance: none; appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; border: 0; border-radius: 16px; background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-ink, #191f28); text-align: left; cursor: pointer; }
.x-sheet .hb-site-row > svg:first-child { flex: none; color: var(--ui-brand, #4c00ff); }
.x-sheet .hb-site-row > svg:last-child { flex: none; color: var(--ui-brand, #4c00ff); }
.x-sheet .hb-site-tx { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.x-sheet .hb-site-tx b { font: 700 17px/1.4 var(--ui-font, inherit); }
.x-sheet .hb-site-tx span { font: 500 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-body, #333d4b); }
.x-sheet .ui-btn.hb-site-add { gap: 6px; }

.x-sheet .hb-rk { display: flex; flex-direction: column; }
.x-sheet .hb-rk-lab { display: block; margin: 8px 0 8px; font: 600 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-sheet .hb-rk-lab + .hb-rk-chips { margin-top: 0; }
.x-sheet .hb-rk-add { display: flex; gap: 8px; margin-bottom: 16px; }
.x-sheet .hb-rk-add .ui-input { flex: 1; min-width: 0; }
.x-sheet .ui-btn.hb-rk-addbtn { flex: none; min-height: var(--ui-h-field, 56px); min-width: 76px; border-radius: var(--ui-radius-field, 14px); }
.x-sheet .hb-rk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.x-sheet .hb-rk-chip > svg { width: 16px; height: 16px; flex: none; }

.x-sheet .hb-rq-for { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font: 600 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-sheet .hb-rq-for svg { color: var(--ui-brand, #4c00ff); }
.x-sheet .hb-rq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.x-sheet .hb-rq-row { -webkit-appearance: none; appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid var(--ui-line-strong, #e5e8eb); border-radius: 16px; background: #fff; color: var(--ui-ink, #191f28); text-align: left; cursor: pointer; }
.x-sheet .hb-rq-row[aria-pressed=true] { border-color: var(--ui-brand, #4c00ff); background: var(--ui-brand-tint, #f4f0ff); }
.x-sheet .hb-rq-ck { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ui-line-strong, #e5e8eb); color: #fff; }
.x-sheet .hb-rq-row[aria-pressed=true] .hb-rq-ck { border-color: var(--ui-brand, #4c00ff); background: var(--ui-brand, #4c00ff); }
.x-sheet .hb-rq-nm { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.x-sheet .hb-rq-nm b { min-width: 0; font: 700 16px/1.4 var(--ui-font, inherit); word-break: keep-all; overflow-wrap: anywhere; }
.x-sheet .hb-rq-nm .hb-tag { margin: 0; }
.x-sheet .hb-rq-at { flex: none; font: 500 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink-body, #333d4b); white-space: nowrap; }
.x-sheet .hb-rq-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.x-sheet .hb-rq-kinds .ui-chip[aria-pressed=true] { background: var(--ui-ink, #191f28); color: #fff; }
@media (max-width: 760px) {
  .x-sheet .hb-rq-kinds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 14px; padding: 0 20px 2px; }
  .x-sheet .hb-rq-kinds::-webkit-scrollbar { display: none; }
  .x-sheet .hb-rq-kinds .ui-chip { flex: none; }
}
@media (max-width: 359px) {
  .x-body .hb-ban-tx { flex-wrap: nowrap; gap: 8px; padding: 0 14px 16px; }
  .x-body .hb-ban-h { font-size: 20px; }
  .x-body .ui-btn.hb-ban-btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
}
