/* 비스토리 고객 페이지. 색·크기는 비스토리 가이드 레이아웃 v2.0 (흰 바탕, 파랑 #3E63EC, Pretendard).
   어두운 모드는 쓰지 않는다: 휴대폰이 어두운 모드여도 흰 바탕으로 보인다. */
:root {
  --bg: #FFFFFF; --card: #FFFFFF; --gray: #F4F4F4; --line: #E4E4E4; --line2: #EEEEEE;
  --ink: #111111; --ink2: #333333; --ink3: #666666; --ink4: #767676;
  --blue: #3E63EC; --blue-dk: #2A47B8; --blue-lt: #EEF2FD;
  --warn: #B45309; --warn-lt: #FEF3E2; --ok: #15803D; --ok-lt: #E8F5EC;
  --r: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink2); font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; font-size: 16px; line-height: 1.7; letter-spacing: -0.02em; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--blue); }
.wrap { width: min(720px, 100%); margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--line2); background: var(--bg); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.brand { font-weight: 800; letter-spacing: 0.08em; font-size: 15px; color: var(--ink); }
.top-sub { font-size: 13px; color: var(--ink4); }
main { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; padding-bottom: 12px; }
h1 { font-size: 28px; font-weight: 800; color: var(--ink); margin: 0; line-height: 1.3; letter-spacing: -0.04em; }
h2 { font-size: 19px; font-weight: 800; color: var(--ink); margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
.muted { color: var(--ink3); }
.small { font-size: 14px; margin-top: 10px; }
.state { color: var(--ink3); padding: 48px 0; text-align: center; }

/* 머리 */
.hero { padding: 0 2px 8px; }
.kinds { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.kind { font-size: 13px; font-weight: 700; color: var(--blue-dk); background: var(--blue-lt); border-radius: 999px; padding: 2px 11px; }
.dates { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }
.dates > div { display: flex; align-items: center; gap: 8px; }
.dl { font-size: 14px; color: var(--ink4); }
.dv { font-weight: 700; color: var(--ink); }
.dday { font-size: 13px; font-weight: 800; color: #FFFFFF; background: var(--blue); border-radius: 999px; padding: 1px 10px; }

/* 카드 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; scroll-margin-top: 16px; }
.card.center { text-align: center; padding: 40px 20px; }
.card.center h1 { font-size: 21px; margin-bottom: 8px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.count { font-size: 14px; color: var(--ink4); font-weight: 600; white-space: nowrap; }

/* 맨 위 확인할 것 (허브 프로젝트 보드 "확인할 것"과 같은 꼴, 고객 말로) */
.check { border: 1.5px solid var(--blue); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li + li { border-top: 1px solid var(--line2); }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; padding: 13px 0; text-decoration: none; color: inherit; }
a.check-row:hover .why, a.check-row:focus-visible .why { text-decoration: underline; }
.check-main { display: flex; align-items: baseline; gap: 2px 12px; flex-wrap: wrap; min-width: 0; }
.check-main strong { font-size: 16px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.why { font-size: 15px; font-weight: 600; color: var(--blue-dk); }
.why.wait { color: var(--warn); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 11px; white-space: nowrap; }
.tag.you { background: var(--blue-lt); color: var(--blue-dk); }
.tag.wait { background: var(--warn-lt); color: var(--warn); }
.tag.us { background: var(--gray); color: var(--ink3); }
.tag.date { background: #FFFFFF; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.check-note { margin-top: 10px; font-size: 14px; color: var(--ink3); background: var(--gray); border-radius: 12px; padding: 10px 14px; }

/* 진행 상황 */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 4px 0 16px; padding: 0; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; min-width: 0; }
.steps li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.past::before, .steps li.now::before { background: var(--blue); }
.dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: #FFFFFF; border: 2px solid var(--line); color: var(--ink4); position: relative; z-index: 1; }
.past .dot { background: var(--blue); border-color: var(--blue); }
.past .dot::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #FFFFFF; border-bottom: 2px solid #FFFFFF; transform: rotate(-45deg) translate(1px, -1px); }
.now .dot { background: var(--blue); border-color: var(--blue); color: #FFFFFF; box-shadow: 0 0 0 5px var(--blue-lt); }
.step-label { font-size: 14px; font-weight: 700; color: var(--ink4); }
.past .step-label, .now .step-label { color: var(--ink); }
.step-desc { font-size: 15px; color: var(--ink2); background: var(--blue-lt); border-radius: 12px; padding: 12px 14px; }
.step-desc strong { color: var(--blue-dk); }
.news { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line2); }
.news-label { font-size: 14px; font-weight: 700; color: var(--ink3); margin-bottom: 4px; }
.note { white-space: pre-wrap; color: var(--ink2); }
.when { font-size: 13px; color: var(--ink4); margin-top: 6px; }

/* 목록 */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.list li:last-child { border-bottom: 0; }
.item-text { flex: 1; min-width: 200px; color: var(--ink2); }
.due { font-size: 14px; font-weight: 700; color: var(--ink3); white-space: nowrap; }
.due.over { color: var(--warn); }
.pill { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 11px; white-space: nowrap; }
.st-recv { background: var(--warn-lt); color: var(--warn); }
.st-doing { background: var(--blue-lt); color: var(--blue-dk); }
.st-done { background: var(--ok-lt); color: var(--ok); }
.fold { margin-top: 8px; }
.fold > summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--blue); padding: 6px 0; }

/* 바로가기 */
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.link { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--gray); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 700; min-height: 56px; }
.link:hover, .link:focus-visible { background: var(--blue-lt); }
.link .arrow { color: var(--blue); font-weight: 800; font-size: 18px; }

.foot { padding-top: 14px; padding-bottom: 48px; font-size: 14px; color: var(--ink3); display: flex; flex-direction: column; gap: 4px; }

@media (max-width: 560px) {
  h1 { font-size: 24px; }
  .card { padding: 18px 16px; }
  .links { grid-template-columns: 1fr; }
  .dot { width: 28px; height: 28px; font-size: 13px; }
  .steps li::before { top: 13px; }
  .step-label { font-size: 12.5px; }
}
.preview-bar { margin: 0; background: var(--blue-lt); color: var(--blue-dk); font-size: 14px; font-weight: 700; text-align: center; padding: 8px 16px; }
/* 페이지별 진행 */
.pages { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line2); }
.pages-grid { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pg { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; border-radius: 10px; padding: 5px 12px; background: var(--gray); color: var(--ink3); }
.pg .pg-st { font-size: 12.5px; font-weight: 700; }
.pg.done { background: var(--ok-lt); color: var(--ok); }
.pg.doing { background: var(--blue-lt); color: var(--blue-dk); }
/* 영상 (0084): 썸네일을 누르면 그 자리에서 재생 */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.video { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #FFFFFF; }
.thumb { display: grid; place-items: center; position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; margin: 0; background: var(--gray); cursor: pointer; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .play { position: relative; width: 54px; height: 54px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.18); }
.thumb .play::after { content: ""; border-left: 17px solid #FFFFFF; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.thumb:hover .play, .thumb:focus-visible .play { background: var(--blue-dk); }
.thumb.playing { cursor: default; }
.thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.video-body strong { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.45; }
.video-body span { font-size: 13px; color: var(--ink4); }
@media (max-width: 560px) { .videos { grid-template-columns: 1fr; } }
/* 궁금하신 것 (0085) */
.faq-item { border-bottom: 1px solid var(--line2); }
.faq-item:last-of-type { border-bottom: 0; }
.faq-item summary { list-style: none; cursor: pointer; padding: 14px 32px 14px 0; font-weight: 700; color: var(--ink); position: relative; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "↓"; position: absolute; right: 4px; top: 14px; color: var(--blue); font-weight: 800; }
.faq-item[open] summary::after { content: "↑"; }
.faq-item .ans { padding: 0 0 16px; }
.mine { font-size: 12px; font-weight: 800; color: var(--blue-dk); background: var(--blue-lt); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }

/* ---------- 고객 허브 (PROJECT_HUB_PLAN.md) ---------- */
/* 비밀번호 화면 */
.gate { min-height: 60vh; display: grid; place-items: center; padding: 24px 0; }
.gate-card { width: min(400px, 100%); background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 32px 26px 26px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.gate-card h1 { font-size: 24px; margin-top: 12px; }
.gate-sub { font-size: 15px; color: var(--ink3); }
.pin-input { margin-top: 18px; width: 100%; height: 58px; border: 1.5px solid var(--line); border-radius: 12px; text-align: center; font: inherit; font-size: 26px; font-weight: 800; letter-spacing: 0.5em; padding-left: 0.5em; color: var(--ink); background: #FFFFFF; }
.pin-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-lt); }
.pin-input::placeholder { color: #D0D0D0; }
.gate-err { min-height: 22px; font-size: 14px; font-weight: 600; color: var(--warn); text-align: left; }
.btn-main { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border: 0; border-radius: 12px; background: var(--blue); color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.btn-main:hover { background: var(--blue-dk); }
.btn-main:disabled { opacity: 0.6; cursor: default; }
.gate-help { margin-top: 12px; font-size: 14px; color: var(--ink3); }
.gate-help a { font-weight: 700; }

/* 단계 막대 8칸 */
.steps8 { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; margin: 0; padding: 0; }
.steps8 li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; min-width: 0; }
.steps8 li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.steps8 li:first-child::before { display: none; }
.steps8 li.past::before, .steps8 li.now::before { background: var(--blue); }
.steps8 .dot { width: 28px; height: 28px; font-size: 12.5px; }
.steps8 .past .dot::after { width: 9px; height: 5px; }
.steps8 .step-label { font-size: 13px; }

/* 확인할 것 오른쪽 버튼 */
.check-main { min-width: 0; flex: 1 1 260px; }
.check-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.act { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--blue); color: var(--blue); background: #FFFFFF; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.act:hover, .act:focus-visible { background: var(--blue-lt); }
.act.primary { background: var(--blue); color: #FFFFFF; }
.act.primary:hover, .act.primary:focus-visible { background: var(--blue-dk); }

/* 지금 단계 카드 */
.now-card { background: var(--blue-lt); border-radius: var(--r); padding: 22px; }
.now-card .eyebrow { font-size: 13px; font-weight: 800; color: var(--blue-dk); }
.now-card h2 { font-size: 21px; margin-top: 4px; }
.now-desc { font-size: 15px; color: var(--ink2); margin-top: 4px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.tile { display: flex; flex-direction: column; gap: 4px; background: #FFFFFF; border-radius: 14px; padding: 16px; text-decoration: none; color: var(--ink2); border: 1px solid transparent; position: relative; min-width: 0; }
.tile:hover, .tile:focus-visible { border-color: var(--blue); }
.tile strong { font-size: 16px; font-weight: 800; color: var(--ink); padding-right: 18px; }
.tile span { font-size: 13.5px; color: var(--ink3); }
.tile .go { position: absolute; right: 14px; top: 14px; color: var(--blue); font-weight: 800; }

/* 자료함 */
.group { border-top: 1px solid var(--line2); }
.group:first-of-type { border-top: 0; }
.group summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-weight: 800; color: var(--ink); }
.group summary::-webkit-details-marker { display: none; }
.group summary .n { font-size: 14px; font-weight: 600; color: var(--ink4); }
.group summary .arrow { color: var(--blue); margin-left: 8px; display: inline-block; }
.group[open] summary .arrow { transform: rotate(180deg); }
.now-pill { font-size: 12px; font-weight: 800; color: #FFFFFF; background: var(--blue); border-radius: 999px; padding: 1px 9px; margin-left: 8px; }
.items { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: inherit; min-width: 0; height: 100%; }
.item:hover, .item:focus-visible { border-color: var(--blue); }
.kind-tag { font-size: 12px; font-weight: 800; color: var(--blue-dk); background: var(--blue-lt); border-radius: 8px; padding: 2px 8px; white-space: nowrap; }
.kind-tag.doc { color: var(--ink3); background: var(--gray); }
.item-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.item-body strong { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.item-body span { font-size: 13px; color: var(--ink4); }
.item .go { color: var(--blue); font-weight: 800; }
.new-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); display: inline-block; margin-left: 6px; vertical-align: 2px; }
.lock { font-size: 13px; color: var(--ink3); background: var(--gray); border-radius: 12px; padding: 10px 14px; margin-top: 4px; }
.btn-kakao { align-self: flex-start; display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 12px; background: var(--blue); color: #FFFFFF; font-weight: 800; text-decoration: none; margin: 4px 0; }
.btn-kakao:hover { background: var(--blue-dk); }

@media (max-width: 600px) {
  .tiles, .items { grid-template-columns: 1fr; }
  .now-card { padding: 18px 16px; }
  .steps8 .step-label { font-size: 10.5px; }
  .steps8 li:not(.now):not(.near) .step-label { visibility: hidden; }
  .check-act { width: 100%; justify-content: flex-start; }
  .check-act .act { flex: 1; }
}
