/* src/styles.css */
.fai-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  color: #18181b;
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .fai-panel {
    background: #18181b;
    color: #fafafa;
    border-color: #3f3f46;
  }
}
.fai-panel__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #e4e4e7;
}
@media (prefers-color-scheme: dark) {
  .fai-panel__header {
    border-color: #3f3f46;
  }
}
.fai-panel__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}
.fai-panel__title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex: 1;
}
.fai-panel__subtitle {
  font-size: 11px;
  opacity: 0.6;
}
.fai-panel__actions {
  display: flex;
  gap: 6px;
}
.fai-panel__stream {
  flex: 1;
  overflow: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fai-panel__empty {
  font-size: 12px;
  opacity: 0.5;
  margin: auto;
}
.fai-row {
  font-size: 12px;
  border-radius: 6px;
  padding: 6px 8px;
  background: rgba(244, 244, 245, 0.6);
}
@media (prefers-color-scheme: dark) {
  .fai-row {
    background: rgba(63, 63, 70, 0.4);
  }
}
.fai-row--tool {
  border-left: 3px solid #a855f7;
}
.fai-row--message {
  border-left: 3px solid #3b82f6;
}
.fai-row--info {
  border-left: 3px solid #71717a;
}
.fai-row--error {
  border-left: 3px solid #ef4444;
  background: rgba(254, 226, 226, 0.4);
}
.fai-row__meta {
  display: flex;
  align-items: baseline;
  gap: 4px;
  opacity: 0.6;
  font-size: 10px;
}
.fai-row__source {
  font-family: ui-monospace, monospace;
}
.fai-row__args {
  font-family: ui-monospace, monospace;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fai-row__latency {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fai-row__time {
  margin-left: auto;
  white-space: nowrap;
}
.fai-row__result {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  opacity: 0.85;
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fai-row--pending {
  opacity: 0.7;
}
.fai-row--pending .fai-row__source::after {
  content: " \2026";
}
.fai-row--error .fai-row__result {
  color: #b91c1c;
}
.fai-row__text {
  white-space: pre-wrap;
}
.fai-row__detail summary {
  cursor: pointer;
  opacity: 0.7;
  font-size: 11px;
  margin-top: 4px;
}
.fai-row__detail pre {
  font-size: 11px;
  margin: 4px 0 0;
  padding: 6px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  overflow: auto;
  max-height: 200px;
}
.fai-panel__composer {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid #e4e4e7;
}
@media (prefers-color-scheme: dark) {
  .fai-panel__composer {
    border-color: #3f3f46;
  }
}
.fai-panel__input {
  flex: 1;
  resize: none;
  border-radius: 6px;
  border: 1px solid #d4d4d8;
  padding: 6px 8px;
  font: inherit;
  background: transparent;
  color: inherit;
}
.fai-panel__input:focus {
  outline: 2px solid #a855f7;
  outline-offset: -1px;
}
.fai-panel__send {
  align-self: stretch;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #a855f7;
  color: white;
  cursor: pointer;
  font-weight: 500;
}
.fai-panel__send:disabled {
  opacity: 0.5;
  cursor: default;
}
.fai-cursor {
  transition: left 500ms cubic-bezier(0.22, 1, 0.36, 1), top 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .fai-cursor {
    transition: none;
  }
}
.fai-cursor__tag {
  position: absolute;
  left: 18px;
  top: 14px;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-family: system-ui, sans-serif;
  white-space: nowrap;
}
.fai-cursor__status {
  font-style: normal;
  opacity: 0.85;
}
@keyframes fai-pulse {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  20% {
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
.fai-share {
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 12px;
  background: white;
  color: #18181b;
  font-family:
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-size: 13px;
}
@media (prefers-color-scheme: dark) {
  .fai-share {
    background: #18181b;
    color: #fafafa;
    border-color: #3f3f46;
  }
}
.fai-share--idle {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fai-share__start {
  align-self: flex-start;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  background: #a855f7;
  color: white;
  font-weight: 500;
  cursor: pointer;
}
.fai-share__hint {
  margin: 0;
  opacity: 0.7;
  font-size: 12px;
}
.fai-share__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.fai-share__id {
  display: block;
  opacity: 0.7;
  font-size: 11px;
  margin-top: 2px;
}
.fai-share__id code {
  font-family: ui-monospace, monospace;
}
.fai-share__header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.fai-share__status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}
.fai-share__stop {
  border: 1px solid #d4d4d8;
  background: transparent;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
  color: inherit;
}
.fai-share__tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.fai-share__tab {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  color: inherit;
  font-size: 12px;
}
.fai-share__tab.is-active {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}
.fai-share__panel-label {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 4px;
}
.fai-share__copy {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.fai-share__pre {
  flex: 1;
  margin: 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  white-space: nowrap;
  overflow: auto;
}
.fai-share__pre.is-multi {
  white-space: pre;
  max-height: 240px;
}
.fai-share__copy-btn {
  border: 1px solid #d4d4d8;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  padding: 0 12px;
  color: inherit;
  font-size: 12px;
}
.agent-focused-element {
  --agent-color: #a855f7;
  position: relative;
  outline: 2px solid var(--agent-color);
  outline-offset: 2px;
  border-radius: 4px;
  animation: agent-focus-pulse 1500ms ease-out forwards;
}
@keyframes agent-focus-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--agent-color);
  }
  40% {
    box-shadow: 0 0 0 6px rgba(168, 85, 247, 0.18);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
    outline-color: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .agent-focused-element {
    animation: none;
  }
}
.agent-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--agent-color, #a855f7);
  color: white;
  font-family:
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 999px;
  vertical-align: middle;
}
.agent-active-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  animation: agent-active-blink 1.4s ease-in-out infinite;
}
@keyframes agent-active-blink {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
.fai-connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family:
    ui-sans-serif,
    system-ui,
    sans-serif;
}
.fai-connect__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: #18181b;
  transition:
    background 120ms ease,
    opacity 120ms ease,
    box-shadow 120ms ease;
}
.fai-connect__btn:hover {
  opacity: 0.92;
}
.fai-connect__btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.fai-connect__glyph {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.fai-connect__btn--claude-web {
  background: #cc785c;
}
.fai-connect__btn--claude-desktop {
  background: #cc785c;
}
.fai-connect__btn--cursor {
  background: #111827;
}
.fai-connect__btn--vscode {
  background: #0066b8;
}
.fai-connect__btn--manual {
  background: #3f3f46;
}
.fai-connect__manual-wrap {
  position: relative;
  display: inline-flex;
}
.fai-connect__popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  width: min(420px, 80vw);
  background: #fff;
  color: #18181b;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 12px;
}
.fai-connect__popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.fai-connect__popover-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #71717a;
  padding: 0 4px;
}
.fai-connect__popover-hint {
  font-size: 11px;
  color: #52525b;
  margin: 0 0 8px;
}
.fai-connect__popover-hint code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  background: #f4f4f5;
  padding: 1px 4px;
  border-radius: 4px;
}
.fai-connect__snippet {
  margin: 0 0 8px;
  max-height: 220px;
  overflow: auto;
  background: #18181b;
  color: #e4e4e7;
  border-radius: 8px;
  padding: 10px;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre;
}
.fai-connect__copy-btn {
  border: 1px solid #e4e4e7;
  border-radius: 7px;
  background: #fafafa;
  color: #18181b;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
}
.fai-connect__copy-btn:hover {
  background: #f4f4f5;
}
@media (prefers-color-scheme: dark) {
  .fai-connect__popover {
    background: #18181b;
    color: #fafafa;
    border-color: #3f3f46;
  }
  .fai-connect__popover-hint {
    color: #a1a1aa;
  }
  .fai-connect__popover-hint code {
    background: #27272a;
  }
  .fai-connect__copy-btn {
    background: #27272a;
    color: #fafafa;
    border-color: #3f3f46;
  }
  .fai-connect__copy-btn:hover {
    background: #3f3f46;
  }
}
.fai-share__empty {
  font-size: 12px;
  opacity: 0.7;
  margin: 8px 0;
}
.fai-share__activity {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}
.fai-share__activity-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 4px 0;
  font-size: 12px;
  border-bottom: 1px solid color-mix(in oklab, currentColor 10%, transparent);
}
.fai-share__activity-row:last-child {
  border-bottom: 0;
}
.fai-share__activity-time {
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
  font-size: 11px;
}
.fai-share__activity-source {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: color-mix(in oklab, #a855f7 22%, transparent);
}
.fai-share__activity-text {
  overflow-wrap: anywhere;
}
.fai-share__activity-row[data-kind=error] .fai-share__activity-source {
  background: color-mix(in oklab, #ef4444 30%, transparent);
}
/*# sourceMappingURL=styles.css.map */