﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   AUDITPRO â€” Dashboard de AuditorÃ­a (integrado)
   Adaptado al tema oscuro del proyecto Ryuzenk
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Variables propias â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  /* LIGHT MODE (Default) */
  --frog-surface: rgba(255, 255, 255, 0.90);
  --frog-surface2: rgba(248, 250, 252, 0.85);
  --frog-border: rgba(203, 213, 225, 0.80);
  --frog-text: #0f172a;
  --frog-muted: #475569;
  --frog-faint: #94a3b8;

  --frog-primary: #4f46e5;
  --frog-primary-l: rgba(79, 70, 229, 0.12);
  --frog-primary-d: #4338ca;

  /* Worker Card Light Mode */
  --frog-worker-bg: linear-gradient(145deg, #f8fafc, #f1f5f9);
  --frog-worker-text: #0f172a;
  --frog-worker-border: rgba(99, 102, 241, 0.15);

  --frog-success: #059669;
  --frog-warning: #d97706;
  --frog-danger: #dc2626;

  --frog-r: 10px;
  --frog-r-lg: 14px;
  --frog-r-xl: 18px;

  --frog-sh: 0 1px 4px rgba(0, 0, 0, .08);
  --frog-sh-md: 0 4px 16px rgba(0, 0, 0, .12);
}

.dark {
  /* DARK MODE */
  --frog-surface: rgba(30, 41, 59, 0.85);
  --frog-surface2: rgba(15, 23, 42, 0.75);
  --frog-border: rgba(51, 65, 85, 0.60);
  --frog-text: #f1f5f9;
  --frog-muted: #94a3b8;
  --frog-faint: #64748b;

  --frog-primary: #6366f1;
  --frog-primary-l: rgba(99, 102, 241, 0.15);
  --frog-primary-d: #4338ca;

  /* Worker Card Dark Mode */
  --frog-worker-bg: linear-gradient(145deg, #1e1b4b, #1a1035);
  --frog-worker-text: #f1f5f9;
  --frog-worker-border: rgba(99, 102, 241, 0.25);

  --frog-success: #10b981;
  --frog-warning: #f59e0b;
  --frog-danger: #ef4444;

  --frog-sh: 0 2px 5px rgba(0, 0, 0, .3);
  --frog-sh-md: 0 6px 20px rgba(0, 0, 0, .4);
}


/* â”€â”€ View container â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#auditoriaView {
  flex-direction: column;
  color: var(--frog-text);
  font-family: 'Syne', 'Inter', sans-serif;
  overflow-y: auto;
  gap: 0;
}

#auditoriaView * {
  box-sizing: border-box;
}

#auditoriaView button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}


/* â”€â”€ TOPBAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.frog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  margin: 16px 16px 0;
  background: var(--frog-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--frog-border);
  border-radius: var(--frog-r-xl);
  box-shadow: var(--frog-sh);
  position: sticky;
  top: 16px;
  z-index: 10;
  gap: 16px;
  flex-shrink: 0;
  transition: background .25s, border-color .25s, box-shadow .25s;
}

.frog-topbar h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--frog-text);
}

.frog-topbar p {
  font-size: 12px;
  color: var(--frog-muted);
  margin-top: 2px;
}

.frog-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* â”€â”€ Internal nav tabs â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.frog-nav-tabs {
  display: flex;
  gap: 4px;
}

.frog-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--frog-r);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--frog-muted);
  transition: background .15s, color .15s;
}

.frog-nav-btn:hover {
  background: var(--frog-primary-l);
  color: var(--frog-text);
}

.frog-nav-btn.active {
  background: var(--frog-primary-l);
  color: var(--frog-primary);
  font-weight: 600;
}

.frog-nav-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: .85;
}


/* â”€â”€ Icon buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.frog-icon-btn {
  width: 35px;
  height: 35px;
  border-radius: var(--frog-r);
  border: 1px solid var(--frog-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--frog-muted);
  transition: all .15s;
}

.frog-icon-btn:hover {
  border-color: var(--frog-primary);
  color: var(--frog-primary);
  background: var(--frog-primary-l);
}

.frog-icon-btn svg {
  width: 15px;
  height: 15px;
}


/* â”€â”€ Content area â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.frog-content {
  padding: 22px 26px;
  flex: 1;
}


/* â”€â”€ VIEWS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.frog-view {
  display: none;
  animation: frogFadeIn .2s ease;
}

.frog-view.active {
  display: block;
}


/* â”€â”€ KPI GRID â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.frog-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.frog-kpi-card {
  background: var(--frog-surface);
  border: 1px solid var(--frog-border);
  border-radius: var(--frog-r-xl);
  padding: 18px 20px;
  box-shadow: var(--frog-sh);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s, box-shadow .2s;
}

.frog-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--frog-sh-md);
}

.frog-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.frog-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--frog-r);
  display: flex;
  align-items: center;
  justify-content: center;
}

.frog-kpi-icon svg {
  width: 17px;
  height: 17px;
}

.frog-kpi-icon.indigo {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.frog-kpi-icon.rose {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
}

.frog-kpi-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.frog-kpi-icon.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.frog-kpi-change {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
}

.frog-kpi-change.up {
  background: rgba(22, 163, 74, 0.15);
  color: #4ade80;
}

.frog-kpi-change.down {
  background: rgba(220, 38, 38, 0.15);
  color: #f87171;
}

.frog-kpi-change.flat {
  background: rgba(51, 65, 85, 0.40);
  color: var(--frog-muted);
}

.frog-kpi-label {
  font-size: 12px;
  color: var(--frog-muted);
  margin-bottom: 4px;
}

.frog-kpi-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--frog-text);
}


/* â”€â”€ CHARTS ROW â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.frog-charts-row {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 14px;
  margin-bottom: 20px;
}

.frog-card {
  background: var(--frog-surface);
  border: 1px solid var(--frog-border);
  border-radius: var(--frog-r-xl);
  padding: 20px;
  box-shadow: var(--frog-sh);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.frog-card-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.2px;
  color: var(--frog-text);
}

.frog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.frog-chart-tabs {
  display: flex;
  gap: 4px;
}

.frog-tab {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--frog-r);
  color: var(--frog-muted);
  transition: all .15s;
}

.frog-tab:hover {
  background: var(--frog-primary-l);
  color: var(--frog-text);
}

.frog-tab.active {
  background: var(--frog-primary-l);
  color: var(--frog-primary);
}

.frog-chart-wrap {
  height: 180px;
  position: relative;
  margin-top: 6px;
}

.frog-pie-legend {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.frog-pie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.frog-pie-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--frog-muted);
}

.frog-pie-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.frog-pie-pct {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--frog-text);
}


/* â”€â”€ BOTTOM ROW â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.frog-bottom-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 14px;
}

/* Audit list */
.frog-audit-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.frog-audit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--frog-r-lg);
  transition: background .15s;
}

.frog-audit-item:hover {
  background: var(--frog-primary-l);
}

.frog-audit-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.frog-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--frog-r);
  background: var(--frog-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.frog-audit-actor {
  font-size: 13px;
  font-weight: 600;
  color: var(--frog-text);
}

.frog-audit-actor span {
  color: var(--frog-muted);
  font-weight: 400;
}

.frog-audit-meta {
  font-size: 11.5px;
  color: var(--frog-faint);
  margin-top: 2px;
}

.frog-action-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid;
  display: inline-block;
  margin-left: 4px;
}

.frog-action-tag.UPDATE {
  background: rgba(29, 78, 216, 0.15);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.25);
}

.frog-action-tag.DELETE {
  background: rgba(190, 18, 60, 0.12);
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.25);
}

.frog-action-tag.INSERT {
  background: rgba(21, 128, 61, 0.12);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.25);
}


/* â”€â”€ COMMAND CENTER â€” Worker Cards Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.frog-cc {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.frog-cc-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--frog-surface);
  border: 1px solid var(--frog-border);
  border-radius: var(--frog-r-xl);
  padding: 18px 20px;
  box-shadow: var(--frog-sh);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s, border-color .25s, box-shadow .25s;
}

.frog-cc-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.frog-cc-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--frog-text);
  margin: 0;
}

.frog-cc-subtitle {
  font-size: 12px;
  color: var(--frog-muted);
  margin: 3px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.frog-cc-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--frog-success);
  display: inline-block;
  animation: frogPulse 2s infinite;
}

/* Toolbar */
.frog-cc-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.frog-cc-search-wrap {
  position: relative;
  flex: 1;
  min-width: 160px;
}

.frog-cc-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--frog-faint);
  pointer-events: none;
}

.frog-cc-search {
  width: 100%;
  padding: 8px 12px 8px 32px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--frog-text);
  background: var(--frog-surface);
  border: 1px solid var(--frog-border);
  border-radius: var(--frog-r);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.frog-cc-search:focus {
  border-color: var(--frog-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.frog-cc-filters {
  display: flex;
  gap: 4px;
}

.frog-cc-filter {
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--frog-r);
  color: var(--frog-muted);
  cursor: pointer;
  border: none;
  background: none;
  transition: all .15s;
  white-space: nowrap;
  font-family: inherit;
}

.frog-cc-filter:hover {
  background: var(--frog-primary-l);
  color: var(--frog-text);
}

.frog-cc-filter.active {
  background: var(--frog-primary-l);
  color: var(--frog-primary);
}

.frog-cc-empty {
  text-align: center;
  padding: 30px;
  color: var(--frog-faint);
  font-size: 13px;
  grid-column: 1 / -1;
}

/* Cards Grid */
.frog-cc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.frog-cc-grid::-webkit-scrollbar {
  width: 4px;
}

.frog-cc-grid::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, .3);
  border-radius: 99px;
}

/* Individual Worker Card */
.frog-wcard {
  background: var(--frog-worker-bg);
  border: 1px solid var(--frog-worker-border);
  border-radius: var(--frog-r-lg);
  padding: 16px;
  color: var(--frog-worker-text);
  transition: transform .15s, box-shadow .15s;
}

.frog-wcard:hover {
  transform: translateY(-1px);
  box-shadow: var(--frog-sh-md);
}

.frog-wcard-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.frog-wcard-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--frog-r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.frog-wcard-info {
  flex: 1;
  min-width: 0;
}

.frog-wcard-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--frog-worker-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frog-wcard-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 5px;
  margin-top: 2px;
}

.frog-wcard-status.on {
  color: var(--frog-success);
  background: rgba(16, 185, 129, .12);
}

.frog-wcard-status.off {
  color: var(--frog-faint);
  background: rgba(100, 116, 139, .1);
}

.frog-wcard-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.frog-wcard-status.on .frog-wcard-status-dot {
  background: var(--frog-success);
  box-shadow: 0 0 5px rgba(16, 185, 129, .5);
}

.frog-wcard-status.off .frog-wcard-status-dot {
  background: var(--frog-faint);
}

/* Session */
.frog-wcard-session {
  background: rgba(99, 102, 241, .1);
  border: 1px solid rgba(99, 102, 241, .18);
  border-radius: var(--frog-r);
  padding: 8px 10px;
  margin-bottom: 10px;
}

.frog-wcard-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.frog-wcard-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--frog-primary);
  font-weight: 700;
}

.frog-wcard-timer {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--frog-text);
  background: var(--frog-primary-l);
  padding: 1px 7px;
  border-radius: 5px;
}

.frog-wcard-since {
  font-size: 11px;
  color: var(--frog-muted);
  margin-top: 3px;
  display: block;
}

/* Progress */
.frog-wcard-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.frog-wcard-tasks-val {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--frog-text);
}

.frog-progress-bg {
  height: 6px;
  background: rgba(99, 102, 241, .15);
  border-radius: 99px;
  margin-bottom: 10px;
}

.frog-progress-fill {
  height: 6px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 99px;
}

/* Stats mini */
.frog-wcard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.frog-wcard-stat {
  border-radius: var(--frog-r);
  padding: 8px 10px;
  text-align: center;
}

.frog-wcard-stat-num {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--frog-text);
  letter-spacing: -.5px;
}

.frog-wcard-stat-lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  color: var(--frog-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* Expand + Detail */
.frog-wcard-expand {
  width: 100%;
  padding: 7px;
  background: transparent;
  border: 1px solid rgba(99, 102, 241, .2) !important;
  border-radius: var(--frog-r);
  color: var(--frog-primary);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}

.frog-wcard-expand:hover {
  background: rgba(99, 102, 241, .08);
  color: var(--frog-primary);
}

.frog-wcard-detail {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--frog-r);
  display: none;
  flex-direction: column;
  gap: 3px;
}

.frog-wcard-detail.open {
  display: flex;
}

.frog-wcard-detail-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--frog-primary);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Log lines (shared with audit list) */
.frog-log-btn {
  width: 100%;
  padding: 9px;
  background: transparent;
  border: 1px solid rgba(99, 102, 241, .25) !important;
  border-radius: var(--frog-r);
  color: var(--frog-primary);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .15s;
}

.frog-log-btn:hover {
  background: rgba(99, 102, 241, .1);
  color: var(--frog-primary);
}

.frog-log-btn svg {
  width: 14px;
  height: 14px;
  transition: transform .2s;
}

.frog-log-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--frog-r);
  display: none;
  flex-direction: column;
  gap: 4px;
}

.frog-log-box.open {
  display: flex;
}

.frog-log-line {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--frog-muted);
}

.frog-log-line.info {
  color: var(--frog-primary);
}

.frog-log-line.ok {
  color: var(--frog-success);
}

/* Light / Dark adjustments */
:root .frog-wcard-stat {
  background: rgba(0, 0, 0, .03);
  border: 1px solid rgba(0, 0, 0, .06);
}

:root .frog-wcard-detail {
  background: rgba(0, 0, 0, .04);
}

:root .frog-log-box {
  background: rgba(0, 0, 0, .04);
}

.dark .frog-wcard-stat {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
}

.dark .frog-wcard-detail {
  background: rgba(0, 0, 0, .25);
}

.dark .frog-log-box {
  background: rgba(0, 0, 0, .25);
}

/* ── Task Assigned Row (worker card) ─────────────── */
.frog-wcard-task-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, .06);
  border: 1px dashed rgba(99, 102, 241, .25);
  border-radius: var(--frog-r);
  padding: 8px 10px;
  margin-bottom: 10px;
}

.frog-wcard-task-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--frog-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: right;
}

/* ── Task List in Expanded View ─────────────────── */
.frog-wcard-task-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.frog-wcard-task-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .frog-wcard-task-item {
  border-color: rgba(255, 255, 255, 0.05);
}

.frog-task-checkbox {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--frog-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: white;
}

.frog-wcard-task-item.done .frog-task-checkbox {
  background: var(--frog-success);
  border-color: var(--frog-success);
}

.frog-task-name {
  font-size: 11.5px;
  color: var(--frog-text);
  line-height: 1.3;
}

.frog-task-name.done {
  color: var(--frog-muted);
  text-decoration: line-through;
}


/* ── LIVE Badge ──────────────────────────────────────────── */
.frog-cc-realtime-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #ef4444;
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .2);
}

.frog-cc-realtime-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: frogPulseRed 1.5s infinite;
}

@keyframes frogPulseRed {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, .5);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
  }
}


/* ── Case Context Section (inside worker card) ────────── */
.frog-wcard-case-ctx {
  background: rgba(99, 102, 241, .06);
  border: 1px solid rgba(99, 102, 241, .12);
  border-radius: var(--frog-r);
  padding: 8px 10px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.frog-wcard-case-header {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--frog-primary);
}

.frog-wcard-case-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--frog-primary);
}

.frog-wcard-case-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--frog-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frog-wcard-case-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--frog-muted);
}


/* ── Activity Timeline (inside worker card detail) ────── */
.frog-wcard-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 2px;
}

.frog-wcard-timeline-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.frog-wcard-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.frog-wcard-timeline-dot.update {
  background: #6366f1;
  box-shadow: 0 0 4px rgba(99, 102, 241, .4);
}

.frog-wcard-timeline-dot.insert {
  background: #10b981;
  box-shadow: 0 0 4px rgba(16, 185, 129, .4);
}

.frog-wcard-timeline-dot.delete {
  background: #ef4444;
  box-shadow: 0 0 4px rgba(239, 68, 68, .4);
}

.frog-wcard-timeline-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.frog-wcard-timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.frog-wcard-timeline-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  color: var(--frog-faint);
  white-space: nowrap;
}

.frog-wcard-timeline-table {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--frog-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ── Top Tables Bar Chart ────────────────────────── */
.frog-top-tables-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.frog-top-table-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.frog-top-table-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.frog-top-table-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--frog-text);
}

.frog-top-table-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--frog-primary);
}

.frog-top-table-bar-bg {
  height: 6px;
  background: rgba(99, 102, 241, .1);
  border-radius: 99px;
}

.frog-top-table-bar {
  height: 6px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 99px;
  transition: width .4s ease;
}

/* ── Card subtitle ────────────────────────────────── */
.frog-card-subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--frog-faint);
}

/* â”€â”€ PATTERNS VIEW â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.frog-intel-panel {
  background: var(--frog-worker-bg);
  border: 1px solid var(--frog-worker-border);
  border-radius: var(--frog-r-xl);
  padding: 20px;
  color: var(--frog-worker-text);
  margin-bottom: 20px;
}

.frog-intel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--frog-worker-text);
  margin-bottom: 6px;
}

.frog-intel-desc {
  font-size: 13px;
  color: var(--frog-primary);
  line-height: 1.5;
}

.frog-intel-desc strong {
  color: var(--frog-text);
}

.frog-patterns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.frog-pattern-card {
  background: var(--frog-surface);
  border: 1px solid var(--frog-border);
  border-radius: var(--frog-r-xl);
  padding: 20px;
  box-shadow: var(--frog-sh);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s, box-shadow .2s;
}

.frog-pattern-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--frog-sh-md);
}

.frog-pattern-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--frog-r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.frog-pattern-icon svg {
  width: 20px;
  height: 20px;
}

.frog-pattern-icon.rose {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
}

.frog-pattern-icon.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.frog-pattern-icon.indigo {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.frog-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}

.frog-badge.danger {
  background: rgba(220, 38, 38, 0.15);
  color: #f87171;
}

.frog-badge.warning {
  background: rgba(180, 83, 9, 0.15);
  color: #fbbf24;
}

.frog-badge.primary {
  background: var(--frog-primary-l);
  color: var(--frog-primary);
}

.frog-pattern-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -.2px;
  color: var(--frog-text);
}

.frog-pattern-desc {
  font-size: 13px;
  color: var(--frog-muted);
  line-height: 1.55;
}


/* â”€â”€ Status pill (footer) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.frog-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--frog-r);
  background: rgba(16, 185, 129, .08);
  border: 1px solid rgba(16, 185, 129, .15);
}

.frog-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--frog-success);
  flex-shrink: 0;
  animation: frogPulse 2s infinite;
}

.frog-status-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--frog-success);
  font-weight: 500;
}

.frog-status-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--frog-muted);
}


/* ── LIGHT MODE overrides ───────────────────────────────────────────────── */
.light-mode .frog-kpi-change.up {
  color: #16a34a;
}

.light-mode .frog-kpi-change.down {
  color: #dc2626;
}

.light-mode .frog-action-tag.UPDATE {
  color: #2563eb;
  border-color: rgba(37, 99, 235, .3);
}

.light-mode .frog-action-tag.DELETE {
  color: #be123c;
  border-color: rgba(190, 18, 60, .3);
}

.light-mode .frog-action-tag.INSERT {
  color: #15803d;
  border-color: rgba(21, 128, 61, .3);
}

.light-mode .frog-badge.danger {
  color: #dc2626;
}

.light-mode .frog-badge.warning {
  color: #b45309;
}

.light-mode .frog-kpi-icon.indigo {
  color: #4f46e5;
}

.light-mode .frog-kpi-icon.rose {
  color: #e11d48;
}

.light-mode .frog-kpi-icon.emerald {
  color: #059669;
}

.light-mode .frog-kpi-icon.amber {
  color: #d97706;
}

.light-mode .frog-pattern-icon.rose {
  color: #e11d48;
}

.light-mode .frog-pattern-icon.amber {
  color: #d97706;
}

.light-mode .frog-pattern-icon.indigo {
  color: #4f46e5;
}


/* ── ANIMATIONS ─────────────────────────────────────────────────────────────── */
@keyframes frogFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes frogPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .5);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
}


/* â”€â”€ RESPONSIVE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1100px) {
  .frog-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .frog-charts-row,
  .frog-bottom-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .frog-kpi-grid {
    grid-template-columns: 1fr;
  }

  .frog-content {
    padding: 14px 16px;
  }
}


/* â”€â”€ Scrollbar (inside the view) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#auditoriaView::-webkit-scrollbar {
  width: 5px;
}

#auditoriaView::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, .6);
  border-radius: 99px;
}

#auditoriaView::-webkit-scrollbar-track {
  background: transparent;
}