* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Segoe UI, Tahoma, sans-serif;
  background: #0d1117;
  color: #e6edf3;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

h1, h2, h3 {
  margin: 0 0 12px 0;
}

.hint {
  color: #9fb0c3;
  margin-top: 0;
}

.panel {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.grid {
  display: grid;
  gap: 10px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.grid.five {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

label {
  display: block;
  font-size: 13px;
  color: #a7b4c5;
}

input, select, button {
  width: 100%;
  margin-top: 4px;
  border-radius: 8px;
  border: 1px solid #3a4553;
  background: #0f1520;
  color: #e6edf3;
  padding: 8px 10px;
}

button {
  cursor: pointer;
  background: #1f6feb;
  border-color: #1f6feb;
  font-weight: 600;
}

.btn-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.inline-check input {
  width: auto;
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #2f3741;
  padding: 8px;
  font-size: 13px;
}

th {
  background: #18202b;
  text-align: left;
}

a {
  color: #58a6ff;
}

.flash-wrap {
  margin-bottom: 12px;
}

.flash {
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 6px;
  font-size: 14px;
}

.flash.ok {
  background: #1f3b23;
  border: 1px solid #2d6e38;
}

.flash.err {
  background: #40222a;
  border: 1px solid #8b2f3b;
}

.card {
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 10px;
  background: #0f1520;
}

.card .k {
  color: #8fa4bb;
  font-size: 12px;
}

.card .v {
  font-size: 24px;
  font-weight: 700;
}

.card .s {
  font-size: 12px;
  color: #99a9bc;
}

.file-list {
  max-height: 520px;
  overflow: auto;
  border: 1px solid #2f3741;
  border-radius: 8px;
  background: #0f1520;
  padding: 8px;
}

@media (max-width: 1000px) {
  .grid.two,
  .grid.four,
  .grid.five,
  .btn-row {
    grid-template-columns: repeat(1, minmax(180px, 1fr));
  }
}
