:root{
  --ogb-shadow: 0 12px 30px rgba(0,0,0,.18);
  --ogb-radius: 18px;
  --ogb-border: rgba(0,0,0,.08);
  --ogb-bg: #ffffff;
  --ogb-muted: rgba(0,0,0,.55);
  --ogb-font: ui-sans-serif, system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Segoe UI, Roboto, Helvetica, Arial;
}

.ogb-hide{ display:none !important; }

/* ---------- Home Page UI (requested) ---------- */
.ogb-home-wrap{
  font-family: var(--ogb-font);
  padding: 56px 18px 80px;
  max-width: 980px;
  margin: 0 auto;
}
.ogb-home-hero{
  text-align: center;
  padding-top: 10px;
}
.ogb-home-title{
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px 0;
  font-weight: 800;
}
.ogb-home-sub{
  margin: 0 0 34px 0;
  font-size: 18px;
  color: rgba(0,0,0,.45);
  font-weight: 500;
}
.ogb-home-inputcard{
  display:flex;
  align-items:center;
  gap: 10px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 22px;
  padding: 18px 16px;
  max-width: 780px;
  margin: 0 auto;
}
.ogb-home-plus{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.85);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: rgba(0,0,0,.6);
}
.ogb-home-plus:hover{ background: #fff; }
.ogb-home-input{
  flex:1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 18px;
  padding: 6px 4px;
  color: rgba(0,0,0,.8);
}
.ogb-home-mic{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
}
.ogb-home-mic:hover{ background: rgba(0,0,0,.04); }
.ogb-home-chat{
  margin-top: 26px;
}

/* ---------- Chat card (full page) ---------- */
.ogb-chat-card{
  border: 1px solid var(--ogb-border);
  border-radius: var(--ogb-radius);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  background: var(--ogb-bg);
  max-width: 780px;
  margin: 0 auto;
}
.ogb-disclaimer{
  padding: 12px 14px;
  border-bottom: 1px solid var(--ogb-border);
  background: rgba(0,0,0,.02);
  font-family: var(--ogb-font);
}
.ogb-disclaimer-title{
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 4px;
}
.ogb-disclaimer-text{
  font-size: 12px;
  color: var(--ogb-muted);
  line-height: 1.35;
}
.ogb-messages{
  padding: 14px 14px;
  overflow: auto;
  height: 420px;
  background: rgba(0,0,0,.015);
  font-family: var(--ogb-font);
}
.ogb-msg{ display:flex; margin: 10px 0; }
.ogb-msg.ogb-user{ justify-content:flex-end; }
.ogb-msg.ogb-assistant{ justify-content:flex-start; }
.ogb-bubble{
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--ogb-border);
  background: var(--ogb-bg);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

/* 출처(참고 문서) 표시 */
.ogb-sources{
  margin-top: 6px;
  font-size: 11px;
  color: rgba(0,0,0,.55);
  line-height: 1.35;
}
.ogb-sources ul{
  margin: 4px 0 0 16px;
  padding: 0;
}
.ogb-sources li{ margin: 2px 0; }
.ogb-user .ogb-bubble{
  background: rgba(59,130,246,.08);
  border-color: rgba(59,130,246,.20);
}
.ogb-inputbar{
  display:flex;
  gap: 8px;
  padding: 10px 10px;
  border-top: 1px solid var(--ogb-border);
  background: var(--ogb-bg);
  font-family: var(--ogb-font);
}
.ogb-input{
  flex:1;
  border: 1px solid var(--ogb-border);
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}
.ogb-send{
  border: 1px solid var(--ogb-border);
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  background: rgba(0,0,0,.04);
}
.ogb-send:disabled{ opacity: .6; cursor: not-allowed; }

/* ---------- Floating widget (unchanged) ---------- */
.ogb-launcher{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  background: var(--ogb-bg);
  border: 1px solid var(--ogb-border);
  border-radius: 999px;
  padding: 12px 14px;
  box-shadow: var(--ogb-shadow);
  font-size: 14px;
  cursor: pointer;
  display:flex;
  gap:10px;
  align-items:center;
  font-family: var(--ogb-font);
}
.ogb-launcher:hover{ transform: translateY(-1px); }
.ogb-launcher-dot{
  width:10px;height:10px;border-radius:999px;background:#22c55e;display:inline-block;
}
.ogb-hidden{ display:none !important; }

.ogb-panel{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 360px;
  max-width: calc(100vw - 36px);
  height: 520px;
  max-height: calc(100vh - 36px);
  background: var(--ogb-bg);
  border: 1px solid var(--ogb-border);
  border-radius: var(--ogb-radius);
  box-shadow: var(--ogb-shadow);
  z-index: 99999;
  overflow: hidden;
  display: none;
  font-family: var(--ogb-font);
}
.ogb-panel.ogb-panel-open{ display:flex; flex-direction:column; }
.ogb-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ogb-border);
}
.ogb-title{ font-weight: 800; font-size: 14px; }
.ogb-close{
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  color: rgba(0,0,0,.55);
}

/* responsive */
@media (max-width: 540px){
  .ogb-home-title{ font-size: 36px; }
  .ogb-home-inputcard{ padding: 14px 12px; }
  .ogb-home-sub{ font-size: 16px; }
  .ogb-messages{ height: 380px; }
}
