/* agentic-portfolio-search — themeable via CSS variables; inherits host tokens when present. */ .aps { --aps-fg: var(--fg, #141416); --aps-muted: var(--muted, #68686f); --aps-border: var(--divider, rgba(20, 20, 22, 0.1)); --aps-surface: var(--card, rgba(127, 127, 127, 0.06)); --aps-accent: var(--fg, #141416); --aps-radius: 14px; display: flex; flex-direction: column; gap: 12px; color: var(--aps-fg); } .aps-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .aps-kicker { font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aps-muted); } .aps-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin: 0; } .aps-tabs { display: inline-flex; padding: 2px; border: 1px solid var(--aps-border); border-radius: 999px; } .aps-tab { font: inherit; font-size: 12px; padding: 4px 11px; border-radius: 999px; border: 0; background: none; color: var(--aps-muted); cursor: pointer; } .aps-tab[data-active="true"] { background: var(--aps-fg); color: var(--bg, #fff); } .aps-bar { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1px solid var(--aps-border); border-radius: var(--aps-radius); background: var(--aps-surface); transition: border-color 0.15s, box-shadow 0.15s; } .aps-bar:focus-within { border-color: color-mix(in srgb, var(--aps-fg) 35%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--aps-fg) 8%, transparent); } .aps-icon { color: var(--aps-muted); flex: none; } .aps-input { flex: 1; min-width: 0; font: inherit; font-size: 15px; background: none; border: 0; outline: 0; color: var(--aps-fg); padding: 8px 0; } .aps-input::placeholder { color: var(--aps-muted); } .aps-kbd { font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; color: var(--aps-muted); border: 1px solid var(--aps-border); border-radius: 6px; padding: 2px 7px; margin-right: 6px; } .aps-submit { font: inherit; font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 10px; border: 0; background: var(--aps-fg); color: var(--bg, #fff); cursor: pointer; } .aps-submit:disabled { opacity: 0.45; cursor: default; } .aps-chips { display: flex; flex-wrap: wrap; gap: 6px; } .aps-chip { font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--aps-border); background: none; color: var(--aps-muted); cursor: pointer; text-align: left; } .aps-chip:hover { color: var(--aps-fg); border-color: color-mix(in srgb, var(--aps-fg) 30%, transparent); } .aps-results:empty { display: none; } .aps-hits { list-style: none; margin: 0; padding: 4px; border: 1px solid var(--aps-border); border-radius: var(--aps-radius); display: flex; flex-direction: column; gap: 2px; } .aps-hits > li[data-active="true"] .aps-hit { background: color-mix(in srgb, var(--aps-fg) 6%, transparent); } .aps-hit { display: grid; gap: 2px; padding: 9px 10px; border-radius: 10px; color: inherit; text-decoration: none; } .aps-hit-title { font-size: 14px; font-weight: 500; } .aps-hit-summary { font-size: 12.5px; color: var(--aps-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .aps-hit-meta { display: inline-flex; gap: 8px; align-items: center; margin-top: 2px; } .aps-badge { font-family: var(--font-mono, ui-monospace, monospace); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--aps-muted); border: 1px solid var(--aps-border); border-radius: 999px; padding: 1px 7px; } .aps-host { font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; color: var(--aps-muted); } .aps-hint, .aps-empty { font-size: 12px; color: var(--aps-muted); padding: 8px 10px; margin: 0; } .aps-linkish { font: inherit; background: none; border: 0; padding: 0; color: var(--aps-fg); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; } .aps-answer { border: 1px solid var(--aps-border); border-radius: var(--aps-radius); padding: 14px 16px; background: var(--aps-surface); display: flex; flex-direction: column; gap: 10px; } .aps-answer-text { margin: 0; font-size: 14.5px; line-height: 1.6; } .aps-points { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--aps-muted); list-style: disc; } .aps-cite-ref { font-family: var(--font-mono, ui-monospace, monospace); font-size: 10px; padding: 0 3px; margin-left: 1px; border-radius: 4px; border: 1px solid var(--aps-border); color: var(--aps-fg); text-decoration: none; } .aps-citations { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; } .aps-cite { display: flex; gap: 9px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--aps-border); border-radius: 10px; color: inherit; text-decoration: none; height: 100%; } .aps-cite:hover { border-color: color-mix(in srgb, var(--aps-fg) 30%, transparent); } .aps-cite-n { font-family: var(--font-mono, ui-monospace, monospace); font-size: 10px; color: var(--aps-muted); border: 1px solid var(--aps-border); border-radius: 5px; padding: 0 5px; line-height: 16px; } .aps-cite-body { display: grid; gap: 3px; min-width: 0; } .aps-cite-title { font-size: 12.5px; font-weight: 500; line-height: 1.35; } .aps-provenance { margin: 0; font-family: var(--font-mono, ui-monospace, monospace); font-size: 10.5px; color: var(--aps-muted); } .aps-footer { font-size: 11px; color: var(--aps-muted); } .aps-loading { flex-direction: row; gap: 6px; padding: 18px 16px; } .aps-loading span { width: 6px; height: 6px; border-radius: 99px; background: var(--aps-muted); animation: aps-pulse 1s infinite ease-in-out; } .aps-loading span:nth-child(2) { animation-delay: 0.15s; } .aps-loading span:nth-child(3) { animation-delay: 0.3s; } @keyframes aps-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } } @media (prefers-reduced-motion: reduce) { .aps-loading span { animation: none; } }