  /* ===== Ai-X-Lab 디자인 테마 (동서대 크림슨 + Pretendard) — 색상/폰트/반경만 적용,
     구조·기능은 변경 없음 ===== */
	  :root {
	    --bg: #fbf9f9;
	    --surface: #ffffff;
	    --surface-subtle: #f7f5f5;
	    --surface-info: #f5f7fc;
	    --surface-info-border: #dce4f5;
	    --text-info: #273553;
	    --text: #17191A;
	    --text-muted: #666666;
	    --text-tertiary: #9b9d9f;
	    --border: #dddddd;
	    --border-strong: #cccccc;
	    --primary: #c51130;
	    --primary-hover: #9b021d;
	    --link: #0b66ff;
	    --link-hover: #0a5ae0;
	    --success: #1a7f37;
	    --note: #fff8c5;
	    --overlay-modal: rgba(0,0,0,0.45);
	    --overlay-lightbox: rgba(0,0,0,0.88);
	    --shadow-lightbox: 0 10px 40px rgba(0,0,0,0.5);
	    --radius: 8px;
	    --radius-sm: 4px;
	    --space-1: 4px;
	    --space-2: 8px;
	    --space-3: 12px;
	    --space-4: 16px;
	    --space-5: 20px;
	    --space-6: 24px;
	    --space-8: 32px;
	    --space-10: 40px;
	  }
	  * { box-sizing: border-box; }
	  body { font-family: 'Pretendard Variable', Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif; margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; }
	  /* e-Class 상단 크림슨 바 (로고 위, 전체폭) */
	  .topbar { height: 6px; background: var(--primary); width: 100%; }
	  .wrap { width: min(1280px, calc(100vw - 32px)); margin: 0 auto; padding: var(--space-6) 0 80px; }
	  h1 { font-size: 18px; margin: 0 0 16px; }
	  .modal-bg { position: fixed; inset: 0; background: var(--overlay-modal); display: flex; align-items: center; justify-content: center; z-index: 10; }
  .modal { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 24px; max-width: 540px; width: 90%; max-height: 90vh; overflow-y: auto; }
  .modal h2 { font-size: 16px; margin: 0 0 12px; }
  .modal section { border-top: 1px solid var(--border); padding: 10px 0; }
  .modal section h3 { margin: 0 0 4px; font-size: 13px; color: var(--text-muted); }
  .modal section p { margin: 0; font-size: 14px; }
  .modal .accent { background: var(--note); padding: 8px 10px; border-radius: var(--radius-sm); margin: 8px 0; font-size: 13px; }
  .modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
	  button { padding: 8px 14px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; transition: background .2s, border-color .2s, color .2s, transform .12s ease-out; }
	  button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
	  button:active, .faq-chip:active, .cat-chip:active, .rel-chip:active, .back-chip:active, .link-chip:active, .suggest-chip:active { transform: translateY(1px); }
	  button.primary { background: var(--primary); color: var(--surface); border-color: var(--primary); font-weight: 700; }
	  button.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
	  /* 대화창: 로그인 박스와 동일한 색감 — 흰 카드 + 1px 회색 + 상단 4px 크림슨 */
	  .log { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: var(--space-5); min-height: min(620px, calc(100dvh - 220px)); max-height: calc(100dvh - 188px); overflow-y: auto; overflow-x: hidden; }
  .turn { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px dashed var(--border); }
  .turn:last-child { border-bottom: none; }
  /* 질문 = 우측 크림슨 말풍선(보낸 메시지). .turn 직계 .q 만 — 피드백 .q 는 제외 */
  .turn > .q {
    display: block; width: fit-content; max-width: 80%;
    margin: 0 0 12px auto;
	    background: var(--primary); color: var(--surface);
    font-size: 16px; line-height: 1.5;
    padding: 9px 14px;
    border-radius: 16px 16px 4px 16px;
    overflow-wrap: anywhere; word-break: break-word;
  }
  .a { white-space: pre-wrap; line-height: 1.7; min-height: 24px; font-size: 16px; overflow-wrap: anywhere; word-break: break-word; }
  .a a { color: var(--primary); text-decoration: underline; }
  /* 답변 안에 표/코드블록 같은 넓은 요소가 오더라도 그 요소만 가로 스크롤되게 —
     버블·패널 자체는 절대 가로 스크롤 나지 않게 막는다. */
  .a table { max-width: 100%; display: block; overflow-x: auto; }
  .a pre { max-width: 100%; overflow-x: auto; }
  .a code { overflow-wrap: anywhere; }
  /* 봇 답변 버블: .a(본문) + .imgs(이미지) + .src(출처) + .fb(피드백)를 한 카드로 묶는다. */
  .turn > .bubble.bot {
    display: block; width: fit-content; max-width: 85%;
    background: var(--surface-subtle); border: 1px solid var(--border);
    border-radius: 4px 16px 16px 16px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  /* 스트리밍 델타를 조각(span) 단위로 부드럽게 페이드인 — appendAnswerDelta 참고 */
  .delta-fade { opacity: 0; animation: lms-delta-fade-in .35s ease forwards; }
  @keyframes lms-delta-fade-in { from { opacity: 0; } to { opacity: 1; } }
  .loading { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
  .loading .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: lms-bounce 1.3s infinite ease-in-out both;
  }
  .loading .dot:nth-child(2) { animation-delay: 0.15s; }
  .loading .dot:nth-child(3) { animation-delay: 0.3s; }
  @keyframes lms-bounce {
    0%, 80%, 100% { opacity: 0.25; transform: scale(0.7); }
    40% { opacity: 1; transform: scale(1); }
  }
  /* 진행 표시(미르봇식): 답변 전 단계 상태를 회색 한 줄로. 다음 실제 이벤트
     (text/text_final) 도착 시 ui.clearProgress() 로 제거된다. */
  .progress { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); padding: 4px 0; }
  .progress-dots { display: inline-flex; gap: 3px; }
  .progress-dots span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary);
    animation: lms-progress-pulse 1.1s infinite ease-in-out both;
  }
  .progress-dots span:nth-child(2) { animation-delay: .15s; }
  .progress-dots span:nth-child(3) { animation-delay: .3s; }
  @keyframes lms-progress-pulse {
    0%, 80%, 100% { opacity: 0.25; transform: scale(0.6); }
    40% { opacity: 1; transform: scale(1); }
  }
  .src { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
  .src h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--text); }
  .src h4 svg { color: var(--text-muted); }
  .src ul { list-style: none; padding: 0; margin: 0; }
  .src li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; }
  .src li svg { color: var(--primary); flex-shrink: 0; }
  /* flex 자식은 기본 min-width:auto라 긴 문서 제목이 줄바꿈 대신 li를
     밀어내며 넘칠 수 있다 — min-width:0으로 줄바꿈을 허용한다(생략표시
     대신 전체 제목이 보이도록 줄바꿈 방식 선택; 기존 ellipsis 규칙 없음). */
  .src li a, .src li > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
  .src li a { color: var(--text); text-decoration: none; }
	  .src li a:hover { color: var(--primary); text-decoration: underline; }
  .src li.no-link { color: var(--text); }
  .imgs {
    display: grid;
    /* minmax(280px, 1fr) 고정 바닥값은 380px 위젯 패널처럼 여백을 뺀 실제
       버블 폭이 280px보다 좁아지면 그리드가 버블 밖으로 밀려나온다(트랙이
       280px 밑으로 못 줄어듦). min(280px, 100%)로 바닥을 컨테이너 폭 자체로
       한 번 더 눌러서, 화면(뷰포트) 폭과 무관하게 버블/패널 폭에 맞춰
       항상 줄어들 수 있게 한다 — 넓은 전체화면에서는 기존처럼 280px 기준
       다열 그리드 그대로 유지된다. */
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 10px;
    margin-top: 12px;
    min-width: 0;
    max-width: 100%;
  }
  .imgs img {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-width: 0;
    aspect-ratio: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: zoom-in;
    display: block;
    background: var(--bg);
    transition: transform 0.12s ease;
  }
  .imgs img:hover { transform: scale(1.01); }
  #lightbox {
    position: fixed;
    inset: 0;
	    background: var(--overlay-lightbox);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: zoom-out;
    padding: 24px;
  }
  #lightbox.open { display: flex; }
  #lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
	    box-shadow: var(--shadow-lightbox);
  }
  #lightbox .hint {
    position: fixed;
    bottom: 16px;
	    color: var(--surface);
    font-size: 12px;
    opacity: 0.7;
  }
  /* 캐러셀 좌우 이동 화살표(이미지 2장 이상일 때만 노출 — ui.renderLightbox). */
  #lightbox .lb-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(0,0,0,0.4); color: var(--surface); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 101; padding: 0;
    transition: background-color .15s ease;
  }
  #lightbox .lb-nav:hover { background: rgba(0,0,0,0.68); }
  #lightbox #lb-prev { left: 16px; }
  #lightbox #lb-next { right: 16px; }
  #lightbox .lb-nav svg { width: 26px; height: 26px; }
  .fb { margin-top: 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; flex-wrap: wrap; }
  .fb .q { color: var(--text-muted); }
  .fb button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; cursor: pointer; }
	  .fb button:hover { background: var(--surface-subtle); border-color: var(--border-strong); }
	  .fb button svg { color: var(--text-muted); }
	  .fb button.yes:hover svg { color: var(--success); }
	  .fb button.no:hover svg { color: var(--primary); }
	  .fb .thanks { color: var(--success); font-size: 13px; }
  /* 입력영역: 카드 하나(추천 칩 + pill 입력 + 전송 버튼)로 묶어 "하단 고정" 느낌 */
  .composer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin-top: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
  .input { display: flex; gap: 8px; margin-top: 0; }
  .input-field { position: relative; flex: 1; min-width: 0; }
  /* input 은 브라우저 기본 min-content 폭(대략 170~200px)이 있어 아주 좁은
     패널(≤360px)에서 flex:1 이어도 안 줄어들고 넘칠 수 있다 — min-width:0 으로
     그 바닥을 없앤다. 전송 버튼은 flex-shrink:0 으로 항상 원래 크기 유지. */
  .input input { width: 100%; min-width: 0; padding: 12px 18px; border: 1px solid var(--border); border-radius: 999px; font-size: 16px; }
	  .input input:focus { outline: none; border-color: var(--primary); }
  .input button.primary { border-radius: 999px; padding: 10px 22px; flex-shrink: 0; }
  /* placeholder 순환 오버레이: 실제 placeholder 대신 겹쳐서 예시 질문을 페이드 순환 */
  .placeholder-cycle {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    color: var(--text-tertiary); font-size: 16px; pointer-events: none;
    opacity: 0; transition: opacity .4s ease;
    max-width: calc(100% - 36px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .placeholder-cycle.show { opacity: 1; }
  .placeholder-cycle.hide { opacity: 0 !important; }
  /* 입력창 소형 추천질문(ai-chat-input 참고): 큰 카탈로그 아님, 3~4개 알약 한 줄 */
  .suggest-chips {
    display: flex; flex-wrap: wrap; gap: 8px;
    max-height: 0; opacity: 0; margin: 0; overflow: hidden;
    transition: max-height .25s ease, opacity .2s ease, margin .25s ease;
  }
  .suggest-chips.show { max-height: 80px; opacity: 1; margin: 0 0 10px; }
  .suggest-chip {
    background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
    border-radius: 16px; padding: 6px 13px; font-size: 13px; cursor: pointer;
    max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background .2s, color .2s, border-color .2s, transform .12s ease-out;
  }
  .suggest-chip:hover { background: var(--primary); color: var(--surface); border-color: var(--primary); }
  .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  .top h1 { margin: 0; line-height: 0; }
  .top h1 img { height: 28px; width: auto; display: block; }
  .top .label { font-size: 12px; color: var(--text-muted); }
  .empty { color: var(--text-muted); font-size: 13px; }
	  .faq .faq-intro, .consult-entry .faq-intro { color: var(--text-muted); font-size: 16px; margin: 0 0 14px; line-height: 1.6; }
	  .faq .faq-row, .consult-entry .faq-row { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
	  .consult-entry .faq-row { flex-direction: row; flex-wrap: wrap; }
	  /* 추천 질문 = 둥근 알약 말풍선(내용 너비, 크림슨 테두리, hover 채움) */
	  .faq .faq-chip, .consult-entry .faq-chip {
	    text-align: left; width: fit-content; max-width: 100%;
	    background: var(--surface); border: 1px solid var(--primary); color: var(--primary);
	    border-radius: 18px; padding: 9px 16px; font-size: 16px; cursor: pointer;
	    transition: background .2s, color .2s, border-color .2s, transform .12s ease-out;
	  }
	  .faq .faq-chip:hover, .consult-entry .faq-chip:hover { background: var(--primary); color: var(--surface); }
	  /* 가이드 네비게이션: 대분류(카테고리) 칩 + 하위 문서 칩 */
	  .faq .cat-section { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }
	  .faq .cat-intro { color: var(--text-muted); font-size: 14px; margin: 0 0 12px; line-height: 1.6; }
	  .faq .manual-block { margin-bottom: 14px; }
	  .faq .manual-block:last-child { margin-bottom: 0; }
	  .faq .manual-label { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary); margin: 0 0 8px; letter-spacing: .02em; }
	  .faq .chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
	  .faq .cat-chip, .consult-entry .cat-chip {
	    background: var(--surface); border: 1px solid var(--border); color: var(--text);
	    border-radius: 18px; padding: 8px 14px; font-size: 15px; cursor: pointer;
	    transition: background .2s, color .2s, border-color .2s, transform .12s ease-out;
	  }
	  .faq .cat-chip:hover, .consult-entry .cat-chip:hover { background: var(--primary); color: var(--surface); border-color: var(--primary); }
	  .faq .cat-chip .arrow, .consult-entry .cat-chip .arrow { color: var(--text-muted); margin-left: 6px; }
	  .faq .cat-chip:hover .arrow, .consult-entry .cat-chip:hover .arrow { color: var(--surface); }
  /* 하단 푸터 (e-Class 풍: 개인정보처리방침 + 동서대학교 교육혁신처 + copyright) */
  .site-footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 12px; line-height: 1.9; }
  .site-footer a { color: var(--text-muted); text-decoration: none; }
  .site-footer a:hover { color: var(--primary); text-decoration: underline; }
	  .site-footer .copy { margin: 6px 0 0; color: var(--text-tertiary); }

/* ── 선택형 상담 플로우 ── */
	.consult-entry { display:grid; gap:var(--space-4); align-content:start; }
	.welcome-card { background:var(--surface-info); border:1px solid var(--surface-info-border); border-radius:var(--radius);
	  padding:var(--space-4); line-height:1.6; color:var(--text-info); }
	.category-grid { display:flex; flex-wrap:wrap; gap:var(--space-2); align-items:flex-start; }
	.cat-block { margin:0; width:fit-content; max-width:100%; }
	.cat-block.open { width:100%; }
	.cat-docs { margin:var(--space-2) 0 var(--space-3) var(--space-2); padding-left:var(--space-2); border-left:2px solid var(--border); }
	.a.card { background:var(--surface-info); border:1px solid var(--surface-info-border); border-radius:var(--radius);
	  padding:var(--space-4); line-height:1.7; white-space:pre-wrap; color:var(--text); }
	.related { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
	.rel-chip, .back-chip { font-size:13px; border-radius:18px; padding:7px 12px; }
	.rel-chip { color:var(--primary); border-color:var(--primary); }
	.rel-chip:hover { background:var(--primary); color:var(--surface); border-color:var(--primary); }
	.back-chip { background:var(--surface-subtle); color:var(--text); }
	.back-chip:hover { background:var(--border); }
	.turn .links, .quick-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
	.link-chip { display:inline-block; padding:8px 12px; border-radius:18px;
	  background:var(--link); color:var(--surface); text-decoration:none; font-size:13px; transition:background .2s, transform .12s ease-out; }
	.link-chip:hover { background:var(--link-hover); }

	@media (min-width: 960px) {
	  .consult-entry .faq-row { max-width: 100%; }
	  .consult-entry .cat-block { max-width: 100%; }
	  .a.card { max-width: 980px; }
	}

	@media (max-width: 640px) {
	  .wrap { width: min(100vw - 24px, 1280px); padding-top:var(--space-4); }
	  .log { padding:var(--space-4); min-height:420px; max-height:calc(100dvh - 176px); }
	  .turn > .q { max-width:92%; }
	  .turn > .bubble.bot { max-width:92%; }
	  .imgs { grid-template-columns:1fr; }
	  .suggest-chip { max-width:60vw; }
	}

	@media (prefers-reduced-motion: reduce) {
	  *, *::before, *::after { transition-duration:0.01ms !important; animation-duration:0.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; }
	}

/* ===== 플로팅 챗 위젯 셸 (런처 버블 + 우하단 패널) =====
   이 페이지는 위젯 전용이라 body 는 비어있는(투명) 캔버스로 두고, 기존 채팅
   컨테이너(.wrap, .top, .log, .composer, footer, #modal)는 손대지 않고 그대로
   #widget-panel 안으로 옮겨 담았다(index.html 참고). 아래는 셸(런처·패널·반응형)
   전용 스타일만 추가한다 — 기존 색상 변수·톤을 그대로 재사용. */
html, body { height: auto; background: transparent; }

#widget-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--primary); color: var(--surface); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,0.28);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
#widget-launcher:hover { background: var(--primary-hover); transform: scale(1.08); box-shadow: 0 8px 26px rgba(0,0,0,0.32); }
#widget-launcher:active { transform: scale(0.96); }
#widget-launcher svg { width: 26px; height: 26px; }
#widget-launcher .icon-close { display: none; }
body.widget-open #widget-launcher .icon-chat { display: none; }
body.widget-open #widget-launcher .icon-close { display: block; }

#widget-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 60;
  width: 380px; height: 600px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 120px);
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.24), 0 2px 10px rgba(0,0,0,0.08);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(0.94) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom right;
  transition: transform .22s ease, opacity .18s ease;
}
body.widget-open #widget-panel { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }

/* 패널 내부 재배치: 원래 전체화면 레이아웃(.wrap 가운데정렬·큰 여백)을
   380x600 카드 안에 맞춰 축소하고, .log 가 남는 세로공간을 모두 먹도록 flex 로 바꾼다. */
#widget-panel .topbar { flex: none; border-radius: 16px 16px 0 0; }
#widget-panel .wrap {
  width: 100%; margin: 0; padding: 12px 14px 8px;
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
}
#widget-panel .top { flex: none; margin-bottom: 8px; padding-bottom: 8px; }
#widget-panel .top h1 img { height: 20px; }
#widget-panel .top-right { display: flex; align-items: center; gap: 6px; }
#widget-panel .log {
  flex: 1 1 auto; min-height: 0; max-height: none;
  padding: var(--space-4);
}
#widget-panel .composer { flex: none; margin-top: 8px; }
#widget-panel .site-footer { flex: none; margin-top: 8px; padding-top: 8px; font-size: 10px; }
#widget-panel .site-footer .copy { display: none; } /* 위젯 안엔 저작권 줄까지는 과함 */

#widget-close {
  border: none; background: transparent; color: var(--text-muted);
  width: 26px; height: 26px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color .15s, color .15s;
}
#widget-close svg { width: 16px; height: 16px; }
#widget-close:hover { background: var(--surface-subtle); color: var(--primary); }

/* consent 모달을 패널 안에 가둔다 — 뷰포트 전체가 아니라 패널 카드 범위(inset:0)로. */
#widget-panel .modal-bg { position: absolute; inset: 0; border-radius: 16px; }
#widget-panel .modal { width: calc(100% - 20px); max-height: calc(100% - 20px); padding: 16px; }
#widget-panel .modal h2 { font-size: 15px; }

@media (max-width: 640px) {
  #widget-panel {
    right: 12px; left: 12px; bottom: 84px;
    width: auto; height: auto;
    max-height: calc(100dvh - 104px);
  }
  #widget-launcher { right: 16px; bottom: 16px; }
}

/* standalone: 노션 실행 버튼(/launch → /?chat=1)에서 독립 탭으로 열렸을 때.
   임베드가 아니라 전체 탭 전용이라, 우하단 플로팅 아이콘/패널 대신 대화창을
   화면 가운데 큰 카드로 바로 띄운다(런처·닫기 버튼 숨김). 이 블록은 위젯 셸
   기본 규칙보다 뒤에 둬서(동일 특이도) 패널 위치·크기를 덮어쓴다. */
body.standalone { background: var(--bg); }
body.standalone #widget-launcher,
body.standalone #widget-close { display: none; }
body.standalone #widget-panel {
  position: fixed; inset: 0; margin: auto;
  width: min(560px, 100vw); height: min(860px, 100dvh);
  max-width: none; max-height: none;
  transform: none; opacity: 1; pointer-events: auto;
}
