/* Native Claude Design report, evidence, and avatar patterns adapted to the workspace. */
:root {
  --status-waiting: #f3bb53;
  --status-checking: #b898ff;
  --status-verified: #6fe4b9;
  --fg-ease: cubic-bezier(.2, 0, 0, 1);
}
.fg .fg-report {
  width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 12px;
  border: 1px solid var(--fg-color-border); border-radius: var(--fg-radius-card);
  background: var(--fg-color-thread); color: var(--fg-color-ink);
  font-size: 13px; line-height: 18px;
}
.fg .message + .fg-report { margin-top: 8px; }
.fg .fg-report + .fg-report { margin-top: 12px; }
.fg .fg-report-head { display: flex; align-items: flex-start; gap: 8px; }
.fg .fg-report-titles { flex: 1; min-width: 0; }
.fg .fg-report-title { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; }
.fg :is(.fg-report-sub, .fg-report-foot, .fg-source-meta, .fg-sources-title) {
  color: var(--fg-color-ink-secondary); font-size: 12px; line-height: 16px;
}
.fg .fg-draft {
  display: inline-flex; align-items: center; min-height: 20px; padding: 1px 8px; flex: none;
  border-radius: 999px; background: var(--fg-color-hover); font-size: 12px; line-height: 16px;
}
.fg .fg-draft--approved { background: var(--fg-color-selected); }
.fg .fg-draft--superseded { background: transparent; box-shadow: inset 0 0 0 1px var(--fg-color-border); }
.fg .fg-report-evidence { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fg .fg-badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 10px 2px 8px;
  border-radius: 999px; background: var(--fg-color-sidebar); box-shadow: inset 0 0 0 1px var(--fg-color-border);
  font-size: 12px; line-height: 16px; font-weight: 500;
}
.fg :is(.fg-badge--waiting, .fg-source--missing .fg-source-state, .fg-report-block) { color: var(--status-waiting); }
.fg :is(.fg-badge--checking, .fg-source--checking .fg-source-state) { color: var(--status-checking); }
.fg :is(.fg-badge--verified, .fg-source--verified .fg-source-state) { color: var(--status-verified); }
.fg .fg-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.fg .fg-badge--checking .fg-badge-dot { animation: fg-check 820ms ease-in-out infinite; }
@keyframes fg-check { 50% { opacity: .35; transform: scale(.72); } }
.fg .fg-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; }
.fg :is(.fg-metric, .fg-report-well, .fg-prior) { padding: 8px; border-radius: 8px; background: var(--fg-color-sidebar); }
.fg .fg-metric dt { color: var(--fg-color-ink-secondary); font-size: 12px; line-height: 16px; }
.fg .fg-metric dd { margin: 0; font-size: 20px; line-height: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.fg .fg-report-well { overflow-wrap: anywhere; }
.fg .fg-report-well p + p { margin-top: 8px; }
.fg .fg-report-well blockquote { margin: 8px 0 0; white-space: pre-wrap; }
.fg .fg-sources-title { cursor: pointer; font-weight: 500; }
.fg .fg-sources[open] > summary { margin-bottom: 8px; }
.fg .fg-sources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fg .fg-source { display: flex; align-items: flex-start; gap: 8px; }
.fg .fg-source-mark { width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--fg-color-ink-muted); flex: none; }
.fg .fg-source--missing .fg-source-mark { background: var(--status-waiting); }
.fg .fg-source--checking .fg-source-mark { background: var(--status-checking); }
.fg .fg-source--verified .fg-source-mark { background: var(--status-verified); }
.fg .fg-source-body { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.fg .fg-source-state { flex: none; font-size: 12px; font-weight: 500; }
.fg .fg-sources ul + .fg-report-foot { margin-top: 8px; }
.fg .fg-report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fg .workspace-directive .fg-report { width: 100%; max-width: 560px; margin: 0; }
.fg .workspace-directive .fg-report-head { align-items: flex-start; flex-wrap: wrap; }
.fg .workspace-directive .fg-report-head > :is(img,svg) { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.fg .workspace-directive .fg-report-titles { min-width: min(125px, 100%); }
.fg .workspace-directive .fg-report-actions { justify-content: flex-end; }
.fg .fg-directive-fields { display: grid; grid-template-columns: minmax(58px, auto) minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; }
.fg .fg-directive-fields dt { color: var(--fg-color-ink-secondary); }
.fg .fg-directive-fields dd { margin: 0; overflow-wrap: anywhere; }
.fg .fg-directive-content .fg-report-well { white-space: pre-wrap; font-size: 13px; line-height: 1.45; max-height: 260px; overflow: auto; }
.fg .fg-directive-content .fg-directive-email { white-space: normal; }
.fg .fg-directive-email a { color: inherit; }
.fg .fg-directive-email pre { white-space: pre-wrap; }
.fg .fg-directive-grid { min-width: 0; font-size: 13px; }
.fg .fg-directive-grid summary { cursor: pointer; padding-block: 4px; }
.fg .fg-directive-grid [role=region] { overflow: auto; max-height: 240px; }
.fg .fg-directive-grid td { min-width: 65px; max-width: 170px; overflow-wrap: anywhere; white-space: pre-wrap; }
.fg .fg-directive-receipt { padding-top: 8px; border-top: 1px solid var(--fg-color-divider); overflow-wrap: anywhere; }
.fg .fg-directive-matches { margin: 0; padding: 0; list-style: none; }
.fg .fg-directive-matches li { display: grid; gap: 3px; padding: 7px 0; overflow-wrap: anywhere; }
.fg .fg-directive-matches li + li { border-top: 1px solid var(--fg-color-divider); }
.fg .fg-directive-matches span { color: var(--fg-color-ink-secondary); font-size: 12px; }
.fg .fg-report-block { flex-basis: 100%; font-size: 12px; line-height: 16px; }
.fg .fg-btn {
  min-height: 32px; max-width: 100%; padding: 4px 12px; border: 1px solid var(--fg-color-border); border-radius: 999px;
  background: transparent; color: var(--fg-color-ink); font-size: 13px; line-height: 18px; font-weight: 500; cursor: pointer;
}
.fg .fg-btn:hover { background: var(--fg-color-hover); }
.fg .fg-btn--primary { background: var(--fg-color-ink); border-color: var(--fg-color-ink); color: var(--fg-color-thread); }
.fg .fg-btn--primary:hover { background: var(--fg-color-ink); opacity: .88; }
.fg [data-directive-decision="approve"]:not(:disabled, [aria-disabled="true"]) {
  background: var(--fg-color-action-cta); border-color: var(--fg-color-action-cta); color: var(--fg-color-ink-on-primary);
}
.fg [data-directive-decision="approve"]:not(:disabled, [aria-disabled="true"]):hover {
  background: var(--fg-color-action-cta-hover); border-color: var(--fg-color-action-cta-hover); opacity: 1;
}
.fg [data-directive-decision="approve"]:focus-visible { outline-offset: 3px; }
.fg .fg-btn:is(:disabled,[aria-disabled=true]) { background: var(--fg-color-selected); border-color: transparent; color: var(--fg-color-ink-secondary); cursor: not-allowed; }
.fg .fg-report a { color: inherit; text-underline-offset: 3px; }
.fg .fg-report :is(h4, .fg-report-section-title) { margin: 0 0 4px; font-size: 13px; font-weight: 500; }
.fg .fg-report table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.fg .fg-report :is(th,td) { padding: 5px 3px; border-bottom: 1px solid var(--fg-color-border); vertical-align: top; }
.fg .fg-report table small { display: block; color: var(--fg-color-ink-secondary); }
.fg .fg-report [data-draft] { width: 100%; margin-top: 4px; resize: vertical; }
.fg .fg-report .fg-edit-decision { flex: 1 0 100%; }
.fg-avatar { display: inline-flex; flex: 0 0 auto; line-height: 0; --fg-avatar-fill: #f5be45; }
.fg-avatar svg { display: block; overflow: visible; }
.fg-avatar-face { fill: var(--fg-avatar-fill); }
.fg-avatar--reporting { --fg-avatar-fill: #8f6bff; }
.fg-avatar--crm { --fg-avatar-fill: #e8962c; }
.fg-avatar--reviewer { --fg-avatar-fill: #4cc27a; }
.fg-avatar--routing { --fg-avatar-fill: #f2702d; }
.fg-avatar--coaching { --fg-avatar-fill: #e5484d; }
.fg-avatar--pipeline { --fg-avatar-fill: #4c8dff; }
.fg-avatar--operations { --fg-avatar-fill: #8a8a8a; }
.fg-avatar--onboarding { --fg-avatar-fill: #ef6aa8; }
.fg-avatar--research { --fg-avatar-fill: #2bb3ad; }
.fg-avatar-eyes { fill: #070707; }
:is(.fg-av-body, .fg-av-look, .fg-av-grow, .fg-av-eye) { transform-box: fill-box; transform-origin: center; }
.fg-av-body { transform-origin: 50% 100%; }
.fg-av-grow { transition: transform 260ms var(--fg-ease); }
.fg-avatar.is-thinking .fg-av-grow { transform: scale(1.3); }
.fg-av-eye { animation: fg-blink 4.6s var(--fg-av-delay) infinite; }
.fg-avatar.is-thinking .fg-av-eye { animation-duration: 2.9s; }
.fg-avatar.is-thinking .fg-av-look { animation: fg-look 3.2s var(--fg-av-delay) ease-in-out infinite; }
.fg-avatar.is-thinking .fg-av-body { animation: fg-think 1.6s var(--fg-av-delay) ease-in-out infinite; }
@keyframes fg-blink { 0%,91%,97%,100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }
@keyframes fg-look {
  0%,100% { transform: translate(0,0); } 12%,30% { transform: translate(-1.7px,-1.1px); }
  42%,60% { transform: translate(1.7px,-1.3px); } 72%,88% { transform: translate(.6px,1px); }
}
@keyframes fg-think { 50% { transform: scale(1.04,.96); } }
@keyframes fg-arrive { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: no-preference) {
  .fg :is(.fg-enter, .fg-enter-thread .fg-report, .fg-enter-thread .message) {
    animation: fg-arrive 230ms var(--fg-ease) both;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.fg-av-eye,.fg-av-look,.fg-av-body,.fg-badge-dot) { animation: none !important; }
  .fg-av-grow { transition: none; }
}
