/* DataWatch palette: dark slate, amber, teal, danger */

body {
  margin: 0;
  background: #0f141b;
  color: #e6edf3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
}

a {
  color: #2dd4bf;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #26303d;
  background: #171e28;
}

.brand {
  color: #e8a33d;
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
}

.topbar-left {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.topbar-right {
  display: flex;
  align-items: center;
}

.topbar-right a {
  margin-left: 1.25rem;
}

.tagline {
  color: #93a1b3;
}

.user {
  margin-right: 0.25rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.page-header h1 {
  margin: 0;
}

.score-banner {
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.stats {
  margin-bottom: 1rem;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

.foot {
  color: #93a1b3;
  font-size: 0.875rem;
  text-align: center;
  border-top: 1px solid #26303d;
  padding: 1.5rem;
}

h1, h2 {
  letter-spacing: -0.02em;
}

h2 {
  margin-top: 2rem;
}

.muted {
  color: #93a1b3;
}

.error {
  color: #e5484d;
  background: #171e28;
  border: 1px solid #26303d;
  padding: 1rem;
  border-radius: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid #26303d;
  background: #171e28;
  color: #e6edf3;
  cursor: pointer;
}

.btn-primary {
  background: #e8a33d;
  color: #14100a;
  font-weight: bold;
  border: none;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th,
.table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid #26303d;
  text-align: left;
}

.table th {
  color: #93a1b3;
}

.stat {
  display: inline-block;
  background: #171e28;
  padding: 1rem;
  margin-right: 1rem;
  border-radius: 0.5rem;
}

.score-good {
  color: #2dd4bf;
  font-weight: bold;
}

.score-warn {
  color: #e8a33d;
  font-weight: bold;
}

.score-bad {
  color: #e5484d;
  font-weight: bold;
}

.badge {
  display: inline-block;
  background: #e8a33d;
  color: #14100a;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
}

form label {
  display: block;
  font-size: 0.75rem;
  color: #93a1b3;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="password"],
input[type="file"],
select,
textarea {
  background: #171e28;
  border: 1px solid #26303d;
  color: #e6edf3;
  padding: 0.5rem;
  border-radius: 0.375rem;
  width: 100%;
  box-sizing: border-box;
}

.col-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  background: #171e28;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.col-row .field {
  display: flex;
  flex-direction: column;
}

.col-row .field label {
  margin-bottom: 0.25rem;
}

.col-row input,
.col-row select,
.col-row textarea {
  width: auto;
}

@media (max-width: 720px) {
  .col-row {
    grid-template-columns: 1fr;
  }
}
