/* 아옴 거품안: 같은 주소 구역. 실제 HTML이 컨테이너 쿼리로 다시 놓인다. scenes.css 바로 뒤에 읽는다. */

/* ---------- 5. 같은 주소: 실제 HTML이 부풀어 오른다 ---------- */
.web { z-index: 5; background: var(--pale); }
.web-stage { background: var(--pale); }
.web-head p { margin-top: 10px; color: var(--ink-2); font-size: var(--t-body); font-weight: 600; line-height: 1.5; }
.vs-wrap { display: flex; flex-direction: column; }
.dim { flex: none; display: flex; align-items: center; gap: 10px; height: 36px; color: var(--ink); }
.dim i { flex: 1; height: 2px; background: var(--field); position: relative; }
.dim i::before { content: ""; position: absolute; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--field); }
.dim i:first-child::before { left: 0; }
.dim i:last-child::before { right: 0; }
.dim output { font-size: var(--t-ui); font-weight: 800; line-height: 1.5; white-space: nowrap; }
.readout, .web-side, .web-notes { display: none; }

/* 업체 화면. 폭이 바뀌면 컨테이너 쿼리로 스스로 다시 놓인다 */
.vs { flex: 1; min-height: 0; container: vs / inline-size; background: #fff; color: var(--ink); border-radius: var(--r2) var(--r2) 0 0; overflow: hidden; box-shadow: 0 24px 60px rgba(11, 27, 58, .12); }
.vs-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "nav" "kpi" "new" "week" "hire";
  align-content: start;
}
.vs-grid > * { background: #fff; }
.vs-head { grid-area: head; display: flex; align-items: center; gap: 14px; padding: 14px 22px 8px; }
.vs-logo { display: block; line-height: 0; }
.vs-logo .logo-mark { width: 60px; height: 32px; }
.vs-who { display: flex; flex-direction: column; min-width: 0; }
.vs-who h3 { font-size: var(--t-ui); font-weight: 800; line-height: 1.4; letter-spacing: -.015em; white-space: nowrap; }
.vs-who span { font-size: var(--t-note); font-weight: 600; color: var(--ink-2); line-height: 1.4; white-space: nowrap; }
.vs-nav { grid-area: nav; display: flex; gap: 6px; padding: 2px 16px 8px; }
.vs-nav button { display: block; min-width: 44px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font-size: var(--t-ui); font-weight: 700; line-height: 1.5; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.vs-nav li { position: relative; }
.vs-nav li.on button { background: var(--ink); color: #fff; font-weight: 800; }
.vs-kpi { grid-area: kpi; display: none; }
.vs-kpi div { display: flex; align-items: center; gap: 12px; padding: 10px 20px; }
.vs-kpi span { font-size: var(--t-ui); font-weight: 600; color: var(--ink-2); line-height: 1.4; white-space: nowrap; }
.vs-kpi b { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--pale); box-shadow: inset 0 0 0 2px var(--sky); font-size: var(--t-h3); font-weight: 900; line-height: 1; }
.vs section { padding: 14px 22px; min-width: 0; }
.vs h4 { display: flex; align-items: center; gap: 6px; font-size: var(--t-body); font-weight: 900; letter-spacing: -.03em; line-height: 1.4; margin-bottom: 8px; }
.vs-tag, .l-short { display: none; }
.vs-new { grid-area: new; }
.vs-detail { grid-area: detail; display: none; }
.vs-week { grid-area: week; }
.vs-hire { grid-area: hire; }
.req { display: grid; gap: 0; padding: 10px 18px; margin-bottom: 8px; border-radius: 28px; background: var(--mist); }
.req.on { background: var(--pale); box-shadow: inset 0 0 0 2px var(--sky-deep); }
.req b { font-size: var(--t-body); font-weight: 800; line-height: 1.4; }
.req > span { font-size: var(--t-ui); font-weight: 500; color: var(--ink-2); line-height: 1.45; }
.req .req-foot { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-top: 2px; }
.req-seat { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: var(--t-ui); font-weight: 700; white-space: nowrap; }
.req .dots u { width: 12px; height: 12px; }
.req-cal { font-size: var(--t-note); font-weight: 700; line-height: 1.5; color: var(--ink-2); white-space: nowrap; }
.req-cal.is-free { color: var(--ink); font-weight: 900; }
.vs-detail dl > div { padding: 6px 0; }
.vs-detail dl > div:first-child { padding-top: 0; }
.vs-detail dt { font-size: var(--t-note); font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.vs-detail dd { font-size: var(--t-ui); font-weight: 800; line-height: 1.5; }
.vs-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 10px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: var(--t-ui); font-weight: 800; cursor: pointer; }
.vs-week li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 4px 0; font-size: var(--t-ui); line-height: 1.5; }
.vs-week b { font-weight: 900; }
.vs-hire p { display: grid; gap: 0; font-size: var(--t-ui); line-height: 1.5; }
.vs-hire b { font-weight: 800; }
.vs-hire span { color: var(--ink-2); }

@container vs (min-width: 600px) {
  .vs-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas: "head head" "nav nav" "kpi kpi" "new week" "new hire";
  }
  .vs-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vs-week { background: var(--mist); border-radius: 32px 32px 0 0; }
  .vs-hire { background: var(--mist); }
}
@container vs (min-width: 980px) {
  .vs-grid {
    grid-template-columns: 172px minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .9fr);
    grid-template-rows: auto auto auto minmax(0, 1fr);
    grid-template-areas:
      "head head head head"
      "nav kpi kpi kpi"
      "nav new detail week"
      "nav new detail hire";
    height: 100%;
  }
  .vs-head { padding: 12px 26px; }
  .vs-nav { flex-direction: column; gap: 4px; padding: 10px 12px; }
  .vs-nav button { width: 100%; text-align: left; padding: 0 16px; }
  .vs-kpi div { padding: 4px 20px; }
  .vs section { padding: 12px 22px; }
  .vs-detail { display: block; }
  .vs-week, .vs-hire { border-radius: 0; }
}

@media (min-width: 900px) and (min-aspect-ratio: 4/5) {
  .motion .web { height: calc(var(--vh) * 340); margin-top: calc(var(--vh) * -100); background: transparent; }
  .motion .web-stage { border-radius: 50% 50% 0 0 / var(--dome) var(--dome) 0 0; }
  .web-inner { padding: calc(var(--dome) + 12px) var(--gutter) 0; }
  .motion .web-inner { height: 100%; display: flex; flex-direction: column; }
  .motion .vs-bay { flex: 1; min-height: 0; position: relative; margin-top: 6px; }
  .motion .vs-wrap { position: absolute; left: 0; top: 0; bottom: 0; width: 390px; }
}
@media (min-width: 900px) and (min-aspect-ratio: 4/5), (min-width: 600px) and (max-aspect-ratio: 4/5) {
  /* 넓어지는 화면 옆 설명: 화면에 밀려 가다 자리가 모자라기 전에 사라진다 */
  .motion .web-side {
    display: block; position: absolute; left: 0; top: 36px; width: min(480px, calc(100% - 448px));
    padding-top: 24px; will-change: transform; transition: opacity .2s, visibility 0s;
  }
  .motion .web-side.is-gone { visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s .2s; }
  .web-steps { display: grid; gap: 22px; }
  .web-steps li { display: grid; gap: 2px; padding: 14px 28px; border-radius: 36px; }
  .web-steps b { font-size: var(--t-h3); font-weight: 800; line-height: 1.3; color: var(--ink-2); }
  .web-steps span { font-size: var(--t-body); font-weight: 600; line-height: 1.5; color: var(--ink-2); }
  .web-steps li.is-on { background: #fff; }
  .web-steps li.is-on b { font-weight: 900; color: var(--ink); }
  .web-steps li.is-on span { color: var(--ink); }
  .web-hint { margin-top: 20px; padding-left: 28px; font-size: var(--t-ui); font-weight: 700; color: var(--ink-2); line-height: 1.6; }
}

@media (max-width: 899.98px), (max-aspect-ratio: 4/5) {
  .web-inner { padding: 18px 0 0; }
  .web-head { padding: 0 var(--gutter); }
  .web-head p { margin-top: 6px; font-size: var(--t-ui); }
  .dim { display: none; }
  .motion .web { height: calc(var(--vh) * 230); }
  .motion .web-inner { height: 100%; display: flex; flex-direction: column; padding-bottom: calc(var(--dock-h) + var(--vh-gap)); }
  .motion .vs-bay { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 6px; }
  .motion .readout { flex: none; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 var(--gutter); }
  .readout b { font-size: var(--t-ui); font-weight: 600; color: var(--ink-2); line-height: 1.5; white-space: nowrap; }
  .readout b.is-on { font-weight: 900; color: var(--ink); }
  .readout i { flex: 1; height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; }
  .readout u { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
  .motion .vs-wrap { flex: 1; min-height: 0; }
  .motion .vs { border-radius: var(--r2) var(--r2) 0 0; }

  /* 폰 폭 화면에서 보이는 양을 높이에 맞춘다. 아래가 잘린 줄이 남지 않게 한다 */
  .vs-week, .vs-hire, .vs-new .req:nth-of-type(3) { display: none; }
  /* 폰에서 PC 배치 보기: 글자는 실제 14px 이상, 내용만 줄인다 */
  .vs.is-wide .vs-grid {
    grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head head head" "nav new detail" "nav week week";
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
  }
  .vs.is-wide .vs-head { padding: 8px 12px; }
  .vs.is-wide .logo-mark { width: 44px; height: 24px; }
  .vs.is-wide .vs-who h3 { font-size: var(--t-note); }
  .vs.is-wide .vs-who span { display: none; }
  .vs.is-wide .vs-nav { flex-direction: column; gap: 2px; padding: 8px 6px; background: var(--mist); }
  .vs.is-wide .vs-nav button { width: 100%; min-height: 44px; padding: 0 6px; text-align: left; font-size: var(--t-note); }
  .vs.is-wide .l-long, .vs.is-wide .d-more, .vs.is-wide .req > span { display: none; }
  .vs.is-wide .l-short { display: inline; }
  .vs.is-wide .vs-btn { min-height: 44px; margin-top: 6px; font-size: var(--t-note); }
  .vs.is-wide .vs-tag {
    display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%;
    background: var(--ink); color: #fff; font-size: var(--t-note); font-weight: 700; line-height: 1;
  }
  .vs.is-wide .vs-nav .vs-tag { position: absolute; right: -6px; top: -10px; z-index: 1; box-shadow: 0 0 0 2px #fff; }
  .vs.is-wide section { padding: 8px 10px; }
  .vs.is-wide h4 { font-size: var(--t-ui); margin-bottom: 4px; }
  .vs.is-wide .vs-new { display: block; }
  .vs.is-wide .req { padding: 3px 8px; margin-bottom: 4px; border-radius: 14px; }
  .vs.is-wide .req b { font-size: var(--t-note); font-weight: 700; line-height: 1.4; }
  .vs.is-wide .vs-detail { display: block; }
  .vs.is-wide .vs-detail dl > div { padding: 3px 0; }
  .vs.is-wide .vs-detail dd { font-size: var(--t-note); line-height: 1.4; }
  .vs.is-wide .vs-week { display: block; background: var(--mist); }
  .vs.is-wide .vs-week ul { display: flex; gap: 12px; }
  .vs.is-wide .vs-week li { display: flex; gap: 4px; padding: 0; font-size: var(--t-note); line-height: 1.4; white-space: nowrap; }
  .vs.is-wide .vs-week li.d-more { display: none; }
  .vs.is-wide .vs-hire, .vs.is-wide .vs-kpi { display: none; }
  .motion .web-notes { flex: none; display: none; padding: 8px var(--gutter) 4px; }
  .motion .vs-bay.is-wide .web-notes { display: grid; gap: 4px; }
  .motion .vs-bay.is-wide .vs-wrap { flex: 0 1 auto; }
  .motion .vs-bay.is-wide .vs { border-radius: var(--r2); }
  .motion .vs-bay.is-wide { padding-bottom: 8px; }
  .web-notes li { display: flex; align-items: center; gap: 8px; font-size: var(--t-ui); line-height: 1.5; font-weight: 700; }
  .web-notes .vs-tag { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: var(--t-note); font-weight: 700; line-height: 1; }
}
@media (max-height: 700px) and (max-aspect-ratio: 4/5) {
  .vs.is-wide .vs-btn { display: none; }
}
@media (max-width: 599.98px) and (max-height: 630px) {
  .vs.is-wide .vs-week, .web-notes li:nth-child(3) { display: none; }
}
/* 높이가 넉넉한 폰은 더 보여 준다 */
@media (min-height: 760px) and (max-aspect-ratio: 4/5), (min-height: 760px) and (max-width: 899.98px) {
  .vs-new .req:nth-of-type(3) { display: grid; }
  .vs.is-wide .req:nth-of-type(3) { display: grid; }
}
/* 낮은 PC: 아래가 잘린 줄이 남지 않게 보이는 양을 줄인다 */
@media (min-width: 900px) and (min-aspect-ratio: 4/5) and (max-height: 760px) {
  .vs-hire, .vs-new .req:nth-of-type(3), .vs-detail dl > .d-more:last-child { display: none; }
  .web-head p { margin-top: 4px; }
  .vs section { padding-top: 8px; padding-bottom: 8px; }
}
@media (min-width: 900px) and (min-aspect-ratio: 4/5) and (max-height: 640px) {
  .vs-detail .d-more { display: none; }
  .vs-kpi { display: none !important; }
}
/* 세로 태블릿: PC처럼 왼쪽에서 넓어진다 */
@media (min-width: 600px) and (max-aspect-ratio: 4/5) {
  .motion .web { height: calc(var(--vh) * 260); }
  .motion .readout, .motion .vs-bay.is-wide .web-notes { display: none; }
  .dim { display: flex; }
  .motion .vs-bay { position: relative; margin: 12px var(--gutter) 0; display: block; }
  .motion .vs-wrap { position: absolute; left: 0; top: 0; bottom: auto; max-height: 100%; width: 390px; display: flex; }
  .motion .vs { border-radius: var(--r2); }
  .vs-week { display: block; }
  .vs-week .d-more { display: grid; }
  .vs-hire { display: block; }
  .vs-new .req:nth-of-type(3) { display: grid; }
}
