:root {
  --bg: #e5e7eb;
  --panel: #e5e7eb;
  --muted: #9ca3af;
  --text: #0f172a;
  --accent: #22c55e;
  --danger: #ef4444;
  --border: #1f2937;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  /* font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

h1 {
  font-size: 1.375rem;
  margin: 8px 0 14px;
  font-weight: 600;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

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

label {
  font-size: 1rem;
  color: var(--muted);
}

input[type="text"],
select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
  min-width: 240px;
}

button {
  background: var(--accent);
  color: #052e16;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.05s ease, filter 0.25s ease;
}

button:active {
  transform: translateY(1px);
}

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

.helper {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 6px;
}

.status {
  margin-top: 10px;
  min-height: 22px;
  font-size: 1rem;
}

.status.error {
  color: var(--danger);
}

.status.ok {
  color: var(--accent);
}

.grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

@media (min-width: 769px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.thumb {
  width: 100%;
  max-height: 160px;
  aspect-ratio: 4/6;
  object-fit: cover;
  background: #0a0f1a;
}

.name {
  padding: 8px 10px;
  font-size: 0.75rem;
  border-top: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 10px;
  overflow: hidden;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  font-size: 1rem;
}

th {
  background: var(--panel);
  color: var(--muted);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  left: -9999px;
}

.form-instructor-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.form-instructor-container .nes-form {
  flex: 1;
  min-width: 0;
}

.form-instructor-container #instructor {
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .form-instructor-container {
    flex-direction: column;
    align-items: stretch;
  }

  .form-instructor-container #instructor {
    text-align: left;
    margin-top: 12px;
  }
}

.nes-container.is-rounded.with-title>.title {
  margin-top: -1.8rem;
}