/* --------------------------------------------------------------------------
   Run History project list · 2026-10-06
   Replace isolated project cards with one continuous SaaS-style log table.
   Interaction surfaces and the existing detail/reuse/delete controls remain
   unchanged; this layer only changes the presentation and responsive layout.
   -------------------------------------------------------------------------- */
#app[data-active-view="logs"] .project-log-list-head {
  display: grid !important;
  grid-template-columns: 14px minmax(260px, 1.9fr) minmax(64px, .55fr) minmax(122px, .78fr) minmax(72px, .55fr) minmax(160px, 1fr) minmax(128px, .75fr) 82px !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 34px !important;
  padding: 0 16px !important;
  border-bottom: 1px solid var(--history-line) !important;
  color: var(--history-subtle) !important;
  font-size: 9px !important;
  font-weight: 780 !important;
  letter-spacing: .1em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

#app[data-active-view="logs"] .project-log-list-head[hidden] {
  display: none !important;
}

#app[data-active-view="logs"] .project-log-grid {
  display: block !important;
  margin-top: 0 !important;
  border-top: 0 !important;
  background: transparent !important;
}

#app[data-active-view="logs"] .project-log-card {
  display: block !important;
  width: 100% !important;
  min-height: 78px !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--history-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  transition: background-color 150ms ease, box-shadow 150ms ease !important;
}

#app[data-active-view="logs"] .project-log-card:first-child {
  margin-top: 0 !important;
  border-top: 0 !important;
}

#app[data-active-view="logs"] .project-log-card:hover,
#app[data-active-view="logs"] .project-log-card:focus-within {
  background: rgba(155, 123, 255, .08) !important;
  transform: none !important;
}

#app[data-active-view="logs"] .project-log-card.is-selected {
  border-color: var(--history-line) !important;
  background: rgba(155, 123, 255, .13) !important;
  box-shadow: inset 3px 0 0 var(--history-accent) !important;
}

#app[data-active-view="logs"] .project-log-card-open {
  display: grid !important;
  grid-template-columns: 14px minmax(260px, 1.9fr) minmax(64px, .55fr) minmax(122px, .78fr) minmax(72px, .55fr) minmax(160px, 1fr) minmax(128px, .75fr) 82px !important;
  grid-template-rows: minmax(68px, auto) !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 78px !important;
  height: auto !important;
  padding: 11px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--history-ink) !important;
  text-align: left !important;
}

#app[data-active-view="logs"] .project-log-card-open:hover,
#app[data-active-view="logs"] .project-log-card-open:focus-visible {
  background: transparent !important;
}

#app[data-active-view="logs"] .project-log-status-mark {
  display: block !important;
  width: 8px !important;
  height: 8px !important;
  min-width: 8px !important;
  min-height: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: currentColor !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

#app[data-active-view="logs"] .project-log-status-mark span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

#app[data-active-view="logs"] .project-log-status-mark[data-tone="good"] { color: var(--history-success) !important; }
#app[data-active-view="logs"] .project-log-status-mark[data-tone="warning"] { color: var(--history-warning) !important; }
#app[data-active-view="logs"] .project-log-status-mark[data-tone="error"] { color: var(--history-danger) !important; }
#app[data-active-view="logs"] .project-log-status-mark[data-tone="cancelled"] { color: var(--history-subtle) !important; }

#app[data-active-view="logs"] .project-log-card-copy.project-log-list-main {
  display: grid !important;
  min-width: 0 !important;
  align-content: center !important;
  gap: 3px !important;
}

#app[data-active-view="logs"] .project-log-card-kicker {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: var(--history-subtle) !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

#app[data-active-view="logs"] .project-log-card-kicker > span {
  color: inherit !important;
}

#app[data-active-view="logs"] .project-log-card-copy h3 {
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: var(--history-ink) !important;
  font-size: 14px !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#app[data-active-view="logs"] .project-log-card-summary {
  display: -webkit-box !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: var(--history-muted) !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
  overflow-wrap: anywhere !important;
}

#app[data-active-view="logs"] .project-log-list-run,
#app[data-active-view="logs"] .project-log-list-status,
#app[data-active-view="logs"] .project-log-list-issues,
#app[data-active-view="logs"] .project-log-list-meta,
#app[data-active-view="logs"] .project-log-list-updated {
  min-width: 0 !important;
  color: var(--history-muted) !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere !important;
}

#app[data-active-view="logs"] .project-log-list-status span {
  display: inline-flex !important;
  max-width: 100% !important;
  color: var(--history-muted) !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
#app[data-active-view="logs"] .project-log-list-status span[data-tone="good"] { color: var(--history-success) !important; }
#app[data-active-view="logs"] .project-log-list-status span[data-tone="warning"] { color: var(--history-warning) !important; }
#app[data-active-view="logs"] .project-log-list-status span[data-tone="error"] { color: var(--history-danger) !important; }
#app[data-active-view="logs"] .project-log-list-status span[data-tone="cancelled"] { color: var(--history-subtle) !important; }

#app[data-active-view="logs"] .project-log-list-issues.has-errors {
  color: var(--history-danger) !important;
  font-weight: 700 !important;
}

#app[data-active-view="logs"] .project-log-list-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px 8px !important;
  align-items: center !important;
}

#app[data-active-view="logs"] .project-log-list-meta > span {
  min-width: 0 !important;
  color: inherit !important;
  font-variant-numeric: tabular-nums !important;
}

#app[data-active-view="logs"] .project-log-list-meta > span + span::before {
  content: "·" !important;
  margin-right: 8px !important;
  color: var(--history-subtle) !important;
}

#app[data-active-view="logs"] .project-log-list-updated {
  color: var(--history-subtle) !important;
  font-variant-numeric: tabular-nums !important;
}

#app[data-active-view="logs"] .project-log-list-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--history-accent-strong) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

#app[data-active-view="logs"] .project-log-list-action strong {
  color: inherit !important;
  font-size: inherit !important;
}

#app[data-active-view="logs"] .project-log-card-check {
  top: 50% !important;
  left: 16px !important;
  z-index: 5 !important;
  transform: translateY(-50%) !important;
}

#app[data-active-view="logs"] .project-log-card-delete {
  top: 8px !important;
  right: 12px !important;
  bottom: auto !important;
  z-index: 5 !important;
}

#app[data-active-view="logs"] .project-log-card-reuse {
  right: 16px !important;
  z-index: 5 !important;
}

@media (max-width: 1020px) and (min-width: 721px) {
  #app[data-active-view="logs"] .project-log-list-head,
  #app[data-active-view="logs"] .project-log-card-open {
    grid-template-columns: 14px minmax(220px, 1.65fr) minmax(52px, .5fr) minmax(100px, .72fr) minmax(62px, .48fr) minmax(120px, .85fr) 76px !important;
    gap: 10px !important;
  }

  #app[data-active-view="logs"] .project-log-list-updated {
    display: none !important;
  }

  #app[data-active-view="logs"] .project-log-list-head span:nth-child(7) {
    display: none !important;
  }
}

@media (max-width: 720px) {
  #app[data-active-view="logs"] .project-log-list-head {
    display: none !important;
  }

  #app[data-active-view="logs"] .project-log-card {
    min-height: 88px !important;
  }

  #app[data-active-view="logs"] .project-log-card-open {
    grid-template-columns: 10px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
    gap: 4px 10px !important;
    min-height: 88px !important;
    padding: 13px 92px 12px 14px !important;
  }

  #app[data-active-view="logs"] .project-log-status-mark {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    margin-top: 5px !important;
  }

  #app[data-active-view="logs"] .project-log-card-copy.project-log-list-main {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  #app[data-active-view="logs"] .project-log-card-copy h3 {
    font-size: 13px !important;
  }

  #app[data-active-view="logs"] .project-log-card-summary {
    -webkit-line-clamp: 2 !important;
  }

  #app[data-active-view="logs"] .project-log-list-run,
  #app[data-active-view="logs"] .project-log-list-status,
  #app[data-active-view="logs"] .project-log-list-issues,
  #app[data-active-view="logs"] .project-log-list-meta,
  #app[data-active-view="logs"] .project-log-list-updated {
    display: inline !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin-top: 2px !important;
    font-size: 10px !important;
  }

  #app[data-active-view="logs"] .project-log-list-status,
  #app[data-active-view="logs"] .project-log-list-issues,
  #app[data-active-view="logs"] .project-log-list-meta,
  #app[data-active-view="logs"] .project-log-list-updated {
    display: none !important;
  }

  #app[data-active-view="logs"] .project-log-list-run::after {
    content: " · Seedance 2.5 · Updated " !important;
    color: var(--history-subtle) !important;
  }

  #app[data-active-view="logs"] .project-log-list-updated {
    display: inline !important;
    color: var(--history-subtle) !important;
  }

  #app[data-active-view="logs"] .project-log-list-action {
    position: absolute !important;
    top: 50% !important;
    right: 16px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    transform: translateY(-50%) !important;
  }

  #app[data-active-view="logs"] .project-log-list-action strong {
    display: none !important;
  }

  #app[data-active-view="logs"] .project-log-list-action > span {
    font-size: 18px !important;
  }

  #app[data-active-view="logs"] .project-log-card-reuse {
    top: auto !important;
    right: 12px !important;
    bottom: 10px !important;
    transform: none !important;
  }
}

@media (max-width: 420px) {
  #app[data-active-view="logs"] .project-log-card-open {
    padding-right: 78px !important;
  }

  #app[data-active-view="logs"] .project-log-list-action {
    right: 12px !important;
  }

  #app[data-active-view="logs"] .project-log-card-delete {
    right: 8px !important;
  }
}

/* Specificity bridge: the shared functional-page skin intentionally uses a
   high-specificity selector for its module cards. Override that skin here so
   the history rows are genuinely flat and continuous, not translucent cards. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card {
  min-height: 78px !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--history-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card:first-child {
  margin-top: 0 !important;
  border-top: 0 !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card:hover,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card:focus-within {
  border-color: var(--history-line) !important;
  background: rgba(155, 123, 255, .08) !important;
  box-shadow: none !important;
  transform: none !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card.is-selected {
  border-color: var(--history-line) !important;
  background: rgba(155, 123, 255, .13) !important;
  box-shadow: inset 3px 0 0 var(--history-accent) !important;
}

/* Final column-placement bridge: older visual skins style the status marker and
   CTA as large chips and force them onto grid row 1.  The list needs these
   nodes to stay in their actual table columns, otherwise Details can land next
   to the project title and the status dot expands the first track. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-status-mark {
  display: block !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  align-self: center !important;
  width: 8px !important;
  min-width: 8px !important;
  max-width: 8px !important;
  height: 8px !important;
  min-height: 8px !important;
  max-height: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: currentColor !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-card-cta,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-action {
  display: inline-flex !important;
  grid-column: 8 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: center !important;
  position: static !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-meta > span,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-list-meta > span {
  display: inline !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-status-mark span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-status-mark {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    display: block !important;
    margin-top: 5px !important;
  }

  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-card-cta,
  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-action {
    grid-column: auto !important;
    grid-row: auto !important;
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    justify-self: auto !important;
    align-self: auto !important;
    transform: translateY(-50%) !important;
  }
}

/* Keep the existing Reuse action in the same action column, but stack it
   beneath Details so the two preserved controls never occupy the same pixels. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-reuse {
  top: auto !important;
  right: 16px !important;
  bottom: 10px !important;
  transform: none !important;
}

@media (max-width: 420px) {
  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-reuse {
    right: 12px !important;
    bottom: 10px !important;
  }
}

@media (min-width: 721px) {
  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-reuse {
    bottom: 4px !important;
  }
}

@media (min-width: 721px) {
  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-reuse {
    bottom: -2px !important;
  }
}

/* Keep Reuse in the project row's own flow instead of absolutely positioning it
   against a moving card. This prevents it from drifting into the next list row
   when titles or summaries wrap at narrow widths. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card {
  display: grid !important;
  grid-template-rows: minmax(78px, auto) auto !important;
  align-items: stretch !important;
  position: relative !important;
  overflow: visible !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open {
  grid-row: 1 !important;
  min-width: 0 !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-reuse {
  position: static !important;
  grid-row: 2 !important;
  grid-column: 1 / -1 !important;
  justify-self: end !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  margin: -2px 16px 8px !important;
  transform: none !important;
}

@media (max-width: 720px) {
  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card {
    grid-template-rows: auto auto !important;
  }

  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-reuse {
    grid-row: 2 !important;
    grid-column: 1 / -1 !important;
    justify-self: end !important;
    margin: -2px 12px 8px !important;
  }
}


/* P84: keep the action and its row content in one project-owned layout context.
   The wrapper is structural, not visual: it prevents Reuse from drifting into
   the next project when any project title or input summary wraps. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card {
  display: block !important;
  min-height: 0 !important;
  overflow: visible !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: stretch !important;
  min-width: 0 !important;
  width: 100% !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row > .project-log-card-open {
  grid-column: 1 !important;
  grid-row: 1 !important;
  position: static !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row > .project-log-card-reuse {
  grid-column: 2 !important;
  grid-row: 1 !important;
  position: static !important;
  align-self: center !important;
  justify-self: end !important;
  min-width: 58px !important;
  width: auto !important;
  height: 28px !important;
  margin: 0 16px 0 10px !important;
  transform: none !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row > .project-log-card-reuse {
    min-width: 52px !important;
    height: 26px !important;
    margin-right: 12px !important;
  }
}

@media (max-width: 420px) {
  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row > .project-log-card-reuse {
    min-width: 48px !important;
    margin-left: 6px !important;
    margin-right: 8px !important;
  }
}

/* --------------------------------------------------------------------------
   Run History action alignment · 2026-10-06
   Keep the toolbar Manage control and per-project action controls as deliberate,
   centered button surfaces instead of relying on text-line height or default
   summary/button metrics. The final action rail below owns row alignment.
   -------------------------------------------------------------------------- */
html body #app#app#app#app#app[data-active-view="logs"] .project-log-more {
  align-self: end !important;
  display: flex !important;
  align-items: flex-end !important;
  height: 36px !important;
  margin: 0 !important;
}

html body #app#app#app#app#app[data-active-view="logs"] .project-log-more > summary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 76px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

html body #app#app#app#app#app[data-active-view="logs"] .project-log-card-delete {
  top: 8px !important;
  right: 12px !important;
  bottom: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 58px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  transform: none !important;
}

@media (max-width: 720px) {
  html body #app#app#app#app#app[data-active-view="logs"] .project-log-more {
    height: 36px !important;
  }

  html body #app#app#app#app#app[data-active-view="logs"] .project-log-more > summary {
    min-width: 72px !important;
  }

  html body #app#app#app#app#app[data-active-view="logs"] .project-log-card-delete {
    top: 10px !important;
    right: 12px !important;
    min-width: 56px !important;
    height: 30px !important;
    min-height: 30px !important;
  }
}

@media (max-width: 420px) {
  html body #app#app#app#app#app[data-active-view="logs"] .project-log-card-delete {
    right: 8px !important;
    min-width: 52px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding-inline: 8px !important;
  }
}


/* --------------------------------------------------------------------------
   Run History action rail · 2026-10-06
   Keep Details, Delete, and Reuse in one stable right-side row. The delete
   control is still the existing action; only its layout position changes.
   -------------------------------------------------------------------------- */
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  width: 100% !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row > .project-log-card-open {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row > .project-log-card-delete,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row > .project-log-card-reuse {
  position: static !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: center !important;
  box-sizing: border-box !important;
  width: 64px !important;
  min-width: 64px !important;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border-radius: 8px !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  transform: none !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row > .project-log-card-delete {
  grid-column: 2 !important;
  color: var(--history-danger, #d88982) !important;
  border: 1px solid rgba(216, 137, 130, .34) !important;
  background: rgba(216, 137, 130, .07) !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row > .project-log-card-delete:hover,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row > .project-log-card-delete:focus-visible {
  color: #f1aaa2 !important;
  border-color: rgba(241, 170, 162, .68) !important;
  background: rgba(216, 105, 93, .15) !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row > .project-log-card-reuse {
  grid-column: 3 !important;
  border-radius: 8px !important;
}

@media (max-width: 720px) {
  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row {
    grid-template-columns: minmax(0, 1fr) 56px 56px !important;
    gap: 6px !important;
  }

  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row > .project-log-card-delete,
  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row > .project-log-card-reuse {
    width: 56px !important;
    min-width: 56px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
  }
}

@media (max-width: 420px) {
  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row {
    grid-template-columns: minmax(0, 1fr) 52px 52px !important;
    gap: 4px !important;
  }

  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row > .project-log-card-delete,
  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row > .project-log-card-reuse {
    width: 52px !important;
    min-width: 52px !important;
    font-size: 9px !important;
  }
}

/* Run History column alignment. The row action rail reserves 64px per button
   plus 8px gaps outside the open button. Match the heading's right inset to
   that rail and the open button's own 16px padding so both grids share the
   exact same usable width and their column centers coincide. */
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-list-head {
  padding-right: 160px !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-list-head > span:nth-child(n + 3) {
  text-align: center !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-run,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-status,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-issues,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-meta,
html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-updated {
  justify-self: stretch !important;
  text-align: center !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-status {
  display: flex !important;
  justify-content: center !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-meta {
  justify-content: center !important;
}

html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-action {
  justify-self: center !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 720px) {
  html body #app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-action {
    justify-self: auto !important;
  }
}

/* 2026-10-06 · Denser Run History rows without removing project context. */
#app[data-active-view="logs"] .project-log-card,
#app[data-active-view="logs"] .project-log-card-open {
  min-height: 62px !important;
}

#app[data-active-view="logs"] .project-log-card-open {
  grid-template-rows: minmax(52px, auto) !important;
  padding-block: 7px !important;
}

#app[data-active-view="logs"] .project-log-card-copy.project-log-list-main {
  gap: 2px !important;
}

#app[data-active-view="logs"] .project-log-card-kicker {
  font-size: 9px !important;
  line-height: 1.15 !important;
}

#app[data-active-view="logs"] .project-log-card-copy h3 {
  font-size: 13px !important;
  line-height: 1.2 !important;
}

#app[data-active-view="logs"] .project-log-card-summary {
  line-height: 1.25 !important;
}

#app[data-active-view="logs"] .project-log-list-run,
#app[data-active-view="logs"] .project-log-list-status,
#app[data-active-view="logs"] .project-log-list-issues,
#app[data-active-view="logs"] .project-log-list-meta,
#app[data-active-view="logs"] .project-log-list-updated {
  font-size: 10px !important;
  line-height: 1.2 !important;
}

#app[data-active-view="logs"] .project-log-card-reuse {
  min-height: 28px !important;
  padding-block: 4px !important;
}

@media (max-width: 720px) {
  #app[data-active-view="logs"] .project-log-card,
  #app[data-active-view="logs"] .project-log-card-open {
    min-height: 76px !important;
  }

  #app[data-active-view="logs"] .project-log-card-open {
    padding-block: 9px !important;
  }
}

/* Run History filters: anchored menus avoid native OS popup placement drift. */
html body #app#app#app[data-active-view="logs"] .project-log-filters .project-log-filter {
  display: grid !important;
  grid-template-rows: auto 38px !important;
  align-content: end !important;
  align-items: end !important;
  gap: 4px !important;
  min-width: 0 !important;
  position: relative !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-filters .project-log-filter > span {
  display: block !important;
  line-height: 14px !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-select {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  z-index: 1;
}

html body #app#app#app[data-active-view="logs"] .project-log-select:has(.project-log-select-menu:not([hidden])) {
  z-index: 30 !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-select-trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  gap: 10px !important;
  padding: 0 11px !important;
  border: 1px solid var(--dp-line-strong) !important;
  border-radius: 8px !important;
  background: var(--dp-surface-3) !important;
  color: var(--dp-ink) !important;
  font: inherit !important;
  line-height: 1 !important;
  text-align: left !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-select-trigger:focus-visible,
html body #app#app#app[data-active-view="logs"] .project-log-select-menu [role="option"]:focus-visible {
  outline: 2px solid #a78bfa !important;
  outline-offset: 2px !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-select-trigger > span:first-child {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-select-chevron {
  flex: 0 0 7px !important;
  width: 7px !important;
  height: 7px !important;
  border-right: 1.5px solid currentColor !important;
  border-bottom: 1.5px solid currentColor !important;
  transform: translateY(-2px) rotate(45deg) !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-select-menu {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  left: 0 !important;
  display: grid !important;
  gap: 3px !important;
  max-height: min(260px, 45vh) !important;
  overflow-y: auto !important;
  padding: 6px !important;
  border: 1px solid var(--dp-line-strong) !important;
  border-radius: 10px !important;
  background: #1b1c22 !important;
  color: #f5f3ff !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4) !important;
  z-index: 1000 !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-select-menu[hidden] {
  display: none !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-select-menu [role="option"] {
  display: block !important;
  width: 100% !important;
  min-height: 34px !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  line-height: 1.2 !important;
  text-align: left !important;
  cursor: pointer !important;
}

html body #app#app#app[data-active-view="logs"] .project-log-select-menu [role="option"]:hover,
html body #app#app#app[data-active-view="logs"] .project-log-select-menu [role="option"].is-selected {
  background: rgba(139, 92, 246, .24) !important;
}

html body #app#app#app#app#app[data-active-view="logs"] .project-log-more {
  align-self: end !important;
  align-items: flex-end !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
}

html body #app#app#app#app#app[data-active-view="logs"] .project-log-more > summary {
  box-sizing: border-box !important;
  height: 38px !important;
  min-height: 38px !important;
  align-self: center !important;
}

@media (max-width: 980px) {
  html body #app#app#app[data-active-view="logs"] .project-log-select-menu {
    left: 0 !important;
    right: auto !important;
    min-width: 100% !important;
    width: max(100%, 150px) !important;
  }
}

@media (max-width: 640px) {
  html body #app#app#app[data-active-view="logs"] .project-log-more,
  html body #app#app#app[data-active-view="logs"] .project-log-more > summary {
    height: 38px !important;
    min-height: 38px !important;
  }
}

/* Manage popover: compact action grid with minimal chrome and no redundant copy. */
html body #app#app#app#app#app[data-active-view="logs"] .project-log-more > div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  width: 278px !important;
  padding: 9px !important;
  border-radius: 10px !important;
}

html body #app#app#app#app#app[data-active-view="logs"] .project-log-more > div > span {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
  padding: 0 2px 2px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

html body #app#app#app#app#app[data-active-view="logs"] .project-log-more > div > p {
  display: none !important;
}

html body #app#app#app#app#app[data-active-view="logs"] .project-log-more > div > button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 31px !important;
  padding: 6px 7px !important;
  border-radius: 7px !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

@media (max-width: 420px) {
  html body #app#app#app#app#app[data-active-view="logs"] .project-log-more > div {
    width: min(278px, calc(100vw - 24px)) !important;
  }
}

/* Run History toolbar alignment · 2026-10-06
   Align Manage to the filter control row itself (not the taller filter group
   that also contains its labels). On tablet, keep Manage beside that row.
*/
@media (min-width: 981px) {
  html body #app#app#app#app#app[data-active-view="logs"] .project-log-filters,
  html body #app#app#app#app#app[data-active-view="logs"] .project-log-more {
    align-self: end !important;
  }

  html body #app#app#app#app#app[data-active-view="logs"] .project-log-more {
    display: flex !important;
    align-items: stretch !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  html body #app#app#app#app#app[data-active-view="logs"] .project-log-more > summary {
    height: 38px !important;
    min-height: 38px !important;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  html body #app#app#app#app#app[data-active-view="logs"] .project-log-toolbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "summary summary" "filters manage" !important;
    align-items: end !important;
  }

  html body #app#app#app#app#app[data-active-view="logs"] .project-log-summary {
    grid-area: summary !important;
  }

  html body #app#app#app#app#app[data-active-view="logs"] .project-log-filters {
    grid-area: filters !important;
    align-self: end !important;
    grid-template-columns: minmax(150px, 1.45fr) minmax(100px, .72fr) minmax(136px, .88fr) !important;
  }

  html body #app#app#app#app#app[data-active-view="logs"] .project-log-more {
    grid-area: manage !important;
    align-self: end !important;
    display: flex !important;
    align-items: stretch !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  html body #app#app#app#app#app[data-active-view="logs"] .project-log-more > summary {
    height: 38px !important;
    min-height: 38px !important;
  }
}

/* Run History filter simplification · Mode removed.
   Redistribute the remaining Search, Status, and Sort controls without changing
   their interaction or the Manage control's established alignment. */
@media (min-width: 981px) {
  html body #app#app#app#app#app[data-active-view="logs"] .project-log-filters {
    grid-template-columns: minmax(220px, 1fr) minmax(118px, 140px) minmax(154px, 180px) !important;
  }
}

@media (max-width: 720px) {
  html body #app#app#app#app#app[data-active-view="logs"] .project-log-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body #app#app#app#app#app[data-active-view="logs"] .project-log-search {
    grid-column: 1 / -1 !important;
  }
}

/* 2026-10-06 · Run History no longer exposes model or score metadata.
   Strong selectors rebalance remaining columns and preserve responsive alignment. */
/* Strong final overrides: older accumulated selectors carry elevated
   specificity, so keep the condensed layout effective at every breakpoint. */
html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-list-head,
html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open {
  grid-template-columns: 14px minmax(280px, 2.25fr) minmax(64px, .55fr) minmax(122px, .78fr) minmax(72px, .55fr) minmax(128px, .75fr) 82px !important;
}

html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-run-card > summary {
  grid-template-columns: 30px minmax(0, 1fr) auto !important;
}

@media (max-width: 1020px) and (min-width: 721px) {
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-list-head,
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open {
    grid-template-columns: 14px minmax(240px, 1.8fr) minmax(52px, .5fr) minmax(100px, .72fr) minmax(62px, .48fr) 76px !important;
  }

  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-list-updated,
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-list-head span:nth-child(6) {
    display: none !important;
  }

  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-list-head span:nth-child(7) {
    display: block !important;
  }
}

@media (max-width: 720px) {
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open {
    grid-template-columns: 10px minmax(0, 1fr) auto !important;
  }

  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-run-card > summary {
    grid-template-columns: 26px minmax(0, 1fr) auto !important;
  }
}

/* Keep the column headers and every project row on the exact same tracks.
   The late override consolidates legacy Run History grid declarations that
   previously allowed a header/row mismatch at narrower desktop widths. */
html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] {
  --run-history-columns: 14px minmax(280px, 2.25fr) minmax(64px, .55fr) minmax(122px, .78fr) minmax(72px, .55fr) minmax(128px, .75fr) 82px;
}

html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-list-head,
html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open {
  grid-template-columns: var(--run-history-columns) !important;
}

@media (max-width: 1020px) and (min-width: 721px) {
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] {
    --run-history-columns: 14px minmax(240px, 1.8fr) minmax(52px, .5fr) minmax(100px, .72fr) minmax(62px, .48fr) 76px;
  }
}

@media (max-width: 720px) {
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open {
    grid-template-columns: 10px minmax(0, 1fr) auto !important;
  }
}

/* Center each non-project column under its matching table heading. */
@media (min-width: 721px) {
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-list-head > span:nth-child(n + 3) {
    justify-self: stretch !important;
    text-align: center !important;
  }

  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-run,
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-status,
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-issues,
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-updated,
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-action {
    justify-self: stretch !important;
    text-align: center !important;
  }

  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-action {
    justify-content: center !important;
  }
}

/* 2026-10-06 · Keep both saved prompt panels on the same full-width track;
   align compact actions to the title row's visual center. */
html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-run-output-grid > .project-run-output {
  grid-column: 1 / -1 !important;
}

html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-run-output-grid > .project-run-output .project-run-output-head {
  align-items: center !important;
  gap: 10px !important;
}

html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-run-output-grid > .project-run-output .project-run-output-title {
  align-items: center !important;
}

html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-run-output-grid > .project-run-output .project-run-local-actions {
  align-items: center !important;
  align-self: center !important;
  gap: 6px !important;
}

html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-run-output-grid > .project-run-output .project-run-local-actions button {
  min-height: 25px !important;
  height: 25px !important;
  padding: 3px 8px !important;
  line-height: 1 !important;
}

@media (max-width: 560px) {
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-run-output-grid > .project-run-output .project-run-output-head {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}

/* 2026-10-06 · Stable Run History column alignment.
   Reserve the complete action rail on every row—even when Reuse is not
   available—so the PROJECT/INPUT, RUNS, STATUS, ISSUES and UPDATED tracks have
   identical available width beneath their headings. */
@media (min-width: 1021px) {
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row {
    grid-template-columns: minmax(0, 1fr) 64px 64px !important;
    column-gap: 8px !important;
  }

  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-list-head {
    padding-left: 16px !important;
    padding-right: 160px !important;
  }
}

@media (max-width: 1020px) and (min-width: 721px) {
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-row {
    grid-template-columns: minmax(0, 1fr) 64px 64px !important;
    column-gap: 8px !important;
  }

  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-list-head {
    padding-left: 16px !important;
    padding-right: 160px !important;
  }
}

/* Explicitly place each visible row field on the matching header track.
   Legacy rules assign the Details CTA to column 8, creating an implicit
   column 7 and shifting every numeric field left of its header. */
@media (min-width: 1021px) {
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-status-mark { grid-column: 1 !important; }
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-main { grid-column: 2 !important; }
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-run { grid-column: 3 !important; }
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-status { grid-column: 4 !important; }
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-issues { grid-column: 5 !important; }
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-updated { grid-column: 6 !important; }
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-action { grid-column: 7 !important; }
}

@media (max-width: 1020px) and (min-width: 721px) {
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-status-mark { grid-column: 1 !important; }
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-main { grid-column: 2 !important; }
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-run { grid-column: 3 !important; }
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-status { grid-column: 4 !important; }
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-issues { grid-column: 5 !important; }
  html body #app#app#app#app#app#app#app#app#app#app#app[data-active-view="logs"] .project-log-card-open > .project-log-list-action { grid-column: 6 !important; }
}
