/* R2631: a quiet, native disclosure keeps deliberate message conversion available without presenting every conversation as a task. Rules are scoped to the new owner. */
.app-shell .ops-message-actions { margin-block: 4px 0; }
.app-shell .ops-message-actions > summary { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; list-style: none; font: inherit; font-size: 24px; line-height: 1; border-radius: var(--ws-radius, 10px); background: transparent; color: var(--ink); }
.app-shell .ops-message-actions > summary::-webkit-details-marker { display: none; }
.app-shell .ops-message-actions > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.app-shell .ops-message-actions__body { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; padding-block: 4px; }
.app-shell .ops-message-actions__body > .requested-work-actions { max-width: 100%; margin: 0; flex-wrap: wrap; gap: 8px; }
.app-shell .ops-message-actions__body [role="alert"] { flex-basis: 100%; overflow-wrap: anywhere; }

/* WHY R2631/R2632: verified fallback wC has no leading icon, so its lone body must span the inherited icon/body grid. Otherwise answer, disclosure and real error collapse into the 24px icon track. The existing fallback marker and :only-child exclude normal turns and unrelated layouts. */
.app-shell .ops-turn[data-display-failed] > .ops-message--assistant > .ops-message__body:only-child { grid-column: 1 / -1; }

/* WHY R2951: conversion beside a message is a secondary reading action, not
   the task confirmation. Keep its dark readable label and 44px hit target,
   but remove the shared raised-button frame. The exact capture-owner label
   excludes Separate items, task-toolbar buttons and approval confirmation. */
.app-shell .requested-work-actions[aria-label="Create task from this item"] > .requested-work-add {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #3f4542;
  font-size: 0.875rem;
  font-weight: 500;
  padding-inline: 0.625rem;
  transform: none;
  filter: none;
  transition: background-color 120ms ease, color 120ms ease;
}
@media (hover: hover) {
  .app-shell .requested-work-actions[aria-label="Create task from this item"] > .requested-work-add:hover:not(:disabled) {
    background: #edf0eb;
    color: #191c1d;
    border-color: transparent;
    box-shadow: none;
    transform: none;
    text-decoration: underline;
    text-underline-offset: 0.18em;
  }
}
.app-shell .requested-work-actions[aria-label="Create task from this item"] > .requested-work-add:focus-visible {
  outline: 2px solid #3f4542;
  outline-offset: 2px;
  background: #edf0eb;
  color: #191c1d;
}
.app-shell .requested-work-actions[aria-label="Create task from this item"] > .requested-work-add:active:not(:disabled) {
  background: #e2e7df;
  box-shadow: none;
  transform: none;
}

/* WHY R3001: the disclosure itself inherited the global icon-button frame.
   Quieting only the Add task inside it left a large boxed ellipsis on every
   message. Keep the native action/focus behavior, dark dots and a 44px touch
   target; precise mouse input can use 32px without consuming a full row. */
.app-shell .ops-message-actions > summary {
  border-color: transparent;
  box-shadow: none;
  background: transparent;
  color: #3f4542;
  font-size: 18px;
  border-radius: 6px;
  transform: none;
  filter: none;
}
@media (hover: hover) and (pointer: fine) {
  .app-shell .ops-message-actions > summary {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  .app-shell .ops-message-actions > summary:hover {
    background: #edf0eb;
    color: #191c1d;
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }
}
.app-shell .ops-message-actions > summary:focus-visible {
  outline: 2px solid #3f4542;
  outline-offset: 2px;
  background: #edf0eb;
  color: #191c1d;
}
.app-shell .ops-message-actions > summary:active {
  background: #e2e7df;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}
