200 lines
5.4 KiB
CSS
200 lines
5.4 KiB
CSS
/* ===================================================
|
|
JAESWIFT.XYZ — Agentic chat UI (tool cards + tiers)
|
|
=================================================== */
|
|
|
|
/* ─── Tier badge ─── */
|
|
.tier-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 8px;
|
|
margin-left: 8px;
|
|
font-family: 'VT323', 'Courier New', monospace;
|
|
font-size: 0.78rem;
|
|
letter-spacing: 0.08em;
|
|
border: 1px solid currentColor;
|
|
border-radius: 2px;
|
|
text-transform: uppercase;
|
|
background: rgba(0, 0, 0, 0.35);
|
|
vertical-align: middle;
|
|
transition: all 0.3s ease;
|
|
user-select: none;
|
|
}
|
|
.tier-badge.tier-anonymous { color: #888; }
|
|
.tier-badge.tier-operator { color: #00cc33; box-shadow: 0 0 6px rgba(0, 204, 51, 0.3); }
|
|
.tier-badge.tier-elite {
|
|
color: #ffd700;
|
|
box-shadow: 0 0 10px rgba(255, 215, 0, 0.45);
|
|
animation: tier-elite-pulse 3s ease-in-out infinite;
|
|
}
|
|
.tier-badge.tier-admin { color: #ff3355; box-shadow: 0 0 8px rgba(255, 51, 85, 0.4); }
|
|
|
|
@keyframes tier-elite-pulse {
|
|
0%, 100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.35); }
|
|
50% { box-shadow: 0 0 16px rgba(255, 215, 0, 0.7); }
|
|
}
|
|
|
|
/* ─── Agent tool-call card ─── */
|
|
.agent-tool-call {
|
|
font-family: 'Courier New', 'Consolas', monospace;
|
|
font-size: 0.82rem;
|
|
color: #00ff66;
|
|
background: rgba(0, 20, 0, 0.4);
|
|
border-left: 2px solid #00cc33;
|
|
padding: 6px 10px;
|
|
margin: 6px 0 6px 18px;
|
|
border-radius: 2px;
|
|
max-width: calc(100% - 36px);
|
|
overflow-x: auto;
|
|
animation: tool-card-slide-in 0.25s ease-out;
|
|
}
|
|
|
|
@keyframes tool-card-slide-in {
|
|
from { opacity: 0; transform: translateX(-6px); }
|
|
to { opacity: 1; transform: translateX(0); }
|
|
}
|
|
|
|
.agent-tool-call .atc-header {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: 6px;
|
|
color: #00ff99;
|
|
}
|
|
.agent-tool-call .atc-icon { font-size: 0.9rem; }
|
|
.agent-tool-call .atc-name {
|
|
font-weight: bold;
|
|
color: #66ffaa;
|
|
text-shadow: 0 0 4px rgba(0, 255, 100, 0.4);
|
|
}
|
|
.agent-tool-call .atc-args {
|
|
color: #55cc77;
|
|
font-size: 0.78rem;
|
|
overflow-wrap: anywhere;
|
|
max-width: 100%;
|
|
}
|
|
.agent-tool-call .atc-status {
|
|
color: #33dd66;
|
|
margin-top: 2px;
|
|
font-size: 0.8rem;
|
|
}
|
|
.agent-tool-call .atc-details {
|
|
margin-top: 2px;
|
|
}
|
|
.agent-tool-call .atc-details summary {
|
|
cursor: pointer;
|
|
color: #22aa44;
|
|
list-style: none;
|
|
outline: none;
|
|
font-size: 0.78rem;
|
|
}
|
|
.agent-tool-call .atc-details summary::-webkit-details-marker { display: none; }
|
|
.agent-tool-call .atc-details[open] summary::after { content: ' ▼'; }
|
|
.agent-tool-call .atc-details summary::after { content: ' ▶'; }
|
|
.agent-tool-call .atc-details pre {
|
|
margin: 4px 0 0;
|
|
padding: 6px 8px;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
border: 1px dashed rgba(0, 204, 51, 0.3);
|
|
color: #88eeaa;
|
|
font-size: 0.74rem;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
max-height: 280px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Agent reply styling tweak */
|
|
.chat-msg.chat-msg-agent .chat-msg-body {
|
|
position: relative;
|
|
}
|
|
.chat-msg.chat-msg-agent[data-model]:not([data-model=''])::after {
|
|
content: attr(data-model);
|
|
display: block;
|
|
font-family: 'VT323', monospace;
|
|
font-size: 0.65rem;
|
|
letter-spacing: 0.08em;
|
|
color: #446655;
|
|
text-transform: uppercase;
|
|
margin-top: 2px;
|
|
margin-left: 48px;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* Locked CTA style (for tier-gated messages) */
|
|
.agent-locked {
|
|
border-left-color: #ff9933;
|
|
color: #ffaa55;
|
|
background: rgba(40, 20, 0, 0.4);
|
|
}
|
|
.agent-locked .atc-name { color: #ffcc77; }
|
|
|
|
/* Mobile responsiveness */
|
|
@media (max-width: 600px) {
|
|
.agent-tool-call {
|
|
margin-left: 6px;
|
|
font-size: 0.75rem;
|
|
}
|
|
.tier-badge {
|
|
font-size: 0.7rem;
|
|
padding: 1px 6px;
|
|
}
|
|
.agent-tool-call .atc-args {
|
|
font-size: 0.72rem;
|
|
}
|
|
}
|
|
|
|
/* =========================================
|
|
PHASE 2 — Markdown rendering in chat
|
|
========================================= */
|
|
.chat-msg-body strong { color: var(--accent); font-weight: 700; }
|
|
.chat-msg-body em { color: var(--text-dim); font-style: italic; }
|
|
.chat-msg-body code {
|
|
background: rgba(20, 241, 149, 0.1);
|
|
padding: 0 0.3rem;
|
|
border-radius: 2px;
|
|
color: var(--status-green, #14f195);
|
|
font-family: 'JetBrains Mono', 'Courier New', monospace;
|
|
font-size: 0.85em;
|
|
border: 1px solid rgba(20, 241, 149, 0.2);
|
|
}
|
|
.chat-msg-body pre {
|
|
background: rgba(0, 0, 0, 0.45);
|
|
padding: 0.6rem 0.75rem;
|
|
border-radius: 4px;
|
|
overflow-x: auto;
|
|
border-left: 2px solid var(--accent);
|
|
margin: 0.5rem 0;
|
|
max-width: 100%;
|
|
}
|
|
.chat-msg-body pre code {
|
|
background: transparent;
|
|
border: none;
|
|
padding: 0;
|
|
color: var(--text, #e8e8e8);
|
|
font-size: 0.8em;
|
|
white-space: pre;
|
|
}
|
|
.chat-msg-body a {
|
|
color: var(--accent);
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
transition: color 0.15s ease;
|
|
}
|
|
.chat-msg-body a:hover { color: var(--status-green, #14f195); }
|
|
.chat-msg-body h2,
|
|
.chat-msg-body h3,
|
|
.chat-msg-body h4 {
|
|
color: var(--accent);
|
|
margin: 0.5rem 0 0.25rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
.chat-msg-body h2 { font-size: 1.1em; }
|
|
.chat-msg-body h3 { font-size: 1.0em; }
|
|
.chat-msg-body h4 { font-size: 0.95em; }
|
|
.chat-msg-body ul, .chat-msg-body ol {
|
|
margin: 0.3rem 0 0.3rem 1.25rem;
|
|
padding: 0;
|
|
}
|
|
.chat-msg-body li { margin: 0.15rem 0; list-style: disc; }
|