/* @LAYER: VIEW | @PORT: 8002 | @ROLE: 제네시스 대화창 겉모습 — NEXUS 콘솔 결(유리·청록 네온·육각)로 | @KEY: .gd-root 의 --gd-* 색 변수
 *
 * ★ 왜 (2026-10-06 김성광) "아이콘이나 디자인도 넥서스에 맞게 — 지금은 완전 지니어스를 그대로 가져온 형태" · "창이 너무 작다"
 * ★ 색은 콘솔 테마(home_console_theme.css)와 같은 값 — 청록 #00F0FF · 파랑 #0057FF · 유리 카드. 로고 클래스는 쓰지도 건드리지도 않는다.
 * ★ 강조색은 --gd-* 변수 한 곳에서만 정한다(다른 결로 바꿀 때 여기만 고친다).
 */
.gd-root {
  --gd-acc: #00F0FF;                 /* 강조(테두리·버튼 글자·빛) = 콘솔 --ai-neon */
  --gd-acc-rgb: 0,240,255;
  --gd-deep: #0057FF;                /* 보내기·내 말 = 콘솔 --ai-blue */
  --gd-deep2: #0040cc;
}

/* ── 부르는 버튼: 육각(콘솔 배경 무늬와 같은 모양) + AI 반짝임 ── */
.gd-fab { position: fixed; right: 24px; bottom: 24px; width: 64px; height: 70px; border: none; padding: 0; background: transparent; cursor: pointer; z-index: 9000;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.55)) drop-shadow(0 0 10px rgba(var(--gd-acc-rgb),.45)); transition: filter .2s, transform .2s; }
.gd-fab:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 18px rgba(0,0,0,.6)) drop-shadow(0 0 16px rgba(var(--gd-acc-rgb),.75)); }
.gd-fab svg { width: 100%; height: 100%; display: block; overflow: visible; }
.gd-fab .gd-hex { fill: url(#gd-glass); stroke: var(--gd-acc); stroke-width: 1.6; }
.gd-fab .gd-spark { fill: var(--gd-acc); }
.gd-fab .gd-ring { fill: none; stroke: var(--gd-acc); stroke-width: 1; opacity: 0; transform-origin: 32px 35px; animation: gd-pulse 2.8s ease-out infinite; }
@keyframes gd-pulse { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.28); } }
.gd-fab.on { display: none; }

/* ── 창: 콘솔 카드와 같은 유리 + 청록 테두리 ── */
.gd-panel { position: fixed; right: 24px; bottom: 24px; width: 440px; height: min(700px, calc(100vh - 110px)); z-index: 9001; display: none; flex-direction: column;
  background: linear-gradient(180deg, rgba(16,26,40,.96), rgba(7,11,19,.98)); backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--gd-acc-rgb),.32); border-radius: 16px; overflow: hidden;
  box-shadow: 0 22px 54px rgba(0,0,0,.65), 0 0 26px rgba(var(--gd-acc-rgb),.14), inset 0 1px 0 rgba(255,255,255,.10); }
.gd-panel.on { display: flex; }

.gd-head { display: flex; align-items: center; gap: 11px; padding: 13px 14px 12px 16px; border-bottom: 1px solid rgba(var(--gd-acc-rgb),.16);
  background: linear-gradient(90deg, rgba(var(--gd-acc-rgb),.10), rgba(0,87,255,.04) 60%, transparent); }
.gd-head-ic { width: 30px; height: 34px; flex: none; filter: drop-shadow(0 0 6px rgba(var(--gd-acc-rgb),.6)); }
.gd-head-ic .gd-hex { fill: rgba(var(--gd-acc-rgb),.10); stroke: var(--gd-acc); stroke-width: 2.2; }
.gd-head-ic .gd-spark { fill: var(--gd-acc); }
.gd-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gd-title b { font-family: Orbitron, sans-serif; font-size: .92rem; letter-spacing: 2.5px; color: #eaf8ff; font-weight: 800; }
.gd-title small { font-size: .72rem; color: #8fa0b6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-live { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; color: #7CFC8A; }
.gd-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7CFC8A; box-shadow: 0 0 6px #7CFC8A; }
.gd-x { background: transparent; border: 1px solid transparent; color: #9fb0c4; font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 4px 7px; border-radius: 7px; }
.gd-x:hover { color: #fff; border-color: rgba(var(--gd-acc-rgb),.3); }

/* ── 대화 ── */
.gd-list { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(var(--gd-acc-rgb),.25) transparent; }
.gd-msg { max-width: 86%; padding: 11px 14px; border-radius: 12px; font-size: .9rem; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.gd-ai { align-self: flex-start; background: rgba(255,255,255,.035); border: 1px solid rgba(var(--gd-acc-rgb),.16); color: #e6edf6; border-top-left-radius: 4px; }
.gd-me { align-self: flex-end; background: linear-gradient(135deg, var(--gd-deep), var(--gd-deep2)); border: 1px solid rgba(255,255,255,.08); color: #fff; border-top-right-radius: 4px; }
.gd-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 94%; }
.gd-chip, .gd-opt, .gd-go { background: rgba(0,87,255,.10); border: 1px solid rgba(var(--gd-acc-rgb),.35); color: var(--gd-acc); border-radius: 16px; padding: 6px 13px; font-size: .82rem; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s; }
.gd-chip:hover, .gd-opt:hover, .gd-go:hover { background: rgba(0,87,255,.24); border-color: rgba(var(--gd-acc-rgb),.7); }
.gd-opt { border-radius: 10px; color: #e9fbff; }              /* 진단 선택지 = 누르면 그 말로 답한다 */
.gd-opt:disabled, .gd-chip:disabled { opacity: .4; cursor: default; background: transparent; }
.gd-opt.picked { opacity: 1; border-color: var(--gd-acc); background: rgba(var(--gd-acc-rgb),.16); }
.gd-go { background: rgba(var(--gd-acc-rgb),.14); color: #fff; font-weight: 600; }
.gd-note { font-size: .76rem; color: #8a94a6; }

/* ── 입력 ── */
.gd-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(var(--gd-acc-rgb),.12); background: rgba(4,7,13,.6); }
.gd-in { flex: 1; min-width: 0; background: rgba(255,255,255,.04); border: 1px solid rgba(var(--gd-acc-rgb),.18); border-radius: 10px; color: #fff; padding: 11px 12px; font-size: .9rem; outline: none; font-family: inherit; }
.gd-in:focus { border-color: rgba(var(--gd-acc-rgb),.65); box-shadow: 0 0 0 3px rgba(var(--gd-acc-rgb),.10); }
.gd-send { background: linear-gradient(135deg, var(--gd-deep), var(--gd-deep2)); border: 1px solid rgba(var(--gd-acc-rgb),.35); color: #fff; border-radius: 10px; padding: 0 18px; font-weight: 700; cursor: pointer; font-family: inherit; }
.gd-send:disabled { opacity: .5; cursor: default; }

@media (max-width: 820px) {
  .gd-panel { right: 0; left: 0; bottom: 0; width: auto; height: min(82vh, 640px); border-radius: 16px 16px 0 0; }
  .gd-fab { right: 14px; bottom: 14px; width: 56px; height: 62px; }
}
