/* 2026-11-16 aib1 — AI 코스 '부기와 대화로 만들기' + AI 코스 화면 글자·단추 키우기(초보자·어르신)
 * 대화가 켜지면(html.aib-on) 예전 폼은 '직접 자세히 고르기'를 눌렀을 때만 보인다. 되돌리기: rollback_ux.sh aib1
 * aib2(같은 날): 2~3번 누르면 끝 — 맨 위 '부기가 알아서 추천' 큰 단추, 출발 단계에 지역 바로 고르기. 되돌리기: rollback_ux.sh aib2 */
html.aib-on #aicForm { display: none; }
html.aib-on.aib-manual #aicForm { display: block; }
html.aib-on .aic-hero p { display: none; }
html.aib-on:not(.aib-manual) #aicLoading { display: none !important; }

.aib { background: #fff; border: 1px solid #ECE7E1; border-radius: 20px; padding: 16px; margin: 0 0 22px; box-shadow: 0 2px 12px rgba(17, 24, 39, .06); scroll-margin-top: 76px; }
#aib .aib-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
#aib .aib-ava { width: 40px; height: 40px; border-radius: 12px; flex: none; box-shadow: 0 2px 8px rgba(255, 90, 31, .28); }
#aib .aib-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 18px; font-weight: 800; line-height: 1.35; color: #0B0E14; }
#aib .aib-reset { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid #E5E7EB; border-radius: 12px; background: #fff; font: inherit; font-size: 15px; font-weight: 700; color: #374151; cursor: pointer; }
#aib .aib-reset[hidden] { display: none; }
#aib .aib-reset:hover { border-color: #FF5A1F; color: #C2410C; }

#aib .aib-log { display: flex; flex-direction: column; gap: 10px; }
#aib .aib-row { display: flex; }
#aib .aib-row--me { justify-content: flex-end; }
#aib .aib-b { margin: 0; max-width: 88%; padding: 12px 16px; border-radius: 18px; font-size: 16.5px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ja) #aib .aib-b, html:lang(zh) #aib .aib-b, html:lang(zh-TW) #aib .aib-b, html:lang(zh-HK) #aib .aib-b, html:lang(th) #aib .aib-b { word-break: normal; }
#aib .aib-row--bot .aib-b { background: #F4F4F0; color: #111827; border-top-left-radius: 6px; }
#aib .aib-row--me .aib-b { background: #C2410C; color: #fff; font-weight: 700; border-top-right-radius: 6px; }
#aib .aib-row--tip .aib-b { background: #FFF7ED; color: #7C2D12; font-size: 15.5px; }
#aib .aib-typing .aib-b { display: flex; align-items: center; gap: 12px; color: #374151; }
#aib .aib-dots { flex: none; width: 34px; height: 10px;
  background: radial-gradient(circle at 5px 5px, #9CA3AF 4px, transparent 4.5px), radial-gradient(circle at 17px 5px, #9CA3AF 4px, transparent 4.5px), radial-gradient(circle at 29px 5px, #9CA3AF 4px, transparent 4.5px);
  animation: aib-pulse 1.1s ease-in-out infinite; }
@keyframes aib-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { #aib .aib-dots { animation: none; } }

#aib .aib-acts { margin-top: 14px; }
#aib .aib-acts:empty { display: none; }
#aib .aib-opts { display: grid; gap: 10px; }
#aib .aib-opts--g1 { grid-template-columns: 1fr; }
#aib .aib-opts--g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { #aib .aib-opts--g2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } #aib .aib-opts--g1 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#aib .aib-opt { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 14px; border: 1.5px solid #E5E7EB; border-radius: 16px; background: #fff; color: #111827; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
#aib .aib-opt:hover { border-color: #FF5A1F; background: #FFF7F2; }
#aib .aib-opt:focus-visible, #aib .aib-cta:focus-visible, #aib .aib-ghost:focus-visible, #aib .aib-back:focus-visible, #aib .aib-sum__c:focus-visible, #aib .aib-send:focus-visible, #aib .aib-reset:focus-visible, #aib .aib-manual:focus-visible { outline: 3px solid #C2410C; outline-offset: 2px; }
#aib .aib-opt__i { flex: none; width: 32px; font-size: 26px; line-height: 1; text-align: center; }
#aib .aib-opt__t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#aib .aib-opt__n { font-size: 16.5px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
#aib .aib-opt__s { font-size: 14px; font-weight: 500; color: #4B5563; line-height: 1.35; overflow-wrap: anywhere; }
#aib .aib-opt--auto { border-color: #FDBA74; background: #FFF7ED; }
#aib .aib-opt[aria-pressed="true"] { border-color: #C2410C; background: #FFF1EA; box-shadow: inset 0 0 0 1px #C2410C; }
#aib .aib-opt--toggle[aria-pressed="true"] .aib-opt__n::after { content: " ✓"; color: #C2410C; }
#aib .aib-back { display: inline-flex; align-items: center; margin-top: 10px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; color: #374151; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; }
#aib .aib-back:hover { background: #F4F4F0; }
#aib .aib-row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
#aib .aib-cta { flex: 1 1 auto; min-height: 52px; padding: 0 20px; border: 0; border-radius: 14px; background: #C2410C; color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
#aib .aib-cta:hover { background: #9A3412; }
#aib .aib-cta--big { display: block; width: 100%; min-height: 60px; margin-top: 12px; font-size: 18px; }
#aib .aib-ghost { flex: 1 1 auto; min-height: 52px; padding: 0 18px; border: 1.5px solid #E5E7EB; border-radius: 14px; background: #fff; color: #374151; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }

#aib .aib-sum { border: 1.5px solid #FBCDB4; border-radius: 16px; background: #FFFBF8; overflow: hidden; }
#aib .aib-sum__row { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 8px 8px 14px; border-top: 1px solid #F5E1D6; }
#aib .aib-sum__row:first-child { border-top: 0; }
#aib .aib-sum__k { flex: none; width: 4.8em; font-size: 14.5px; font-weight: 700; color: #6B4F3F; line-height: 1.3; }
#aib .aib-sum__v { flex: 1; min-width: 0; font-size: 16.5px; font-weight: 800; color: #111827; line-height: 1.4; overflow-wrap: anywhere; }
#aib .aib-sum__c { flex: none; min-height: 44px; min-width: 64px; padding: 0 12px; border: 1px solid #FDBA74; border-radius: 12px; background: #fff; color: #9A3412; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
#aib .aib-sum__c:hover { background: #FFF1EA; }

#aib .aib-say { display: flex; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed #E5E7EB; }
#aib .aib-say input { flex: 1; min-width: 0; height: 52px; padding: 0 14px; border: 1.5px solid #D1D5DB; border-radius: 14px; font: inherit; font-size: 16px; background: #fff; color: #111827; }
#aib .aib-say input::placeholder { color: #6B7280; }
#aib .aib-say input:focus { outline: none; border-color: #C2410C; box-shadow: 0 0 0 3px rgba(194, 65, 12, .18); }
#aib .aib-send { flex: none; min-width: 72px; height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: #111827; color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
#aib .aib-manual { display: flex; align-items: center; justify-content: center; margin: 10px auto 0; min-height: 44px; padding: 0 14px; border: 0; background: none; color: #374151; font: inherit; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#aib .aib-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 380px) { .aib { padding: 14px 12px; } #aib .aib-opt { padding: 10px 10px; gap: 8px; } #aib .aib-opt__i { width: 28px; font-size: 24px; } #aib .aib-opt__n { font-size: 16px; } #aib .aib-sum__k { width: 4em; } }

/* aib2: 맨 위 큰 단추(부기가 알아서 추천 · 내 위치/부기가 골라 줘요) + 지역 바로 고르기(한 번에) */
#aib .aib-opts--lead { margin-bottom: 2px; }
#aib .aib-opts--lead.aib-opts--g1 { grid-template-columns: 1fr; }
#aib .aib-opts--lead.aib-opts--g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#aib .aib-opt--big { min-height: 72px; padding: 12px 16px; border-width: 2px; border-color: #F97316; }
#aib .aib-opt--big .aib-opt__i { width: 36px; font-size: 30px; }
#aib .aib-opt--big .aib-opt__n { font-size: 18px; }
#aib .aib-opt--big .aib-opt__s { font-size: 15px; color: #7C2D12; }
#aib .aib-acts__lbl { margin: 14px 2px 8px; font-size: 15px; font-weight: 700; line-height: 1.4; color: #374151; }
#aib .aib-opts--g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { #aib .aib-opts--g3 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
#aib .aib-opt--dist { justify-content: center; min-height: 64px; padding: 8px 6px; text-align: center; }
#aib .aib-opt--dist .aib-opt__t { align-items: center; }
#aib .aib-opts--g2 .aib-opt--dist { padding: 8px 10px; }

/* ── AI 코스 화면 글자·단추 키우기 (휴대폰 보조 글 13px 이상·본문 15px·누르는 곳 44px) ── */
#aic-main .aic-hero__eyebrow { font-size: 13px; }
#aic-main .aic-hero__eyebrow .bw-icon { width: 16px; height: 16px; }
#aic-main .aic-label { font-size: 15px; }
#aic-main .aic-chip { min-height: 44px; padding: 8px 14px; font-size: 15px; }
#aic-main .aic-seg label { min-height: 44px; font-size: 15px; }
#aic-main .aic-toggles label { min-height: 44px; padding: 8px 14px; font-size: 15px; }
#aic-main .aic-start { min-height: 44px; font-size: 15px; }
#aic-main .aic-start input { width: 22px; height: 22px; }
#aic-main .aic-field select, #aic-main .aic-field input[type=date] { height: 48px; font-size: 16px; }
#aic-main .aic-submit { min-height: 56px; font-size: 17px; }
#aic-main .aic-error { font-size: 15.5px; }
#aic-main .aic-result__title { font-size: 22px; }
#aic-main .aic-result__summary { font-size: 15.5px; color: #4B5563; }
#aic-main .aic-fact { padding: 7px 12px; font-size: 14px; }
#aic-main .aic-fact .bw-icon { width: 16px; height: 16px; }
#aic-main .aic-day { font-size: 14px; }
#aic-main .aic-leg { font-size: 14.5px; }
#aic-main .aic-leg__sub { color: #4B5563; }
#aic-main .aic-leg__mode i { width: 28px; height: 28px; font-size: 15px; }
#aic-main .aic-leg__links a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; font-size: 14px; }
#aic-main .aic-stop__time b { font-size: 16.5px; }
#aic-main .aic-stop__time span { font-size: 13.5px; }
#aic-main .aic-stop__num { width: 28px; height: 28px; font-size: 14px; }
#aic-main .aic-stop__kind { padding: 3px 10px; font-size: 13px; }
#aic-main .aic-stop__body h4 { font-size: 17.5px; }
#aic-main .aic-stop__meta { font-size: 14.5px; color: #4B5563; }
#aic-main .aic-stop__hours, #aic-main .aic-stop__warn { font-size: 14.5px; }
#aic-main .aic-stop__hours .bw-icon, #aic-main .aic-stop__warn .bw-icon { width: 16px; height: 16px; }
#aic-main .aic-stop__note { font-size: 15px; }
#aic-main .aic-stop__actions { gap: 8px; }
#aic-main .aic-stop__actions a, #aic-main .aic-stop__actions button { min-height: 44px; padding: 8px 14px; border-radius: 12px; font-size: 15px; }
#aic-main .aic-actions a, #aic-main .aic-actions button { min-height: 50px; padding: 10px 16px; border-radius: 12px; font-size: 16px; }
#aic-main .aic-actions .bw-icon { width: 18px; height: 18px; }
#aic-main .aic-disclaimer { font-size: 13.5px; color: #6B7280; }
#aic-main .aic-share-note { font-size: 14.5px; }
#aic-main .aic-recent__head h2 { font-size: 19px; }
#aic-main .aic-recent__card h3 { font-size: 16.5px; }
#aic-main .aic-recent__card p { font-size: 14.5px; color: #4B5563; }
#aic-main .aic-recent__meta { font-size: 13.5px; }
#aic-main .aic-recent__meta .bw-icon { width: 15px; height: 15px; }

/* ── 어두운 화면 ── */
html[data-theme="dark"] .aib { background: #14181f; border-color: #232936; box-shadow: none; }
html[data-theme="dark"] #aib .aib-head h2 { color: #f5f5f2; }
html[data-theme="dark"] #aib .aib-row--bot .aib-b { background: #1f242c; color: #f5f5f2; }
html[data-theme="dark"] #aib .aib-row--tip .aib-b { background: #2a1d14; color: #FED7AA; }
html[data-theme="dark"] #aib .aib-typing .aib-b { color: #E5E7EB; }
html[data-theme="dark"] #aib .aib-opt, html[data-theme="dark"] #aib .aib-ghost, html[data-theme="dark"] #aib .aib-reset, html[data-theme="dark"] #aib .aib-say input, html[data-theme="dark"] #aib .aib-sum__c { background: #0B0E14; border-color: #374151; color: #f5f5f2; }
html[data-theme="dark"] #aib .aib-opt:hover { background: #1f242c; }
html[data-theme="dark"] #aib .aib-opt__s { color: #C9CDD3; }
html[data-theme="dark"] #aib .aib-opt--auto, html[data-theme="dark"] #aib .aib-opt[aria-pressed="true"] { background: #2a1d14; border-color: #C2410C; }
html[data-theme="dark"] #aib .aib-opt--big { border-color: #F97316; }
html[data-theme="dark"] #aib .aib-opt--big .aib-opt__s { color: #FED7AA; }
html[data-theme="dark"] #aib .aib-acts__lbl { color: #D1D5DB; }
html[data-theme="dark"] #aib .aib-sum { background: #1a1410; border-color: #7C2D12; }
html[data-theme="dark"] #aib .aib-sum__row { border-color: #3a2a20; }
html[data-theme="dark"] #aib .aib-sum__k { color: #FDBA74; }
html[data-theme="dark"] #aib .aib-sum__v { color: #f5f5f2; }
html[data-theme="dark"] #aib .aib-sum__c { color: #FDBA74; }
html[data-theme="dark"] #aib .aib-back, html[data-theme="dark"] #aib .aib-manual { color: #D1D5DB; }
html[data-theme="dark"] #aib .aib-back:hover { background: #1f242c; }
html[data-theme="dark"] #aib .aib-say { border-color: #374151; }
html[data-theme="dark"] #aib .aib-say input::placeholder { color: #9CA3AF; }
html[data-theme="dark"] #aib .aib-send { background: #f5f5f2; color: #0B0E14; }
html[data-theme="dark"] #aic-main .aic-form, html[data-theme="dark"] #aic-main .aic-result, html[data-theme="dark"] #aic-main .aic-stop, html[data-theme="dark"] #aic-main .aic-recent__card,
html[data-theme="dark"] #aic-main .aic-form textarea, html[data-theme="dark"] #aic-main .aic-field select, html[data-theme="dark"] #aic-main .aic-field input[type=date], html[data-theme="dark"] #aic-main .aic-chip,
html[data-theme="dark"] #aic-main .aic-toggles label, html[data-theme="dark"] #aic-main .aic-stop__actions a, html[data-theme="dark"] #aic-main .aic-stop__actions button:not(.aic-swap),
html[data-theme="dark"] #aic-main .aic-actions a:not(.primary), html[data-theme="dark"] #aic-main .aic-actions button, html[data-theme="dark"] #aic-main .aic-leg__links a { background: #14181f; border-color: #2d3442; color: #f5f5f2; }
html[data-theme="dark"] #aic-main .aic-label, html[data-theme="dark"] #aic-main .aic-seg label, html[data-theme="dark"] #aic-main .aic-start, html[data-theme="dark"] #aic-main .aic-leg, html[data-theme="dark"] #aic-main .aic-stop__hours, html[data-theme="dark"] #aic-main .aic-stop__note { color: #E5E7EB; }
html[data-theme="dark"] #aic-main .aic-seg { background: #0B0E14; }
html[data-theme="dark"] #aic-main .aic-seg label:has(input:checked) { background: #1f242c; color: #fff; }
html[data-theme="dark"] #aic-main .aic-hero h1, html[data-theme="dark"] #aic-main .aic-result__title, html[data-theme="dark"] #aic-main .aic-stop__body h4 a, html[data-theme="dark"] #aic-main .aic-stop__time b, html[data-theme="dark"] #aic-main .aic-recent__card h3 { color: #f5f5f2; }
html[data-theme="dark"] #aic-main .aic-result__summary, html[data-theme="dark"] #aic-main .aic-stop__meta, html[data-theme="dark"] #aic-main .aic-leg__sub, html[data-theme="dark"] #aic-main .aic-recent__card p, html[data-theme="dark"] #aic-main .aic-recent__meta, html[data-theme="dark"] #aic-main .aic-disclaimer { color: #C9CDD3; }
html[data-theme="dark"] #aic-main .aic-fact, html[data-theme="dark"] #aic-main .aic-stop__kind { background: #1f242c; color: #E5E7EB; }
html[data-theme="dark"] #aic-main .aic-share-note { background: #1f242c; border-color: #2d3442; color: #E5E7EB; }

/* ── aib3 (2026-11-16): 한 개의 채팅방처럼 — 머리(부기·온라인 점) / 대화(날짜 줄·얼굴 붙은 말풍선·고르는 단추·완성 코스) / 아래 입력창
 *    입력창은 화면 아래(휴대폰 하단 메뉴 위, --aib-bb)에 붙어 따라온다. 휴대폰에서는 화면 가로를 꽉 채운다. 되돌리기 rollback_ux.sh aib3 ── */
html.aib-on:not(.aib-manual) #aicError { display: none !important; }   /* 오류도 대화 말풍선으로 알린다 */
#aib.aib--room { padding: 0; background: #F4EFE8; border: 1px solid #E7DED3; border-radius: 22px; box-shadow: 0 2px 14px rgba(17, 24, 39, .07); overflow: visible; }
#aib.aib--room .aib-head { position: relative; z-index: 2; margin: 0; padding: 12px 14px; gap: 12px; background: #fff; border-bottom: 1px solid #EDE6DD; border-radius: 22px 22px 0 0; }
#aib.aib--room .aib-hav { position: relative; flex: none; display: block; width: 44px; height: 44px; }
#aib.aib--room .aib-hav .aib-ava { width: 44px; height: 44px; border-radius: 14px; }
#aib.aib--room .aib-dot { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: #16A34A; border: 2.5px solid #fff; }
#aib.aib--room .aib-ht { flex: 1; min-width: 0; }
#aib.aib--room .aib-head h2 { margin: 0; font-size: 18.5px; font-weight: 800; line-height: 1.25; }
#aib.aib--room .aib-hs { margin: 2px 0 0; font-size: 14px; font-weight: 500; line-height: 1.35; color: #4B5563; }
#aib.aib--room .aib-body { padding: 14px 12px 8px; }
#aib.aib--room .aib-log { gap: 8px; }
#aib.aib--room .aib-day { align-self: center; margin: 0 0 6px; padding: 5px 14px; border-radius: 999px; background: rgba(17, 24, 39, .08); color: #374151; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; }
#aib.aib--room .aib-row--bot { align-items: flex-start; gap: 8px; }
#aib.aib--room .aib-row--bot:not(.aib-row--cont) { margin-top: 6px; }
#aib.aib--room .aib-av { flex: none; width: 36px; height: 36px; border-radius: 12px; background: #fff; box-shadow: 0 1px 4px rgba(17, 24, 39, .14); }
#aib.aib--room .aib-av--sp { display: block; visibility: hidden; box-shadow: none; }
#aib.aib--room .aib-col { min-width: 0; max-width: calc(100% - 52px); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
#aib.aib--room .aib-name { padding-left: 2px; font-size: 14px; font-weight: 700; line-height: 1.3; color: #374151; }
#aib.aib--room .aib-row--bot .aib-b { max-width: 100%; background: #fff; border: 1px solid #ECE4DA; border-radius: 4px 18px 18px 18px; box-shadow: 0 1px 2px rgba(17, 24, 39, .04); }
#aib.aib--room .aib-row--cont .aib-b { border-radius: 18px; }
#aib.aib--room .aib-row--tip .aib-b { background: #FFF7ED; border-color: #FED7AA; color: #7C2D12; }
#aib.aib--room .aib-row--me { margin-top: 6px; }
#aib.aib--room .aib-row--me .aib-b { max-width: 80%; border-radius: 18px 4px 18px 18px; box-shadow: 0 1px 2px rgba(17, 24, 39, .08); }
#aib.aib--room .aib-row--card { display: block; margin-top: 4px; }
#aib.aib--room .aib-row--card .aic-result { margin: 0; padding: 16px 14px; border-radius: 18px; border-color: #ECE4DA; box-shadow: 0 1px 6px rgba(17, 24, 39, .06); scroll-margin-top: 84px; }
#aib.aib--room .aib-acts { margin-top: 12px; }
#aib.aib--room .aib-say { position: sticky; bottom: var(--aib-bb, 0px); z-index: 30; margin: 0; padding: 10px 12px; gap: 8px; background: #fff; border-top: 1px solid #EDE6DD; box-shadow: 0 -6px 16px rgba(17, 24, 39, .06); }
#aib.aib--room .aib-say input { border-radius: 999px; background: #F7F5F2; padding: 0 18px; }
#aib.aib--room .aib-say input:focus { background: #fff; }
#aib.aib--room .aib-send { border-radius: 999px; background: #C2410C; }
#aib.aib--room .aib-send:hover { background: #9A3412; }
#aib.aib--room .aib-manual { margin: 0 auto; padding: 4px 14px 10px; min-height: 44px; }
@media (max-width: 600px) {
  #aib.aib--room { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  #aib.aib--room .aib-head { border-radius: 0; }
}
@media (max-width: 380px) { #aib.aib--room .aib-body { padding: 12px 10px 8px; } #aib.aib--room .aib-say { padding: 10px; } }
html[data-theme="dark"] #aib.aib--room { background: #0f1318; border-color: #232936; }
html[data-theme="dark"] #aib.aib--room .aib-head, html[data-theme="dark"] #aib.aib--room .aib-say { background: #14181f; border-color: #232936; }
html[data-theme="dark"] #aib.aib--room .aib-dot { border-color: #14181f; }
html[data-theme="dark"] #aib.aib--room .aib-hs, html[data-theme="dark"] #aib.aib--room .aib-name { color: #C9CDD3; }
html[data-theme="dark"] #aib.aib--room .aib-day { background: rgba(255, 255, 255, .1); color: #E5E7EB; }
html[data-theme="dark"] #aib.aib--room .aib-row--bot .aib-b { background: #1f242c; border-color: #2d3442; color: #f5f5f2; }
html[data-theme="dark"] #aib.aib--room .aib-row--tip .aib-b { background: #2a1d14; border-color: #7C2D12; color: #FED7AA; }
html[data-theme="dark"] #aib.aib--room .aib-say input { background: #0B0E14; }
html[data-theme="dark"] #aib.aib--room .aib-row--card .aic-result { border-color: #2d3442; }
/* 사이트 공통 떠 있는 단추(SOS·도움말·채팅)가 입력창을 가릴 때만 그 높이만큼 위로 (값은 bw-aic-bot.js 가 잼) */
html.aib-lift #bw-help-fab, html.aib-lift #bw-sos-fab, html.aib-lift .wwc-fab { translate: 0 calc(-1 * var(--aib-lift, 0px)) !important; }

/* ── aib4 2026-11-16: 코스 카드에 장소 사진 + 더 간단하게 (사장님: "코스에 이미지가 나오도록, 조금 더 간소화") ── */
/* 위 요약: 동그란 칩 6개 → 글 4개(시간 · 총 이동 · 비용 · 날짜). 이동수단·일몰은 아래 구간·시간에 이미 보인다 */
#aic-main .aic-facts { gap: 6px 18px; margin-bottom: 14px; }
#aic-main .aic-fact { padding: 0; background: none; font-size: 15px; font-weight: 700; color: #374151; }
#aic-main .aic-fact:nth-child(2), #aic-main .aic-fact:has(use[href$="#sunset"]) { display: none; }
/* 장소 카드: 사진을 위에 크게, 번호·시각은 사진 위 이름표로 */
#aic-main .aic-stop { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "body"; gap: 0; padding: 0; overflow: hidden; border-radius: 16px; }
#aic-main .aic-stop__img { display: block; grid-area: img; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 230px; border-radius: 0; background: #EEE9E2; }
#aic-main .aic-stop__img a { display: block; width: 100%; height: 100%; }
#aic-main .aic-stop__img img { width: 100%; height: 100%; object-fit: cover; }
#aic-main .aic-stop__img:empty, #aic-main .aic-stop__img.is-none { display: none; }
#aic-main .aic-stop__time { grid-area: img; align-self: start; justify-self: start; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: 0 1px 6px rgba(0, 0, 0, .18); text-align: left; }
#aic-main .aic-stop__time b { display: inline; font-size: 16.5px; }
#aic-main .aic-stop__time span { display: inline; font-size: 14.5px; color: #4B5563; }
#aic-main .aic-stop__time .aic-stop__num { order: -1; display: inline-grid; margin: 0; color: #fff; }
#aic-main .aic-stop__body { grid-area: body; padding: 12px 14px 14px; }
#aic-main .aic-stop__kind { display: none; }                                   /* '관광·식사' 꼬리표 — 사진과 분류가 이미 말해 줌 */
#aic-main .aic-stop__meta span:nth-last-child(2) { display: none; }           /* 'n분 머무름' — 위 이름표 시각에 이미 보임 */
#aic-main .aic-stop__meta { gap: 2px 6px; }
#aic-main .aic-stop__meta span:not(:last-child)::after { content: "·"; margin-left: 6px; color: #9CA3AF; }   /* 점은 앞 글 끝에 — 줄이 바뀌어도 줄 맨 앞에 점이 안 남게 */
#aic-main .aic-stop__actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; margin-top: 10px; }
#aic-main .aic-stop__actions a:nth-child(2) { display: none; }                /* '상세' — 사진이나 이름을 누르면 상세로 */
@media (min-width: 720px) { #aic-main .aic-stop__actions { grid-template-columns: repeat(2, minmax(0, 230px)); } }
#aic-main .aic-stop__actions a, #aic-main .aic-stop__actions button { justify-content: center; min-height: 48px; padding: 8px 16px; font-size: 15.5px; font-weight: 800; }
/* 장소 사이 이동: 길찾기 단추는 하나만 */
#aic-main .aic-leg__links a + a { display: none; }
/* 코스가 끝난 뒤 고르기 3개: '처음부터 다시'는 한 줄 넓게 */
@media (max-width: 719px) { #aib .aib-opts--g2 .aib-opt--wide { grid-column: 1 / -1; } }
html[data-theme="dark"] #aic-main .aic-fact { background: none; color: #E5E7EB; }
html[data-theme="dark"] #aic-main .aic-stop__time { background: rgba(20, 24, 31, .92); }
html[data-theme="dark"] #aic-main .aic-stop__time span:not(.aic-stop__num) { color: #C9CDD4; }
html[data-theme="dark"] #aic-main .aic-stop__img { background: #1f242c; }
