/* The universal AI chat (qy-ai-chat-1, 2026-09-27; -2: file cards; -4: "Select model", expired files). Scoped to #qac. Colours are the dashboard's own
   (qyntro-premium-dashboard CSS: text #f7f7f8, muted #9b9ea6, lime #d1fe17, card #17191d, border #26292e) -
   no new palette. */
#qac {
  --qac-text: #f7f7f8;
  --qac-muted: #9b9ea6;
  --qac-faint: #6b6f78;
  --qac-lime: #d1fe17;
  --qac-lime-ink: #131517;
  --qac-lime-soft: rgba(209, 254, 23, 0.10);
  --qac-panel: #17191d;
  --qac-deep: #0f1113;
  --qac-raise: #1f2227;
  --qac-border: #26292e;
  --qac-danger: #e5484d;
  --qac-radius: 16px;
  position: relative;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  height: calc(100vh - 120px);
  height: calc(100dvh - 120px);
  min-height: 540px;
  margin: 16px 1.5rem 0;
  border: 1px solid var(--qac-border);
  border-radius: var(--qac-radius);
  background: var(--qac-deep);
  color: var(--qac-text);
  overflow: hidden;
  font-size: 15px;
  line-height: 1.6;
}
#qac *, #qac *::before, #qac *::after { box-sizing: border-box; }
#qac button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
#qac button:focus-visible, #qac input:focus-visible, #qac textarea:focus-visible, #qac a:focus-visible {
  outline: 2px solid var(--qac-lime); outline-offset: 2px;
}
#qac [hidden] { display: none !important; }

/* ---------------------------------------------------------------- sidebar */
#qac .qac-side {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--qac-panel); border-right: 1px solid var(--qac-border);
}
#qac .qac-side-top { display: flex; gap: 8px; padding: 14px 12px 8px; }
#qac .qac-new {
  flex: 1; display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid var(--qac-border); border-radius: 10px; font-weight: 600; font-size: 14px;
}
#qac .qac-new:hover { border-color: var(--qac-lime); color: var(--qac-lime); }
#qac .qac-search {
  display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 7px 10px;
  border-radius: 10px; background: var(--qac-deep); color: var(--qac-muted); font-size: 13px;
}
#qac .qac-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--qac-text); }
#qac .qac-list { flex: 1; overflow-y: auto; padding: 4px 8px 16px; scrollbar-width: thin; }
#qac .qac-group { margin: 14px 8px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--qac-faint); }
#qac .qac-item {
  position: relative; display: flex; align-items: center; border-radius: 9px; font-size: 14px;
}
#qac .qac-item > a {
  flex: 1; min-width: 0; padding: 8px 10px; color: var(--qac-text); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#qac .qac-item:hover, #qac .qac-item.is-active { background: var(--qac-raise); }
#qac .qac-item.is-active > a { color: var(--qac-lime); }
#qac .qac-item-acts { display: none; padding-right: 4px; }
#qac .qac-item:hover .qac-item-acts, #qac .qac-item.is-active .qac-item-acts, #qac .qac-item:focus-within .qac-item-acts { display: flex; }
#qac .qac-item-acts button { width: 28px; height: 28px; border-radius: 7px; color: var(--qac-muted); font-size: 12px; }
#qac .qac-item-acts button:hover { color: var(--qac-text); background: var(--qac-border); }
#qac .qac-item input { flex: 1; margin: 3px; padding: 5px 8px; border: 1px solid var(--qac-lime); border-radius: 7px; background: var(--qac-deep); color: var(--qac-text); outline: 0; }
#qac .qac-list-note { padding: 18px 10px; color: var(--qac-faint); font-size: 13px; }

/* ---------------------------------------------------------------- main */
#qac .qac-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#qac .qac-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--qac-border); }
#qac .qac-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; color: var(--qac-muted); }
#qac .qac-icon:hover { color: var(--qac-text); background: var(--qac-raise); }
#qac .qac-icon.qac-side-open, #qac .qac-icon.qac-side-close { display: none; }
#qac .qac-balance { margin-left: auto; font-size: 13px; color: var(--qac-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* model picker */
#qac .qac-model { position: relative; }
#qac .qac-model-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
}
#qac .qac-model-btn:hover, #qac .qac-model-btn[aria-expanded="true"] { background: var(--qac-raise); }
#qac .qac-model-btn .fa-chevron-down { font-size: 11px; color: var(--qac-muted); }
#qac .qac-logo {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 7px; background: #24272c; overflow: hidden;
}
#qac .qac-logo img { width: 16px; height: 16px; object-fit: contain; }
#qac .qac-logo.is-openai img { mix-blend-mode: screen; }
#qac .qac-model-menu {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 360px; max-width: calc(100vw - 32px);
  max-height: min(70vh, 560px); overflow-y: auto; padding: 6px; border: 1px solid var(--qac-border);
  border-radius: 14px; background: var(--qac-panel); box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
}
#qac .qac-model-group { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--qac-faint); }
#qac .qac-model-row {
  display: flex; width: 100%; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 10px; text-align: left;
}
#qac .qac-model-row:hover { background: var(--qac-raise); }
#qac .qac-model-row.is-picked { background: var(--qac-lime-soft); }
#qac .qac-model-row.is-locked { opacity: .55; cursor: default; }
#qac .qac-model-row .qac-mtext { flex: 1; min-width: 0; }
#qac .qac-model-row strong { display: block; font-size: 14px; font-weight: 600; }
#qac .qac-model-row small { display: block; color: var(--qac-muted); font-size: 12px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#qac .qac-pill { flex: 0 0 auto; margin-top: 2px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; }
#qac .qac-pill.is-new { background: var(--qac-danger); color: #fff; }
#qac .qac-pill.is-plan { border: 1px solid var(--qac-lime); color: var(--qac-lime); }
#qac .qac-model-row .fa-check { margin-top: 4px; color: var(--qac-lime); }
#qac .qac-model-note { margin: 6px 10px 8px; font-size: 12px; color: var(--qac-muted); }
#qac .qac-model-note a { color: var(--qac-lime); }

/* ---------------------------------------------------------------- conversation */
#qac .qac-scroll { flex: 1; min-height: 0; overflow-y: auto; scroll-behavior: auto; }
#qac .qac-thread { width: 100%; max-width: 800px; margin: 0 auto; padding: 24px 24px 12px; }
#qac[data-state="empty"] .qac-thread { display: none; }
#qac:not([data-state="empty"]) .qac-empty { display: none; }
#qac .qac-empty { max-width: 760px; margin: 0 auto; padding: 12vh 24px 24px; text-align: center; }
#qac .qac-hello { margin: 0 0 8px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--qac-text); text-wrap: balance; }
#qac .qac-sub { margin: 0 auto 28px; max-width: 520px; color: var(--qac-muted); }
#qac .qac-suggest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; text-align: left; }
#qac .qac-suggest button {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--qac-border);
  border-radius: 12px; background: var(--qac-panel); font-size: 14px; line-height: 1.4;
}
#qac .qac-suggest button:hover { border-color: var(--qac-lime); }
#qac .qac-suggest i { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--qac-lime-soft); color: var(--qac-lime); flex: 0 0 auto; }

#qac .qac-msg { margin: 0 0 26px; }
#qac .qac-msg.is-user { display: flex; flex-direction: column; align-items: flex-end; }
#qac .qac-bubble {
  max-width: 85%; padding: 10px 16px; border-radius: 18px 18px 6px 18px; background: var(--qac-raise);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
#qac .qac-files { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-end; gap: 8px; margin-bottom: 8px; max-width: 85%; }
#qac .qac-thumb { display: block; width: 132px; height: 132px; border-radius: 12px; overflow: hidden; border: 1px solid var(--qac-border); background: var(--qac-panel); }
#qac .qac-thumb img { width: 100%; height: 100%; object-fit: cover; }
#qac .qac-doc {
  display: flex; align-items: center; gap: 10px; min-width: 190px; max-width: 280px; padding: 8px 12px 8px 8px;
  border: 1px solid var(--qac-border); border-radius: 12px; background: var(--qac-panel); color: var(--qac-text); text-decoration: none;
}
#qac a.qac-doc:hover { border-color: var(--qac-muted); }
#qac .qac-doc-ic { flex: 0 0 auto; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 16px; color: #fff; }
#qac .qac-doc-ic.k-pdf { background: #b42318; }
#qac .qac-doc-ic.k-doc { background: #2556b8; }
#qac .qac-doc-ic.k-sheet { background: #1f7a45; }
#qac .qac-doc-ic.k-slides { background: #c2410c; }
#qac .qac-doc-ic.k-text, #qac .qac-doc-ic.k-code { background: #3f4550; }
#qac .qac-doc-ic.k-image { background: #5b4bc4; }
#qac .qac-doc-meta { min-width: 0; line-height: 1.3; }
#qac .qac-doc-meta strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#qac .qac-doc-meta small { display: block; font-size: 12px; color: var(--qac-muted); }

#qac .qac-who { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--qac-muted); }
#qac .qac-answer { overflow-wrap: anywhere; }
#qac .qac-answer.is-live > :last-child::after, #qac .qac-answer.is-live:empty::after {
  content: ''; display: inline-block; width: 8px; height: 1.05em; margin-left: 3px; vertical-align: -2px;
  background: var(--qac-lime); animation: qac-blink 1s steps(2, start) infinite;
}
@keyframes qac-blink { to { visibility: hidden; } }
#qac .qac-thinking { display: inline-flex; gap: 5px; padding: 6px 0; }
#qac .qac-thinking span { width: 7px; height: 7px; border-radius: 50%; background: var(--qac-muted); animation: qac-dot 1.2s infinite ease-in-out; }
#qac .qac-thinking span:nth-child(2) { animation-delay: .15s; }
#qac .qac-thinking span:nth-child(3) { animation-delay: .3s; }
@keyframes qac-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
#qac .qac-under { display: flex; align-items: center; gap: 6px; margin-top: 6px; min-height: 30px; color: var(--qac-faint); font-size: 12px; }
#qac .qac-under button { width: 30px; height: 30px; border-radius: 8px; color: var(--qac-muted); }
#qac .qac-under button:hover { color: var(--qac-text); background: var(--qac-raise); }
#qac .qac-under .qac-cost { margin-left: 4px; font-variant-numeric: tabular-nums; }
#qac .qac-note { margin-top: 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--qac-border); color: var(--qac-muted); font-size: 13px; }
#qac .qac-note.is-error { border-color: rgba(229, 72, 77, .5); color: #ffb4b6; }
#qac .qac-note button { margin-left: 8px; color: var(--qac-lime); font-weight: 600; }

/* markdown inside an answer */
#qac .qac-md > :first-child { margin-top: 0; }
#qac .qac-md > :last-child { margin-bottom: 0; }
#qac .qac-md p, #qac .qac-md ul, #qac .qac-md ol, #qac .qac-md blockquote, #qac .qac-md pre, #qac .qac-md .qac-table { margin: 0 0 14px; }
#qac .qac-md h1, #qac .qac-md h2, #qac .qac-md h3, #qac .qac-md h4 { margin: 22px 0 10px; line-height: 1.3; font-weight: 700; color: var(--qac-text); text-wrap: balance; }
#qac .qac-md h1 { font-size: 22px; }
#qac .qac-md h2 { font-size: 19px; }
#qac .qac-md h3 { font-size: 17px; }
#qac .qac-md h4 { font-size: 15px; }
#qac .qac-md ul, #qac .qac-md ol { padding-left: 24px; }
#qac .qac-md li { margin: 4px 0; }
#qac .qac-md a { color: var(--qac-lime); text-decoration: underline; text-underline-offset: 2px; }
#qac .qac-md strong { color: #fff; }
#qac .qac-md blockquote { padding: 2px 14px; border-left: 3px solid var(--qac-border); color: var(--qac-muted); }
#qac .qac-md hr { border: 0; border-top: 1px solid var(--qac-border); margin: 18px 0; }
#qac .qac-md :not(pre) > code { padding: 1px 6px; border-radius: 6px; background: var(--qac-raise); font-size: .88em; }
#qac .qac-md pre { position: relative; border: 1px solid var(--qac-border); border-radius: 12px; background: #0b0c0e; overflow: hidden; }
#qac .qac-md pre .qac-code-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 6px 14px; border-bottom: 1px solid var(--qac-border); font-size: 12px; color: var(--qac-muted); }
#qac .qac-md pre .qac-code-head button { padding: 3px 8px; border-radius: 7px; font-size: 12px; color: var(--qac-muted); }
#qac .qac-md pre .qac-code-head button:hover { color: var(--qac-text); background: var(--qac-raise); }
#qac .qac-md pre code { display: block; padding: 12px 14px; overflow-x: auto; font-size: 13px; line-height: 1.55; background: none; }
#qac .qac-md .qac-table { overflow-x: auto; border: 1px solid var(--qac-border); border-radius: 10px; }
#qac .qac-md table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
#qac .qac-md th, #qac .qac-md td { padding: 7px 12px; border-bottom: 1px solid var(--qac-border); text-align: left; vertical-align: top; }
#qac .qac-md th { background: var(--qac-panel); font-weight: 600; }
#qac .qac-md tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- composer */
#qac .qac-composer { width: 100%; max-width: 800px; margin: 0 auto; padding: 8px 24px 14px; }
#qac .qac-box {
  border: 1px solid var(--qac-border); border-radius: 20px; background: var(--qac-panel);
  transition: border-color .15s;
}
#qac .qac-box:focus-within { border-color: #3a3e45; }
#qac .qac-chips { display: flex; gap: 8px; padding: 10px 10px 0; overflow-x: auto; scrollbar-width: thin; }
#qac .qac-chip {
  position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 9px; max-width: 240px;
  padding: 6px 30px 6px 6px; border: 1px solid var(--qac-border); border-radius: 12px; background: var(--qac-deep);
}
#qac .qac-chip.is-image { padding: 0; width: 64px; height: 64px; overflow: hidden; }
#qac .qac-chip.is-image img { width: 100%; height: 100%; object-fit: cover; }
#qac .qac-chip .qac-doc-ic { width: 32px; height: 32px; font-size: 14px; }
#qac .qac-chip .qac-doc-meta strong { max-width: 150px; }
#qac .qac-chip-x {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(15, 17, 19, .85) !important; color: var(--qac-text); font-size: 11px;
}
#qac .qac-chip-x:hover { background: var(--qac-danger) !important; }
#qac .qac-chip.is-busy::after {
  content: attr(data-progress); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  border-radius: inherit; background: rgba(15, 17, 19, .72); color: var(--qac-lime); font-size: 12px; font-weight: 700;
}
#qac .qac-chip.is-failed { border-color: var(--qac-danger); }
#qac .qac-chip.is-failed .qac-doc-meta small { color: #ffb4b6; white-space: normal; }
#qac .qac-box textarea {
  display: block; width: 100%; max-height: 40vh; min-height: 52px; padding: 14px 18px 6px; border: 0; outline: 0;
  resize: none; background: none; color: var(--qac-text); font: inherit; line-height: 1.5;
}
#qac .qac-box textarea::placeholder { color: var(--qac-faint); }
#qac .qac-actions { display: flex; align-items: center; gap: 6px; padding: 4px 8px 8px; }
#qac .qac-limit { font-size: 12px; color: var(--qac-faint); }
#qac .qac-send, #qac .qac-stop {
  margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}
#qac .qac-send { background: var(--qac-lime) !important; color: var(--qac-lime-ink) !important; }
#qac .qac-send:disabled { background: var(--qac-raise) !important; color: var(--qac-faint) !important; cursor: default; }
#qac .qac-stop { background: var(--qac-text) !important; color: var(--qac-deep) !important; }
#qac .qac-foot { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--qac-faint); }

#qac .qac-drop {
  position: absolute; inset: 10px; z-index: 40; display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--qac-lime); border-radius: var(--qac-radius); background: rgba(15, 17, 19, .88);
  color: var(--qac-lime); font-weight: 600; pointer-events: none;
}
#qac .qac-drop div { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#qac .qac-drop i { font-size: 34px; }
#qac .qac-toast {
  position: absolute; left: 50%; bottom: 128px; z-index: 50; transform: translateX(-50%); max-width: min(560px, calc(100% - 32px));
  padding: 10px 16px; border: 1px solid var(--qac-border); border-radius: 12px; background: var(--qac-raise);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5); font-size: 14px;
}
#qac .qac-toast.is-error { border-color: rgba(229, 72, 77, .6); }

/* ---------------------------------------------------------------- files a reply makes (qy-ai-chat-2) */
#qac .qac-filecard {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; max-width: 580px; margin: 10px 0 14px;
  padding: 10px 12px; border: 1px solid var(--qac-border); border-radius: 14px; background: var(--qac-panel);
}
#qac .qac-filecard.is-ready { border-color: #33373d; }
#qac .qac-filecard .qac-doc-meta { flex: 1; min-width: 0; }
#qac .qac-filecard .qac-doc-meta strong { font-size: 14px; }
#qac .qac-filecard.is-writing .qac-doc-meta small::before {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%;
  background: var(--qac-lime); vertical-align: 1px; animation: qac-dot 1.2s infinite ease-in-out;
}
#qac .qac-md .qac-filecard a.qac-dl {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 10px;
  background: var(--qac-lime); color: var(--qac-lime-ink); font-size: 13px; font-weight: 700; text-decoration: none;
}
#qac .qac-md .qac-filecard a.qac-dl:hover { filter: brightness(1.08); }
#qac .qac-filecard .qac-show { padding: 6px 10px; border-radius: 9px; font-size: 13px; color: var(--qac-muted); }
#qac .qac-filecard .qac-show:hover { background: var(--qac-raise); color: var(--qac-text); }
#qac .qac-md .qac-filecard pre { flex-basis: 100%; max-height: 380px; margin: 2px 0 0; overflow: auto; }
#qac .qac-md .qac-filecard pre code { white-space: pre; }

/* ---------------------------------------------------------------- qy-ai-chat-4: "Select model", expired files */
#qac .qac-model-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; line-height: 1.15; text-align: left; }
#qac .qac-model-hint { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--qac-lime); }
#qac .qac-model-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#qac .qac-doc.is-expired, #qac .qac-filecard.is-expired { opacity: .6; cursor: default; }
#qac .qac-doc.is-expired .qac-doc-meta small { font-style: italic; }

/* ---------------------------------------------------------------- narrow screens */
#qac .qac-veil { display: none; }
@media (max-width: 991px) {
  #qac { grid-template-columns: minmax(0, 1fr); margin: 10px 10px 0; height: calc(100dvh - 96px); }
  #qac .qac-side {
    position: absolute; z-index: 60; top: 0; bottom: 0; left: 0; width: min(300px, 86%);
    transform: translateX(-102%); transition: transform .2s ease;
  }
  #qac.is-side-open .qac-side { transform: none; box-shadow: 16px 0 40px rgba(0, 0, 0, .5); }
  #qac.is-side-open .qac-veil { display: block; position: absolute; inset: 0; z-index: 55; background: rgba(0, 0, 0, .5); }
  #qac .qac-icon.qac-side-close, #qac .qac-icon.qac-side-open { display: inline-flex; }
  #qac .qac-thread { padding: 18px 14px 8px; }
  #qac .qac-composer { padding: 6px 10px 10px; }
  #qac .qac-empty { padding-top: 7vh; }
  #qac .qac-suggest { grid-template-columns: minmax(0, 1fr); }
  #qac .qac-bubble, #qac .qac-files { max-width: 92%; }
  #qac .qac-hello { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  #qac * { animation: none !important; transition: none !important; }
}

/* ================================================================ qy-guest-chat-2 (2026-09-27): the public /ai/chat.
   Everything above is ai-chat-4.css verbatim, so the public page IS the chat's screen; below is only what a
   logged-out page needs around it. The header above the page is fixed, so the page owns its top clearance. */
#gv-tool { padding: 96px 0 72px; color: #f2f3f5; }
#gv-tool .hidden { display: none !important; }
#gv-tool .gv-hero { margin-bottom: 26px; }
#gv-tool .gv-eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 5px 14px; border-radius: 999px;
  border: 1px solid rgba(204, 242, 74, .3); background: rgba(204, 242, 74, .08); color: #ccf24a;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
#gv-tool .gv-headline { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px; text-wrap: balance; }
#gv-tool .gv-headline em { font-style: normal; color: #ccf24a; }
#gv-tool .gv-subline { font-size: 15.5px; line-height: 1.7; margin: 0 auto; max-width: 660px; color: rgba(255, 255, 255, .55); }

#qac.qgc {
  height: clamp(560px, calc(100vh - 150px), 760px);
  height: clamp(560px, calc(100dvh - 150px), 760px);
  max-width: 1180px; margin: 0 auto; text-align: left;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

/* the picker keeps the shared guest script's structure (.photo-studio-tools .dropdown-menu .dropdown-item[id]),
   so Bootstrap's dropdown rules are undone here; the [hidden] attribute decides whether the menu shows */
#qac .qac-model-menu.dropdown-menu { display: block; min-width: 0; margin: 0; font-size: inherit; text-align: left; }
#qac .qac-model-row.dropdown-item { white-space: normal; text-decoration: none; color: var(--qac-text); border: 0; margin: 0; }
#qac .qac-model-row.dropdown-item:hover, #qac .qac-model-row.dropdown-item:focus,
#qac .qac-model-row.dropdown-item:active { color: var(--qac-text); background: var(--qac-raise); }
#qac .qac-model-row.dropdown-item.is-picked { background: var(--qac-lime-soft); }
#qac .qac-model-row .qgc-check { display: none; margin: 4px 0 0 6px; color: var(--qac-lime); }
#qac .qac-model-row.is-picked .qgc-check { display: inline-block; }
#qac .qac-model-row.is-locked { opacity: .78; cursor: pointer; }
#qac .qac-model-row.is-locked:hover { opacity: 1; }
#qac .qac-pill.is-free { border: 1px solid rgba(209, 254, 23, .35); color: var(--qac-lime); }
#qac .qac-pill.is-plan i { margin-right: 4px; font-size: 9px; }
#qac .qac-logo > i { font-size: 12px; color: var(--qac-muted); }
#qac .qac-model-note { padding-top: 8px; border-top: 1px solid var(--qac-border); line-height: 1.5; }

#qac .qgc-signup {
  margin-left: auto; padding: 7px 14px; border-radius: 10px; background: var(--qac-lime); color: var(--qac-lime-ink);
  font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
#qac .qgc-signup:hover { filter: brightness(1.06); color: var(--qac-lime-ink); }

#qac .qac-search input:disabled { cursor: default; opacity: .6; }
#qac .qgc-note {
  display: flex; flex-direction: column; gap: 6px; margin: 8px 4px; padding: 16px 14px;
  border: 1px solid var(--qac-border); border-radius: 14px; background: var(--qac-panel);
  color: var(--qac-muted); font-size: 13px; line-height: 1.5;
}
#qac .qgc-note > i { color: var(--qac-lime); font-size: 18px; }
#qac .qgc-note strong { color: var(--qac-text); font-size: 14px; }
#qac .qgc-note-cta {
  margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: var(--qac-lime); color: var(--qac-lime-ink);
  font-weight: 700; text-align: center; text-decoration: none;
}
#qac .qgc-note-cta:hover { filter: brightness(1.06); color: var(--qac-lime-ink); }
#qac .qgc-note-in { font-size: 12px; }
#qac .qgc-note-in a { color: var(--qac-lime); }

/* the send button is never disabled here (a click on an empty box shows the hint) - it only looks it */
#qac .qac-send:not(.is-ready) { background: var(--qac-raise) !important; color: var(--qac-faint) !important; }
#qac .qgc-plan { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#qac .qgc-plan[data-free="1"] i { color: var(--qac-lime); }
#qac .gv-hint { margin: 0 6px 6px; color: #ff8a80; font-size: 12.5px; line-height: 1.4; }
#qac textarea.gv-bad { box-shadow: none; }

#gv-tool .qgc-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1180px; margin: 44px auto 0; text-align: left; }
#gv-tool .qgc-point { padding: 22px; border: 1px solid #26292e; border-radius: 16px; background: #15171b; }
#gv-tool .qgc-point i { color: #ccf24a; font-size: 20px; }
#gv-tool .qgc-point h3 { margin: 12px 0 6px; color: #f7f7f8; font-size: 16px; font-weight: 700; }
#gv-tool .qgc-point p { margin: 0; color: rgba(255, 255, 255, .55); font-size: 14px; line-height: 1.6; }
#gv-tool .qgc-free { margin: 22px auto 0; text-align: center; color: rgba(255, 255, 255, .6); font-size: 14px; }
#gv-tool .qgc-free i { margin-right: 6px; color: #ccf24a; }

@media (max-width: 991px) {
  #gv-tool { padding: 84px 0 56px; }
  #qac.qgc { height: min(640px, calc(100vh - 110px)); height: min(640px, calc(100dvh - 110px)); margin: 0; }
  #gv-tool .qgc-more { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
}
@media (max-width: 575px) {
  #gv-tool .gv-subline { font-size: 14.5px; }
  #qac .qgc-signup { padding: 6px 10px; font-size: 12px; }
  #qac .qgc-plan { display: none; }
}
