/* ============================================================
   홈 첫 화면 — 카볼트 AI 채팅창 (index.html #ask · 스크립트 = ask.js · 서버 = worker/ask.js)
   답 한 건 = 핵심 값 하나(크게) + 그림 하나 + 보조 값 칸 + 문장.
   그림 색 = 티일 한 색. 글자는 잉크 · 회색만(값에 색을 입히지 않는다).
   ● 주황 = 이력서의 「눈여겨볼 값」 — 점 · 막대에만 쓰고 늘 글자(「눈여겨볼 값」 · 미완료 등)와 같이 둔다.
   ============================================================ */
.ask-hero{padding:calc(74px + 54px) 0 88px}
.ask-hero::before{mask-image:radial-gradient(ellipse 80% 70% at 50% 30%,#000 30%,transparent 78%);-webkit-mask-image:radial-gradient(ellipse 80% 70% at 50% 30%,#000 30%,transparent 78%)}
.ask-wrap{position:relative;z-index:2;max-width:820px;margin:0 auto;text-align:center}
.ask-hero h1{margin-top:20px;font-size:clamp(30px,5vw,54px)}
.ask-hero .hero-lead{max-width:none;margin:20px auto 0}

/* ---------- 채팅 상자 ---------- */
.askbox{margin-top:34px;text-align:left;background:#fff;border:1px solid var(--gray-200);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);overflow:hidden}
.ask-bar{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 20px;border-bottom:1px solid var(--gray-200);font-size:13px;color:var(--gray-500)}
.ask-live{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--ink);white-space:nowrap}
.ask-live i{width:8px;height:8px;border-radius:50%;background:var(--teal);animation:ask-pulse 2.4s ease-out infinite}
@keyframes ask-pulse{0%{box-shadow:0 0 0 0 rgba(16,168,147,.45)}70%,100%{box-shadow:0 0 0 7px rgba(16,168,147,0)}}
.ask-car{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 시연 차 고르기 — 전기차 · 내연기관차 */
.ask-seg{display:inline-flex;flex:none;padding:3px;border-radius:9px;background:var(--gray-100)}
.ask-seg button{height:26px;padding:0 11px;border:0;border-radius:7px;background:transparent;font:inherit;font-size:12.5px;font-weight:700;color:var(--gray-600);cursor:pointer;white-space:nowrap}
.ask-seg button[aria-pressed="true"]{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(20,24,27,.12)}
.ask-seg button:focus-visible{outline:2px solid var(--teal);outline-offset:1px}
.ask-seg button:disabled{cursor:default}
/* 바 오른쪽 버튼 — 내 질문(회원) · 새 대화. 보이는 첫 버튼이 오른쪽 끝으로 민다 */
.ask-tool,.ask-new{margin-left:auto;height:30px;padding:0 12px;border:1px solid var(--gray-200);border-radius:8px;background:#fff;font:inherit;font-size:12.5px;font-weight:700;color:var(--gray-600);cursor:pointer;white-space:nowrap}
.ask-tool:not([hidden])~.ask-tool{margin-left:0}
.ask-tool:hover,.ask-new:hover{border-color:var(--ink);color:var(--ink)}
.ask-tool:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.ask-tool:disabled{opacity:.5;cursor:default}
.ask-hist-btn[aria-expanded="true"]{border-color:var(--teal);background:var(--teal-050);color:var(--teal-700)}

/* 창 높이 = 화면에서 머리띠 · 입력칸을 뺀 만큼 — 질문 하나와 그 답 그림이 한 화면에 들어온다 */
.ask-thread{position:relative;display:grid;align-content:start;gap:20px;max-height:clamp(320px,calc(100vh - 250px),760px);overflow-y:auto;padding:22px 22px 14px;overscroll-behavior:contain}
.msg-u{justify-self:end;max-width:84%;padding:10px 16px;border-radius:18px 18px 5px 18px;background:var(--ink);color:#fff;font-size:15.5px;line-height:1.55;animation:av-in .3s ease both}
.msg-a{display:grid;align-content:start;gap:14px;min-width:0}

.ask-step{display:flex;align-items:center;gap:9px;min-height:20px;font-size:13px;font-weight:600;color:var(--gray-600)}
.ask-step .sp{flex:none;width:13px;height:13px;border-radius:50%;border:2px solid var(--teal-100);border-top-color:var(--teal-600);animation:ask-spin .8s linear infinite}
.ask-step.done{color:var(--gray-500)}
.ask-step.done .sp{width:7px;height:7px;margin:0 3px;border:0;background:var(--gray-300);animation:none}
@keyframes ask-spin{to{transform:rotate(360deg)}}

.ask-text{font-size:16px;line-height:1.78;color:var(--ink-700)}
.ask-text.typing::after{content:"";display:inline-block;width:7px;height:1.05em;margin-left:2px;vertical-align:-.16em;border-radius:2px;background:var(--teal);animation:ask-blink 1s steps(2) infinite}
@keyframes ask-blink{50%{opacity:0}}
.ask-note{font-size:13px;line-height:1.6;color:var(--gray-500)}
.ask-more{display:inline-flex;align-items:center;gap:6px;justify-self:start;font-size:14px;font-weight:700;color:var(--teal-700)}
.ask-more:hover{text-decoration:underline;text-underline-offset:3px}
.ask-next{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:2px}
.ask-next-h{flex-basis:100%;font-size:12px;font-weight:700;color:var(--gray-500)}
.ask-switch{justify-self:center;font-size:12.5px;color:var(--gray-500)}

/* 입력칸 위 사전 예약 카드 — 화면을 덮지 않는다 */
.ask-nudge{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin:12px 16px 0;padding:12px 40px 12px 16px;position:relative;border:1px solid var(--teal-100);border-radius:14px;background:var(--teal-050);animation:av-in .4s cubic-bezier(.2,.7,.3,1) both}
.ask-nudge-t{flex:1 1 220px;min-width:0;font-size:13.5px;line-height:1.5;color:var(--ink-700)}
.ask-nudge-t b{display:block;font-size:14.5px;font-weight:800;letter-spacing:-.02em;color:var(--ink)}
.ask-nudge .btn{height:40px;padding:0 16px;font-size:14px}
.ask-nudge-k{font-size:13px;font-weight:700;color:var(--teal-700);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.ask-nudge-x{position:absolute;top:6px;right:8px;width:28px;height:28px;border:0;border-radius:8px;background:transparent;font-size:18px;line-height:1;color:var(--gray-500);cursor:pointer}
.ask-nudge-x:hover{background:rgba(20,24,27,.06);color:var(--ink)}

/* 한도 안내 카드 */
.ask-limit{border:1px solid var(--gray-200);border-radius:16px;background:var(--gray-050);padding:20px 22px}
.ask-limit h3{font-size:17px;letter-spacing:-.02em}
.ask-limit p{margin-top:6px;font-size:14.5px;line-height:1.65;color:var(--gray-600)}
.ask-limit .row{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.ask-limit .btn{height:44px;padding:0 18px;font-size:14.5px}
.ask-kakao{background:#FEE500;color:rgba(0,0,0,.85)}
.ask-kakao:hover{background:#F5DC00}
.ask-limit small{display:block;margin-top:10px;font-size:12px;line-height:1.6;color:var(--gray-500)}
.ask-limit small a{text-decoration:underline;text-underline-offset:2px}

/* 내 질문 — 회원의 직접 질문 기록(서버 · 90일). 열면 대화 자리를 덮는다 */
.ask-hist{flex:1;min-height:0;overflow-y:auto;padding:18px 22px 20px;animation:av-in .3s ease both}
.askbox.histing .ask-empty,.askbox.histing .ask-thread,.askbox.histing .ask-nudge,.askbox.histing .ask-form,.askbox.histing .ask-chips{display:none}
.ask-hist-h{position:relative;padding-right:36px}
.ask-hist-h b{display:block;font-size:17px;font-weight:800;letter-spacing:-.02em;color:var(--ink)}
.ask-hist-h span{display:block;margin-top:2px;font-size:12.5px;color:var(--gray-500)}
.ask-hist-h .ask-nudge-x{top:-2px;right:-6px}
.ask-hist-list{display:grid;gap:8px;margin-top:14px}
.ask-hist-list button{display:block;width:100%;padding:12px 14px;border:1px solid var(--gray-200);border-radius:12px;background:#fff;font:inherit;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease}
.ask-hist-list button:hover{border-color:var(--teal);background:var(--teal-050)}
.ask-hist-list button:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.ask-hist-list b{display:block;font-size:14.5px;font-weight:700;line-height:1.45;color:var(--ink)}
.ask-hist-list span{display:block;margin-top:3px;font-size:12px;color:var(--gray-500)}
.ask-hist-empty{margin-top:18px;font-size:14px;line-height:1.6;color:var(--gray-500)}
.ask-hist-f{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin-top:14px}
.ask-hist-f small{font-size:12px;color:var(--gray-500)}
.ask-hist-del{height:32px;padding:0 12px;border:1px solid var(--gray-200);border-radius:8px;background:#fff;font:inherit;font-size:12.5px;font-weight:700;color:var(--gray-600);cursor:pointer}
.ask-hist-del:hover{border-color:var(--ink);color:var(--ink)}
.ask-hist-del.armed{border-color:var(--warn);color:var(--ink)}

/* 입력 */
.ask-form{display:flex;align-items:flex-end;gap:10px;margin:16px 16px 0;padding:7px 7px 7px 18px;border:1.5px solid var(--gray-300);border-radius:16px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}
.ask-form:focus-within{border-color:var(--teal);box-shadow:0 0 0 4px rgba(16,168,147,.14)}
.ask-form textarea{flex:1;min-width:0;border:0;outline:0;resize:none;background:transparent;color:var(--ink);font:inherit;font-size:17px;line-height:1.5;padding:10px 0;max-height:132px}
.ask-form textarea::placeholder{color:var(--gray-500)}
.ask-go{flex:none;width:44px;height:44px;border:0;border-radius:12px;background:var(--teal);color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .15s ease,transform .15s ease}
.ask-go:hover{background:var(--teal-600)}
.ask-go:active{transform:translateY(1px)}
.ask-go:disabled{background:var(--gray-100);color:var(--gray-300);cursor:default}
.ask-go:focus-visible,.ask-chip:focus-visible,.ask-new:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.ask-go svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.ask-go.stop svg{fill:currentColor;stroke:none}

/* 추천 질문 — 고른 차(토글)의 10개만 보인다 · 칩 앞 아이콘 = 답 그림의 모양(data-ico) · 가입 전 4번째부터 자물쇠(.lockd) */
.ask-chips{display:grid;gap:10px;padding:14px 16px 18px}
.ask-group{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ask-group-name{flex:none;min-width:98px;font-size:12.5px;font-weight:700;color:var(--gray-500)}
.ask-row{display:flex;flex-wrap:wrap;gap:8px;flex:1 1 0;min-width:0}
.ask-group-name:has(+ .ask-row){align-self:flex-start;padding-top:9px}
.askbox.chatting .ask-chips{display:none}
.askbox.nudging .ask-thread{max-height:clamp(280px,calc(100vh - 336px),760px)}
.askbox.chatting .ask-form{margin-bottom:16px}
.ask-chip{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;border:1px solid var(--gray-200);border-radius:99px;background:var(--gray-050);font:inherit;font-size:14px;font-weight:600;letter-spacing:-.01em;color:var(--ink-700);cursor:pointer;white-space:nowrap;transition:border-color .15s ease,background .15s ease,color .15s ease;
  --ico-lock:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.2' y='7.2' width='9.6' height='6.8' rx='1.6'/%3E%3Cpath d='M5.4 7.2V5.3a2.6 2.6 0 0 1 5.2 0v1.9'/%3E%3C/svg%3E")}
.ask-chip:hover{border-color:var(--teal);background:var(--teal-050);color:var(--teal-700)}
.ask-chip:disabled{opacity:.5;cursor:default;pointer-events:none}
.ask-chip[data-ico]::before{content:"";flex:none;width:15px;height:15px;background:currentColor;opacity:.72;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
.ask-chip.lockd{background:#fff;color:var(--gray-600)}
.ask-chip.lockd::after{content:"";flex:none;width:13px;height:13px;margin-right:-3px;background:var(--gray-500);-webkit-mask:var(--ico-lock) center/contain no-repeat;mask:var(--ico-lock) center/contain no-repeat}
.ask-chip.lockd:hover::after{background:var(--teal-700)}
.ask-chip[data-ico="gauge"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.4 11.6a5.6 5.6 0 0 1 11.2 0'/%3E%3Cpath d='M8 11.6l2.7-3.6'/%3E%3C/svg%3E")}
.ask-chip[data-ico="cal"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.3' y='3.3' width='11.4' height='10.4' rx='1.6'/%3E%3Cpath d='M2.3 6.6h11.4M5.4 1.9v2.8M10.6 1.9v2.8M5 9.4h1.4M7.4 9.4h1.4M9.8 9.4h1.4M5 11.6h1.4'/%3E%3C/svg%3E")}
.ask-chip[data-ico="undo"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 8.2a5.3 5.3 0 1 0 1.6-3.8'/%3E%3Cpath d='M2.6 2.4v2.9h2.9'/%3E%3Cpath d='M8 5.4v3l2 1.3'/%3E%3C/svg%3E")}
.ask-chip[data-ico="grid"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='black'%3E%3Crect x='2' y='2' width='3.3' height='3.3' rx='.8'/%3E%3Crect x='6.35' y='2' width='3.3' height='3.3' rx='.8'/%3E%3Crect x='10.7' y='2' width='3.3' height='3.3' rx='.8'/%3E%3Crect x='2' y='6.35' width='3.3' height='3.3' rx='.8'/%3E%3Crect x='6.35' y='6.35' width='3.3' height='3.3' rx='.8'/%3E%3Crect x='10.7' y='6.35' width='3.3' height='3.3' rx='.8'/%3E%3Crect x='2' y='10.7' width='3.3' height='3.3' rx='.8'/%3E%3Crect x='6.35' y='10.7' width='3.3' height='3.3' rx='.8'/%3E%3Crect x='10.7' y='10.7' width='3.3' height='3.3' rx='.8'/%3E%3C/svg%3E")}
.ask-chip[data-ico="moon"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.2 9.6A5.6 5.6 0 0 1 6.4 2.8a5.6 5.6 0 1 0 6.8 6.8z'/%3E%3C/svg%3E")}
.ask-chip[data-ico="snow"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.8v12.4M2.6 4.9l10.8 6.2M2.6 11.1l10.8-6.2M6.2 2.8 8 4.4l1.8-1.6M6.2 13.2 8 11.6l1.8 1.6'/%3E%3C/svg%3E")}
.ask-chip[data-ico="bolt"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 1.8 3.8 9h4l-.9 5.2L12.2 7h-4z'/%3E%3C/svg%3E")}
.ask-chip[data-ico="pie"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.1A5.4 5.4 0 1 0 12.9 9H7z'/%3E%3Cpath d='M9.4 1.9a5.4 5.4 0 0 1 4.7 4.7H9.4z'/%3E%3C/svg%3E")}
.ask-chip[data-ico="shield"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.8 13 3.6v4.1c0 3-2.1 5.4-5 6.5-2.9-1.1-5-3.5-5-6.5V3.6z'/%3E%3Cpath d='M5.8 8.1 7.4 9.7l2.9-3'/%3E%3C/svg%3E")}
.ask-chip[data-ico="dots"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='black'%3E%3Ccircle cx='3.5' cy='3.5' r='1.5'/%3E%3Ccircle cx='8' cy='3.5' r='1.5'/%3E%3Ccircle cx='12.5' cy='3.5' r='1.5'/%3E%3Ccircle cx='3.5' cy='8' r='1.5'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3Ccircle cx='12.5' cy='8' r='1.5'/%3E%3Ccircle cx='3.5' cy='12.5' r='1.5'/%3E%3Ccircle cx='8' cy='12.5' r='1.5'/%3E%3Ccircle cx='12.5' cy='12.5' r='1.5'/%3E%3C/svg%3E")}
.ask-chip[data-ico="list"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h7.5M6 8h7.5M6 12h7.5M2.6 4h.1M2.6 8h.1M2.6 12h.1'/%3E%3C/svg%3E")}
.ask-chip[data-ico="bars"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13.6V9.2M6.3 13.6V4.2M9.7 13.6V8.4M13 13.6V6'/%3E%3C/svg%3E")}
.ask-chip[data-ico="snap"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.9' y='4.4' width='12.2' height='9.2' rx='1.8'/%3E%3Ccircle cx='8' cy='9' r='2.4'/%3E%3Cpath d='M5.6 4.4 6.6 2.7h2.8l1 1.7'/%3E%3C/svg%3E")}
.ask-chip[data-ico="fuel"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.9s4.4 4.7 4.4 7.8a4.4 4.4 0 0 1-8.8 0C3.6 6.6 8 1.9 8 1.9z'/%3E%3C/svg%3E")}
.ask-chip[data-ico="clock"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='5.9'/%3E%3Cpath d='M8 4.7V8l2.3 1.5'/%3E%3C/svg%3E")}
.ask-chip[data-ico="chip"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='8' height='8' rx='1.4'/%3E%3Cpath d='M6.5 1.8V4M9.5 1.8V4M6.5 12v2.2M9.5 12v2.2M1.8 6.5H4M1.8 9.5H4M12 6.5h2.2M12 9.5h2.2'/%3E%3C/svg%3E")}

.ask-foot{margin-top:14px;font-size:12.5px;line-height:1.65;color:var(--gray-500)}
.ask-cta{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:26px}

/* ---------- 답 그림 ---------- */
.av{position:relative;min-width:0;border:1px solid var(--gray-200);border-radius:18px;background:#fff;padding:20px 22px 18px;animation:av-in .5s cubic-bezier(.2,.7,.3,1) both}
@keyframes av-in{from{opacity:0;transform:translateY(10px)}}
.av-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.av-label{font-size:14.5px;font-weight:700;letter-spacing:-.015em;color:var(--gray-600)}
.av-at{font-size:12px;color:var(--gray-500);white-space:nowrap}
.av-label.hl::before,.av-tile dt.hl::before,.av-key::before{content:"●";margin-right:6px;font-size:.62em;vertical-align:.22em;color:var(--warn)}
.av-hero{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;margin-top:2px}
.av-num{font-size:clamp(44px,7.6vw,60px);font-weight:800;line-height:1.1;letter-spacing:-.05em;color:var(--ink)}
.av-unit{font-size:clamp(18px,2.6vw,23px);font-weight:700;letter-spacing:-.02em;color:var(--gray-600)}
.av-sub{margin-top:2px;font-size:13px;color:var(--gray-500)}
.av-meter{height:8px;margin-top:16px;border-radius:99px;background:var(--teal-100);overflow:hidden}
.av-meter i{display:block;width:0;height:100%;border-radius:99px;background:var(--teal-600);transition:width 1s cubic-bezier(.2,.8,.25,1)}
.av-key{margin-top:14px;font-size:11.5px;color:var(--gray-500)}
.av-key::before{font-size:.72em;vertical-align:.12em}

.av-fig{position:relative;margin-top:18px}
.av-fig-title{margin-bottom:10px;font-size:12.5px;font-weight:700;color:var(--gray-600)}
.av-tip{position:absolute;z-index:2;top:0;left:0;padding:5px 9px;border-radius:7px;background:var(--ink);color:#fff;font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap;pointer-events:none;transform:translate(-50%,-100%)}

/* 고장코드 목록 */
.av-codes{display:grid;gap:8px}
.av-codes li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:11px 14px;border:1px solid var(--gray-200);border-radius:12px;background:var(--gray-050)}
.av-codes b{font-size:16px;font-weight:800;letter-spacing:-.01em;font-variant-numeric:tabular-nums;color:var(--ink)}
.av-codes .txt{font-size:14.5px;font-weight:600;line-height:1.4;color:var(--ink)}
.av-codes small{display:block;font-size:12px;font-weight:500;color:var(--gray-500)}
.av-codes em{font-style:normal;padding:3px 10px;border:1px solid var(--gray-300);border-radius:99px;background:#fff;font-size:12px;font-weight:700;color:var(--gray-600);white-space:nowrap}

/* 주행거리 위의 한 지점 */
.av-odo{position:relative;padding:28px 0 22px}
.av-odo .track{position:relative;height:8px;border-radius:99px;background:var(--teal-100)}
.av-odo .fill{position:absolute;left:0;top:0;bottom:0;border-radius:99px;background:var(--teal-600);transform-origin:left;animation:av-grow 1s .1s cubic-bezier(.2,.8,.25,1) both}
@keyframes av-grow{from{transform:scaleX(0)}}
.av-odo .pin{position:absolute;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:var(--warn);box-shadow:0 0 0 2px #fff}
.av-odo .lbl{position:absolute;top:0;right:0;font-size:12.5px;font-weight:700;color:var(--ink);white-space:nowrap}
.av-odo .lbl small{margin-right:7px;font-size:11.5px;font-weight:600;color:var(--gray-500)}
.av-odo .ax{position:absolute;bottom:0;left:0;font-size:11px;color:var(--gray-500)}
.av-odo .ax.e{left:auto;right:0}

/* 완료 여부 */
.av-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
.av-checks li{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid var(--gray-100);font-size:14px;color:var(--ink-700)}
.av-checks i{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;box-sizing:border-box}
.av-checks svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.av-checks em{font-style:normal;font-size:12.5px;color:var(--gray-500)}
.av-checks .done i{background:var(--teal-600)}
.av-checks .todo i{border:2px solid var(--warn)}
.av-checks .todo span,.av-checks .todo em{font-weight:700;color:var(--ink)}
.av-checks .na{color:var(--gray-500)}
.av-checks .na i{border:2px solid var(--gray-200)}

/* 막대 줄 — 한계 대비(meters) · 0 기준(diverge) */
.av-meters,.av-div{display:grid;gap:12px}
.av-meters .row,.av-div .row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;font-size:13.5px}
.av-meters .name,.av-div .name{min-width:52px;font-weight:600;color:var(--gray-600)}
.av-div .name{min-width:96px}
.av-meters b,.av-div b{min-width:46px;text-align:right;font-weight:800;color:var(--ink)}
.av-meters .vbar{height:8px;border-radius:99px;background:var(--teal-100);overflow:hidden}
.av-meters .vbar i{display:block;width:0;height:100%;border-radius:99px;background:var(--teal-600);transition:width 1s cubic-bezier(.2,.8,.25,1)}
.av-meters .hl .vbar{background:rgba(217,131,36,.2)}
.av-meters .hl .vbar i,.av-div .hl .vbar i{background:var(--warn)}
.av-div .vbar{position:relative;height:8px;border-radius:99px;background:var(--gray-100)}
.av-div .vbar::after{content:"";position:absolute;left:50%;top:-4px;bottom:-4px;width:1px;background:var(--gray-300)}
.av-div .vbar i{position:absolute;top:0;bottom:0;width:0;border-radius:99px;background:var(--teal-600);transition:width .9s cubic-bezier(.2,.8,.25,1)}
.av-div .axis{display:flex;justify-content:space-between;font-size:11px;color:var(--gray-500)}
.av-div .ax{margin-top:-6px}

/* 세로 막대 */
.av-cols{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);height:150px}
.av-cols .col{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:7px;justify-items:center}
.av-cols .slot{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;width:100%;border-bottom:1px solid var(--gray-300)}
.av-cols .slot i{display:block;width:24px;max-width:60%;height:0;border-radius:4px 4px 0 0;background:var(--teal-600);transition:height .9s cubic-bezier(.2,.8,.25,1)}
.av-cols b{font-size:12.5px;font-weight:600;color:var(--gray-500)}
.av-cols span{font-size:12.5px;color:var(--gray-600)}
.av-cols .hl .slot i{background:var(--warn)}
.av-cols .hl b{font-size:14px;font-weight:800;color:var(--ink)}
.av-cols .hl span{font-weight:700;color:var(--ink)}

/* 나눈 막대 + 범례 */
.av-split{display:flex;gap:2px;height:10px}
.av-split i{min-width:4px;border-radius:99px}
.s0{background:var(--teal-600)}.s1{background:#8DD6CA}.s2{background:var(--teal-100)}
.av-legend{display:grid;gap:8px;margin-top:14px}
.av-legend li{display:grid;grid-template-columns:10px minmax(0,1fr) auto 56px;align-items:center;gap:10px;font-size:13.5px;color:var(--ink-700)}
.av-legend i{width:10px;height:10px;border-radius:3px}
.av-legend b{font-weight:700;color:var(--ink)}
.av-legend em{font-style:normal;text-align:right;font-size:12.5px;color:var(--gray-500)}
.av-legend.inline{display:flex;flex-wrap:wrap;gap:6px 18px}
.av-legend.inline li{display:flex;gap:7px}
.av-legend.inline i{border-radius:50%}

/* 점 격자 */
.av-dots{display:grid;grid-template-columns:repeat(18,minmax(0,1fr));gap:5px;max-width:420px}
.av-dots i{aspect-ratio:1;border-radius:50%}
.d0{background:var(--gray-200)}.d1{background:var(--teal)}.d2{background:var(--warn)}

/* 셀 전압 격자(세로 한 줄 = 모듈) · 온도 칸 — 칸 사이는 2px 바탕색 틈 */
.av-cells{display:grid;grid-auto-flow:column;gap:2px}
.av-cells i{aspect-ratio:1;border-radius:2px;background:var(--teal-600)}
.av-cells i.lo{background:var(--warn)}
.av-temps{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:2px}
.av-temps i{display:grid;place-items:center;height:36px;border-radius:5px;font-style:normal;font-size:12.5px;font-weight:700;color:var(--ink);background:rgba(14,148,130,var(--t,.3))}
.av-temps i.hi{color:#fff}

/* 줄 목록 · 표 */
.av-list{border-top:1px solid var(--gray-200)}
.av-list div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--gray-200);font-size:14.5px}
.av-list dt{color:var(--gray-600);font-weight:600}
.av-list dd{font-weight:700;text-align:right}
.av-table{overflow-x:auto}
.av-table table{width:100%;border-collapse:collapse;font-size:13px}
.av-table th{padding:7px 12px 7px 0;border-bottom:1px solid var(--gray-200);text-align:left;font-weight:600;color:var(--gray-500);white-space:nowrap}
.av-table td{padding:8px 12px 8px 0;border-bottom:1px solid var(--gray-100);color:var(--ink-700)}
.av-table tr.hl td{font-weight:700;color:var(--ink)}
.av-more{margin-top:8px;font-size:12px;color:var(--gray-500)}
.av-fig-sub{margin:18px 0 6px}

/* 운행일지 달력 — 칸 = 하루 · 진할수록 많이 달린 날(티일 한 색) · 숫자 = km · 회색 = 운행 없음 · 테두리만 = 아직 안 온 날 */
.av-cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;max-width:470px}
.av-cal b{padding-bottom:3px;text-align:center;font-size:11.5px;font-weight:600;color:var(--gray-500)}
.av-cal i{display:flex;flex-direction:column;justify-content:space-between;min-height:44px;padding:5px 6px;border-radius:6px;background:var(--gray-050);font-style:normal}
.av-cal i.pad{background:transparent}
.av-cal .dn{font-size:11px;font-weight:600;line-height:1;color:var(--gray-500)}
.av-cal .km{align-self:flex-end;font-size:13px;font-weight:800;line-height:1.1;letter-spacing:-.02em;color:var(--ink)}
.av-cal i.on{background:rgba(14,148,130,var(--t,.3));animation:av-pop .45s cubic-bezier(.2,.7,.3,1) both}
.av-cal i.on.hi .dn,.av-cal i.on.hi .km{color:#fff}
.av-cal i.off{background:var(--gray-100)}
.av-cal i.fut{background:transparent;box-shadow:inset 0 0 0 1px var(--gray-100)}
.av-cal i.fut .dn{color:var(--gray-300)}
@keyframes av-pop{from{opacity:0;transform:scale(.8)}}
.av-legend.inline i.lg-on{width:24px;border-radius:3px;background:linear-gradient(90deg,rgba(14,148,130,.2),rgba(14,148,130,1))}
.av-legend.inline i.lg-off{border-radius:3px;background:var(--gray-100)}

/* 시간에 따른 선 — 2px 선 + 옅은 면 · 처음 · 끝 · 주유만 값을 적는다 · 가리키면 십자선 */
.av-line{position:relative;padding:26px 4px 0 42px}
.av-line .plot{position:relative;height:150px;touch-action:pan-y}
.av-line svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;animation:av-wipe 1.2s cubic-bezier(.3,.7,.3,1) both}
@keyframes av-wipe{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.av-line .ln{fill:none;stroke:var(--teal-600);stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
.av-line .area{fill:var(--teal);opacity:.1}
.av-line .grid{position:absolute;left:0;right:0;height:1px;background:var(--gray-100)}
.av-line .yl{position:absolute;left:-42px;width:36px;transform:translateY(-50%);text-align:right;font-size:11px;color:var(--gray-500);white-space:nowrap}
.av-line .dot{position:absolute;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;background:var(--teal-600);box-shadow:0 0 0 2px #fff;animation:av-fade .3s 1s both;pointer-events:none}
.av-line .dl{position:absolute;transform:translate(-50%,calc(-100% - 8px));font-size:12px;font-weight:700;color:var(--ink);white-space:nowrap;animation:av-fade .3s 1s both;pointer-events:none}
.av-line .dl.s{transform:translate(3px,calc(-100% - 8px))}
.av-line .dl.e{transform:translate(calc(-100% - 3px),calc(-100% - 8px))}
.av-line .cross{position:absolute;top:0;bottom:0;width:1px;margin-left:-.5px;background:var(--gray-300);pointer-events:none}
.av-line .dot.c{animation:none}
.av-line .xa{position:relative;height:18px;margin-top:6px}
.av-line .xa span{position:absolute;top:0;transform:translateX(-50%);font-size:11px;color:var(--gray-500);white-space:nowrap}
.av-line .xa span.l{transform:none}
.av-line .xa span.r{transform:translateX(-100%)}
@keyframes av-fade{from{opacity:0}}

/* 충전마다 몇 %에서 몇 %까지 — 0~100 % 막대 위에 채운 구간 · 급속 = 짙게 · 완속 = 옅게(줄마다 글자로도) */
.av-ranges{display:grid;gap:10px}
.av-ranges .row{display:grid;grid-template-columns:minmax(98px,auto) minmax(0,1fr) 76px;align-items:center;gap:12px}
.av-ranges .name{font-size:13px;font-weight:700;color:var(--ink-700);white-space:nowrap}
.av-ranges .name small{display:block;font-size:11.5px;font-weight:500;color:var(--gray-500)}
.av-ranges .vbar{position:relative;height:10px;border-radius:99px;background:var(--gray-100)}
.av-ranges .vbar i{position:absolute;top:0;bottom:0;width:0;border-radius:99px;transition:width .9s cubic-bezier(.2,.8,.25,1)}
.av-ranges .k0,.av-legend i.k0{background:#8DD6CA}
.av-ranges .k1,.av-legend i.k1{background:var(--teal-600)}
.av-ranges b{text-align:right;font-size:13px;font-weight:800;color:var(--ink);white-space:nowrap}
.av-ranges .ax{margin-top:-4px}
.av-ranges .axis{display:flex;justify-content:space-between;font-size:11px;color:var(--gray-500)}

/* 달별 막대 + 기온 — 가장 덜 간 달 · 가장 잘 간 달만 짙게 + 값 */
.av-season{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;height:176px}
.av-season .col{display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:3px;justify-items:center}
.av-season .slot{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;width:100%;border-bottom:1px solid var(--gray-300)}
.av-season .slot i{position:relative;display:block;width:20px;max-width:72%;height:0;border-radius:4px 4px 0 0;background:rgba(14,148,130,.4);transition:height .8s cubic-bezier(.2,.8,.25,1)}
.av-season .key .slot i{background:var(--teal-600)}
.av-season b{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);padding-bottom:4px;font-size:13px;font-weight:800;color:var(--ink);white-space:nowrap}
.av-season span{font-size:11.5px;color:var(--gray-600);white-space:nowrap}
.av-season em{font-style:normal;font-size:10.5px;color:var(--gray-500);white-space:nowrap}
.av-season .key span{font-weight:700;color:var(--ink)}

/* 보조 값 칸 */
.av-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 20px;margin-top:18px;padding-top:16px;border-top:1px solid var(--gray-200)}
.av-tiles[data-n="1"]{grid-template-columns:1fr}
.av-tiles[data-n="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.av-tiles[data-n="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.av-tile dt{font-size:12.5px;font-weight:600;line-height:1.4;color:var(--gray-500)}
.av-tile dd{margin-top:3px;font-size:20px;font-weight:800;line-height:1.3;letter-spacing:-.035em;color:var(--ink)}
.av-tile dd small{margin-left:3px;font-size:13px;font-weight:700;letter-spacing:-.01em;color:var(--gray-600)}
.av-tile span{display:block;margin-top:1px;font-size:12px;line-height:1.45;color:var(--gray-500)}

/* 회사 소개 구간(옛 첫 화면) 제목 강조 */
.co-title em{font-style:normal;color:var(--teal)}

@media (max-width:760px){
  .ask-hero{padding:calc(74px + 30px) 0 64px}
  .askbox{margin-top:26px;border-radius:18px}
  .ask-bar{flex-wrap:wrap;gap:6px 10px;padding:8px 14px}
  .ask-car{flex-basis:100%;order:5}
  .ask-nudge{margin:10px 10px 0}
  .ask-nudge .btn{width:auto}
  .ask-group-name,.ask-group-name:has(+ .ask-row){flex-basis:100%;min-width:0;padding-top:0}
  /* 추천 질문 10개 = 두 줄로 옆으로 밀어 본다 */
  .ask-row{flex:1 1 100%;display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-auto-columns:max-content;gap:8px;overflow-x:auto;margin:0 -10px;padding:0 10px 4px;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 86%,transparent);mask-image:linear-gradient(90deg,#000 86%,transparent)}
  .ask-row::-webkit-scrollbar{display:none}
  .ask-hist{padding:16px 14px 18px}
  .av-cal i{min-height:40px;padding:4px 5px}
  .av-cal .km{font-size:12px}
  .av-ranges .row{grid-template-columns:minmax(84px,auto) minmax(0,1fr) 64px;gap:8px}
  .av-season{gap:2px}
  .av-season .slot i{width:14px}
  .av-season span{font-size:10.5px}
  .av-season em{font-size:9.5px}
  .av-temps{grid-template-columns:repeat(8,minmax(0,1fr))}
  .ask-thread{padding:18px 14px 12px;gap:18px;max-height:clamp(300px,calc(100dvh - 232px),760px)}
  .ask-form{margin:12px 10px 0;padding-left:14px}
  .askbox.chatting .ask-form{margin-bottom:10px}
  .ask-chips{padding:12px 10px 14px}
  .ask-cta{flex-direction:column}
  .av{padding:18px 16px 16px;border-radius:16px}
  .av-tiles,.av-tiles[data-n="3"]{grid-template-columns:repeat(2,minmax(0,1fr))}
  .av-checks{grid-template-columns:1fr}
  .av-codes li{grid-template-columns:auto minmax(0,1fr);gap:4px 12px}
  .av-codes em{grid-column:2;justify-self:start}
  .av-div .name{min-width:84px}
  .ask-limit .row{flex-direction:column}
}
@media (prefers-reduced-motion:reduce){
  .av-meter i,.av-meters .vbar i,.av-div .vbar i,.av-cols .slot i,.av-ranges .vbar i,.av-season .slot i{transition:none}
  .av-line svg,.av-line .dot,.av-line .dl,.av-cal i.on{animation:none}
}

/* ---------- 홈 = 채팅창 한 화면뿐 (2026-11-25 사장 결정) ----------
   챗GPT · 클로드처럼 화면 자체가 채팅창이다(바깥 상자 테두리 없음).
   묻기 전 = 인사(h1) · 입력창 · 추천 질문이 화면 가운데 — 폰은 입력창이 아래(엄지 자리), 추천 질문은 그 위에 2칸씩(앞 3개 + 더 보기).
   묻고 나면(.chatting) = 대화가 위에서부터 쌓이고(이 칸 안에서만 스크롤) 입력창은 맨 아래에 붙는다.
   입력창 = 글 칸 + 아랫줄(시연 차 고르기 · 보내기). 맨 윗줄 = 연결된 시연 차 · 내 질문 · 새 대화. */
.ask-full{display:flex;flex-direction:column;height:100vh;height:100svh;min-height:600px;padding:calc(74px + 10px) 0 16px;overflow:hidden;overflow:clip}
.ask-full::before{display:none}   /* 계측 그리드 끔 — 대화 글자 뒤가 깨끗하게 */
.ask-full>.shell{flex:1;min-height:0;display:flex;flex-direction:column}
.ask-full .ask-wrap{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;max-width:800px}
.ask-full .askbox{flex:1;min-height:0;display:flex;flex-direction:column;margin:0;background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}

/* 맨 윗줄 — ● 시연 차 연결됨 · 차 이름 … 내 질문 · 새 대화 */
.ask-full .ask-bar{flex:none;flex-wrap:nowrap;gap:8px;min-height:40px;padding:0 2px;border:0;font-size:13px;color:var(--gray-500)}
.ask-full .ask-live{gap:7px;font-weight:700;color:var(--ink)}
.ask-full .ask-live-t::after{content:"·";margin-left:8px;font-weight:400;color:var(--gray-300)}
.ask-full .ask-car{flex:0 1 auto;order:0}
.ask-full .ask-tool{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 13px 0 11px;border-radius:99px}
.ask-full .ask-tool::before{content:"";flex:none;width:14px;height:14px;background:currentColor;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
.ask-full .ask-new{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 2.6H4.3a1.7 1.7 0 0 0-1.7 1.7v7.4a1.7 1.7 0 0 0 1.7 1.7h7.4a1.7 1.7 0 0 0 1.7-1.7V8.5'/%3E%3Cpath d='M11.7 2.2a1.35 1.35 0 0 1 1.9 1.9L8.5 9.2l-2.5.6.6-2.5z'/%3E%3C/svg%3E")}
.ask-full .ask-hist-btn{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 8.2a5.3 5.3 0 1 0 1.6-3.8'/%3E%3Cpath d='M2.6 2.4v2.9h2.9'/%3E%3Cpath d='M8 5.4v3l2 1.3'/%3E%3C/svg%3E")}

/* 묻기 전 — 인사 한 줄 + 설명 한 줄. 인사 · 입력창 · 추천 질문 묶음이 남은 자리 가운데에 온다(위아래 auto 여백) */
.ask-full .ask-empty{flex:none;display:block;margin-top:auto;padding:0 0 26px;text-align:center}
.ask-full .ask-empty h1{margin:0;font-size:clamp(26px,3.4vw,40px)}
.ask-full .ask-empty p{margin-top:10px;font-size:clamp(14.5px,1.5vw,16.5px);line-height:1.6;color:var(--gray-500)}

/* 입력창 — 글 칸 위 · 아랫줄 = 시연 차 고르기(왼쪽, 챗GPT의 모델 고르기 자리) · 보내기(오른쪽 동그라미) */
.ask-full .ask-form{flex:none;flex-direction:column;align-items:stretch;gap:4px;margin:0;padding:10px 10px 10px 12px;border:1px solid var(--gray-200);border-radius:26px;background:#fff;box-shadow:0 1px 2px rgba(20,24,27,.04),0 14px 36px -14px rgba(20,24,27,.22)}
.ask-full .ask-form:focus-within{border-color:var(--teal);box-shadow:0 0 0 4px rgba(16,168,147,.12),0 14px 36px -14px rgba(20,24,27,.22)}
.ask-full .askbox.chatting .ask-form{margin:0}
.ask-full .ask-form textarea{padding:6px 8px 4px;font-size:16.5px;line-height:1.55}
.ask-tools{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ask-full .ask-go{width:38px;height:38px;border-radius:50%}
.ask-full .ask-go:disabled{background:var(--gray-200);color:#fff}
.ask-full .ask-go svg{width:19px;height:19px}
.ask-full .ask-seg{border-radius:99px}
.ask-full .ask-seg button{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 13px 0 10px;border-radius:99px;font-size:13px}
.ask-full .ask-seg button::before{content:"";flex:none;width:14px;height:14px;background:currentColor;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
.ask-full .ask-seg button[aria-pressed="true"]::before{background:var(--teal)}
.ask-full .ask-seg button[data-car="ev"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 1.8 3.8 9h4l-.9 5.2L12.2 7h-4z'/%3E%3C/svg%3E")}
.ask-full .ask-seg button[data-car="gas"]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.9s4.4 4.7 4.4 7.8a4.4 4.4 0 0 1-8.8 0C3.6 6.6 8 1.9 8 1.9z'/%3E%3C/svg%3E")}

/* 추천 질문 — 입력창 아래 가운데에 알약으로(폰 = 입력창 위 2칸씩) */
.ask-full .ask-chips{flex:none;display:block;margin-bottom:auto;padding:16px 0 4vh}
.ask-full .ask-group{display:block}
.ask-full .ask-group-name{display:none}
.ask-full .ask-row{justify-content:center}
.ask-full .ask-chip{background:#fff}
.ask-full .ask-more-q{display:none}
.ask-full .ask-more-q::after{content:"";flex:none;width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center/contain no-repeat}

/* 묻고 나면 — 인사 · 추천 질문은 접고, 대화가 남은 자리를 다 쓴다(입력창은 맨 아래) */
.ask-full .askbox.chatting .ask-empty,.ask-full .askbox.chatting .ask-chips{display:none}
.ask-full .ask-thread,.ask-full .askbox.nudging .ask-thread{flex:1;min-height:0;max-height:none;padding:12px 2px 20px;-webkit-mask-image:linear-gradient(180deg,transparent,#000 12px,#000 calc(100% - 20px),transparent);mask-image:linear-gradient(180deg,transparent,#000 12px,#000 calc(100% - 20px),transparent)}
.ask-full .ask-nudge{margin:0 0 10px}
/* 대화 — 내 질문 = 오른쪽 회색 말풍선 · 답 = 왼쪽, 「카볼트 AI」 이름표부터 */
.ask-full .msg-u{max-width:80%;padding:10px 16px;border-radius:20px 20px 6px 20px;background:var(--gray-100);color:var(--ink)}
.ask-full .msg-a{gap:12px}
.ask-full .msg-a::before{content:"카볼트 AI";display:flex;align-items:center;min-height:28px;padding-left:36px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='14' fill='%2310A893'/%3E%3Cpath d='M6 14h3.4l2-5 3.2 10 3.2-10 2 5H22' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 0 50%/28px 28px no-repeat;font-size:14px;font-weight:800;letter-spacing:-.02em;color:var(--ink)}

/* 입력창 아래 — 시연 안내 한 줄 · 사전 예약 · 카볼트 AI 보기 */
.ask-under{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-top:12px}
.ask-under .ask-foot{margin-top:0;text-align:left;text-wrap:balance}
.ask-links{display:flex;flex-wrap:wrap;gap:8px}

@media (max-width:760px){
  .ask-full{min-height:540px;padding:calc(74px + 2px) 0 12px}
  .ask-full .ask-bar{min-height:38px;padding:0}
  .ask-full .ask-live-t{display:none}
  .ask-full .ask-tool{height:30px;padding:0 11px 0 9px;font-size:12.5px}
  /* 폰 — 인사는 남은 자리 가운데, 추천 질문 · 입력창은 아래 */
  .ask-full .ask-empty{margin-block:auto;padding:12px 0 20px}
  .ask-full .ask-empty h1{font-size:clamp(24px,6.6vw,28px)}
  .ask-full .ask-empty p{margin-top:8px;font-size:14px}
  .ask-full .ask-chips{order:1;margin:0 0 10px;padding:0}
  .ask-full .ask-nudge{order:1;margin:0 0 10px}
  .ask-full .ask-form{order:2;padding:8px 8px 8px 10px;border-radius:24px}
  .ask-full .ask-form textarea{font-size:16px}
  .ask-full .ask-thread,.ask-full .askbox.nudging .ask-thread{padding:10px 0 16px;gap:18px}
  /* 추천 질문 = 2칸씩 카드 · 글이 길면 두 줄로(옆으로 밀거나 잘리지 않는다) · 앞 3개 + 「추천 질문 더 보기」 */
  .ask-full .ask-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-flow:row;grid-auto-columns:auto;gap:8px;margin:0;padding:0;overflow:visible;-webkit-mask-image:none;mask-image:none}
  .ask-full .ask-chips .ask-chip{display:flex;height:auto;min-height:50px;padding:8px 12px;border-radius:14px;white-space:normal;word-break:keep-all;text-align:left;font-size:13.5px;line-height:1.35}
  .ask-full .ask-chips .ask-chip.lockd::after{margin:0 -2px 0 auto}
  .ask-full .askbox:not(.chips-all) .ask-row>.ask-chip[data-chip]:nth-child(n+4){display:none}
  .ask-full .ask-chips .ask-more-q{display:flex;justify-content:center;gap:4px;border-style:dashed;border-color:var(--gray-300);background:transparent;font-weight:700;color:var(--gray-600);text-align:center}
  .ask-full .askbox.chips-all .ask-more-q{display:none}
  /* 다 펴면 인사를 접어 자리를 내고, 그래도 넘치면 추천 질문 칸만 스크롤 */
  .ask-full .askbox.chips-all .ask-empty{display:none}
  .ask-full .askbox.chips-all .ask-chips{flex:0 1 auto;min-height:0;margin-top:auto;padding-bottom:10px;overflow-y:auto;-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 16px),transparent);mask-image:linear-gradient(180deg,#000 calc(100% - 16px),transparent)}
  .ask-under{justify-content:center;margin-top:10px}
  .ask-under .ask-foot{font-size:12px;text-align:center}
  .ask-links{width:100%}
  .ask-links .btn{flex:1}
  /* 대화 중엔 시연 안내 한 줄 · 「카볼트 AI 보기」를 접어 대화 자리를 넓힌다(사전 예약 버튼만 남긴다) */
  .ask-wrap:has(.askbox.chatting) .ask-under .ask-foot,.ask-wrap:has(.askbox.chatting) .ask-links .btn-ghost{display:none}
}
@media (max-width:760px) and (max-height:620px){
  .ask-full .ask-empty p{display:none}
}
