/* The shared companion pop-up (8 Oct; one design family, 23 Oct: the hard-coded fallbacks are gone --
   every page that loads this also loads tokens.css, and the fallbacks had drifted to an old accent
   (#2E4643 against the real #1E5B57), so a missing token would have painted the wrong green): the shell's #compop and the frame's pop-up both fill their box with .cp */
.cp { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1; font-size: 14px; color: var(--ink); }
.cp-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cp-title { min-width: 0; }
.cp-title strong { display: block; font-size: 14px; line-height: 1.35; margin-top: 2px; }
.cp-tag { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cp-x { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink-2); flex: none; }
.cp-thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 80px; }
.cp-bub { max-width: 92%; border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; gap: 6px; }
.cp-bub.ai { align-self: flex-start; background: var(--surface-2); border-left: 3px solid var(--accent); }
.cp-bub.me { align-self: flex-end; background: var(--line-2); }
.cp-bt { line-height: 1.5; overflow-wrap: anywhere; }
.cp-bt .mh { display: block; margin-top: 4px; }
.cp-wait { color: var(--muted); font-style: italic; }
.cp-retry { margin-left: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 2px 8px; font: inherit; font-size: 12px; cursor: pointer; }
.cp-in { display: flex; gap: 8px; }
.cp-q { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; background: var(--ground); color: inherit; }
.cp-send { border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 8px; padding: 0 14px; font: inherit; font-size: 13px; cursor: pointer; }
.cp-send:disabled { opacity: .55; cursor: default; }
.cp-foot { font-size: 12px; color: var(--muted); line-height: 1.4; }
/* the box the framed pages create; the shell keeps its own #compop box */
.cp-pop { position: fixed; right: 16px; bottom: 16px; width: min(400px, calc(100vw - 32px)); max-height: min(70vh, 560px); display: flex; flex-direction: column; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); z-index: 30; }
.cp-pop[hidden] { display: none; }

/* row 92: the exact failure, folded under the sentence a reader is given */
.cp-raw { margin-top: 4px; font-size: 11px; }
.cp-raw summary { color: var(--muted); cursor: pointer; }
.cp-raw code { display: block; margin-top: 4px; white-space: pre-wrap; word-break: break-word; font-size: 10px; }
