/* =========================
   ChatGPT-like chat surface
   ========================= */

:root{
  --cg-bg: #0f0f0f;        /* app background */
  --cg-text: #f2f2f2;      /* main text */
  --cg-muted: #a6a6a6;     /* meta text */
  --cg-bubble: #1a1a1a;    /* assistant bubble */
  --cg-user: #262626;      /* user bubble */
  --cg-stroke: #2f2f2f;    /* subtle stroke */
}



/* Make your chat section feel like ChatGPT (flat, not “card in card”) */
#chatLog.chatgpt-shell{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px;
  background: transparent;          /* key: no card background */
}

/* Full-width rows like ChatGPT */
.chat-row{
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Avatar: small, subtle */
.chat-avatar{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #111;
  border: 1px solid var(--cg-stroke);
  color: var(--cg-text);
  flex: 0 0 auto;
  margin-top: 2px;
}

/* Bubbles: no heavy shadow, minimal stroke, slightly rounded */
.chat-bubble{
  max-width: 720px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--cg-bubble);
  border: 1px solid var(--cg-stroke);
  box-shadow: none;                 /* key: remove “card” feel */
}

/* Meta label: very subtle */
.chat-meta{
  font-size: 12px;
  color: var(--cg-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

/* Message */
.chat-msg{
  margin: 0;
  color: var(--cg-text);
  font-size: 15px;
  line-height: 1.45;
}

/* User messages: right aligned + slightly different bubble */
.chat-row.user{
  justify-content: flex-end;
}

.chat-row.user .chat-bubble{
  background: var(--cg-user);
}

/* Hide avatar on user messages (ChatGPT usually doesn’t show one) */
.chat-row.user .chat-avatar{
  display: none;
}

/* =========================
   Quick replies like ChatGPT
   ========================= */

.quick-replies{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Outlined pill, not filled “button card” */
.qchip{
  background: transparent;
  color: var(--cg-text);
  border: 1px solid var(--cg-stroke);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.qchip:hover{
  border-color: #3a3a3a;
  background: rgba(255,255,255,.04);
}

.qchip:active{
  background: rgba(255,255,255,.06);
}

.qchip:disabled{
  opacity: .55;
  cursor: default;
}

/* Optional: remove your qz-card styling from the chat container if it’s adding borders */
.qz-card:has(#chatLog){
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.chat-surface{
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 12px;
}

/* If qz-card styles are still affecting it (just in case) */
.qz-card .chatgpt-shell{
  background: transparent;
}

.typing-dots{
  display:inline-flex;
  gap:6px;
  align-items:center;
  height:18px;
}
.typing-dots span{
  width:6px;
  height:6px;
  border-radius:999px;
  background: rgba(255,255,255,.75);
  display:inline-block;
  animation: dotBounce 1.05s infinite ease-in-out;
}
.typing-dots span:nth-child(2){ animation-delay:.15s; }
.typing-dots span:nth-child(3){ animation-delay:.30s; }

@keyframes dotBounce{
  0%,80%,100%{ transform: translateY(0); opacity:.45; }
  40%{ transform: translateY(-4px); opacity:1; }
}
.hint-bubble{
  background: rgba(255,255,255,.06);  /* softer than assistant bubble */
  border: 1px dashed rgba(255,255,255,.25);
}

.hint-row .chat-meta{
  color: rgba(255,255,255,.75);
  letter-spacing: .2px;
}

.hint-row .chat-avatar{
  background: rgba(255,255,255,.05);
  border: 1px dashed rgba(255,255,255,.25);
}
/* =========================================================
   Prompt Paths pages: avoid collision with streak/xp pills
   Applies to BOTH prompt-paths + paths-list (same body class)
   ========================================================= */

body.prompt-paths-page .site-shell {
  padding-top: 100px; /* adjust up/down as needed */
}

/* If streak/xp is taller on mobile, give extra breathing room */
@media (max-width: 768px) {
  body.prompt-paths-page .site-shell {
    padding-top: 92px;
  }
}
/* =============================
   POST-LOGIN CHOOSER MODAL
   ============================= */

.pliz-modal[hidden] {
  display: none !important;
}

.pliz-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.pliz-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 26, 0.78);
  backdrop-filter: blur(6px);
}

.pliz-modal__dialog {
  position: relative;
  width: min(900px, calc(100vw - 24px));
  margin: min(8vh, 56px) auto;
  background:
    radial-gradient(circle at top right, rgba(96,165,250,.10), transparent 28%),
    linear-gradient(180deg, rgba(15,22,37,.98), rgba(10,15,26,.98));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(59,130,246,.12) inset;
  color: var(--ink);
  padding: 24px;
  overflow: hidden;
}

.pliz-modal__dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(59,130,246,.08), transparent 35%),
    radial-gradient(circle at 14% 12%, rgba(96,165,250,.10), transparent 20%);
}

.pliz-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,.28);
  background: rgba(15,22,37,.88);
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
}

.pliz-modal__close:hover {
  color: var(--ink);
  background: rgba(59,130,246,.10);
  border-color: rgba(59,130,246,.45);
}

.pliz-modal__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0.35rem 0.7rem;
  font: 700 11px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  border: 1px solid rgba(59,130,246,.45);
  color: rgb(207,224,255);
  background: rgba(30,58,138,.28);
  border-radius: 999px;
  margin-bottom: 12px;
}

.pliz-modal__title {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.pliz-modal__desc {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1rem;
}

.pliz-modal__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pliz-modal__card {
  display: block;
  min-height: 132px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(15,22,37,.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.pliz-modal__card:hover {
  transform: translateY(-3px);
  border-color: rgba(96,165,250,.55);
  background: rgba(18,28,46,.96);
  box-shadow:
    0 12px 26px rgba(0,0,0,.22),
    0 0 0 1px rgba(59,130,246,.12) inset;
}

.pliz-modal__card-title {
  color: rgb(207,224,255);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.pliz-modal__card-text {
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.45;
}

.pliz-modal__footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

body.pliz-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .pliz-modal__dialog {
    width: min(100vw - 16px, 900px);
    margin: 20px auto;
    padding: 20px 16px 16px;
  }

  .pliz-modal__grid {
    grid-template-columns: 1fr;
  }

  .pliz-modal__card {
    min-height: auto;
  }
}
