:root {
  color: #ffffff;
  background-color: #000000;
  font-family: 'IBM Plex Mono', 'Inter', monospace;
}
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #000000;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}
header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(255, 0, 0, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #040404;
}
header h1 {
  margin: 0;
  letter-spacing: 0.25rem;
  font-size: 1.4rem;
  color: #ff0000;
}
header a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.1rem;
}
main {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 1rem;
  padding: 1rem;
}
.panel {
  background: #060606;
  border-radius: 18px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 0, 0, 0.25);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.7);
}
.panel label {
  display: block;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}
.panel input[type=number],
.panel input[type=file] {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.95rem;
}
.panel input[type=file] {
  padding: 0.4rem 0.8rem;
}
.hint {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.35rem;
  line-height: 1.25;
  font-style: italic;
}
.example {
  background: rgba(255, 0, 0, 0.08);
  border-left: 3px solid rgba(255, 0, 0, 0.8);
  padding: 0.65rem 0.9rem;
  font-size: 0.75rem;
  color: #ffffff;
  border-radius: 6px;
  margin-top: 1rem;
  font-family: 'IBM Plex Mono', monospace;
}
button {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.85rem;
  border: 1px solid #ffffff;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}
button:hover:not(:disabled) {
  color: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.status {
  font-size: 0.82rem;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}
.charts-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.canvas-wrapper {
  background: #080808;
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid rgba(255, 0, 0, 0.2);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.65);
}
.canvas-wrapper canvas {
  width: 100% !important;
  max-height: 220px !important;
}
.canvas-wrapper h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: #ffffff;
}
#efficiencyBadge {
  width: 100%;
  text-align: center;
  padding: 0.85rem 1rem;
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.9), rgba(0, 200, 83, 0.9));
  border-radius: 14px;
  border: 1px solid rgba(0, 230, 118, 0.9);
  color: #020617;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.7);
  display: none;
}
.badge.visible {
  display: block;
}
.decision-log {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(255, 0, 0, 0.7);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #ffffff;
}
.quantum-note {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.1rem;
  border-top: 1px solid rgba(255, 0, 0, 0.3);
  padding-top: 0.65rem;
  margin: 0;
}
.economy-note {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}
.market-table {
  margin-top: 0.4rem;
}
.market-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'IBM Plex Mono', 'Inter', monospace;
  background: rgba(255, 0, 0, 0.04);
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
}
.market-table th,
.market-table td {
  padding: 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.82rem;
}
.market-table thead th {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2rem;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 0, 0, 0.4);
}
.market-table tbody tr.highlight {
  background: rgba(255, 0, 0, 0.15);
  color: #ffffff;
}
.market-table tbody tr.highlight td {
  font-weight: 700;
}
@media (max-width: 1000px) {
  main {
    grid-template-columns: 1fr;
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
}
