aside {
  overflow-y: auto;
  padding-top: 18px;
}
.side-brand {
  margin-bottom: 18px;
}
nav button {
  padding-top: 10px;
  padding-bottom: 10px;
  margin: 2px 0;
  font-size: 12px;
}
.risk {
  margin-top: 16px;
}
.tool-grid {
  display: grid;
  grid-template-columns: minmax(300px, 440px) 1fr;
  gap: 18px;
}
.tool-form textarea {
  width: 100%;
  min-height: 100px;
  background: #07100e;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-top: 8px;
}
.info-card {
  min-height: 300px;
}
.info-card ul {
  padding-left: 22px;
  color: var(--muted);
  line-height: 2;
}
.feed-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.feed-controls select {
  min-width: 180px;
  background: #07100e;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
}
.feed-controls .primary {
  width: auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feed-card .direction {
  font-size: 30px;
  margin: 16px 0;
}
.feed-card header {
  height: auto;
  border: 0;
  justify-content: space-between;
}
.upload-box input[type="file"] {
  display: none;
}
.upload-box > label {
  min-height: 160px;
  border: 1px dashed #496158;
  border-radius: 12px;
  display: grid;
  place-content: center;
  text-align: center;
  cursor: pointer;
  color: var(--lime);
  margin-bottom: 15px;
}
.upload-box label span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
}
.upload-box img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 8px;
}
.result-card small,
.result-card strong {
  display: block;
}
.result-card small {
  color: var(--muted);
  letter-spacing: 1.5px;
  font-size: 10px;
  margin-top: 12px;
}
.result-card strong {
  font-size: 42px;
  color: var(--lime);
  margin: 7px 0 20px;
}
.result-card p,
.event p,
.coach-card p {
  color: var(--muted);
  line-height: 1.6;
}
.event span {
  font-size: 9px;
  color: var(--lime);
  letter-spacing: 1.5px;
}
.event.high {
  border-color: #6a3238;
}
.event.high span {
  color: var(--red);
}
.event.med span {
  color: #e3c879;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat-grid article small,
.stat-grid article strong {
  display: block;
}
.stat-grid article small {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.stat-grid article strong {
  font-size: 30px;
  margin-top: 14px;
}
.import-box {
  max-width: 700px;
}
.import-box code {
  display: block;
  padding: 15px;
  background: #07100e;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--lime);
  margin: 15px 0;
}
.import-box input {
  display: block;
  margin: 18px 0;
}
.coach-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.coach-metrics div {
  padding: 15px;
  background: #07100e;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.coach-metrics strong,
.coach-metrics small {
  display: block;
}
.coach-metrics small {
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 850px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .cards,
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  aside nav {
    justify-content: flex-start;
    overflow-x: auto;
  }
  .cards,
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .feed-controls {
    display: grid;
  }
  .feed-controls .primary {
    width: 100%;
  }
}
