149 lines
4.4 KiB
CSS
149 lines
4.4 KiB
CSS
|
|
/* Herman browser assistant — floating widget */
|
||
|
|
.ha-fab {
|
||
|
|
position: fixed;
|
||
|
|
right: 1.25rem;
|
||
|
|
bottom: 1.25rem;
|
||
|
|
z-index: 1500;
|
||
|
|
width: 56px;
|
||
|
|
height: 56px;
|
||
|
|
border-radius: 50%;
|
||
|
|
border: 2px solid rgba(167, 139, 250, 0.55);
|
||
|
|
background: linear-gradient(145deg, #1e293b, #0f1419);
|
||
|
|
color: #f8fafc;
|
||
|
|
font-size: 1.5rem;
|
||
|
|
cursor: pointer;
|
||
|
|
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
|
||
|
|
transition: transform 0.15s, box-shadow 0.15s;
|
||
|
|
}
|
||
|
|
.ha-fab:hover { transform: scale(1.06); box-shadow: 0 10px 32px rgba(167, 139, 250, 0.25); }
|
||
|
|
.ha-fab.is-open { background: linear-gradient(145deg, #4c1d95, #1e1b4b); }
|
||
|
|
|
||
|
|
.ha-panel {
|
||
|
|
position: fixed;
|
||
|
|
right: 1rem;
|
||
|
|
bottom: 5rem;
|
||
|
|
z-index: 1499;
|
||
|
|
width: min(400px, calc(100vw - 2rem));
|
||
|
|
max-height: min(560px, calc(100vh - 7rem));
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
border-radius: 16px;
|
||
|
|
border: 1px solid rgba(167, 139, 250, 0.35);
|
||
|
|
background: rgba(10, 14, 20, 0.97);
|
||
|
|
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ha-head {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
padding: 0.65rem 0.85rem;
|
||
|
|
border-bottom: 1px solid rgba(148, 163, 184, 0.12);
|
||
|
|
background: rgba(167, 139, 250, 0.08);
|
||
|
|
}
|
||
|
|
.ha-head h2 { margin: 0; font-size: 0.9rem; color: #f8fafc; }
|
||
|
|
.ha-head-actions { display: flex; gap: 0.35rem; align-items: center; }
|
||
|
|
.ha-head-actions a { font-size: 0.72rem; color: #a78bfa; text-decoration: none; }
|
||
|
|
.ha-head-actions button { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 1.1rem; padding: 0.2rem; }
|
||
|
|
|
||
|
|
.ha-confirm {
|
||
|
|
padding: 0.5rem 0.75rem;
|
||
|
|
background: rgba(251, 191, 36, 0.1);
|
||
|
|
border-bottom: 1px solid rgba(251, 191, 36, 0.25);
|
||
|
|
font-size: 0.75rem;
|
||
|
|
color: #fde68a;
|
||
|
|
}
|
||
|
|
.ha-confirm-actions { display: flex; gap: 0.35rem; margin-top: 0.35rem; }
|
||
|
|
|
||
|
|
.ha-log {
|
||
|
|
flex: 1;
|
||
|
|
overflow-y: auto;
|
||
|
|
padding: 0.65rem;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 0.5rem;
|
||
|
|
min-height: 200px;
|
||
|
|
max-height: 320px;
|
||
|
|
}
|
||
|
|
.ha-bubble {
|
||
|
|
max-width: 92%;
|
||
|
|
padding: 0.5rem 0.7rem;
|
||
|
|
border-radius: 10px;
|
||
|
|
font-size: 0.8rem;
|
||
|
|
line-height: 1.4;
|
||
|
|
}
|
||
|
|
.ha-bubble-user {
|
||
|
|
align-self: flex-end;
|
||
|
|
background: rgba(14, 165, 233, 0.15);
|
||
|
|
border: 1px solid rgba(14, 165, 233, 0.28);
|
||
|
|
}
|
||
|
|
.ha-bubble-agent {
|
||
|
|
align-self: flex-start;
|
||
|
|
background: rgba(167, 139, 250, 0.12);
|
||
|
|
border: 1px solid rgba(167, 139, 250, 0.25);
|
||
|
|
}
|
||
|
|
.ha-bubble-meta { font-size: 0.62rem; color: #64748b; margin-bottom: 0.15rem; }
|
||
|
|
.ha-bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
|
||
|
|
|
||
|
|
.ha-preview {
|
||
|
|
margin: 0 0.65rem;
|
||
|
|
padding: 0.4rem 0.55rem;
|
||
|
|
border-radius: 8px;
|
||
|
|
font-size: 0.72rem;
|
||
|
|
color: #94a3b8;
|
||
|
|
border: 1px dashed rgba(167, 139, 250, 0.3);
|
||
|
|
min-height: 1.5rem;
|
||
|
|
}
|
||
|
|
.ha-preview.is-interim { font-style: italic; }
|
||
|
|
|
||
|
|
.ha-input-row {
|
||
|
|
display: flex;
|
||
|
|
gap: 0.35rem;
|
||
|
|
padding: 0.55rem 0.65rem;
|
||
|
|
border-top: 1px solid rgba(148, 163, 184, 0.12);
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
.ha-input-row .form-input { flex: 1; font-size: 0.8rem; padding: 0.45rem 0.6rem; }
|
||
|
|
.ha-mic {
|
||
|
|
width: 40px;
|
||
|
|
height: 40px;
|
||
|
|
border-radius: 50%;
|
||
|
|
border: 2px solid rgba(167, 139, 250, 0.45);
|
||
|
|
background: rgba(15, 20, 25, 0.95);
|
||
|
|
cursor: pointer;
|
||
|
|
font-size: 1rem;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
.ha-mic.is-listening { border-color: #f87171; animation: ha-pulse 1s infinite; }
|
||
|
|
.ha-mic.is-busy { border-color: #38bdf8; }
|
||
|
|
@keyframes ha-pulse {
|
||
|
|
0%, 100% { box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.15); }
|
||
|
|
50% { box-shadow: 0 0 0 8px rgba(248, 113, 113, 0.28); }
|
||
|
|
}
|
||
|
|
|
||
|
|
.ha-status { font-size: 0.65rem; color: #64748b; padding: 0 0.65rem 0.35rem; }
|
||
|
|
|
||
|
|
.ha-results-modal { z-index: 1600; }
|
||
|
|
.ha-results-card { width: min(640px, 96vw); max-height: 80vh; }
|
||
|
|
|
||
|
|
.ei-modal-root {
|
||
|
|
position: fixed; inset: 0; z-index: 1600;
|
||
|
|
display: flex; align-items: center; justify-content: center;
|
||
|
|
padding: 1rem; background: rgba(0, 0, 0, 0.55);
|
||
|
|
}
|
||
|
|
.ei-modal-card {
|
||
|
|
background: #0f1419; border-radius: 14px; padding: 1.25rem;
|
||
|
|
border: 1px solid rgba(14, 165, 233, 0.25);
|
||
|
|
max-width: 96vw; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
|
||
|
|
}
|
||
|
|
.ei-modal-card h3 { margin: 0 0 0.5rem; color: #f8fafc; }
|
||
|
|
.ei-modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
|
||
|
|
.voice-results-table th, .voice-results-table td { padding: 0.4rem 0.55rem; border-top: 1px solid rgba(148,163,184,0.1); font-size: 0.78rem; }
|
||
|
|
.voice-results-table a { color: #38bdf8; }
|
||
|
|
|
||
|
|
@media (max-width: 480px) {
|
||
|
|
.ha-panel { right: 0.5rem; left: 0.5rem; width: auto; bottom: 4.5rem; }
|
||
|
|
.ha-fab { right: 1rem; bottom: 1rem; }
|
||
|
|
}
|