/* panel-read-along.css — D41: Chat | Log over a chat Parallax reads along with,
   and every proactive message as a plain chat bubble (panel-read-along.js).

   The tabs are Memory's: text, the open one underlined (panel-memory-view.css
   .mem-tab). The same look serves an old run's Chat | Log | Report
   (#researchTabs), which used to be pills. */

/* The rule under the tabs spans the tabs alone, not the column (Godric,
   2026-11-16): the row is as wide as its tabs, inset to the column's 22px.
   Pulled up into .main-top's bottom padding (2026-11-23, by request): that row
   is held at 66px for the collapse toggle, which left a wide gap over the tabs. */
.ra-tabs { display: flex; gap: 16px; padding: 4px 0 0; flex-shrink: 0; min-width: 0;
           width: fit-content; max-width: calc(100% - 44px); box-sizing: border-box;
           margin: -16px 22px 4px; align-self: flex-start;
           border-bottom: 1px solid var(--hair); }
.ra-tabs[hidden] { display: none; }
.ra-tab {
  position: relative;
  padding: 8px 0 7px; margin-bottom: -1px;
  background: none; border: none; border-bottom: 1px solid transparent; border-radius: 0;
  box-shadow: none;
  font: 400 var(--fs-2xs)/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--t-secondary);
  white-space: nowrap;
  cursor: pointer;
}
.ra-tab:hover { color: var(--bone); background: none; }
.ra-tab[aria-selected="true"], .ra-tab.on { color: var(--bone); border-bottom-color: var(--t-secondary); background: none; }
.ra-tab:focus-visible { outline: 1px solid var(--rim); outline-offset: 3px; border-radius: 2px; }
.ra-tab[hidden] { display: none; }
/* Something new in the chat while the Log is open. */
.ra-tab.has-unread::after {
  content: ""; position: absolute; top: 6px; right: -8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--bone);
}

/* A proactive message is a reply's bubble: no label, rule or card. The answer
   bar is a reply's row; the mute is behind Bad, so it shows once Bad is pressed. */
.px-ra-foot .px-kb-mute { display: none; }
.px-ra-foot .px-kairos-bar:has([data-kb="bad"][aria-pressed="true"]) .px-kb-mute,
.px-ra-foot .px-kb-mute:disabled { display: inline-flex; }

/* Quick replies under a message: the first-run message and an offer. */
.px-ra-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; align-items: center; }
.px-ra-chips .set-opt, .px-ra-chips .set-opt.on {
  flex: 0 0 auto; width: auto; height: var(--ctl-h, 28px); padding: 0 12px; border-radius: var(--r-ctl);
  font: 400 var(--fs-sm)/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--t-secondary);
  background: transparent; border: 1px solid var(--hair); box-shadow: none;
}
.px-ra-chips .set-opt:hover { color: var(--bone); }
.px-ra-chips .set-opt:disabled { opacity: .6; }
.px-ra-chips .px-offer-said { font-size: var(--fs-sm); color: var(--t-meta); }

/* The Log of a chat read along: what it read, and how readily it speaks up (the
   level). Not the old run's Stop or topic: reading along has its own off switch. */
.proactive.ra-log .px-bar .px-toggle, .proactive.ra-log .px-topic-row, .proactive.ra-log .px-stats { display: none; }

/* Everything: the run's Log, line by line, in the chat. */
.px-trace-line { margin: 2px 0; padding: 0 2px; font: 400 var(--fs-2xs)/1.45 var(--mono); color: var(--t-faint); overflow-wrap: anywhere; }
.px-trace-thinking { color: var(--t-secondary); }

/* Settings: the note's Upgrade sits on the line. */
#setReadAlongNote .px-btn { margin-left: 6px; vertical-align: baseline; }

/* A Log (a chat's, or a run's Logs) has no prompt bar: it is read, not written in. */
body.px-log-open .foot-row, body.px-log-open .foot-disclaimer { display: none; }
