.animus-performance {
  display: grid;
  gap: 18px;
  padding: 8px 0 28px;
  color: #172033;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.animus-performance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.animus-performance-head h1 {
  margin: 0;
  font-size: 30px;
}

.animus-performance-head p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 14px;
}

.animus-performance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.animus-performance-card {
  min-height: 142px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.animus-performance-card span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.animus-performance-card strong {
  display: block;
  margin-top: 9px;
  color: #13254a;
  font-size: 26px;
}

.animus-performance-card small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
}

.animus-performance-card.profit strong { color: #15803d; }
.animus-performance-card.expense strong { color: #d97706; }
.animus-performance-card.net-revenue small { color: #94a3b8; }

.animus-performance-main {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
}

.animus-performance-panel {
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.animus-performance-panel h2 {
  margin: 0 0 15px;
  font-size: 17px;
}

.animus-performance-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.animus-performance-panel-head h2 {
  margin-bottom: 5px;
}

.animus-performance-panel-head p,
.animus-performance-panel-head span {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.animus-performance-chart {
  width: 100%;
  height: 220px;
}

.animus-performance-stages {
  display: grid;
  gap: 10px;
}

.animus-performance-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.animus-performance-stage strong {
  font-size: 13px;
}

.animus-performance-stage span {
  color: #64748b;
  font-size: 12px;
}

.animus-performance-stage b {
  color: #2563eb;
  font-size: 12px;
}

.animus-performance-link {
  margin-top: 13px;
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.animus-work-type-panel {
  display: grid;
  gap: 16px;
}

.animus-work-type-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.animus-work-type-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.animus-work-type-card span,
.animus-work-type-table small {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.animus-work-type-card strong {
  display: block;
  margin-top: 7px;
  color: #13254a;
  font-size: 20px;
}

.animus-work-type-card small {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 12px;
}

.animus-work-type-table-wrap {
  overflow-x: auto;
}

.animus-work-type-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

.animus-work-type-table th,
.animus-work-type-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: right;
  vertical-align: middle;
}

.animus-work-type-table th {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.animus-work-type-table th:first-child,
.animus-work-type-table td:first-child {
  text-align: left;
}

.animus-work-type-table td {
  color: #172033;
  font-size: 13px;
  font-weight: 750;
}

.animus-work-type-table td strong {
  display: block;
  color: #13254a;
  font-size: 13px;
}

.animus-work-type-table .positive { color: #15803d; }
.animus-work-type-table .negative { color: #dc2626; }
.animus-work-type-table .zero { color: #94a3b8; }

body.animus-dark-theme .animus-work-type-card {
  background: #0f1724 !important;
  border-color: #334155 !important;
}

body.animus-dark-theme .animus-work-type-table th,
body.animus-dark-theme .animus-work-type-table td {
  border-color: #334155 !important;
}

body.animus-dark-theme .animus-work-type-table th,
body.animus-dark-theme .animus-work-type-card span,
body.animus-dark-theme .animus-work-type-card small,
body.animus-dark-theme .animus-work-type-table small {
  color: #b6c3d4 !important;
}

body.animus-dark-theme .animus-work-type-card strong,
body.animus-dark-theme .animus-work-type-table td,
body.animus-dark-theme .animus-work-type-table td strong {
  color: #f8fbff !important;
}

body.animus-dark-theme .animus-work-type-table .positive { color: #4ade80 !important; }
body.animus-dark-theme .animus-work-type-table .negative { color: #f87171 !important; }
body.animus-dark-theme .animus-work-type-table .zero { color: #94a3b8 !important; }

@media (max-width: 1100px) {
  .animus-performance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .animus-performance-main { grid-template-columns: 1fr; }
  .animus-work-type-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .animus-performance-grid,
  .animus-work-type-cards { grid-template-columns: 1fr; }
  .animus-performance-head,
  .animus-performance-panel-head { display: grid; }
}
