.aoa-sug-line { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; vertical-align: middle; position: relative; top: -0.1em; top: calc(0.5ex - 0.5cap); white-space: nowrap; }
.aoa-sug-line[data-status="dismissed"] { vertical-align: baseline; top: 0; }
.aoa-sug-line button, .aoa-sug-ask, .aoa-sug-finding { font: inherit; }
/* After the reset above (0,1,1), so the pill's own face and line height apply. */
.aoa-sug-line .aoa-sug-chip, .aoa-sug-line .aoa-sug-dismiss, .aoa-sug-line .aoa-sug-undo { font-family: var(--font-head, "Poppins", Arial, sans-serif); }
.aoa-sug-line .aoa-sug-chip { line-height: 1.6; }

.aoa-sug-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 340px; padding: 1px 8px 1px 6px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); font-size: 0.8em !important; font-weight: 500 !important; line-height: 1.6; cursor: pointer; }
.aoa-sug-chip:hover, .aoa-sug-chip:focus-visible { border-color: var(--aoa-orange); color: var(--aoa-orange); }
.aoa-sug-chip-text { overflow: hidden; text-overflow: ellipsis; }
.aoa-sug-line[data-status="added"] .aoa-sug-chip { border-color: transparent; background: color-mix(in srgb, var(--aoa-orange) 14%, transparent); color: var(--aoa-orange); }

/* A plus to add (a checkbox would read as "tick to complete"); a tick once added. */
.aoa-sug-glyph { --aoa-sug-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); flex: none; width: 0.9167em; height: 0.9167em; background: currentColor; -webkit-mask: var(--aoa-sug-icon) center / contain no-repeat; mask: var(--aoa-sug-icon) center / contain no-repeat; }
.aoa-sug-glyph-done { --aoa-sug-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
a.aoa-sug-chip { text-decoration: none; }

/* Dismiss and undo only show on the hovered line. */
.aoa-sug-dismiss, .aoa-sug-undo { opacity: 0; padding: 0 6px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 0.8667em !important; font-weight: 400 !important; line-height: 1.5; cursor: pointer; }
.aoa-sug-undo { font-size: 0.8em !important; }
[data-aoa-sug-bullet]:hover .aoa-sug-dismiss, [data-aoa-sug-bullet]:hover .aoa-sug-undo, .aoa-sug-more:hover .aoa-sug-dismiss, .aoa-sug-more:hover .aoa-sug-undo, .aoa-sug-line:focus-within .aoa-sug-dismiss, .aoa-sug-dismiss:focus-visible, .aoa-sug-undo:focus-visible { opacity: 1; }
.aoa-sug-dismiss:hover, .aoa-sug-undo:hover { color: var(--heading); background: var(--hover); }

/* While Claude reads the post: a twinkling spark and shimmering words at the AN line.
   The words are the only baseline-sharing item (an empty icon leading an inline-flex
   would lend its bottom edge as the baseline, lifting the words 1.75px), and the
   spark, drawn centred in its box, sits centred beside them. */
.aoa-sug-finding { display: inline-flex; align-items: baseline; gap: 6px; margin-left: 10px; vertical-align: baseline; font-family: var(--font-head, "Poppins", Arial, sans-serif); font-size: 0.8em; font-weight: 500; line-height: 1.6; animation: aoa-sug-fade-in 240ms ease-out both; }
.aoa-sug-spark { --aoa-sug-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.5l2.3 6.2 6.2 2.3-6.2 2.3L12 20.5l-2.3-6.2L3.5 12l6.2-2.3z'/%3E%3C/svg%3E"); flex: none; align-self: center; width: 1em; height: 1em; background: var(--aoa-orange); -webkit-mask: var(--aoa-sug-icon) center / contain no-repeat; mask: var(--aoa-sug-icon) center / contain no-repeat; animation: aoa-sug-twinkle 1.2s ease-in-out infinite; }
.aoa-sug-finding-text { background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 35%, var(--aoa-orange) 50%, var(--muted) 65%, var(--muted) 100%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: aoa-sug-shimmer 1.6s linear infinite; }
.aoa-sug-finding-text::after { content: '…'; }

/* Pills arrive one after another, each rising slightly into place. */
.aoa-sug-appear { animation: aoa-sug-rise 320ms cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--aoa-sug-i, 0) * 70ms); }

/* Older posts: offered on hover only. Errors stay quietly visible. */
.aoa-sug-ask { margin-left: 10px; padding: 0 6px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-family: var(--font-head, "Poppins", Arial, sans-serif); font-size: 0.8em; line-height: 1.6; cursor: pointer; opacity: 0; transition: opacity 120ms; }
article:hover .aoa-sug-ask, .aoa-sug-ask:focus-visible, .aoa-sug-retry { opacity: 1; }
.aoa-sug-ask:hover { color: var(--aoa-orange); background: var(--hover); }

/* Actions that share a line, or match none, are listed after the post with their own text. */
.aoa-sug-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 2px; margin: 8px 0 4px; }
.aoa-sug-more .aoa-sug-line { margin-left: 0; top: 0; }

@keyframes aoa-sug-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes aoa-sug-twinkle { 0%, 100% { transform: scale(.75) rotate(0deg); opacity: .55; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
@keyframes aoa-sug-rise { from { opacity: 0; transform: translateY(4px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes aoa-sug-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .aoa-sug-finding, .aoa-sug-spark, .aoa-sug-finding-text, .aoa-sug-appear { animation: none !important; }
  .aoa-sug-finding-text { color: var(--muted); background: none; }
}

.aoa-sug-line :focus-visible, .aoa-sug-ask:focus-visible { outline: 2px solid var(--aoa-orange); outline-offset: 2px; }
