.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.login-card {
  width: min(100%, 440px);
  text-align: center;
}

.login-logo {
  margin: 0 auto 18px;
}

.login-card h1 {
  margin-top: 6px;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  text-align: left;
}

.login-form .primary {
  width: 100%;
}

.back-link {
  display: inline-block;
  margin-top: 22px;
}

.admin-top {
  align-items: center;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.compact {
  padding: 9px 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
  gap: 18px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.vocab-list {
  max-height: 690px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.vocab-item {
  width: 100%;
  display: block;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.vocab-item:last-child {
  border-bottom: 0;
}

.vocab-item:hover,
.vocab-item.active {
  transform: none;
  background: #f0f6f3;
}

.vocab-item b,
.vocab-item span,
.vocab-item small {
  display: block;
}

.vocab-item span {
  margin-top: 2px;
}

.vocab-item small {
  margin-top: 4px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 18px;
}

.full {
  grid-column: 1 / -1;
}

.assigned-lessons {
  min-height: 18px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.actions-left {
  justify-content: flex-start;
}

.divider {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.lesson-toolbar {
  margin-top: 12px;
}

.lesson-toolbar input {
  flex: 1;
}

.admin-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.status-message {
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid #b8dec6;
  border-radius: 12px;
  background: #eaf7ef;
  color: var(--good);
}

.status-message.error {
  border-color: #e5bcbc;
  background: #fff0f0;
  color: var(--bad);
}

@media (max-width: 820px) {
  .admin-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: auto;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .toolbar,
  .lesson-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}
