Ship Herman chat, Hermes KPI explorer, and intelligence analytics.
Adds floating Herman assistant with voice, Hermes technical KPI dashboard with file explorer, and a wins/kansen analytics pulse with Hermes findings hooks. Includes optional local HTTPS via Caddy for mic permissions (public certs only).
This commit is contained in:
@@ -1,50 +1,333 @@
|
||||
.analytics-shell {
|
||||
display: grid;
|
||||
grid-template-columns: 240px 1fr;
|
||||
gap: 1rem;
|
||||
align-items: start;
|
||||
/* Foodlinkk Intelligence Analytics — lush neo dashboard */
|
||||
.ax-shell {
|
||||
--ax-bg: #070b12;
|
||||
--ax-panel: rgba(12, 18, 28, 0.88);
|
||||
--ax-line: rgba(125, 211, 252, 0.16);
|
||||
--ax-cyan: #38bdf8;
|
||||
--ax-lime: #b8ff3c;
|
||||
--ax-amber: #fbbf24;
|
||||
--ax-rose: #fb7185;
|
||||
--ax-text: #e8eef7;
|
||||
--ax-muted: #8fa3b8;
|
||||
--ax-font: "Outfit", "Segoe UI", sans-serif;
|
||||
--ax-mono: "JetBrains Mono", ui-monospace, monospace;
|
||||
font-family: var(--ax-font);
|
||||
color: var(--ax-text);
|
||||
margin: -0.25rem -0.5rem 0;
|
||||
padding: 0 0 2.5rem;
|
||||
position: relative;
|
||||
}
|
||||
.analytics-filters label {
|
||||
display: block;
|
||||
margin-bottom: 0.75rem;
|
||||
font-size: 0.85rem;
|
||||
color: #94a3b8;
|
||||
}
|
||||
.analytics-filters select,
|
||||
.analytics-filters input {
|
||||
width: 100%;
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
.analytics-main { min-width: 0; }
|
||||
.analytics-kpis {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
||||
gap: 0.75rem;
|
||||
.ax-shell * { box-sizing: border-box; }
|
||||
.ax-mono { font-family: var(--ax-mono); font-variant-numeric: tabular-nums; }
|
||||
.ax-muted { color: var(--ax-muted); font-size: 0.82rem; }
|
||||
.ax-shell code { font-family: var(--ax-mono); font-size: 0.72rem; color: #7dd3fc; }
|
||||
|
||||
.ax-hero {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-radius: 22px;
|
||||
border: 1px solid var(--ax-line);
|
||||
background:
|
||||
radial-gradient(1200px 420px at 12% -10%, rgba(56,189,248,0.22), transparent 55%),
|
||||
radial-gradient(900px 380px at 90% 0%, rgba(184,255,60,0.12), transparent 50%),
|
||||
linear-gradient(160deg, #0b1422 0%, #0a101a 55%, #0d1520 100%);
|
||||
padding: 1.4rem 1.5rem 1.2rem;
|
||||
margin-bottom: 1rem;
|
||||
animation: ax-fade-up .55s ease both;
|
||||
}
|
||||
.analytics-kpis .kpi-card {
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: 10px;
|
||||
background: rgba(15, 23, 42, 0.8);
|
||||
border: 1px solid rgba(148, 163, 184, 0.15);
|
||||
.ax-hero-glow {
|
||||
position: absolute; inset: auto -20% -40% 40%; height: 70%;
|
||||
background: radial-gradient(circle, rgba(56,189,248,0.18), transparent 65%);
|
||||
pointer-events: none; filter: blur(8px);
|
||||
}
|
||||
.analytics-kpis .kpi-card strong {
|
||||
display: block;
|
||||
font-size: 1.35rem;
|
||||
color: #e2e8f0;
|
||||
}
|
||||
.analytics-kpis .kpi-card span {
|
||||
font-size: 0.75rem;
|
||||
color: #64748b;
|
||||
}
|
||||
.analytics-charts {
|
||||
.ax-hero-grid {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
||||
gap: 1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
grid-template-columns: 1.4fr auto 1fr;
|
||||
gap: 1.25rem;
|
||||
align-items: center;
|
||||
}
|
||||
.chart-panel canvas { max-height: 220px; }
|
||||
.chart-panel h4 { margin: 0 0 0.75rem; font-size: 0.9rem; color: #cbd5e1; }
|
||||
@media (max-width: 900px) {
|
||||
.analytics-shell { grid-template-columns: 1fr; }
|
||||
.ax-eyebrow {
|
||||
margin: 0 0 0.35rem;
|
||||
font-size: 0.68rem;
|
||||
letter-spacing: 0.18em;
|
||||
text-transform: uppercase;
|
||||
color: #64748b;
|
||||
font-weight: 600;
|
||||
}
|
||||
.ax-hero h1 {
|
||||
margin: 0;
|
||||
font-size: clamp(2rem, 4vw, 2.75rem);
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.03em;
|
||||
line-height: 1.05;
|
||||
}
|
||||
.ax-live {
|
||||
display: inline-flex; align-items: center;
|
||||
margin-left: 0.55rem; vertical-align: middle;
|
||||
font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
|
||||
padding: 0.22rem 0.55rem; border-radius: 999px;
|
||||
background: rgba(184,255,60,0.12); border: 1px solid rgba(184,255,60,0.35);
|
||||
color: #d9ff8b; animation: ax-pulse 2.4s ease-in-out infinite;
|
||||
}
|
||||
.ax-lead { margin: 0.65rem 0 0; max-width: 36rem; color: #b6c7d8; font-size: 1rem; line-height: 1.5; }
|
||||
.ax-goal { margin: 0.55rem 0 0; color: #7dd3fc; font-size: 0.82rem; opacity: 0.9; }
|
||||
|
||||
.ax-pulse-orb { text-align: center; position: relative; width: 150px; justify-self: center; }
|
||||
.ax-ring { width: 150px; height: 150px; transform: rotate(-90deg); }
|
||||
.ax-ring-track { fill: none; stroke: rgba(148,163,184,0.15); stroke-width: 8; }
|
||||
.ax-ring-value {
|
||||
fill: none; stroke: var(--ax-cyan); stroke-width: 8; stroke-linecap: round;
|
||||
transition: stroke-dasharray .8s ease;
|
||||
filter: drop-shadow(0 0 8px rgba(56,189,248,0.45));
|
||||
}
|
||||
.tone-good .ax-ring-value { stroke: var(--ax-lime); filter: drop-shadow(0 0 8px rgba(184,255,60,0.4)); }
|
||||
.tone-mid .ax-ring-value { stroke: var(--ax-amber); }
|
||||
.tone-low .ax-ring-value { stroke: var(--ax-rose); }
|
||||
.ax-pulse-core {
|
||||
position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
|
||||
transform: translateY(-6px);
|
||||
}
|
||||
.ax-pulse-core strong { font-size: 2.1rem; font-weight: 700; line-height: 1; }
|
||||
.ax-pulse-core span { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ax-muted); }
|
||||
.ax-pulse-label { margin: 0.15rem 0 0; font-size: 0.75rem; color: #cbd5e1; }
|
||||
|
||||
.ax-hero-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: flex-end; align-items: center; }
|
||||
.ax-btn {
|
||||
appearance: none; border: 1px solid rgba(148,163,184,0.28);
|
||||
background: rgba(8,12,20,0.55); color: #e2e8f0;
|
||||
border-radius: 999px; padding: 0.45rem 0.85rem; font: inherit; font-size: 0.78rem;
|
||||
cursor: pointer; text-decoration: none; transition: border-color .15s, background .15s, transform .12s;
|
||||
}
|
||||
.ax-btn:hover { border-color: #38bdf8; background: rgba(14,165,233,0.12); transform: translateY(-1px); }
|
||||
.ax-btn-primary {
|
||||
border-color: rgba(184,255,60,0.45);
|
||||
background: linear-gradient(135deg, rgba(184,255,60,0.18), rgba(56,189,248,0.12));
|
||||
color: #f8ffe8;
|
||||
}
|
||||
.ax-updated { width: 100%; text-align: right; color: #64748b; font-size: 0.7rem; }
|
||||
|
||||
.ax-filters {
|
||||
margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid rgba(148,163,184,0.12);
|
||||
display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.65rem; align-items: end;
|
||||
}
|
||||
.ax-filters label { font-size: 0.72rem; color: #94a3b8; display: grid; gap: 0.25rem; }
|
||||
.ax-filters select, .ax-filters input {
|
||||
width: 100%; border-radius: 8px; border: 1px solid rgba(148,163,184,0.25);
|
||||
background: #0a1018; color: #e2e8f0; padding: 0.4rem 0.5rem; font: inherit;
|
||||
}
|
||||
|
||||
.ax-signals {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
gap: 0.65rem;
|
||||
margin-bottom: 1rem;
|
||||
animation: ax-fade-up .6s ease both .08s;
|
||||
}
|
||||
.ax-signal {
|
||||
position: relative; overflow: hidden;
|
||||
background: var(--ax-panel);
|
||||
border: 1px solid var(--ax-line);
|
||||
border-radius: 16px;
|
||||
padding: 0.85rem 0.9rem 0.75rem;
|
||||
min-height: 96px;
|
||||
}
|
||||
.ax-signal::after {
|
||||
content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
|
||||
background: linear-gradient(90deg, transparent, var(--ax-cyan), transparent);
|
||||
opacity: 0.55;
|
||||
}
|
||||
.ax-signal.good::after { background: linear-gradient(90deg, transparent, var(--ax-lime), transparent); }
|
||||
.ax-signal.warn::after { background: linear-gradient(90deg, transparent, var(--ax-amber), transparent); }
|
||||
.ax-signal-label { display: block; font-size: 0.68rem; color: #94a3b8; letter-spacing: 0.04em; text-transform: uppercase; }
|
||||
.ax-signal strong { display: block; margin-top: 0.35rem; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
|
||||
.ax-signal em { display: block; margin-top: 0.25rem; font-style: normal; font-size: 0.72rem; color: #64748b; }
|
||||
|
||||
.ax-split {
|
||||
display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-bottom: 1rem;
|
||||
animation: ax-fade-up .65s ease both .12s;
|
||||
}
|
||||
.ax-col {
|
||||
background: var(--ax-panel);
|
||||
border: 1px solid var(--ax-line);
|
||||
border-radius: 18px;
|
||||
padding: 1rem;
|
||||
min-height: 320px;
|
||||
}
|
||||
.ax-col-win { box-shadow: inset 3px 0 0 rgba(184,255,60,0.55); }
|
||||
.ax-col-opp { box-shadow: inset 3px 0 0 rgba(251,191,36,0.55); }
|
||||
.ax-col-head {
|
||||
display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem;
|
||||
margin-bottom: 0.85rem;
|
||||
}
|
||||
.ax-col-head h2, .ax-hermes h2, .ax-radar h2 {
|
||||
margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em;
|
||||
}
|
||||
.ax-col-head span, .ax-pill {
|
||||
font-size: 0.72rem; color: #94a3b8;
|
||||
padding: 0.2rem 0.55rem; border-radius: 999px;
|
||||
border: 1px solid rgba(148,163,184,0.2);
|
||||
}
|
||||
|
||||
.ax-insight {
|
||||
display: block; text-decoration: none; color: inherit;
|
||||
border: 1px solid rgba(148,163,184,0.12);
|
||||
background: rgba(6, 10, 16, 0.55);
|
||||
border-radius: 14px;
|
||||
padding: 0.8rem 0.85rem;
|
||||
margin-bottom: 0.55rem;
|
||||
transition: transform .14s, border-color .14s, background .14s;
|
||||
}
|
||||
.ax-insight:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: rgba(56,189,248,0.35);
|
||||
background: rgba(14,165,233,0.08);
|
||||
}
|
||||
.ax-insight-top { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; }
|
||||
.ax-insight-top strong { font-size: 0.95rem; line-height: 1.3; }
|
||||
.ax-score {
|
||||
font-size: 0.85rem; color: #d9ff8b; min-width: 2rem; text-align: right;
|
||||
}
|
||||
.ax-insight.opp .ax-score { color: #fcd34d; }
|
||||
.ax-insight p { margin: 0.4rem 0 0.55rem; font-size: 0.82rem; color: #a7b7c8; line-height: 1.45; }
|
||||
.ax-insight-foot { display: grid; gap: 0.35rem; }
|
||||
.ax-insight-foot > span:first-child { font-size: 0.72rem; color: #7dd3fc; }
|
||||
.ax-bar, .ax-mini-bar {
|
||||
display: block; height: 4px; border-radius: 999px; background: rgba(148,163,184,0.15); overflow: hidden;
|
||||
}
|
||||
.ax-bar i, .ax-mini-bar i {
|
||||
display: block; height: 100%; border-radius: inherit;
|
||||
background: linear-gradient(90deg, #84cc16, #b8ff3c);
|
||||
}
|
||||
.ax-bar.opp i { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
|
||||
.ax-tag {
|
||||
display: inline-block; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase;
|
||||
padding: 0.12rem 0.4rem; border-radius: 999px; margin-right: 0.25rem;
|
||||
background: rgba(251,191,36,0.12); color: #fcd34d; border: 1px solid rgba(251,191,36,0.25);
|
||||
}
|
||||
.ax-empty { color: #64748b; font-size: 0.85rem; padding: 1rem 0; }
|
||||
|
||||
.ax-band { margin-bottom: 1rem; animation: ax-fade-up .7s ease both .16s; }
|
||||
.ax-att-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1rem; }
|
||||
.ax-att-chip {
|
||||
flex: 1 1 220px; text-decoration: none; color: inherit;
|
||||
border: 1px solid rgba(251,113,133,0.28);
|
||||
background: rgba(251,113,133,0.08);
|
||||
border-radius: 12px; padding: 0.7rem 0.8rem;
|
||||
}
|
||||
.ax-att-chip strong { display: block; font-size: 0.85rem; margin-bottom: 0.2rem; }
|
||||
.ax-att-chip span { font-size: 0.75rem; color: #cbd5e1; }
|
||||
.ax-attention h3 { margin: 0 0 0.35rem; font-size: 0.85rem; color: #fda4af; letter-spacing: 0.04em; text-transform: uppercase; }
|
||||
|
||||
.ax-hermes {
|
||||
border: 1px solid var(--ax-line);
|
||||
border-radius: 18px;
|
||||
background:
|
||||
radial-gradient(700px 220px at 0% 0%, rgba(56,189,248,0.12), transparent 55%),
|
||||
var(--ax-panel);
|
||||
padding: 1rem 1.1rem 1.1rem;
|
||||
}
|
||||
.ax-findings-grid {
|
||||
display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.65rem; margin-top: 0.75rem;
|
||||
}
|
||||
.ax-finding {
|
||||
border-radius: 14px; border: 1px solid rgba(148,163,184,0.16);
|
||||
background: rgba(5,9,14,0.65); padding: 0.85rem;
|
||||
}
|
||||
.ax-finding.kind-win { border-color: rgba(184,255,60,0.3); }
|
||||
.ax-finding.kind-opportunity { border-color: rgba(251,191,36,0.35); }
|
||||
.ax-finding-top { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; }
|
||||
.ax-finding-top time { font-size: 0.68rem; color: #64748b; }
|
||||
.ax-finding h4 { margin: 0; font-size: 0.95rem; }
|
||||
.ax-finding p { margin: 0.4rem 0 0.55rem; font-size: 0.8rem; color: #a7b7c8; line-height: 1.45; }
|
||||
.ax-finding-foot { display: flex; justify-content: space-between; font-size: 0.7rem; color: #64748b; }
|
||||
.ax-findings-empty { margin-top: 0.75rem; }
|
||||
.ax-findings-placeholder {
|
||||
border: 1px dashed rgba(56,189,248,0.35);
|
||||
border-radius: 14px; padding: 1.1rem 1.2rem;
|
||||
background: rgba(14,165,233,0.05);
|
||||
}
|
||||
.ax-findings-placeholder strong { display: block; margin-bottom: 0.3rem; }
|
||||
.ax-findings-placeholder p { margin: 0; color: #94a3b8; font-size: 0.85rem; line-height: 1.5; }
|
||||
|
||||
.ax-radar {
|
||||
border: 1px solid var(--ax-line);
|
||||
border-radius: 18px;
|
||||
background: var(--ax-panel);
|
||||
padding: 1rem 1.1rem 1.15rem;
|
||||
margin-bottom: 1rem;
|
||||
animation: ax-fade-up .75s ease both .2s;
|
||||
}
|
||||
.ax-charts {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, 1fr);
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.ax-chart-card {
|
||||
grid-column: span 2;
|
||||
border: 1px solid rgba(148,163,184,0.12);
|
||||
border-radius: 14px;
|
||||
background: rgba(5,9,14,0.55);
|
||||
padding: 0.75rem 0.8rem 0.6rem;
|
||||
}
|
||||
.ax-chart-card.wide { grid-column: span 6; }
|
||||
.ax-chart-card h3 { margin: 0 0 0.45rem; font-size: 0.82rem; color: #cbd5e1; font-weight: 600; }
|
||||
.ax-chart-wrap { position: relative; height: 210px; }
|
||||
.ax-chart-card.wide .ax-chart-wrap { height: 180px; }
|
||||
|
||||
.ax-lists {
|
||||
display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem;
|
||||
animation: ax-fade-up .8s ease both .24s;
|
||||
}
|
||||
.ax-list-card {
|
||||
border: 1px solid var(--ax-line);
|
||||
border-radius: 16px;
|
||||
background: var(--ax-panel);
|
||||
padding: 0.9rem 1rem;
|
||||
}
|
||||
.ax-list-card h3 { margin: 0 0 0.75rem; font-size: 0.92rem; }
|
||||
.ax-list-card ul { list-style: none; margin: 0; padding: 0; }
|
||||
.ax-list-card li {
|
||||
display: grid; grid-template-columns: auto 1fr auto; gap: 0.65rem; align-items: center;
|
||||
padding: 0.55rem 0; border-bottom: 1px solid rgba(148,163,184,0.1);
|
||||
}
|
||||
.ax-rank {
|
||||
width: 1.5rem; height: 1.5rem; border-radius: 8px;
|
||||
display: grid; place-items: center; font-size: 0.72rem;
|
||||
background: rgba(56,189,248,0.12); color: #7dd3fc;
|
||||
}
|
||||
.ax-list-card li strong { display: block; font-size: 0.82rem; }
|
||||
.ax-list-card li em { font-style: normal; color: #fbbf24; font-size: 0.85rem; }
|
||||
.ax-events li { grid-template-columns: 1fr auto; }
|
||||
.ax-events li span { display: block; font-size: 0.7rem; color: #64748b; margin-top: 0.15rem; }
|
||||
.ax-events time { font-size: 0.68rem; color: #64748b; }
|
||||
.ax-dl { margin: 0; display: grid; gap: 0.55rem; }
|
||||
.ax-dl > div {
|
||||
display: flex; justify-content: space-between; gap: 0.75rem;
|
||||
padding: 0.45rem 0; border-bottom: 1px solid rgba(148,163,184,0.1);
|
||||
}
|
||||
.ax-dl dt { color: #94a3b8; font-size: 0.8rem; }
|
||||
.ax-dl dd { margin: 0; font-size: 0.9rem; color: #e2e8f0; }
|
||||
|
||||
@keyframes ax-fade-up {
|
||||
from { opacity: 0; transform: translateY(10px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
@keyframes ax-pulse {
|
||||
0%, 100% { box-shadow: 0 0 0 0 rgba(184,255,60,0.0); }
|
||||
50% { box-shadow: 0 0 0 6px rgba(184,255,60,0.08); }
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.ax-hero-grid { grid-template-columns: 1fr; }
|
||||
.ax-hero-actions { justify-content: flex-start; }
|
||||
.ax-signals { grid-template-columns: repeat(3, 1fr); }
|
||||
.ax-split, .ax-lists { grid-template-columns: 1fr; }
|
||||
.ax-charts { grid-template-columns: 1fr 1fr; }
|
||||
.ax-chart-card, .ax-chart-card.wide { grid-column: span 2; }
|
||||
}
|
||||
@media (max-width: 700px) {
|
||||
.ax-signals { grid-template-columns: 1fr 1fr; }
|
||||
.ax-charts { grid-template-columns: 1fr; }
|
||||
.ax-chart-card, .ax-chart-card.wide { grid-column: span 1; }
|
||||
}
|
||||
|
||||
@@ -1,34 +1,72 @@
|
||||
/* 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;
|
||||
/* Herman / Hermes chat — always-on floating dock */
|
||||
.ha-dock {
|
||||
/* wrapper only; FAB/panel are fixed to viewport */
|
||||
}
|
||||
.ha-dock-hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.ha-fab {
|
||||
position: fixed !important;
|
||||
right: max(1.25rem, env(safe-area-inset-right, 0px));
|
||||
bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
|
||||
z-index: 10050 !important;
|
||||
height: 52px;
|
||||
width: auto;
|
||||
min-width: 52px;
|
||||
padding: 0 1.15rem 0 0.9rem;
|
||||
border-radius: 999px;
|
||||
border: 1px solid rgba(56, 189, 248, 0.65);
|
||||
background: linear-gradient(145deg, #0ea5e9 0%, #0284c7 55%, #0369a1 100%);
|
||||
color: #f8fafc;
|
||||
font-size: 1.15rem;
|
||||
cursor: pointer;
|
||||
display: inline-flex !important;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.45rem;
|
||||
box-shadow:
|
||||
0 0 0 4px rgba(14, 165, 233, 0.18),
|
||||
0 10px 28px rgba(0, 0, 0, 0.5);
|
||||
transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
|
||||
pointer-events: auto;
|
||||
}
|
||||
.ha-fab-icon { line-height: 1; font-size: 1.2rem; }
|
||||
.ha-fab-label {
|
||||
font-size: 0.88rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.02em;
|
||||
text-transform: none;
|
||||
}
|
||||
.ha-fab:hover {
|
||||
transform: translateY(-2px) scale(1.03);
|
||||
box-shadow:
|
||||
0 0 0 5px rgba(14, 165, 233, 0.28),
|
||||
0 14px 34px rgba(0, 0, 0, 0.55);
|
||||
}
|
||||
.ha-fab.is-open {
|
||||
background: linear-gradient(145deg, #4c1d95, #1e1b4b);
|
||||
border-color: rgba(167, 139, 250, 0.7);
|
||||
box-shadow:
|
||||
0 0 0 4px rgba(167, 139, 250, 0.2),
|
||||
0 10px 28px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
.ha-fab.is-busy {
|
||||
border-color: #38bdf8;
|
||||
animation: ha-pulse 1.2s infinite;
|
||||
}
|
||||
.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));
|
||||
position: fixed !important;
|
||||
right: max(1rem, env(safe-area-inset-right, 0px));
|
||||
bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
|
||||
z-index: 10049 !important;
|
||||
width: min(420px, calc(100vw - 2rem));
|
||||
max-height: min(620px, calc(100vh - 8rem));
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-radius: 16px;
|
||||
border: 1px solid rgba(167, 139, 250, 0.35);
|
||||
border: 1px solid rgba(56, 189, 248, 0.35);
|
||||
background: rgba(10, 14, 20, 0.97);
|
||||
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
|
||||
overflow: hidden;
|
||||
@@ -41,11 +79,33 @@
|
||||
padding: 0.65rem 0.85rem;
|
||||
border-bottom: 1px solid rgba(148, 163, 184, 0.12);
|
||||
background: rgba(167, 139, 250, 0.08);
|
||||
gap: 0.5rem;
|
||||
}
|
||||
.ha-head h2 { margin: 0; font-size: 0.9rem; color: #f8fafc; }
|
||||
.ha-head-actions { display: flex; gap: 0.35rem; align-items: center; }
|
||||
.ha-head-title { min-width: 0; }
|
||||
.ha-head h2 { margin: 0; font-size: 0.9rem; color: #f8fafc; display: flex; align-items: center; gap: 0.4rem; }
|
||||
.ha-badge {
|
||||
font-size: 0.62rem;
|
||||
font-weight: 600;
|
||||
color: #ddd6fe;
|
||||
background: rgba(124, 58, 237, 0.35);
|
||||
border: 1px solid rgba(167, 139, 250, 0.45);
|
||||
border-radius: 999px;
|
||||
padding: 0.12rem 0.45rem;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
.ha-conn {
|
||||
margin: 0.15rem 0 0;
|
||||
font-size: 0.62rem;
|
||||
color: #64748b;
|
||||
}
|
||||
.ha-conn.is-ok { color: #34d399; }
|
||||
.ha-conn.is-err { color: #f87171; }
|
||||
.ha-head-actions { display: flex; gap: 0.35rem; align-items: center; flex-shrink: 0; }
|
||||
.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-text-btn { font-size: 0.68rem !important; color: #94a3b8 !important; padding: 0.2rem 0.35rem !important; }
|
||||
.ha-text-btn:hover { color: #e2e8f0 !important; }
|
||||
.ha-text-btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
|
||||
.ha-confirm {
|
||||
padding: 0.5rem 0.75rem;
|
||||
@@ -63,8 +123,8 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
min-height: 200px;
|
||||
max-height: 320px;
|
||||
min-height: 220px;
|
||||
max-height: 360px;
|
||||
}
|
||||
.ha-bubble {
|
||||
max-width: 92%;
|
||||
@@ -103,6 +163,7 @@
|
||||
padding: 0.55rem 0.65rem;
|
||||
border-top: 1px solid rgba(148, 163, 184, 0.12);
|
||||
align-items: center;
|
||||
margin: 0;
|
||||
}
|
||||
.ha-input-row .form-input { flex: 1; font-size: 0.8rem; padding: 0.45rem 0.6rem; }
|
||||
.ha-mic {
|
||||
@@ -122,7 +183,20 @@
|
||||
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-status { font-size: 0.72rem; color: #cbd5e1; padding: 0.25rem 0.65rem 0.4rem; line-height: 1.35; }
|
||||
.ha-status.is-error { color: #fecaca; background: rgba(127, 29, 29, 0.35); border-radius: 6px; margin: 0 0.5rem 0.35rem; padding: 0.4rem 0.55rem; }
|
||||
.ha-secure-hint {
|
||||
margin: 0.25rem 0.55rem 0.45rem;
|
||||
padding: 0.55rem 0.65rem;
|
||||
border-radius: 8px;
|
||||
background: rgba(14, 165, 233, 0.12);
|
||||
border: 1px solid rgba(56, 189, 248, 0.45);
|
||||
color: #e2e8f0;
|
||||
font-size: 0.78rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.ha-secure-hint strong { color: #f8fafc; display: block; margin-bottom: 0.25rem; }
|
||||
.ha-secure-hint a { display: inline-block; margin-top: 0.4rem; }
|
||||
|
||||
.ha-results-modal { z-index: 1600; }
|
||||
.ha-results-card { width: min(640px, 96vw); max-height: 80vh; }
|
||||
@@ -143,6 +217,88 @@
|
||||
.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; }
|
||||
.ha-fab {
|
||||
right: 1rem;
|
||||
bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)); /* above mobile bottom nav */
|
||||
}
|
||||
.ha-panel {
|
||||
right: 0.5rem;
|
||||
left: 0.5rem;
|
||||
width: auto;
|
||||
bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
}
|
||||
|
||||
.ha-toggles {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.55rem 0.9rem;
|
||||
padding: 0.15rem 0.65rem 0.35rem;
|
||||
font-size: 0.68rem;
|
||||
color: #94a3b8;
|
||||
}
|
||||
.ha-toggles label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
.ha-toggles input {
|
||||
accent-color: #38bdf8;
|
||||
margin: 0;
|
||||
}
|
||||
.ha-mic.is-listening {
|
||||
box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.35);
|
||||
}
|
||||
|
||||
/* Toasts boven de Herman FAB, niet erachter */
|
||||
.toast-container {
|
||||
bottom: 5.75rem !important;
|
||||
right: 1rem !important;
|
||||
left: auto !important;
|
||||
z-index: 10120 !important;
|
||||
max-width: min(360px, calc(100vw - 2rem));
|
||||
}
|
||||
.toast {
|
||||
color: #f1f5f9 !important;
|
||||
background: #0f172a !important;
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,0.45);
|
||||
}
|
||||
.toast-error { border-color: #f87171 !important; color: #fecaca !important; }
|
||||
|
||||
.ha-https-prompt {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
flex-wrap: wrap;
|
||||
margin: 0 0.55rem 0.4rem;
|
||||
padding: 0.45rem 0.55rem;
|
||||
border-radius: 8px;
|
||||
background: rgba(14, 165, 233, 0.12);
|
||||
border: 1px solid rgba(56, 189, 248, 0.4);
|
||||
color: #e2e8f0;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.ha-https-prompt .btn { flex-shrink: 0; }
|
||||
.ha-https-prompt .ha-text-btn { margin-left: auto; color: #94a3b8; }
|
||||
|
||||
.ha-fab.has-custom-pos {
|
||||
right: auto !important;
|
||||
bottom: auto !important;
|
||||
}
|
||||
.ha-fab.is-dragging {
|
||||
cursor: grabbing !important;
|
||||
transition: none !important;
|
||||
transform: none !important;
|
||||
user-select: none;
|
||||
touch-action: none;
|
||||
}
|
||||
.ha-fab {
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
}
|
||||
.ha-panel.has-custom-pos {
|
||||
right: auto !important;
|
||||
bottom: auto !important;
|
||||
}
|
||||
|
||||
@@ -216,3 +216,162 @@
|
||||
.dot-in { background: var(--hm-cyan); }
|
||||
.dot-out { background: var(--hm-purple); }
|
||||
.dot-edge { background: var(--hm-orange); }
|
||||
|
||||
|
||||
.hm-section-title {
|
||||
font-size: 0.85rem;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: #94a3b8;
|
||||
margin: 1.25rem 0 0.75rem;
|
||||
}
|
||||
.hm-bucket-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.hm-bucket-card {
|
||||
background: rgba(15, 23, 42, 0.85);
|
||||
border: 1px solid rgba(56, 189, 248, 0.2);
|
||||
border-radius: 12px;
|
||||
padding: 0.85rem 0.9rem;
|
||||
}
|
||||
.hm-bucket-label { font-size: 0.72rem; color: #94a3b8; margin-bottom: 0.35rem; }
|
||||
.hm-bucket-count { font-size: 1.6rem; font-weight: 700; color: #f1f5f9; line-height: 1.1; }
|
||||
.hm-bucket-parts { font-size: 0.68rem; color: #64748b; margin-top: 0.4rem; line-height: 1.35; }
|
||||
.hm-tool-list { list-style: none; margin: 0.75rem 0 0; padding: 0; }
|
||||
.hm-tool-list li {
|
||||
display: flex; justify-content: space-between; gap: 0.75rem;
|
||||
padding: 0.35rem 0; border-bottom: 1px solid rgba(148,163,184,0.1);
|
||||
font-size: 0.78rem; color: #cbd5e1;
|
||||
}
|
||||
.hm-tool-list li strong { color: #e2e8f0; font-variant-numeric: tabular-nums; }
|
||||
.hm-tool-list-tall { max-height: 280px; overflow: auto; }
|
||||
.status-badge.on { color: #b8ff3c; }
|
||||
.status-badge.off { color: #f87171; }
|
||||
|
||||
/* Clickable buckets + explorer modal */
|
||||
.hm-section-hint { font-size: 0.7rem; font-weight: 500; color: #64748b; text-transform: none; letter-spacing: 0; margin-left: 0.5rem; }
|
||||
.hm-bucket-click {
|
||||
display: block; width: 100%; text-align: left; cursor: pointer;
|
||||
transition: border-color .15s, transform .12s, background .15s;
|
||||
font: inherit; color: inherit;
|
||||
}
|
||||
.hm-bucket-click:hover {
|
||||
border-color: rgba(0, 229, 255, 0.55);
|
||||
background: rgba(14, 165, 233, 0.08);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.hm-bucket-open {
|
||||
margin-top: 0.55rem; font-size: 0.68rem; color: #38bdf8; opacity: 0.75;
|
||||
}
|
||||
.hm-bucket-click:hover .hm-bucket-open { opacity: 1; }
|
||||
|
||||
.hm-modal-backdrop {
|
||||
position: fixed; inset: 0; z-index: 80;
|
||||
background: rgba(2, 6, 14, 0.72);
|
||||
backdrop-filter: blur(4px);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
padding: 1rem;
|
||||
}
|
||||
.hm-modal {
|
||||
width: min(1100px, 96vw);
|
||||
height: min(820px, 92vh);
|
||||
background: #0b1220;
|
||||
border: 1px solid rgba(56, 189, 248, 0.28);
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 24px 80px rgba(0,0,0,0.55);
|
||||
display: flex; flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
.hm-modal-head {
|
||||
display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
|
||||
padding: 1rem 1.1rem 0.75rem;
|
||||
border-bottom: 1px solid rgba(148,163,184,0.12);
|
||||
}
|
||||
.hm-modal-head h2 { margin: 0; font-size: 1.15rem; color: #f1f5f9; }
|
||||
.hm-modal-sub { margin: 0.35rem 0 0; font-size: 0.72rem; color: #94a3b8; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
|
||||
.hm-modal-close {
|
||||
background: transparent; border: 0; color: #94a3b8; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 0.25rem;
|
||||
}
|
||||
.hm-modal-close:hover { color: #fff; }
|
||||
.hm-chip {
|
||||
border: 1px solid rgba(148,163,184,0.25);
|
||||
background: rgba(15,23,42,0.7);
|
||||
color: #cbd5e1; border-radius: 999px;
|
||||
padding: 0.15rem 0.55rem; font-size: 0.65rem; cursor: pointer;
|
||||
}
|
||||
.hm-chip.active, .hm-chip:hover { border-color: #38bdf8; color: #e0f2fe; background: rgba(14,165,233,0.12); }
|
||||
|
||||
.hm-modal-tabs {
|
||||
display: flex; gap: 0.25rem; padding: 0.55rem 1rem 0;
|
||||
border-bottom: 1px solid rgba(148,163,184,0.1);
|
||||
}
|
||||
.hm-modal-tabs button {
|
||||
background: transparent; border: 0; color: #94a3b8; padding: 0.45rem 0.75rem;
|
||||
font-size: 0.78rem; cursor: pointer; border-bottom: 2px solid transparent;
|
||||
}
|
||||
.hm-modal-tabs button.active { color: #e0f2fe; border-bottom-color: #38bdf8; }
|
||||
|
||||
.hm-modal-body { flex: 1; min-height: 0; }
|
||||
.hm-modal-split { display: grid; grid-template-columns: minmax(260px, 38%) 1fr; }
|
||||
.hm-modal-side {
|
||||
border-right: 1px solid rgba(148,163,184,0.12);
|
||||
overflow: auto; background: rgba(8, 12, 20, 0.9);
|
||||
position: relative;
|
||||
}
|
||||
.hm-modal-preview { overflow: auto; padding: 1rem 1.1rem; }
|
||||
.hm-side-loading {
|
||||
position: sticky; top: 0; z-index: 2;
|
||||
padding: 0.4rem 0.75rem; font-size: 0.72rem; color: #38bdf8;
|
||||
background: rgba(14,165,233,0.08);
|
||||
}
|
||||
.hm-event-list, .hm-file-list { list-style: none; margin: 0; padding: 0.35rem; }
|
||||
.hm-event-item, .hm-file-item {
|
||||
width: 100%; text-align: left; cursor: pointer;
|
||||
background: transparent; border: 1px solid transparent; border-radius: 8px;
|
||||
padding: 0.55rem 0.6rem; color: inherit; font: inherit; margin-bottom: 0.25rem;
|
||||
}
|
||||
.hm-event-item:hover, .hm-file-item:hover,
|
||||
.hm-event-item.active, .hm-file-item.active {
|
||||
background: rgba(14,165,233,0.1);
|
||||
border-color: rgba(56,189,248,0.25);
|
||||
}
|
||||
.hm-event-top { display: flex; justify-content: space-between; gap: 0.5rem; }
|
||||
.hm-event-top strong { font-size: 0.8rem; color: #f1f5f9; }
|
||||
.hm-event-top time, .hm-file-meta time { font-size: 0.65rem; color: #64748b; white-space: nowrap; }
|
||||
.hm-event-tool { font-size: 0.65rem; color: #38bdf8; margin-top: 0.15rem; }
|
||||
.hm-event-preview, .hm-file-path {
|
||||
font-size: 0.68rem; color: #94a3b8; margin-top: 0.25rem;
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.hm-file-name { display: flex; gap: 0.4rem; align-items: center; }
|
||||
.hm-file-name strong { font-size: 0.8rem; color: #e2e8f0; }
|
||||
.hm-file-meta { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.25rem; font-size: 0.65rem; color: #64748b; }
|
||||
.hm-explorer-bar {
|
||||
display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap;
|
||||
padding: 0.55rem 0.65rem; border-bottom: 1px solid rgba(148,163,184,0.1);
|
||||
position: sticky; top: 0; background: #0b1220; z-index: 1;
|
||||
}
|
||||
.hm-explorer-path {
|
||||
font-size: 0.65rem; color: #7dd3fc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
|
||||
}
|
||||
.hm-preview-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 0.75rem; }
|
||||
.hm-preview-head h3 { margin: 0; font-size: 1rem; color: #f8fafc; }
|
||||
.hm-preview-head code { display: block; margin-top: 0.25rem; font-size: 0.68rem; color: #64748b; word-break: break-all; }
|
||||
.hm-preview-meta { font-size: 0.68rem; color: #94a3b8; display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; }
|
||||
.hm-preview-code {
|
||||
margin: 0; padding: 0.85rem; border-radius: 10px;
|
||||
background: #020617; border: 1px solid rgba(148,163,184,0.15);
|
||||
color: #e2e8f0; font-size: 0.72rem; line-height: 1.45;
|
||||
white-space: pre-wrap; word-break: break-word; max-height: none;
|
||||
}
|
||||
.hm-preview-note { font-size: 0.68rem; color: #f59e0b; margin-top: 0.5rem; }
|
||||
.hm-preview-paths { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
|
||||
.hm-empty, .hm-empty-pane { padding: 1.25rem; color: #64748b; font-size: 0.8rem; }
|
||||
|
||||
@media (max-width: 820px) {
|
||||
.hm-modal { height: 94vh; }
|
||||
.hm-modal-split { grid-template-columns: 1fr; grid-template-rows: 42% 58%; }
|
||||
.hm-modal-side { border-right: 0; border-bottom: 1px solid rgba(148,163,184,0.12); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user