/* 견적 진단 흐름 시안 */
.quote-page #app{padding-bottom:0;display:flex;flex-direction:column;min-height:100dvh}
.q-top{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;padding:8px 12px 0}
.q-back,.q-close{width:44px;height:44px;display:grid;place-items:center;font-size:28px;color:var(--ink);text-decoration:none}
.q-close{font-size:17px;color:var(--muted)}
.q-back[hidden]{visibility:hidden;display:grid}
.q-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.q-progress i{height:4px;border-radius:4px;background:var(--line);overflow:hidden;position:relative}
.q-progress i:after{content:'';position:absolute;inset:0;background:var(--brand);transform:scaleX(0);transform-origin:left;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.q-progress i.on:after{transform:scaleX(1)}
.q-progress.done{visibility:hidden}

#view{flex:1;display:flex;flex-direction:column;padding:26px 24px calc(24px + env(safe-area-inset-bottom))}
.q-step{font-size:13px;font-weight:600;color:var(--brand);margin-bottom:10px}
#view h1{font-size:28px;line-height:1.32;letter-spacing:-.035em}
.q-lead{margin-top:12px;font-size:16px;line-height:1.6;color:var(--body)}
.q-body{margin-top:28px;display:grid;gap:14px}
.q-actions{margin-top:auto;padding-top:28px;display:grid;gap:10px}
.q-actions .btn{min-height:58px}
.q-actions .btn[aria-disabled=true]{background:#E4E5EB;color:var(--muted)}
.q-actions .btn[aria-busy=true]{opacity:.7}
.q-note{font-size:13px;line-height:1.6;color:var(--muted);text-align:center}
.q-demo{font-size:12px;line-height:1.55;color:var(--muted);background:var(--sand);border-radius:12px;padding:10px 12px}

.tips{display:grid;gap:2px}
.tip{display:grid;grid-template-columns:40px 1fr;gap:12px;align-items:center;padding:12px 0}
.tip i{width:40px;height:40px;border-radius:14px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center}
.tip svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tip b{display:block;font-size:16px;letter-spacing:-.02em}
.tip span{display:block;margin-top:2px;font-size:14px;color:var(--body)}

.file{border-radius:20px;background:var(--sand);padding:12px}
.file-thumb{display:block;width:100%;border-radius:12px;background:#fff;overflow:hidden}
.file-thumb img{display:block;width:100%;max-height:300px;object-fit:contain;background:#fff}
.file-doc{display:grid;grid-template-columns:40px 1fr;gap:12px;align-items:center;background:#fff;border-radius:12px;padding:16px}
.file-doc i{width:40px;height:40px;border-radius:12px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-style:normal;font-size:11px;font-weight:800}
.file-doc b{display:block;font-size:15px;overflow-wrap:anywhere}
.file-doc span{display:block;margin-top:2px;font-size:13px;color:var(--muted)}
.file-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 4px 0}
.file-row small{font-size:13px;color:var(--body);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-row div{display:flex;gap:4px;flex-shrink:0}
.file-row button{min-height:40px;padding:0 12px;border-radius:10px;font-size:14px;font-weight:600;color:var(--body)}
.add-more{min-height:54px;border-radius:16px;box-shadow:inset 0 0 0 1.5px #D6D9E3;font-size:15px;font-weight:600}

/* 읽기 장면 */
.read-doc{position:relative;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px var(--line)}
.read-doc img{display:block;width:100%}
.hl{position:absolute;left:3%;width:52%;border-radius:4px;background:color-mix(in srgb,var(--brand) 22%,transparent);box-shadow:0 0 0 1.5px var(--brand);opacity:0;transform:scaleX(.2);transform-origin:left;transition:opacity .3s,transform .5s cubic-bezier(.16,1,.3,1)}
.hl.on{opacity:1;transform:none}
.beam{position:absolute;left:0;right:0;top:0;height:18%;background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--brand) 20%,transparent));border-bottom:2px solid var(--brand);transform:translateY(-110%);pointer-events:none}
.read-doc.scanning .beam{animation:beam 2.6s cubic-bezier(.4,0,.2,1) forwards}
@keyframes beam{to{transform:translateY(560%)}}
.found{display:grid;gap:0;background:var(--sand);border-radius:20px;padding:6px 16px}
.found li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:13px 0;border-bottom:1px solid #E6E4DD;opacity:0;transform:translateY(10px);transition:opacity .35s,transform .5s cubic-bezier(.16,1,.3,1)}
.found li:last-child{border-bottom:0}
.found li.on{opacity:1;transform:none}
.found span{font-size:14px;color:var(--body)}
.found b{font-size:17px;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.read-tag{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--brand);background:var(--brand-soft);padding:6px 10px;border-radius:99px;justify-self:start}

.agree{display:flex;gap:12px;align-items:flex-start;padding:16px;border-radius:18px;box-shadow:inset 0 0 0 1.5px var(--line);cursor:pointer}
.agree input{width:24px;height:24px;accent-color:var(--brand);margin:0;flex-shrink:0}
.agree b{display:block;font-size:16px}
.agree span{display:block;margin-top:3px;font-size:13px;color:var(--muted)}
.agree:has(input:checked){box-shadow:inset 0 0 0 2px var(--brand);background:var(--brand-soft)}
.summary{background:var(--sand);border-radius:18px;padding:16px;display:grid;grid-template-columns:56px 1fr;gap:12px;align-items:center}
.summary img{width:56px;height:56px;object-fit:cover;border-radius:10px;background:#fff}
.summary .doc{width:56px;height:56px;border-radius:10px;background:#fff;display:grid;place-items:center;font-size:11px;font-weight:800;color:var(--brand)}
.summary b{display:block;font-size:15px}
.summary span{display:block;margin-top:2px;font-size:13px;color:var(--body)}

.done-mark{width:76px;height:76px;border-radius:50%;background:var(--brand);display:grid;place-items:center;margin:8px 0 22px}
.done-mark svg{width:36px;height:36px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:30;stroke-dashoffset:30}
.timeline{display:grid;gap:18px;position:relative;margin-top:4px}
.timeline:before{content:'';position:absolute;left:11px;top:12px;bottom:12px;width:2px;background:var(--line)}
.timeline li{display:grid;grid-template-columns:24px 1fr;gap:14px;position:relative}
.timeline i{width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 2px var(--line);z-index:1}
.timeline li.now i{background:var(--brand);box-shadow:0 0 0 5px var(--brand-soft)}
.timeline b{display:block;font-size:15px}
.timeline span{display:block;margin-top:2px;font-size:13px;color:var(--body)}
.req-id{font-size:13px;color:var(--muted);margin-top:14px}

.zoom{border:0;padding:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;background:#101322}
.zoom[open]{display:flex;flex-direction:column}
.zoom::backdrop{background:#101322}
#zoom-close{align-self:flex-end;color:#fff;min-height:48px;padding:0 20px;font-size:15px}
.zoom-body{flex:1;overflow:auto;display:flex;align-items:center;touch-action:pinch-zoom pan-x pan-y}
.zoom-body img{width:100%;background:#fff}
#toast{position:fixed;left:50%;bottom:calc(150px + env(safe-area-inset-bottom));transform:translate(-50%,20px);background:var(--ink);color:#fff;font-size:14px;padding:12px 18px;border-radius:14px;opacity:0;pointer-events:none;z-index:50;transition:opacity .25s,transform .35s cubic-bezier(.3,1.5,.5,1);max-width:86vw;text-align:center}
#toast.show{opacity:1;transform:translate(-50%,0)}

@media(prefers-reduced-motion:no-preference){
  #view>*{animation:rise .6s cubic-bezier(.16,1,.3,1) both}
  #view>*:nth-child(2){animation-delay:.05s}
  #view>*:nth-child(3){animation-delay:.1s}
  #view>*:nth-child(4){animation-delay:.16s}
  #view>*:nth-child(5){animation-delay:.22s}
  .file{animation:pop .5s cubic-bezier(.3,1.4,.5,1) both}
  .done-mark{animation:pop .7s cubic-bezier(.3,1.7,.5,1) both}
  .done-mark svg{animation:draw .5s ease .45s forwards}
}
@media(prefers-reduced-motion:reduce){.done-mark svg{stroke-dashoffset:0}.hl,.found li{transition:none}}
@keyframes draw{to{stroke-dashoffset:0}}

/* 이용 안내(처음 한 번). 건너뛸 수 있다. */
.q-skip{display:none;justify-self:end;min-height:44px;padding:0 6px;font-size:14px;font-weight:600;color:var(--muted);white-space:nowrap}
.intro-on .q-skip{display:block}
.intro-on .q-close,.intro-on .q-progress{display:none}
.intro-on .q-top{grid-template-columns:44px 1fr auto}
.intro-on #view{padding-left:0;padding-right:0;padding-top:8px}
.intro{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;flex:1}
.intro::-webkit-scrollbar{display:none}
.slide{flex:0 0 100%;scroll-snap-align:center;scroll-snap-stop:always;padding:0 24px;display:flex;flex-direction:column}
.slide .art{height:270px;display:grid;place-items:center;margin-bottom:26px;background:var(--sand);border-radius:28px;padding:22px}
.dots{display:flex;justify-content:center;gap:6px;padding-top:18px}
.dots i{width:6px;height:6px;border-radius:6px;background:#D6D9E3;transition:width .3s,background-color .3s}
.dots i.on{width:20px;background:var(--brand)}
.intro-on .q-actions{padding:20px 24px 0;margin-top:0}
.art-doc{position:relative;width:200px;transform:rotate(-3deg);border-radius:10px;background:#fff;box-shadow:0 14px 34px rgba(16,19,34,.16);padding:8px}
.art-doc img{display:block;width:100%;border-radius:4px}
.art-chip{position:absolute;right:-22px;top:-12px;background:var(--brand);color:#fff;font-size:13px;font-weight:700;padding:7px 12px;border-radius:99px;transform:rotate(6deg)}
.art-rows{width:100%;background:#fff;border-radius:18px;padding:4px 16px}
.art-rows li{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid var(--line);font-size:15px;font-weight:600}
.art-rows li:last-child{border-bottom:0}
.art-gets{width:100%;display:grid;gap:10px}
.art-gets li{display:grid;grid-template-columns:28px 1fr;gap:12px;align-items:center;background:#fff;border-radius:16px;padding:13px 14px}
.art-gets i{width:28px;height:28px;border-radius:50%;background:var(--brand);color:#fff;font-style:normal;font-size:13px;font-weight:700;display:grid;place-items:center}
.art-gets b{display:block;font-size:15px}
.art-gets span{display:block;margin-top:1px;font-size:12.5px;line-height:1.45;color:var(--body)}
@media(max-height:700px){.slide .art{height:210px;margin-bottom:18px}.art-doc{width:150px}}
@media(prefers-reduced-motion:no-preference){
  .intro-on #view>*{animation:none}
  .slide .art>*{animation:pop .7s cubic-bezier(.3,1.4,.5,1) both}
  .art-rows li,.art-gets li{animation:rise .5s cubic-bezier(.16,1,.3,1) both}
  .art-rows li:nth-child(2),.art-gets li:nth-child(2){animation-delay:.12s}
  .art-rows li:nth-child(3),.art-gets li:nth-child(3){animation-delay:.24s}
  .art-rows li:nth-child(4){animation-delay:.36s}
}

/* AI가 읽은 목록: 값 옆에 읽었는지, 자료에 없는지만 적는다. 판단은 붙이지 않는다 */
.found li{align-items:center}
.found li div{display:grid;gap:1px}
.found span{font-size:12.5px}
.found b.none{font-size:14px;font-weight:500;color:var(--muted)}
.found em{font-style:normal;flex-shrink:0}
@media(prefers-reduced-motion:no-preference){.found li.on em{animation:pop .5s cubic-bezier(.3,1.8,.5,1) .15s both}}

.read-ok{flex-shrink:0;width:26px;height:26px;border-radius:50%;background:#fff;display:grid;place-items:center}
.read-ok svg{width:15px;height:15px;fill:none;stroke:var(--brand);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.read-sum{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:2px 12px;margin-top:10px;padding:14px 16px;border-radius:18px;background:var(--ink);color:#fff;opacity:0;transform:translateY(10px);transition:opacity .4s,transform .5s cubic-bezier(.16,1,.3,1)}
.read-sum.on{opacity:1;transform:none}
.read-sum span{font-size:13px;opacity:.8}
.read-sum b{font-size:18px;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.read-sum small{grid-column:1/-1;font-size:11.5px;opacity:.6}
.q-note.left{text-align:left;margin-top:14px}
.q-actions.stick{position:sticky;bottom:0;margin:10px -24px 0;padding:22px 24px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(rgba(255,255,255,0),#fff 30%);z-index:5}
.timeline li.past i{background:var(--brand);box-shadow:none}
.q-body.timeline{margin-top:26px}
@media(prefers-reduced-motion:reduce){.read-sum{transition:none}}
.agreed-line{margin-top:12px;font-size:13px;line-height:1.6;color:var(--muted)}
.intro-one #skip{display:none}
.art-gets li div b:only-child{font-size:16px}
.dots[hidden]{display:none}
