/* Article ads — only the pieces this screen adds on top of research_ads.css
   (which already supplies .ra-run, .ra-gate, .ra-chip-row, .ra-player).
   Kept small on purpose: one new suggestion line, one picture strip, one
   progress bar. */

.aa-suggestion {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
}

.aa-suggest {
  margin-bottom: 14px;
}

/* The picture strip: thumbnails the owner ticks. Horizontal scroll rather
   than reflow, so a long list never pushes the script box off the screen. */
.aa-picks-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
}

.aa-pick {
  position: relative;
  flex: 0 0 auto;
  width: 116px;
  padding: 0 0 6px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--surface-2, rgba(255, 255, 255, 0.04));
  color: inherit;
  cursor: pointer;
  text-align: center;
}

.aa-pick:disabled {
  cursor: default;
  opacity: 0.6;
}

.aa-pick-on {
  border-color: var(--accent, #4ea1ff);
}

.aa-pick-img {
  display: block;
  width: 100%;
  height: 76px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.aa-pick-blank {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  opacity: 0.6;
}

.aa-pick-name {
  display: block;
  padding: 4px 6px 0;
  font-size: 12px;
  line-height: 1.3;
  word-break: break-word;
}

.aa-pick-tick {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 14px;
  line-height: 1;
  color: var(--accent, #4ea1ff);
}

.aa-backdrops {
  margin-top: 10px;
}

.aa-credit {
  margin: 0 0 8px;
  font-size: 12px;
  opacity: 0.75;
}

/* The real progress bar: width comes from the engine's own step + fraction,
   so it only moves when the machine actually moved. */
.aa-bar {
  height: 10px;
  border-radius: 6px;
  background: var(--surface-2, rgba(255, 255, 255, 0.08));
  overflow: hidden;
}

.aa-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: var(--accent, #4ea1ff);
  transition: width 400ms linear;
}

/* An honest label, not a warning banner — it blocks nothing. */
.aa-flag {
  margin: 6px 0 0;
  font-size: 12px;
  opacity: 0.85;
}

.aa-files {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aa-file {
  padding: 6px 0;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

/* The one line under the bar, in the engine's own words. */
.aa-detail {
  margin: 6px 0 4px;
  font-size: 13px;
}

/* The running log: small, monospace, newest at the bottom, scrolled to it.
   Deliberately unanimated — the bar is the only thing that moves. */
.aa-log {
  list-style: none;
  margin: 0;
  padding: 6px 8px;
  max-height: 132px;
  overflow-y: auto;
  border-radius: 8px;
  background: var(--surface-2, rgba(255, 255, 255, 0.04));
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.5;
  opacity: 0.85;
}

.aa-log-panel {
  margin-top: 10px;
}
