/* Herman dashboard — Hermes neo style (KPI cards animate, grote panelen vast) */

.hm-neo { --hm-cyan: #00e5ff; --hm-lime: #b8ff3c; --hm-orange: #ff9f43; --hm-purple: #a855f7; --hm-gold: #ffd700; --hm-panel: #0d1219; --hm-border: rgba(0, 229, 255, 0.12); }

.herman-shell.hm-neo .herman-hero {
  background: linear-gradient(160deg, rgba(13, 18, 25, 0.95), rgba(8, 12, 18, 0.98));
  border: 1px solid var(--hm-border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  /* GEEN animatie op hero — vast */
}
.herman-shell.hm-neo .herman-hero h1 { font-size: 1.65rem; margin: 0; }
.herman-shell.hm-neo .hero-sub { color: var(--hm-cyan); opacity: 0.9; }

/* Dashboard layout sections */
.herman-briefing-header {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--hm-border);
}
.herman-briefing-header h2 { margin: 0; }
.herman-briefing-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.hm-dash-layout { display: flex; flex-direction: column; gap: 1.5rem; }
.hm-dash-section { display: flex; flex-direction: column; gap: 0.75rem; }
.hm-dash-full { width: 100%; }
.hm-section-title {
  margin: 0; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #94a3b8; font-weight: 600; display: flex; align-items: center; gap: 0.5rem;
  padding-bottom: 0.35rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hm-dash-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 900px) { .hm-dash-two-col { grid-template-columns: 1fr; } }

.briefing-summary-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem;
}
.briefing-horizon-col { display: grid; gap: 1rem; }
@media (max-width: 900px) { .briefing-summary-grid { grid-template-columns: 1fr; } }

.briefing-card.summary,
.horizon-card {
  background: var(--hm-panel); border-radius: 14px; padding: 1rem;
}
.briefing-card.summary { border: 1px solid var(--hm-border); }
.briefing-card.summary h4,
.horizon-card h4 {
  margin: 0 0 0.65rem; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.horizon-card.short { border: 1px solid rgba(255,159,67,0.3); }
.horizon-card.short h4 { color: #ff9f43; }
.horizon-card.long { border: 1px solid rgba(168,85,247,0.3); }
.horizon-card.long h4 { color: #a855f7; }

.hm-dash-trends-only { margin-top: 0; max-width: 100%; }
.hm-dash-trends-only .hm-chart-wrap { height: 180px; }
.beurs-cta-panel {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  background: var(--hm-panel); border: 1px solid var(--hm-border); border-radius: 14px; padding: 1rem 1.25rem;
}
.beurs-mini-row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: flex-start; }
.beurs-mini-chip {
  display: inline-block; padding: 0.35rem 0.65rem; border-radius: 8px; text-decoration: none;
  font-size: 0.8rem; border: 1px solid rgba(255,255,255,0.1); color: #e2e8f0;
}
.beurs-mini-chip.up { border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.08); }
.beurs-mini-chip.down { border-color: rgba(251,113,133,0.3); background: rgba(251,113,133,0.08); }
.beurs-mini-chip strong { color: #f8fafc; }
.hm-dash-feed { margin-top: 1rem; }

.hm-chart-head h4 {
  margin: 0; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #cbd5e1; font-weight: 600;
}

/* Grote briefing panel — VAST, geen beweging */
.herman-shell .herman-briefing {
  position: relative;
  border-left: 3px solid var(--hm-cyan);
  animation: none !important;
  transform: none !important;
}
.herman-shell .briefing-card,
.herman-shell .briefing-chart-panel,
.herman-shell .horizon-card,
.herman-shell .hub-grid .panel {
  animation: none !important;
}

/* Neo KPI row — per kaart animatie (Hermes stijl) */
.hm-neo-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}
@media (max-width: 1200px) { .hm-neo-kpi-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .hm-neo-kpi-row { grid-template-columns: 1fr 1fr; } }

.hm-neo-kpi {
  position: relative;
  background: linear-gradient(160deg, rgba(13, 18, 25, 0.95), rgba(8, 12, 18, 0.98));
  border: 1px solid var(--hm-border);
  border-radius: 14px;
  padding: 1rem 1.1rem 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hm-neo-kpi:hover {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.1);
}
.hm-neo-kpi-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.35rem; }
.hm-neo-ring {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--ring-color, var(--hm-cyan)) var(--ring-pct, 75%), rgba(255,255,255,0.06) 0);
  display: grid; place-items: center;
  box-shadow: 0 0 14px color-mix(in srgb, var(--ring-color, var(--hm-cyan)) 45%, transparent);
  animation: hmRingSpin 8s linear infinite;
}
@keyframes hmRingSpin {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
  100% { filter: brightness(1); }
}
.hm-neo-ring-inner {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--hm-panel); display: grid; place-items: center; font-size: 1rem;
}
.hm-neo-kpi-label { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: #94a3b8; }
.hm-neo-kpi-sub { font-size: 0.72rem; color: #64748b; }
.hm-neo-kpi-value { font-size: 1.75rem; font-weight: 700; color: #f1f5f9; line-height: 1.1; }

.hm-eq {
  display: flex; align-items: flex-end; justify-content: center; gap: 3px;
  height: 26px; margin-top: 0.55rem; padding-top: 0.35rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.hm-eq span {
  width: 5px; border-radius: 2px;
  background: linear-gradient(to top, rgba(0,229,255,0.3), var(--hm-cyan));
  animation: hmEq 0.55s ease-in-out infinite alternate;
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.35);
}
.hm-eq span:nth-child(1) { animation-delay: 0s; }
.hm-eq span:nth-child(2) { animation-delay: 0.08s; }
.hm-eq span:nth-child(3) { animation-delay: 0.16s; }
.hm-eq span:nth-child(4) { animation-delay: 0.24s; }
.hm-eq span:nth-child(5) { animation-delay: 0.32s; }
.hm-eq span:nth-child(6) { animation-delay: 0.12s; }
.hm-eq span:nth-child(7) { animation-delay: 0.2s; }
.hm-eq span:nth-child(8) { animation-delay: 0.28s; }
@keyframes hmEq {
  from { height: 18%; opacity: 0.45; }
  to { height: 92%; opacity: 1; }
}

.hm-neo-charts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem;
}
@media (max-width: 900px) { .hm-neo-charts { grid-template-columns: 1fr; } }

.hm-chart-panel {
  background: var(--hm-panel); border: 1px solid var(--hm-border);
  border-radius: 14px; padding: 1rem 1.1rem; min-height: 260px;
}
.hm-chart-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem;
}
.hm-chart-head h3 {
  margin: 0; font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #94a3b8; font-weight: 600;
  display: flex; align-items: center; gap: 0.5rem;
}
.hm-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 8px #22c55e; animation: hmPulse 2s infinite;
}
@keyframes hmPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hm-chart-head small { color: #64748b; font-size: 0.7rem; }
.hm-chart-wrap { position: relative; height: 200px; width: 100%; }
.hm-chart-wrap canvas { display: block; width: 100% !important; height: 100% !important; }

/* Page visualisatie — vult panel volledig */
.page-viz-panel { min-height: 360px; display: flex; flex-direction: column; }
.page-viz-panel .page-viz-body { flex: 1; display: flex; flex-direction: column; min-height: 300px; }
.page-viz-panel .hm-chart-wrap.page-viz-canvas {
  flex: 1; min-height: 300px; height: auto; width: 100%;
}
.page-viz-panel.viz-mode-chart .viz-alt { display: none !important; }
.page-viz-panel.viz-mode-alt .page-viz-canvas { display: none !important; }
.page-viz-panel.viz-mode-alt .viz-alt {
  flex: 1; display: flex; flex-direction: column; justify-content: stretch;
  min-height: 300px; padding: 0.25rem 0;
}
.page-viz-panel.viz-mode-alt .viz-cards {
  flex: 1; align-content: start; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.65rem;
}
.page-viz-panel.viz-mode-alt .viz-table { width: 100%; font-size: 0.82rem; }
.page-viz-panel.viz-mode-alt .viz-eq { flex: 1; min-height: 140px; max-height: 220px; margin-top: 0.75rem; }
.page-viz-panel.viz-mode-alt .viz-eq-row { font-size: 0.82rem; padding: 0.15rem 0; }

.hm-live-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(8, 12, 18, 0.97);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 229, 255, 0.08);
  backdrop-filter: blur(8px);
}
.hm-live-bar-active { border-color: var(--hm-cyan); animation: hmLivePulse 2s ease-in-out infinite; }
.hm-live-bar-done { border-color: rgba(34, 197, 94, 0.45); }
@keyframes hmLivePulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 12px rgba(0,229,255,0.1); }
  50% { box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 22px rgba(0,229,255,0.22); }
}
.hm-live-bar-head {
  display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.hm-live-title { font-size: 0.9rem; color: #f1f5f9; flex: 1; min-width: 180px; }
.hm-live-progress { font-size: 0.72rem; color: var(--hm-cyan); }
.hm-live-close { margin-left: auto; opacity: 0.7; }
.hm-live-log {
  list-style: none; margin: 0; padding: 0;
  max-height: 200px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 0.3rem;
  font-size: 0.78rem;
}
.hm-live-entry {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.35rem 0.65rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid #64748b;
}
.hm-live-entry.hm-live-running { border-left-color: var(--hm-cyan); }
.hm-live-entry.hm-live-ok { border-left-color: #22c55e; }
.hm-live-entry.hm-live-warn { border-left-color: #f59e0b; }
.hm-live-entry.hm-live-agent {
  border-left-color: #a855f7;
  background: rgba(168, 85, 247, 0.08);
  grid-template-columns: 90px 1fr;
}
.hm-live-src {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hm-live-msg { color: #e2e8f0; }
.hm-live-detail {
  grid-column: 2;
  color: #64748b;
  font-size: 0.68rem;
}

.briefing-typewriter { color: #f1f5f9; line-height: 1.75; font-size: 1rem; min-height: 3rem; }
.horizon-card ul { color: #dce6f0; line-height: 1.65; }
.retail-highlight { text-decoration: none; color: inherit; display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--hm-border); }
.retail-highlight:hover { background: rgba(0,229,255,0.06); }

.hub-kpi-row .kpi-card { animation: none !important; }

/* Agents page */
.agents-neo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.agent-soul-card {
  background: var(--hm-panel); border: 1px solid var(--hm-border); border-radius: 14px;
  padding: 1rem; cursor: pointer; transition: all 0.2s;
}
.agent-soul-card:hover { border-color: rgba(0,229,255,0.4); box-shadow: 0 0 20px rgba(0,229,255,0.08); }
.agent-soul-card.selected { border-color: var(--hm-gold); }
.agent-soul-editor {
  background: var(--hm-panel); border: 1px solid var(--hm-border); border-radius: 14px;
  padding: 1.25rem; margin-top: 1rem;
}
.agent-soul-editor textarea {
  width: 100%; min-height: 280px; font-family: var(--font-mono); font-size: 0.85rem;
  background: #060a10; color: #e2e8f0; border: 1px solid var(--hm-border); border-radius: 8px; padding: 0.75rem;
}

.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
.perm-card {
  background: var(--hm-panel); border: 1px solid var(--hm-border); border-radius: 10px;
  padding: 0.85rem; display: flex; justify-content: space-between; align-items: center;
}
.perm-card.granted { border-color: rgba(34,197,94,0.4); }

/* CEO market dashboard */
.hm-ceo-market-row {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem;
}
@media (max-width: 1000px) { .hm-ceo-market-row { grid-template-columns: 1fr; } }

.hm-stock-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.65rem;
}
.hm-stock-card {
  background: rgba(0,0,0,0.25); border: 1px solid var(--hm-border); border-radius: 12px;
  padding: 0.65rem 0.75rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.hm-stock-card:hover { border-color: rgba(0,229,255,0.35); box-shadow: 0 0 16px rgba(0,229,255,0.08); }
.hm-stock-up { border-color: rgba(34,197,94,0.25); }
.hm-stock-down { border-color: rgba(251,113,133,0.25); }
.hm-stock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.35rem; }
.hm-stock-head strong { display: block; font-size: 0.85rem; color: #f1f5f9; }
.hm-stock-head small { font-size: 0.65rem; color: #94a3b8; }
.hm-stock-pct { font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.4rem; border-radius: 6px; }
.hm-stock-pct.up { color: #4ade80; background: rgba(74,222,128,0.12); }
.hm-stock-pct.down { color: #fb7185; background: rgba(251,113,133,0.12); }
.hm-stock-price { font-size: 1.15rem; font-weight: 700; color: #f8fafc; margin: 0.35rem 0 0.15rem; }
.hm-stock-price small { font-size: 0.65rem; color: #94a3b8; font-weight: 400; }
.hm-stock-chain { font-size: 0.65rem; color: #64748b; margin-bottom: 0.35rem; }
.hm-spark { width: 100%; height: 36px; display: block; opacity: 0.85; }
.hm-eq-down span { background: linear-gradient(to top, rgba(251,113,133,0.3), #fb7185); box-shadow: 0 0 6px rgba(251,113,133,0.35); }
.hm-eq-purple span { background: linear-gradient(to top, rgba(168,85,247,0.3), #a855f7); box-shadow: 0 0 6px rgba(168,85,247,0.35); }
.hm-eq-cyan span { background: linear-gradient(to top, rgba(56,189,248,0.3), #38bdf8); box-shadow: 0 0 6px rgba(56,189,248,0.35); }
.hm-eq-lime span { background: linear-gradient(to top, rgba(184,255,60,0.25), #b8ff3c); box-shadow: 0 0 6px rgba(184,255,60,0.35); }
.hm-hero-links .beurs-mini-chip { font-size: 0.75rem; }
.hm-dash-analytics .hm-analytics-panel { min-height: 320px; }
.hm-dash-analytics .page-viz-body { min-height: 260px; }
.hm-dash-analytics .page-viz-canvas { min-height: 260px; }
.hm-dash-two-col .page-viz-panel { min-height: 340px; }
.hm-trend-list li { margin-bottom: 0.35rem; }

.hm-widget-draggable { cursor: grab; position: relative; }
.hm-widget-draggable:active { cursor: grabbing; }
.hm-widget-dragging { opacity: 0.75; outline: 2px dashed var(--hm-cyan); }
.hm-widget-handle {
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #64748b; margin-bottom: 0.35rem; user-select: none;
}
.hm-widget-handle::before { content: ''; }
.hm-widget-hidden { display: none !important; }
.hm-dash-editing [data-widget]:not(.hm-widget-hidden) {
  outline: 1px dashed rgba(0,229,255,0.25);
  border-radius: 12px;
  padding: 0.5rem;
  margin: -0.5rem;
}
.hm-widget-hint { font-size: 0.7rem; color: #64748b; font-weight: normal; }

.hm-customize-wrap {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(13,18,25,0.92);
  border: 1px solid var(--hm-cyan);
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(0,229,255,0.08);
}
.hm-customize-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 900px) { .hm-customize-panel { grid-template-columns: 1fr; } }
.hm-customize-col h4 { margin: 0 0 0.35rem; font-size: 0.85rem; color: #e2e8f0; }
.hm-customize-hint { margin: 0 0 0.65rem; font-size: 0.72rem; color: #64748b; }
.hm-customize-list { display: flex; flex-direction: column; gap: 0.35rem; }
.hm-customize-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: #cbd5e1; cursor: pointer;
  padding: 0.35rem 0.5rem; border-radius: 8px;
  background: rgba(0,0,0,0.2); border: 1px solid rgba(148,163,184,0.12);
}
.hm-customize-item:hover { border-color: rgba(0,229,255,0.35); }
.hm-kpi-picker { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hm-kpi-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; color: #94a3b8; cursor: grab;
  padding: 0.3rem 0.55rem; border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.2); background: rgba(0,0,0,0.25);
  user-select: none;
}
.hm-kpi-chip.active { border-color: var(--hm-cyan); color: var(--hm-cyan); }
.hm-kpi-chip.hm-kpi-dragging { opacity: 0.6; }
.hm-kpi-chip input { accent-color: var(--hm-cyan); }

.hm-rss-panel { max-height: 420px; overflow-y: auto; }
.hm-rss-head { font-size: 0.75rem; color: #94a3b8; margin-bottom: 0.65rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.hm-rss-list { display: flex; flex-direction: column; gap: 0.45rem; }
.hm-rss-item {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.55rem 0.65rem; border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.12); background: rgba(0,0,0,0.2);
  text-decoration: none; color: inherit; transition: border-color 0.15s;
}
.hm-rss-item:hover { border-color: rgba(0,229,255,0.4); }
.hm-rss-cat {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--hm-cyan); background: rgba(0,229,255,0.1);
  padding: 0.2rem 0.4rem; border-radius: 6px; white-space: nowrap;
}
.hm-rss-body strong { display: block; font-size: 0.82rem; color: #e2e8f0; margin-bottom: 0.15rem; }
.hm-rss-body small { font-size: 0.68rem; color: #64748b; }

.viz-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
  margin-bottom: 1rem; padding: 0.65rem 0.85rem;
  background: rgba(13,18,25,0.8); border: 1px solid var(--hm-border); border-radius: 12px;
}
.viz-global-label { font-size: 0.72rem; color: #94a3b8; margin-right: 0.35rem; }
.viz-mode-btn {
  border: 1px solid rgba(148,163,184,0.2); background: rgba(0,0,0,0.25);
  color: #cbd5e1; border-radius: 999px; padding: 0.25rem 0.65rem; font-size: 0.72rem; cursor: pointer;
}
.viz-mode-btn.active { border-color: var(--hm-cyan); color: var(--hm-cyan); box-shadow: 0 0 12px rgba(0,229,255,0.15); }
.viz-alt { min-height: 140px; }
.viz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem; }
.viz-card { background: rgba(0,0,0,0.25); border: 1px solid var(--hm-border); border-radius: 10px; padding: 0.65rem; text-align: center; }
.viz-card-label { display: block; font-size: 0.65rem; color: #94a3b8; text-transform: uppercase; }
.viz-card-val { font-size: 1.25rem; color: #f1f5f9; }
.viz-eq-row { display: flex; justify-content: space-between; font-size: 0.78rem; margin-bottom: 0.25rem; color: #cbd5e1; }
.viz-table { font-size: 0.78rem; }
.approval-dash-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.approval-row-scan td { background: rgba(245, 158, 11, 0.06); }
.approval-row-scan td:first-child { border-left: 3px solid #f59e0b; }

.global-viz-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center;
  margin: 0 auto; max-width: min(520px, 55vw);
}
.global-viz-btn {
  border: 1px solid rgba(148,163,184,0.18); background: rgba(0,0,0,0.35);
  color: #94a3b8; border-radius: 999px; padding: 0.15rem 0.45rem; font-size: 0.62rem;
  cursor: pointer; white-space: nowrap;
}
.global-viz-btn.active {
  border-color: var(--hm-cyan, #00e5ff); color: var(--hm-cyan, #00e5ff);
  box-shadow: 0 0 10px rgba(0,229,255,0.12);
}
@media (max-width: 900px) {
  .global-viz-toolbar { display: none; }
  .app-topbar .page-tip { display: none; }
}

.hm-highlight-scroll { max-height: 220px; overflow-y: auto; }
.hm-highlight-item {
  padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hm-highlight-item strong { color: #e2e8f0; font-size: 0.85rem; text-decoration: none; }
.hm-highlight-item a { color: inherit; text-decoration: none; }
.hm-highlight-item a:hover strong { color: var(--hm-cyan); }
.hm-highlight-item small { display: block; color: #64748b; font-size: 0.7rem; margin-top: 0.15rem; }
.hm-cat-badge {
  display: inline-block; font-size: 0.55rem; letter-spacing: 0.1em; font-weight: 700;
  padding: 0.1rem 0.35rem; border-radius: 4px; margin-bottom: 0.25rem;
  background: rgba(255,159,67,0.15); color: #ff9f43;
}
.hm-cat-badge.hm-cat-cbs { background: rgba(56,189,248,0.15); color: #38bdf8; }
.hm-cat-badge.hm-cat-regelgeving { background: rgba(168,85,247,0.15); color: #a855f7; }

.hm-neo-kpi-row { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1200px) { .hm-neo-kpi-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .hm-neo-kpi-row { grid-template-columns: repeat(2, 1fr); } }

/* Agent animated avatars */
.agent-avatar-wrap {
  position: relative; width: 64px; height: 64px; flex-shrink: 0;
}
.agent-avatar {
  width: 64px; height: 64px; border-radius: 50%; position: relative;
  display: grid; place-items: center; font-size: 1.5rem;
  box-shadow: 0 0 20px color-mix(in srgb, var(--av-color, #00e5ff) 40%, transparent);
  animation: agentBob 3s ease-in-out infinite;
}
.agent-avatar::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--av-color, #00e5ff); opacity: 0.5;
  animation: agentPulseRing 2s ease-out infinite;
}
.agent-face {
  width: 48px; height: 48px; border-radius: 50%; background: var(--av-color, #00e5ff);
  position: relative; overflow: hidden;
}
.agent-face .eye {
  position: absolute; top: 16px; width: 7px; height: 9px; background: #0a0e14; border-radius: 50%;
  animation: agentBlink 4s infinite;
}
.agent-face .eye.left { left: 12px; }
.agent-face .eye.right { right: 12px; }
.agent-face .mouth {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 7px; border-bottom: 3px solid #0a0e14; border-radius: 0 0 14px 14px;
}
.agent-face.mood-busy .mouth { width: 10px; height: 3px; border: none; background: #0a0e14; border-radius: 2px; bottom: 12px; }
.agent-face.mood-creative .mouth { border-bottom-color: #0a0e14; width: 16px; height: 8px; }

/* Hair, glasses, gender styles */
.agent-face .hair {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90%; height: 22px; border-radius: 50% 50% 0 0;
  background: #1a1410; z-index: 1;
}
.agent-face.style-female-long .hair {
  width: 110%; height: 28px; border-radius: 40% 40% 0 0;
  background: linear-gradient(180deg, #2d1810, #1a1008);
}
.agent-face.style-female-long::after {
  content: ''; position: absolute; top: 18px; left: -4px; width: 12px; height: 22px;
  background: #2d1810; border-radius: 0 0 50% 50%; z-index: 0;
}
.agent-face.style-female-bob .hair {
  width: 100%; height: 20px; background: #3d2817; border-radius: 30% 30% 0 0;
}
.agent-face.style-male-short .hair {
  width: 85%; height: 14px; background: #0f0f0f; border-radius: 40% 40% 0 0;
}
.agent-face.style-male-curl .hair {
  width: 95%; height: 18px; background: #2a1810;
  border-radius: 50% 50% 0 0; box-shadow: -6px 2px 0 #2a1810, 6px 2px 0 #2a1810;
}
.agent-face .glasses {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 10px; border: 2px solid #0a0e14; border-radius: 4px;
  z-index: 3; box-shadow: -8px 0 0 -2px #0a0e14, 8px 0 0 -2px #0a0e14;
}
.agent-face.style-female-long .eye { top: 18px; }
.agent-face.style-male-glasses .eye { top: 15px; }

.hm-exec-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.65rem;
}
.hm-exec-item {
  display: flex; gap: 0.65rem; align-items: center; padding: 0.75rem;
  border-radius: 10px; background: rgba(0,0,0,0.25); border: 1px solid rgba(148,163,184,0.1);
  text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s;
}
.hm-exec-item:hover { border-color: rgba(0,229,255,0.35); transform: translateY(-2px); }
.hm-exec-icon { font-size: 1.4rem; }
.hm-exec-item strong { display: block; font-size: 0.78rem; color: #94a3b8; font-weight: 600; }
.hm-exec-val { font-size: 1.1rem; color: #e2e8f0; font-weight: 700; }
.hm-exec-list { margin: 0; padding-left: 1.2rem; color: #cbd5e1; font-size: 0.85rem; }
.hm-exec-list a { color: #38bdf8; }
.agent-status-dot {
  position: absolute; bottom: 2px; right: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: #22c55e; border: 2px solid var(--hm-panel);
  box-shadow: 0 0 8px #22c55e; animation: hmPulse 2s infinite;
}
@keyframes agentBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes agentPulseRing { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes agentBlink { 0%,96%,100% { transform: scaleY(1); } 98% { transform: scaleY(0.1); } }

.agent-soul-card .agent-role-desc {
  font-size: 0.82rem; color: #cbd5e1; line-height: 1.5; margin: 0.65rem 0;
  min-height: 2.5rem;
}
.agent-soul-card .agent-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: #94a3b8;
}
.agent-soul-card .agent-tag {
  display: inline-block; padding: 0.15rem 0.45rem; border-radius: 999px;
  background: rgba(0,229,255,0.1); color: var(--hm-cyan); font-size: 0.65rem;
}
.agent-soul-editor .agent-editor-header {
  display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem;
}
.agent-soul-editor .agent-editor-header h2 { margin: 0; }

/* Herman dashboard tabs */
.herman-dash-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: 0.35rem;
  background: rgba(6, 10, 18, 0.88);
  border: 1px solid rgba(0, 229, 255, 0.14);
  border-radius: 14px;
}
.herman-dash-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  transition: all 0.18s;
}
.herman-dash-tab:hover { color: #e2e8f0; background: rgba(0, 229, 255, 0.06); }
.herman-dash-tab.active {
  color: #e0f2fe;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(168, 85, 247, 0.1));
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.08);
}
.herman-dash-tab-badge {
  font-size: 0.62rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.15);
  color: #7dd3fc;
}
.hm-rss-teaser {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}
.hm-rss-teaser a { color: #38bdf8; }

/* RSS hub tab */
.herman-rss-hub { margin-top: 0.25rem; }
.herman-rss-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.herman-rss-head h2 { margin: 0; font-size: 1.15rem; color: #f1f5f9; }
.herman-rss-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.herman-rss-filters {
  display: grid;
  grid-template-columns: 1fr 200px auto;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1rem;
}
@media (max-width: 720px) { .herman-rss-filters { grid-template-columns: 1fr; } }
.herman-rss-count { font-size: 0.72rem; color: #94a3b8; white-space: nowrap; }
.herman-rss-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 1000px) { .herman-rss-grid { grid-template-columns: 1fr; } }
.herman-rss-list {
  max-height: 68vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-right: 0.25rem;
}
.herman-rss-card { margin: 0; }
.herman-rss-side-item {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 0.78rem;
}
.herman-rss-side-item a { color: #e2e8f0; text-decoration: none; display: block; margin-bottom: 0.15rem; }
.herman-rss-side-item a:hover { color: #7dd3fc; }
.herman-rss-side-item small { color: #64748b; font-size: 0.65rem; }
.herman-rss-col-side .hm-chart-panel { margin-bottom: 0.75rem; }
.herman-rss-col-side h4 { margin: 0 0 0.5rem; font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; }
