/* panel-browser.css — the browser agent's approvals, indicator and activity log
   (panel-browser.js). The approval and the indicator are tray items and take
   the tray's own layout (panel-tray.css); this adds only what is theirs. */

/* A browser approval is read in full: the tray clamps its text to two lines and
   hides its sub line, but here the sub line is where the site and the full URL
   are (D40 rule 5: a navigation asks with the full URL shown). */
.px-browser-ask .px-tray-text { display: block; -webkit-line-clamp: unset; overflow: visible; flex-basis: 100%; }
.px-browser-ask .px-tray-sub {
  display: block; flex-basis: 100%;
  font: 400 var(--fs-sm)/1.35 var(--sans); color: var(--t-secondary); overflow-wrap: anywhere;
}
.px-browser-ask .px-tray-actions { flex-basis: 100%; }
/* The tray is capped at 140px for its one-line items; an approval grows it, as a
   question does (panel-tray.css), so its answers are never scrolled out of view. */
.px-tray:has(.px-browser-ask:not([hidden])) { max-height: min(62vh, 460px); }
.px-browser-ask .px-browser-url {
  flex-basis: 100%;
  font: 400 var(--fs-sm)/1.35 var(--mono);
  color: var(--t-secondary);
  overflow-wrap: anywhere;
}
.px-browser-ask .px-browser-warn { flex-basis: 100%; color: var(--t-primary); font-weight: 500; }
.px-browser-acting .px-tray-text::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px;
  border-radius: 50%; background: currentColor; vertical-align: middle;
  animation: px-browser-pulse 1.6s ease-in-out infinite;
}
@keyframes px-browser-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .px-browser-acting .px-tray-text::before { animation: none; } }

.px-browser-log { flex-direction: column; align-items: stretch; gap: 6px; }
.px-browser-log-actions { display: flex; gap: 8px; }
.px-browser-log-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow: auto; }
.px-browser-log-row {
  display: grid; gap: 1px; padding: 6px 0;
  border-top: 1px solid var(--hair);
  font: 400 var(--fs-sm)/1.35 var(--sans);
}
.px-browser-log-what { color: var(--t-primary); }
.px-browser-log-where { color: var(--t-secondary); font-family: var(--mono); font-size: .86em; overflow-wrap: anywhere; }
.px-browser-log-meta { color: var(--t-secondary); opacity: .8; }
