374 lines
12 KiB
CSS
374 lines
12 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; }
|
|
|
|
/* ═══ Phase 4: Rich tool cards ═══ */
|
|
.chat-msg-body strong { color: var(--accent, #00ffc8); }
|
|
.chat-msg-body em { color: var(--text-dim, #9ab); font-style: italic; }
|
|
.chat-msg-body code {
|
|
background: rgba(0,255,200,0.08);
|
|
padding: 0 0.3rem;
|
|
border-radius: 2px;
|
|
color: var(--accent, #00ffc8);
|
|
font-family: 'JetBrains Mono', ui-monospace, monospace;
|
|
font-size: 0.88em;
|
|
}
|
|
.chat-msg-body pre {
|
|
background: rgba(0,0,0,0.5);
|
|
padding: 0.6rem;
|
|
border-radius: 4px;
|
|
overflow-x: auto;
|
|
border-left: 2px solid var(--accent, #00ffc8);
|
|
margin: 0.4rem 0;
|
|
font-size: 0.82em;
|
|
color: #dfe;
|
|
}
|
|
.chat-msg-body a { color: var(--accent, #00ffc8); text-decoration: underline; }
|
|
.chat-msg-body h2, .chat-msg-body h3, .chat-msg-body h4 {
|
|
color: var(--accent, #00ffc8);
|
|
margin: 0.5rem 0 0.25rem;
|
|
font-family: 'JetBrains Mono', ui-monospace, monospace;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.chat-msg-body ul, .chat-msg-body ol { margin-left: 1.2rem; }
|
|
|
|
.tool-card {
|
|
margin: 0.4rem 0 0.2rem;
|
|
padding: 0.55rem 0.7rem;
|
|
background: linear-gradient(180deg, rgba(0,255,200,0.05), rgba(0,255,200,0.02));
|
|
border: 1px solid rgba(0,255,200,0.25);
|
|
border-left: 3px solid var(--accent, #00ffc8);
|
|
border-radius: 4px;
|
|
font-size: 0.85em;
|
|
color: #dfe;
|
|
}
|
|
.tool-card .tc-head { font-weight: 600; color: var(--accent, #00ffc8); margin-bottom: 0.3rem; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em; }
|
|
.tool-card .tc-sub { color: #9ab; font-size: 0.9em; }
|
|
.tool-card .tc-sub.pos { color: #14f195; }
|
|
.tool-card .tc-sub.neg { color: #ff5577; }
|
|
.tool-card .tc-list { list-style: none; padding: 0; margin: 0; }
|
|
.tool-card .tc-list li { padding: 0.35rem 0; border-bottom: 1px dashed rgba(0,255,200,0.12); }
|
|
.tool-card .tc-list li:last-child { border-bottom: 0; }
|
|
.tool-card .tc-tag {
|
|
display: inline-block;
|
|
background: rgba(0,255,200,0.12);
|
|
color: var(--accent, #00ffc8);
|
|
padding: 1px 6px;
|
|
border-radius: 2px;
|
|
font-size: 0.75em;
|
|
margin-left: 0.3rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
.tool-card .tc-snippet { color: #9ab; font-size: 0.88em; margin-top: 0.15rem; }
|
|
.tool-card .tc-link { display: inline-block; margin-top: 0.35rem; color: var(--accent, #00ffc8); font-size: 0.85em; }
|
|
.tool-card .tc-metrics { display: flex; gap: 0.9rem; margin-top: 0.3rem; flex-wrap: wrap; }
|
|
.tool-card .tc-metric { display: flex; flex-direction: column; align-items: center; }
|
|
.tool-card .tc-metric .tc-m-num { font-size: 1.15rem; color: var(--accent, #00ffc8); font-weight: 600; }
|
|
.tool-card .tc-metric .tc-m-lbl { font-size: 0.7em; color: #89a; text-transform: uppercase; letter-spacing: 0.08em; }
|
|
.tool-card.tool-price { display: flex; align-items: center; gap: 0.6rem; }
|
|
.tool-card.tool-price .tc-icon { font-size: 1.3rem; }
|
|
.tool-card.tool-price .tc-main { flex: 1; font-size: 1rem; }
|
|
.tool-card.tool-price .tc-label { color: #9ab; font-size: 0.8em; margin-right: 0.3rem; }
|
|
.tool-card.tool-effect, .tool-card.tool-fortune, .tool-card.tool-stats { padding: 0.5rem 0.7rem; }
|
|
.tool-card.tool-ascii pre { background: transparent; color: var(--accent, #00ffc8); border: 0; padding: 0; font-size: 0.75em; line-height: 1.1; }
|
|
.tool-card .tc-badge { display: inline-block; padding: 2px 8px; border-radius: 2px; font-size: 0.75em; font-weight: 700; margin-left: 0.5rem; }
|
|
.tool-card .tc-badge.taken { background: rgba(255,85,119,0.2); color: #ff5577; }
|
|
.tool-card .tc-badge.available { background: rgba(20,241,149,0.2); color: #14f195; }
|
|
.tool-card .tc-ver { color: var(--accent, #00ffc8); font-family: 'JetBrains Mono', monospace; font-weight: 600; }
|
|
.tool-card .tc-date { color: #678; font-size: 0.8em; margin-left: 0.3rem; }
|
|
.tool-card .tc-title { font-weight: 500; margin-top: 0.15rem; }
|
|
.atc-details { margin-top: 0.3rem; }
|
|
.atc-details summary { cursor: pointer; color: #678; font-size: 0.8em; }
|
|
.atc-status.err { color: #ff5577; font-size: 0.9em; }
|
|
|
|
/* ═══ Phase 4: Voice mode ═══ */
|
|
.chat-mic-btn, .chat-voice-settings-btn {
|
|
background: transparent;
|
|
border: 1px solid rgba(0,255,200,0.3);
|
|
color: var(--accent, #00ffc8);
|
|
width: 36px; height: 36px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
margin-right: 4px;
|
|
transition: all 0.15s;
|
|
display: inline-flex; align-items: center; justify-content: center;
|
|
}
|
|
.chat-mic-btn:hover, .chat-voice-settings-btn:hover {
|
|
background: rgba(0,255,200,0.1);
|
|
border-color: var(--accent, #00ffc8);
|
|
}
|
|
.chat-mic-btn.listening {
|
|
background: rgba(255,60,90,0.3);
|
|
border-color: #ff3c5a;
|
|
color: #ff3c5a;
|
|
animation: jae-mic-pulse 1s infinite;
|
|
}
|
|
@keyframes jae-mic-pulse {
|
|
0%, 100% { box-shadow: 0 0 0 0 rgba(255,60,90,0.6); }
|
|
50% { box-shadow: 0 0 0 6px rgba(255,60,90,0); }
|
|
}
|
|
.jae-speaking .agent-chat-header::after {
|
|
content: '🔊';
|
|
margin-left: 0.5rem;
|
|
animation: jae-wave 0.9s infinite;
|
|
}
|
|
@keyframes jae-wave {
|
|
0%, 100% { opacity: 0.5; }
|
|
50% { opacity: 1; }
|
|
}
|
|
|
|
.jae-voice-modal {
|
|
position: fixed; inset: 0;
|
|
background: rgba(0,0,0,0.7);
|
|
display: flex; align-items: center; justify-content: center;
|
|
z-index: 10001;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
.jae-voice-modal .jvm-panel {
|
|
background: #0a0f12;
|
|
border: 1px solid var(--accent, #00ffc8);
|
|
border-radius: 6px;
|
|
padding: 1.2rem 1.4rem;
|
|
min-width: 340px;
|
|
max-width: 90vw;
|
|
color: #dfe;
|
|
font-family: 'JetBrains Mono', monospace;
|
|
box-shadow: 0 0 30px rgba(0,255,200,0.3);
|
|
}
|
|
.jvm-head {
|
|
color: var(--accent, #00ffc8);
|
|
font-weight: 700;
|
|
letter-spacing: 0.1em;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 1rem;
|
|
}
|
|
.jvm-close {
|
|
background: transparent; border: 0; color: #9ab; cursor: pointer; font-size: 1rem;
|
|
}
|
|
.jvm-row { display: flex; flex-direction: column; gap: 0.3rem; margin: 0.8rem 0; font-size: 0.85em; }
|
|
.jvm-row select, .jvm-row input[type=range] {
|
|
background: #05080a;
|
|
border: 1px solid rgba(0,255,200,0.25);
|
|
color: #dfe;
|
|
padding: 0.3rem;
|
|
font-family: inherit;
|
|
}
|
|
.jvm-row input[type=checkbox] { accent-color: var(--accent, #00ffc8); }
|
|
.jvm-actions { flex-direction: row; justify-content: flex-end; gap: 0.5rem; }
|
|
.jvm-actions button {
|
|
background: rgba(0,255,200,0.1);
|
|
border: 1px solid var(--accent, #00ffc8);
|
|
color: var(--accent, #00ffc8);
|
|
padding: 0.4rem 0.9rem;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
}
|
|
.jvm-actions button:hover { background: rgba(0,255,200,0.2); }
|
|
|
|
/* mobile */
|
|
@media (max-width: 768px) {
|
|
.chat-mic-btn, .chat-voice-settings-btn { width: 32px; height: 32px; font-size: 0.85rem; }
|
|
.tool-card { font-size: 0.8em; padding: 0.45rem 0.55rem; }
|
|
.tool-card .tc-metrics { gap: 0.6rem; }
|
|
}
|