:root {
  --bg: #0f1115;
  --panel: #171a21;
  --border: #2a2e38;
  --text: #e7e9ee;
  --muted: #9aa1ad;
  --accent: #5b8cff;
  --good: #2fbf71;
  --bad: #e5484d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}

header h1 {
  margin: 0;
  font-size: 22px;
}

header a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
  display: block;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card .icon {
  font-size: 32px;
}

.card h3 {
  margin: 12px 0 6px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.upload-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

input[type="file"] {
  color: var(--text);
}

button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

button.secondary:hover {
  border-color: var(--accent);
}

.file-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}

.file-list .file-size {
  color: var(--muted);
  margin-left: 8px;
}

.file-list .remove-btn {
  background: transparent;
  border: none;
  color: var(--bad);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
  line-height: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 8px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

th:first-child, td:first-child {
  text-align: left;
}

.pos { color: var(--good); }
.neg { color: var(--bad); }
.muted { color: var(--muted); }

.error {
  color: var(--bad);
  font-size: 14px;
  margin-top: 8px;
}

.section-title {
  font-size: 16px;
  margin: 0 0 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.corr-table td {
  text-align: center;
  font-weight: 600;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.month-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
}

.month-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.month-value {
  font-size: 15px;
  font-weight: 700;
}
