/**
 * File role: VOGO chat (rag-ai) — the predefined menu of a conversation (user, 18.10.2026, AGENTMOB): its button in the
 * send arrow's pop-up, its entry in the top menu and its window. Colours and radii are the chat's own tokens
 * (rag-ai.css); nothing here redefines them.
 *
 * @file_version 1.0.9 (1.0.9: the detail level's chips left the model window, its own window now, 31.10.2026, user); 1.0.8 (1.0.8: the detail level as chips above the model list, 31.10.2026, user); 1.0.7 (1.0.7: the conversation's detail level under the model list, 31.10.2026, user); 1.0.6 (1.0.6: the model window fills the laptop's height too, the phone's rows, 31.10.2026, user); 1.0.5 (1.0.5: the model window fills the phone's screen, 29.10.2026; 1.0.4: the model window's first line "Modelul curent: … · implicit / schimbat" and the current
 * row marked, 29.10.2026; 1.0.3: the model list as the app's Profile list: icon, name, note, chevron, 29.10.2026)
 */
.send-tools .conv-menu-open { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--vogo-icon-blue); background: transparent; border: 1px solid var(--line); border-radius: var(--radius, 10px);
  cursor: pointer; }
.send-tools .conv-menu-open:hover { border-color: var(--acc); }

.cm-overlay { position: fixed; inset: 0; z-index: 130; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .45); }
.cm-sheet { width: min(560px, 100%); max-height: 82vh; display: flex; flex-direction: column; background: var(--panel);
  color: var(--fg); border: 1px solid var(--line); border-radius: 14px 14px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .35); }
@media (min-width: 760px) {
  .cm-overlay { align-items: center; }
  .cm-sheet { border-radius: 14px; }
}
/* The model window on the phone (user, 29.10.2026): the whole screen, no rounded top, the list filling the height */
@media (max-width: 759px) {
  .cm-sheet.cm-sheet--full { width: 100%; height: 100%; max-height: none; border: none; border-radius: 0; box-shadow: none;
    padding-bottom: env(safe-area-inset-bottom, 0); }
  .cm-sheet.cm-sheet--full .cm-head { padding-top: calc(14px + env(safe-area-inset-top, 0)); }
  .cm-sheet.cm-sheet--full .cm-body { flex: 1 1 auto; }
}
/* The model window on the laptop (user, 31.10.2026): the same full-height window as on the phone, the list filling
   its height, in a column of the same width as the menu's centred window; the rows are the phone's rows */
@media (min-width: 760px) {
  .cm-sheet.cm-sheet--full { width: min(560px, 100%); height: calc(100% - 48px); max-height: none; }
  .cm-sheet.cm-sheet--full .cm-body { flex: 1 1 auto; }
}
.cm-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cm-head .bi { color: var(--vogo-icon-blue); font-size: 20px; }
.cm-title { flex: 1 1 auto; font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-x { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted);
  font-size: 18px; cursor: pointer; }
.cm-body { overflow-y: auto; padding: 6px 0; }
.cm-note { padding: 14px 16px; color: var(--muted); font-size: 14px; }
.cm-list { list-style: none; margin: 0; padding: 0; }
.cm-list .cm-list { padding-left: 18px; border-left: 2px solid var(--line); margin-left: 22px; }
.cm-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 10px 16px; text-align: left;
  background: transparent; border: none; border-top: 1px solid var(--line); color: var(--fg); font: inherit; font-size: 15px;
  cursor: pointer; }
.cm-list > li:first-child > .cm-item { border-top: none; }
.cm-item:hover { background: var(--code); }
.cm-item .bi { flex: none; color: var(--vogo-icon-blue); }
.cm-group > .cm-item { font-weight: 700; }
.cm-group > .cm-item .cm-chev { margin-left: auto; color: var(--muted); transition: transform .15s; }
.cm-group.open > .cm-item .cm-chev { transform: rotate(90deg); }
.cm-group:not(.open) > .cm-list { display: none; }
.cm-foot { display: flex; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid var(--line); }
/* the self-learning button beside the update one, compact (AGENTMOB D-054) */
.cm-foot .cm-config { flex: 1 1 auto; width: auto; }
.cm-foot .cm-learn { flex: 0 0 auto; }
.cm-config { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--acc); border-radius: 10px; background: transparent; color: var(--acc); font: inherit; font-size: 15px;
  font-weight: 600; cursor: pointer; }
.cm-config:hover { background: var(--field-focus, rgba(0, 0, 0, .06)); }

/* The model list (user, 29.10.2026): the model's name, its note under it; most capable first */
/* the row as in the app's Profile list (https://vogo.me/app/, Profil): outline icon left, name, note, chevron right */
.cm-models { margin: 0 16px; }
.cm-models .cm-model { align-items: center; gap: 18px; min-height: 76px; padding: 14px 4px; }
.cm-model-icon { flex: none; width: 34px; font-size: 28px; line-height: 1; text-align: center; }
.cm-model-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cm-model-name { font-weight: 600; font-size: 17px; }
.cm-model-note { color: var(--muted); font-size: 14px; line-height: 1.35; }
.cm-models .cm-model .cm-model-chev { flex: none; color: var(--muted); font-size: 16px; }
/* The window's first line (user, 29.10.2026): the current model, "implicit" or "schimbat", and why, on a faint band */
.cm-model-now { display: block; margin: 10px 16px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--code); font-size: 14px; line-height: 1.4; }
.cm-now-label { color: var(--muted); }
.cm-now-name { color: var(--vogo-icon-blue); font-weight: 700; font-size: 16px; }
.cm-now-state { font-weight: 600; }
.cm-now-state.is-default { color: var(--muted); }
.cm-now-state.is-changed { color: #1f8f4e; }
.cm-now-detail { display: block; margin-top: 4px; color: var(--muted); }
/* The current model's row marked, as the current module in "Schimbă modulul" */
.cm-models .cm-model.cm-current { background: var(--code); box-shadow: inset 3px 0 0 var(--vogo-icon-blue); }
.cm-current-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid var(--vogo-icon-blue);
  border-radius: 999px; color: var(--vogo-icon-blue); font-size: 11px; font-weight: 600; vertical-align: middle; }
/* The top menu's tiles "Compactează conversația" and "Schimbă modelul" (rag-ai.js .font-pop-convctl, 29.10.2026) */
body .font-pop .font-pop-row.font-pop-convctl > button { display: flex; min-height: 64px; padding: 8px 4px; font-size: 13px; }
